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 +4 -4
- data/lib/birdseed.rb +2 -1
- data/lib/birdseed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 936692d6d041c348be86ce8c99c3c8ee941f593d
|
4
|
+
data.tar.gz: ecbba4f783997a24090a608d44f42b8a74cf42f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 #{
|
28
|
+
{"Authorization" => "api_key #{api_key}", :content_type => :json, :accept => :json}
|
28
29
|
)
|
29
30
|
Hashie::Mash.new(JSON.parse(response))
|
30
31
|
end
|
data/lib/birdseed/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|