pusher-hackathon 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1452fc461d4d8bcb72914fc68946f50700123ad2
4
- data.tar.gz: b29fa9cf62e662e2688dae220e9bec79cc48807d
3
+ metadata.gz: 685ce90ec5e58b64ba6dc214000b846f2bb93932
4
+ data.tar.gz: e76896111e5bcd7a11f8235e728e10765a9bfe30
5
5
  SHA512:
6
- metadata.gz: 9e168ca29cf1b02aa34a23dcbcc16605f57a5642f9f996f8c788e6268cdcc8dc63ef6a50858ff67d56a52cf3cf2e5c5e53d54d8a472913a3e678b28c6bfbc0ec
7
- data.tar.gz: f0ba9eb7507b7ea18476ea5e181de4544e7ab193effcd334ee6f44f369ec4ab56d4209456e837a74a65331d7a15ced679238e28251eb0cf612edf4dc66c7f14c
6
+ metadata.gz: 9c8afaad59c0d7232ed0fa7251c7d5085499f1df62e9762bce288452b20bf38074103139ba860b4545f4f447186df1df940a20f6b678f5830e279c4c6a8056a8
7
+ data.tar.gz: 6e1422b81c2fa2a7a398fd9f048dca72e92e378ca7b8e4512e237e4f51772cc43ac6cfbdc32f1a646c3d49732277b30a20683dad6e4b9361c390e1bcfdd7c924
data/bin/pusher-hackathon CHANGED
@@ -16,18 +16,14 @@ command :run do |c|
16
16
  c.option '--secret STRING',String, 'Your Pusher App Secret'
17
17
  c.option '--id STRING', String,'Your Pusher App Id'
18
18
  c.option '--port STRING', String, '[optional] The port you wish to run the endpoint on'
19
+ c.option '--url STRING', String, 'Your Pusher URL'
19
20
  c.action do |args, options|
20
21
 
21
- if !(options.key && options.secret && options.id)
22
+ if !(options.key && options.secret && options.id) || !options.url
22
23
  puts "Type: `pusher-hackathon run --id your_app_id --key your_app_key --secret your_app_secret`"
23
24
  else
24
-
25
- Pusher.app_id = options.id
26
- Pusher.key = options.key
27
- Pusher.secret = options.secret
28
-
25
+ Pusher.url = options.url || "https://#{options.key}:#{options.secret}@api.pusherapp.com/apps/#{options.app_id}"
29
26
  port = (options.port) ? options.port.to_i : 9090
30
-
31
27
  PusherHackathon::AuthApp.set :port, port
32
28
  PusherHackathon::AuthApp.run!
33
29
  end
@@ -1,3 +1,3 @@
1
1
  module PusherHackathon
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-hackathon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Patel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2015-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler