piped 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/piped/version.rb +1 -1
  3. data/lib/piped.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9550db9130ecdbe7262585dac8fa569c6a35067f
4
- data.tar.gz: 1b4ae1ab8ad47cfe83f2acccd00651a082818c88
3
+ metadata.gz: e66a26ff3d92d9955eb513372a0184ee6f1f028e
4
+ data.tar.gz: 827e9660aec42debeff0e2f3717f58358382a386
5
5
  SHA512:
6
- metadata.gz: ca639c49ca2ff7b3ff15be4a6cf6741183d90f153cd21f9ddbfd1d6c22a5f8ba6832173be312ed4593318d9aed3202a659c2df7b6a15172f1ecac87c1288e92a
7
- data.tar.gz: 680f7c5bde48f761f9e4fbeeb719e5f32924402bfd9b9745f5bf90f392d81142b86e16c38b2ec6df268a347df8cfa96ac21aa7ee255c62c51e1ad6db7488245c
6
+ metadata.gz: 9d5755553210def01ab3a0d88a2f9a340d109a3f8522bf5d96b3c6e95e9b52a74a917ff42ff863d1cbd2001dd09250d8a2316c7ec0794e80a03b3670cafb9504
7
+ data.tar.gz: fe39b9b7f57ac9a817a62acd2e2b816f1fc5dba9a93b15690d946eba5eebc944f7e6f1b245b0442a99650dfee31bb57009d956c69550bea64ffccecd5c227f70
data/lib/piped/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Piped
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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
- "#{self.pipeman_host}/events",
27
+ "#{host}/events",
27
28
  JSON.generate(options),
28
29
  {"Authorization" => "Bearer #{api_key}", :content_type => :json, :accept => :json}
29
30
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Luk