birdseed 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c476db6a956b4e6147ccb8c1c767ad4fc6c54283
4
- data.tar.gz: d0c7017c0408edb368275c7b01c9c9f61b0fcd79
3
+ metadata.gz: 936692d6d041c348be86ce8c99c3c8ee941f593d
4
+ data.tar.gz: ecbba4f783997a24090a608d44f42b8a74cf42f3
5
5
  SHA512:
6
- metadata.gz: 537aa5f32e4291ff8c664ca5522e011ceb1d5f14958d5c1eba5f1c4e676c0ba3d59b59603a07c9bd6637950ac8469de84090150993a7311fadff56b51af2d2bd
7
- data.tar.gz: 8546cecd5c320f91569d3334100c38001584d0aa7e10d9f89cc3bfcc8a3a47bc4174256623e1d16a850734f0bc814a46dfad2049bd6c36726fba01d5b618b62b
6
+ metadata.gz: 475ba25c29ad61485c838c401cce4af7344f4d681b44d727d8fe7d7d76778990e4af5ead3785f7ecde7dbb3400b393129ff7149354ff445d2458403766f399fb
7
+ data.tar.gz: 554fad0140f46336cf177358c44316d91cb9ad40ed86c4e2c2b59ef76abbb6d6924d3630878f8da68a6f90b94ea2ff5b8cb7b14b1b81e57928cef250f340cce0
data/lib/birdseed.rb CHANGED
@@ -21,10 +21,11 @@ module Birdseed
21
21
 
22
22
  # See https://github.com/edmodo/fatbird#send-emails-using-rest-api
23
23
  def self.deliver(options={})
24
+ api_key = options[:api_key] || @@api_key
24
25
  response = RestClient.post(
25
26
  "#{self.fatbird_host}/deliveries",
26
27
  JSON.generate(options),
27
- {"Authorization" => "api_key #{@@api_key}", :content_type => :json, :accept => :json}
28
+ {"Authorization" => "api_key #{api_key}", :content_type => :json, :accept => :json}
28
29
  )
29
30
  Hashie::Mash.new(JSON.parse(response))
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module Birdseed
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birdseed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Luk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler