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 +4 -4
- data/bin/pusher-hackathon +3 -7
- data/lib/hackathon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 685ce90ec5e58b64ba6dc214000b846f2bb93932
|
4
|
+
data.tar.gz: e76896111e5bcd7a11f8235e728e10765a9bfe30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/hackathon/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|