GithubHelp home page GithubHelp logo

apnmachine's People

Contributors

alecnmk avatar jnak avatar mwhuss avatar nchapman avatar psli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apnmachine's Issues

Accept redis URI as an option

I just added the command line option to accept a redis URI such as redis://username:password@server:port. This is useful if you're storing your redis URI in an env car such as Heroku does.

I was wondering if you'd be against removing the individual host and port options and just having a single URI that defaults to redis://localhost:6379.

Let me know what you think and I can send a pull request.

openssl weren't required properly

Hi,

I'm getting strange error:

gems/apnmachine-0.1.1/lib/apnmachine/server/server.rb:56:in `rescue in block (2 levels) in start!': uninitialized constant ApnMachine::Server::Server::OpenSSL (NameError)

when I manually patch server.rb with "require 'openssl'" in the very top it goes away

I'm using ruby-1.9.3-p125 (w/ rvm). apnmachine is running with 'bundle exec' in daemon mode.

Please, give me a hint

Unable to handle: undefined local variable or method `host' for #<ApnMachine::Server::Client:0x007fbe720a21d8>

I think I'm doing this right, but I keep getting this error in the log:
"Unable to handle: undefined local variable or method `host' for #ApnMachine::Server::Client:0x007fbe720a21d8"

Here is my code:

ApnMachine::Config.redis = Redis.new
notification = ApnMachine::Notification.new
notification.device_token = my_device_token
notification.alert = 'hello'
notification.push

Rails 3.2.6 - everything running localhost.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.