send_with_us 1.0.2 → 1.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/CHANGELOG.md +1 -0
- data/Gemfile.lock +1 -1
- data/lib/send_with_us/api.rb +6 -0
- data/lib/send_with_us/api_request.rb +1 -0
- data/lib/send_with_us/version.rb +1 -1
- data/send_with_us.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1855d28e92afbbc8840a2104d43649f8a9394aa6
|
4
|
+
data.tar.gz: 4431b30194b533bf8cc249cf96f1f0b79dff08ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da0c049c3de26cc5f5c8b6617caf1c8de9a32f30b237fded0a1ceeb52cdca2b3efd50a31a8905f621ec3785a1c3f76213a82ac25878a2a20ae4ab2c242c2621
|
7
|
+
data.tar.gz: d72288f66bf58f4a2f7bff189544880783856834d2e9cc8f0be7281a9749c4559eb9e9fc7f6f53561e385d3ad8435710c14719032021af2b975c422f6137292a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/send_with_us/api.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
module SendWithUs
|
2
|
+
class ApiNilEmailId < StandardError; end
|
2
3
|
|
3
4
|
class Api
|
4
5
|
attr_reader :configuration
|
@@ -21,6 +22,11 @@ module SendWithUs
|
|
21
22
|
end
|
22
23
|
|
23
24
|
def send_with(email_id, to, data = {}, from = {}, cc={}, bcc={})
|
25
|
+
|
26
|
+
if email_id.nil?
|
27
|
+
raise SendWithUs::ApiNilEmailId, 'email_id cannot be nil'
|
28
|
+
end
|
29
|
+
|
24
30
|
payload = { email_id: email_id, recipient: to,
|
25
31
|
email_data: data }
|
26
32
|
|
data/lib/send_with_us/version.rb
CHANGED
data/send_with_us.gemspec
CHANGED
@@ -7,7 +7,7 @@ require 'send_with_us/version'
|
|
7
7
|
Gem::Specification.new do |gem|
|
8
8
|
gem.name = "send_with_us"
|
9
9
|
gem.version = SendWithUs::VERSION
|
10
|
-
gem.authors = ["Matt Harris", "Chris Cummer"]
|
10
|
+
gem.authors = ["Matt Harris", "Chris Cummer", "Nicholas Rempel"]
|
11
11
|
gem.email = ["us@sendwithus.com"]
|
12
12
|
gem.description = %q{SendWithUs.com Ruby Client}
|
13
13
|
gem.summary = %q{SendWithUs.com Ruby Client}
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: send_with_us
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Harris
|
8
8
|
- Chris Cummer
|
9
|
+
- Nicholas Rempel
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rake
|