piped 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/piped/version.rb +1 -1
- data/lib/piped.rb +2 -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: e66a26ff3d92d9955eb513372a0184ee6f1f028e
|
4
|
+
data.tar.gz: 827e9660aec42debeff0e2f3717f58358382a386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5755553210def01ab3a0d88a2f9a340d109a3f8522bf5d96b3c6e95e9b52a74a917ff42ff863d1cbd2001dd09250d8a2316c7ec0794e80a03b3670cafb9504
|
7
|
+
data.tar.gz: fe39b9b7f57ac9a817a62acd2e2b816f1fc5dba9a93b15690d946eba5eebc944f7e6f1b245b0442a99650dfee31bb57009d956c69550bea64ffccecd5c227f70
|
data/lib/piped/version.rb
CHANGED
data/lib/piped.rb
CHANGED
@@ -22,8 +22,9 @@ module Piped
|
|
22
22
|
# See https://github.com/edmodo/pipeman#create-events-using-events-api
|
23
23
|
def self.push(options={})
|
24
24
|
api_key = options.delete(:api_key) || @@api_key
|
25
|
+
host = options.delete(:pipeman_host) || self.pipeman_host
|
25
26
|
response = RestClient.post(
|
26
|
-
"#{
|
27
|
+
"#{host}/events",
|
27
28
|
JSON.generate(options),
|
28
29
|
{"Authorization" => "Bearer #{api_key}", :content_type => :json, :accept => :json}
|
29
30
|
)
|