phoenix_rails 0.0.8 → 0.0.9
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/lib/phoenix_rails/client.rb +7 -7
- 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: dfd8ac9161365450e0ca7d873c2627244ecde497
|
|
4
|
+
data.tar.gz: b2567b4bf29a9957fade16ffbdca4384247d174b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e052e6b0bccebb777981678d4b7d460c87aa7e1c44021534ae3cdd212deadf710a0de083875ca3156e08df57fd65e95cac38c96fefd68b20cd08c3163d2f1438
|
|
7
|
+
data.tar.gz: 941f82c8a8a6295bcf47fb862a0b655afe5238009aa294a76280ff61cb83ee96f4f7d718e83fec6fc1e213661f3844a56747ab834a7fae641914a7e8fcfb14e4
|
data/lib/phoenix_rails/client.rb
CHANGED
|
@@ -20,12 +20,12 @@ module PhoenixRails
|
|
|
20
20
|
@keep_alive_timeout = 30
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
def base_url
|
|
24
|
+
URI::Generic.build({
|
|
25
|
+
:scheme => @scheme,
|
|
26
|
+
:host => @host,
|
|
27
|
+
:port => @port
|
|
28
|
+
})
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def encrypted=(boolean)
|
|
@@ -58,7 +58,7 @@ module PhoenixRails
|
|
|
58
58
|
|
|
59
59
|
def channel(channel_name)
|
|
60
60
|
raise ConfigurationError, 'Missing client configuration: please check that secret is configured.' unless configured?
|
|
61
|
-
Channel.new(
|
|
61
|
+
Channel.new(base_url, channel_name, self)
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
alias :[] :channel
|