pusher-hackathon 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/pusher-hackathon +2 -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: 10761fbb9517c989f32aece8a0fb967d48648806
|
|
4
|
+
data.tar.gz: ab866a9b95ed65eb2e98db1c4c065b3db91ff74e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cd834dff34ada5cf73c3d4942b23ec948649c9fe04f1e4a12ccc4357374c4f0e520690b01f0476db3d1048b30fd440e7e30b39b7c5bf22b7df45ed9670bbd3a
|
|
7
|
+
data.tar.gz: d130c4d6bd4a31411982a8414c9e42feeeb5af903ddb942ed2239bdc7003afb5d7f04e4f5c93673a9a3e6ecfa6a04ae401d5235efdceb63e4afc9056cf83ff8b
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Setting up a server that authenticates private- and presence-channels for hackat
|
|
|
12
12
|
--secret your_app_secret \
|
|
13
13
|
--key your_app_key
|
|
14
14
|
|
|
15
|
-
This will open up a Heroku dashboard. Click
|
|
15
|
+
This will open up a Heroku dashboard. Click "Deploy for free" and in 20 seconds you'll have your own authentication app.
|
|
16
16
|
|
|
17
17
|
Boom, job done! Now get hacking!
|
|
18
18
|
|
data/bin/pusher-hackathon
CHANGED
|
@@ -27,7 +27,7 @@ command :run do |c|
|
|
|
27
27
|
unless options.url || (options.key && options.secret && options.id)
|
|
28
28
|
puts "Type: `pusher-hackathon run --id your_app_id --key your_app_key --secret your_app_secret`"
|
|
29
29
|
else
|
|
30
|
-
Pusher.url = options.url || "https://#{options.key}:#{options.secret}@api.pusherapp.com/apps/#{options.
|
|
30
|
+
Pusher.url = options.url || "https://#{options.key}:#{options.secret}@api.pusherapp.com/apps/#{options.id}"
|
|
31
31
|
port = (options.port) ? options.port.to_i : 9090
|
|
32
32
|
PusherHackathon::AuthApp.set :port, port
|
|
33
33
|
PusherHackathon::AuthApp.run!
|
|
@@ -48,7 +48,7 @@ command :deploy do |c|
|
|
|
48
48
|
puts "Type: `pusher-hackathon deploy --id your_app_id --key your_app_key --secret your_app_secret`"
|
|
49
49
|
else
|
|
50
50
|
require 'uri'
|
|
51
|
-
url = options.url || "https://#{options.key}:#{options.secret}@api.pusherapp.com/apps/#{options.
|
|
51
|
+
url = options.url || "https://#{options.key}:#{options.secret}@api.pusherapp.com/apps/#{options.id}"
|
|
52
52
|
url = URI.encode(url, /\W/)
|
|
53
53
|
`open 'https://heroku.com/deploy?template=https://github.com/jpatel531/pusher-auth&env[PUSHER_URL]=#{url}'`
|
|
54
54
|
end
|
data/lib/hackathon/version.rb
CHANGED