sendcloud_client 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/lib/sendcloud_client.rb +2 -2
- data/sendcloud_client.gemspec +1 -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: 2307801894317939b134b9e1faf5bd68ba76dc3a
|
|
4
|
+
data.tar.gz: 572f9dee362978a40cf30af2df8544c7ce0e48f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e81f566ce70b8d432bae84a49f0b10019c6623c38e042e863cda0ee46839e182abb873d3730de1b6f30459eb253f98ece83731c8a1fd7d42ecac74304d7d36cb
|
|
7
|
+
data.tar.gz: d63c7590ff46015b1b876bea7d98865b3dcd7f873c55c42996dc4c67a94d3471e11a40521c39ff75be3af577d8db8fd99098c6a6df3ddae284b4e7c87f331fa4
|
data/lib/sendcloud_client.rb
CHANGED
|
@@ -17,8 +17,8 @@ module SendcloudClient
|
|
|
17
17
|
return if options[:to].length == 0
|
|
18
18
|
uri = "#{API_BASE}/mail/send"
|
|
19
19
|
res = RestClient.post uri, apiUser: SendcloudClient.api_user,
|
|
20
|
-
apiKey: SendcloudClient.api_key, to: options[:to], from: options[:from], fromName: options[fromName
|
|
21
|
-
subject: options[subject
|
|
20
|
+
apiKey: SendcloudClient.api_key, to: options[:to], from: options[:from], fromName: options[:fromName],
|
|
21
|
+
subject: options[:subject], html: options[:html]
|
|
22
22
|
|
|
23
23
|
JSON.parse(res) rescue nil
|
|
24
24
|
end
|
data/sendcloud_client.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'sendcloud_client'
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.3'
|
|
8
8
|
spec.authors = ['Alvin Ye']
|
|
9
9
|
spec.email = ['alvin.ye.cn@gmail.com']
|
|
10
10
|
spec.description = %q{ruby client for sohu sendcloud api v2}
|