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 +4 -4
- data/bin/pusher-hackathon +4 -2
- data/lib/hackathon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23d0851b6eae28898741700a414602408bb87e1
|
4
|
+
data.tar.gz: fa6880ccd5a5faf419112d9975af8d4516f61df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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
|
data/lib/hackathon/version.rb
CHANGED