pusher-hackathon 0.0.2 → 0.0.3

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: 92d236dbac89e7bd3588f5b7a21ad8ffa3d59278
4
- data.tar.gz: cd7547f1b1f14c0add753b209d6796aeaf5954f3
3
+ metadata.gz: b23d0851b6eae28898741700a414602408bb87e1
4
+ data.tar.gz: fa6880ccd5a5faf419112d9975af8d4516f61df9
5
5
  SHA512:
6
- metadata.gz: 01c0a3a6aae52dfebc3c0c0cf3671db4875e3bcf4c9c3b19ce665b14d3deb3de840d857780a9f8816074b449e469d947f6c4c382dce2d08f77de9c6c70a63729
7
- data.tar.gz: f51e10e952a50e34b8d8f10c4be69bc3e50d4915d2004d8f99bc904cab496abbd35e34b0163bdb6fe957c6bdb25738ee4dadc5b5ec98c012f6aa96d5ab308049
6
+ metadata.gz: e5eaeb0d50ac9daff4678eaf99b174adfd27eaa109f85242e704d6ce964a1f79e9f862036f4fbfd82d97bdef653cbe5650b76a07ca2eca454f83030b1e017de6
7
+ data.tar.gz: 23c1ba0504ae25a5752433127334e4434402d5f63163ea495c7e43ca8872055aa0b42afbc42d3c540cf88c81b1d96a46c807a7b90985478366eccdecb68277cb
data/bin/pusher-hackathon CHANGED
@@ -15,7 +15,7 @@ command :run do |c|
15
15
  c.option '--key STRING', String, 'Your Pusher App Key'
16
16
  c.option '--secret STRING',String, 'Your Pusher App Secret'
17
17
  c.option '--id STRING', String,'Your Pusher App Id'
18
- c.option '--port NUMBER', String, '[optional] The port you wish to run the endpoint on'
18
+ c.option '--port STRING', String, '[optional] The port you wish to run the endpoint on'
19
19
  c.action do |args, options|
20
20
 
21
21
  if !(options.key && options.secret && options.id)
@@ -26,7 +26,9 @@ command :run do |c|
26
26
  Pusher.key = options.key
27
27
  Pusher.secret = options.secret
28
28
 
29
- PusherHackathon::AuthApp.set :port, (!options.port.to_i.zero?) || 9090
29
+ port = (options.port) ? options.port.to_i : 9090
30
+
31
+ PusherHackathon::AuthApp.set :port, port
30
32
  PusherHackathon::AuthApp.run!
31
33
  end
32
34
  end
@@ -1,3 +1,3 @@
1
1
  module PusherHackathon
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-hackathon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Patel