echor 0.1.4 → 0.1.5
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.
- data/VERSION +1 -1
- data/echor.gemspec +1 -1
- data/lib/echor/backplane.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.5
|
data/echor.gemspec
CHANGED
data/lib/echor/backplane.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Echo
|
|
|
6
6
|
def initialize(channel, options={})
|
|
7
7
|
self.class.debug_output $stdout if Echo.debug
|
|
8
8
|
self.class.base_uri "http://api.echoenabled.com/v1/"
|
|
9
|
-
self.class.basic_auth Echo.
|
|
9
|
+
self.class.basic_auth Echo.backplane_user, Echo.backplane_password
|
|
10
10
|
|
|
11
11
|
@channel = channel
|
|
12
12
|
end
|
|
@@ -43,7 +43,7 @@ module Echo
|
|
|
43
43
|
|
|
44
44
|
private
|
|
45
45
|
def perform_request(data)
|
|
46
|
-
JSON.parse(`curl -u #{Echo.
|
|
46
|
+
JSON.parse(`curl -u #{Echo.backplane_user}:#{Echo.backplane_password} --data-binary '#{data}' #{@channel}`)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# Create the json structure that Echo will consume.
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: echor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.1.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Pedro Del Gallego
|