sendgrid_toolkit 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,5 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "activesupport", ">= 2.3.5"
4
3
  gem "httparty", ">= 0.7.6"
5
4
 
6
5
  group :development do
@@ -1,8 +1,6 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.1.1)
5
- multi_json (~> 1.0)
6
4
  diff-lcs (1.1.3)
7
5
  fakeweb (1.3.0)
8
6
  git (1.2.5)
@@ -29,7 +27,6 @@ PLATFORMS
29
27
  ruby
30
28
 
31
29
  DEPENDENCIES
32
- activesupport (>= 2.3.5)
33
30
  bundler (~> 1.0.0)
34
31
  fakeweb (~> 1.3.0)
35
32
  httparty (>= 0.7.6)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -1,4 +1,3 @@
1
- require 'active_support/all'
2
1
  require 'httparty'
3
2
 
4
3
  require 'sendgrid_toolkit/abstract_sendgrid_client'
@@ -5,8 +5,8 @@ module SendgridToolkit
5
5
  @api_user = (api_user.nil?) ? ENV['SMTP_USERNAME'] : api_user
6
6
  @api_key = (api_key.nil?) ? ENV['SMTP_PASSWORD'] : api_key
7
7
 
8
- raise SendgridToolkit::NoAPIUserSpecified if @api_user.blank?
9
- raise SendgridToolkit::NoAPIKeySpecified if @api_key.blank?
8
+ raise SendgridToolkit::NoAPIUserSpecified if @api_user.nil? || @api_user.length == 0
9
+ raise SendgridToolkit::NoAPIKeySpecified if @api_key.nil? || @api_key.length == 0
10
10
  end
11
11
 
12
12
  protected
