Created
January 19, 2013 19:03
-
-
Save grahamcracker/4574364 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I install the gem: | |
# > sudo gem install apns | |
# > Successfully installed apns-1.0.0 | |
# > 1 gem installed | |
# > Installing ri documentation for apns-1.0.0... | |
# > Installing RDoc documentation for apns-1.0.0... | |
# I run this file: ruby push.rb | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'apns' | |
# this error shows: | |
# ruby app/cron/apns/push.rb | |
#/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- json (LoadError) | |
# from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
# from /var/lib/gems/1.8/gems/apns-1.0.0/lib/apns/core.rb:4 | |
# from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
# from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
# from /var/lib/gems/1.8/gems/apns-1.0.0/lib/apns.rb:1 | |
# from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require' | |
# from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `require' | |
# from app/cron/apns/push.rb:3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment