pushit-ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pushit.rb +3 -3
- data/lib/pushit/channel.rb +8 -9
- data/lib/pushit/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: 7aeffe28604bc09abf8cd3790350a2fac20f3da5
|
4
|
+
data.tar.gz: 53cf72b1703f8349e7b401c2a4c144ba76af53ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3d0ba24e9d3f8fbb2de0b5bb526bf6d435a94ffa77345fb0efa1097fd57295fd8f56057486323f48236df12b9e99a1f00201166fc53bc4f7b14110d14799149
|
7
|
+
data.tar.gz: 13d7c44f11efa2ddfb6115ec3238b8e6f6c7d8dfa467f39af3f6a24f442a684f0044a343270277d6dc66216c616a350ad7211ad2e9ad147748dbeb3643894a5c
|
data/lib/pushit.rb
CHANGED
data/lib/pushit/channel.rb
CHANGED
@@ -4,13 +4,12 @@ module Pushit
|
|
4
4
|
require 'multi_json'
|
5
5
|
|
6
6
|
def initialize(channel_name, options = {})
|
7
|
-
options
|
8
|
-
:
|
9
|
-
:
|
7
|
+
options = {
|
8
|
+
scheme: 'https',
|
9
|
+
host: 'ws.slaask.com'
|
10
10
|
}.merge(options)
|
11
11
|
|
12
|
-
@channel_name
|
13
|
-
|
12
|
+
@channel_name = channel_name
|
14
13
|
@scheme, @host, @port = options.values_at(
|
15
14
|
:scheme, :host, :port
|
16
15
|
)
|
@@ -24,10 +23,10 @@ module Pushit
|
|
24
23
|
|
25
24
|
def url(event)
|
26
25
|
URI::HTTPS.build({
|
27
|
-
:
|
28
|
-
:
|
29
|
-
:
|
30
|
-
:
|
26
|
+
scheme: @scheme,
|
27
|
+
host: @host,
|
28
|
+
port: @port,
|
29
|
+
path: "/publish/#{@channel_name}/#{event}"
|
31
30
|
})
|
32
31
|
end
|
33
32
|
end
|
data/lib/pushit/version.rb
CHANGED