@@ -0,0 +1,78 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "sendgrid_toolkit"
8
+ s.version = "1.0.7"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Robby Grossman"]
12
+ s.date = "2011-11-01"
13
+ s.description = "A Ruby wrapper and utility library for communicating with the Sendgrid API."
14
+ s.email = "robby@freerobby.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".rvmrc",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/sendgrid_toolkit.rb",
28
+ "lib/sendgrid_toolkit/abstract_sendgrid_client.rb",
29
+ "lib/sendgrid_toolkit/bounces.rb",
30
+ "lib/sendgrid_toolkit/common.rb",
31
+ "lib/sendgrid_toolkit/invalid_emails.rb",
32
+ "lib/sendgrid_toolkit/sendgrid_error.rb",
33
+ "lib/sendgrid_toolkit/spam_reports.rb",
34
+ "lib/sendgrid_toolkit/statistics.rb",
35
+ "lib/sendgrid_toolkit/unsubscribes.rb",
36
+ "sendgrid_toolkit.gemspec",
37
+ "spec/helper.rb",
38
+ "spec/lib/sendgrid_toolkit/abstract_sendgrid_client_spec.rb",
39
+ "spec/lib/sendgrid_toolkit/bounces_spec.rb",
40
+ "spec/lib/sendgrid_toolkit/common_spec.rb",
41
+ "spec/lib/sendgrid_toolkit/invalid_emails_spec.rb",
42
+ "spec/lib/sendgrid_toolkit/spam_reports_spec.rb",
43
+ "spec/lib/sendgrid_toolkit/statistics_spec.rb",
44
+ "spec/lib/sendgrid_toolkit/unsubscribes_spec.rb",
45
+ "spec/lib/sendgrid_toolkit_spec.rb",
46
+ "spec/webconnect/sendgrid_toolkit_spec.rb"
47
+ ]
48
+ s.homepage = "http://github.com/freerobby/sendgrid_toolkit"
49
+ s.licenses = ["MIT"]
50
+ s.require_paths = ["lib"]
51
+ s.rubygems_version = "1.8.10"
52
+ s.summary = "sendgrid_toolkit = Sendgrid + Ruby"
53
+
54
+ if s.respond_to? :specification_version then
55
+ s.specification_version = 3
56
+
57
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
58
+ s.add_runtime_dependency(%q<httparty>, [">= 0.7.6"])
59
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
60
+ s.add_development_dependency(%q<fakeweb>, ["~> 1.3.0"])
61
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
62
+ s.add_development_dependency(%q<rspec>, ["~> 2.7.0"])
63
+ else
64
+ s.add_dependency(%q<httparty>, [">= 0.7.6"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
+ s.add_dependency(%q<fakeweb>, ["~> 1.3.0"])
67
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
68
+ s.add_dependency(%q<rspec>, ["~> 2.7.0"])
69
+ end
70
+ else
71
+ s.add_dependency(%q<httparty>, [">= 0.7.6"])
72
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
73
+ s.add_dependency(%q<fakeweb>, ["~> 1.3.0"])
74
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
75
+ s.add_dependency(%q<rspec>, ["~> 2.7.0"])
76
+ end
77
+ end
78
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendgrid_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,20 +11,9 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2011-11-01 00:00:00.000000000Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: activesupport
16
- requirement: &70095510282140 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 2.3.5
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *70095510282140
25
14
  - !ruby/object:Gem::Dependency
26
15
  name: httparty
27
- requirement: &70095510281640 !ruby/object:Gem::Requirement
16
+ requirement: &70243631139020 !ruby/object:Gem::Requirement
28
17
  none: false
29
18
  requirements:
30
19
  - - ! '>='
@@ -32,10 +21,10 @@ dependencies:
32
21
  version: 0.7.6
33
22
  type: :runtime
34
23
  prerelease: false
35
- version_requirements: *70095510281640
24
+ version_requirements: *70243631139020
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: bundler
38
- requirement: &70095510281060 !ruby/object:Gem::Requirement
27
+ requirement: &70243631138360 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
30
  - - ~>
@@ -43,10 +32,10 @@ dependencies:
43
32
  version: 1.0.0
44
33
  type: :development
45
34
  prerelease: false
46
- version_requirements: *70095510281060
35
+ version_requirements: *70243631138360
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: fakeweb
49
- requirement: &70095510280440 !ruby/object:Gem::Requirement
38
+ requirement: &70243631137700 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ~>
@@ -54,10 +43,10 @@ dependencies:
54
43
  version: 1.3.0
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *70095510280440
46
+ version_requirements: *70243631137700
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: jeweler
60
- requirement: &70095510279400 !ruby/object:Gem::Requirement
49
+ requirement: &70243631137040 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ~>
@@ -65,10 +54,10 @@ dependencies:
65
54
  version: 1.6.4
66
55
  type: :development
67
56
  prerelease: false
68
- version_requirements: *70095510279400
57
+ version_requirements: *70243631137040
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: rspec
71
- requirement: &70095510278900 !ruby/object:Gem::Requirement
60
+ requirement: &70243631136380 !ruby/object:Gem::Requirement
72
61
  none: false
73
62
  requirements:
74
63
  - - ~>
@@ -76,7 +65,7 @@ dependencies:
76
65
  version: 2.7.0
77
66
  type: :development
78
67
  prerelease: false
79
- version_requirements: *70095510278900
68
+ version_requirements: *70243631136380
80
69
  description: A Ruby wrapper and utility library for communicating with the Sendgrid
81
70
  API.
82
71
  email: robby@freerobby.com
@@ -102,6 +91,7 @@ files:
102
91
  - lib/sendgrid_toolkit/spam_reports.rb
103
92
  - lib/sendgrid_toolkit/statistics.rb
104
93
  - lib/sendgrid_toolkit/unsubscribes.rb
94
+ - sendgrid_toolkit.gemspec
105
95
  - spec/helper.rb
106
96
  - spec/lib/sendgrid_toolkit/abstract_sendgrid_client_spec.rb
107
97
  - spec/lib/sendgrid_toolkit/bounces_spec.rb
@@ -127,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
117
  version: '0'
128
118
  segments:
129
119
  - 0
130
- hash: -2993501477893612547
120
+ hash: -4321633947475345142
131
121
  required_rubygems_version: !ruby/object:Gem::Requirement
132
122
  none: false
133
123
  requirements: