tropo / pamfaxr Goto Github PK
View Code? Open in Web Editor NEWRuby lib for the PamFax API
Home Page: http://www.pamfax.biz/en/partners/tropo/
License: MIT License
Ruby lib for the PamFax API
Home Page: http://www.pamfax.biz/en/partners/tropo/
License: MIT License
Using Ubuntu 10.10
gem1.9.1 install pamfaxr
fails with the following message in the gem_make.out:
/usr/bin/ruby1.9.1 extconf.rb
internal:lib/rubygems/custom_require:29:in require': no such file to load -- mkmf (LoadError) from <internal:lib/rubygems/custom_require>:29:in
require'
from extconf.rb:1:in `
Installation with the gem version 1.8 works fine.
Again, on Ubuntu 10.10, using a further simplified version of the "short" example.
ruby1.8 example_simple.rb
warning: peer certificate won't be verified in this SSL session
/var/lib/gems/1.8/gems/pamfaxr-0.0.2/lib/pamfaxr/pamfaxr.rb:691:in converting?': undefined method
each' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.8/gems/pamfaxr-0.0.2/lib/pamfaxr/pamfaxr.rb:679:in fetch_state' from /var/lib/gems/1.8/gems/pamfaxr-0.0.2/lib/pamfaxr/pamfaxr.rb:476:in
get_state'
from /var/lib/gems/1.8/gems/pamfaxr-0.0.2/lib/pamfaxr/pamfaxr.rb:754:in send' from /var/lib/gems/1.8/gems/pamfaxr-0.0.2/lib/pamfaxr/pamfaxr.rb:754:in
method_missing'
from example_simple.rb:13
from example_simple.rb:12:in `loop'
from example_simple.rb:12
Here's the source code used:
require 'rubygems'
require 'pamfaxr'
pamfaxr = PamFaxr.new :username => '???',
:password => '???'
pamfaxr.create_fax_job
covers = pamfaxr.list_available_covers
pamfaxr.set_cover(covers['Covers']['content'][1]['id'], 'Hello, world')
pamfaxr.add_recipient('+4958229477147777')
loop do
fax_state = pamfaxr.get_state
break if fax_state['FaxContainer']['state'] == 'ready_to_send'
sleep 5
end
pamfaxr.send_fax
I'm preparing mime-types 2.0 for release, and it has some breaking API changes (not for most uses, but some esoteric features). The most important API change is that mime-types 2.0 no longer supports Ruby 1.8.
If this matters, the gemspec needs to be changed from >= 1.16
to ~> 1.16
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.