sendgrid-ruby 4.0.8 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +21 -0
  3. data/.env_sample +1 -0
  4. data/.github/PULL_REQUEST_TEMPLATE +26 -0
  5. data/.gitignore +1 -0
  6. data/.travis.yml +11 -2
  7. data/CHANGELOG.md +119 -3
  8. data/CODE_OF_CONDUCT.md +41 -0
  9. data/CONTRIBUTING.md +34 -30
  10. data/Gemfile +4 -1
  11. data/LICENSE.txt +1 -1
  12. data/README.md +53 -24
  13. data/Rakefile +7 -2
  14. data/TROUBLESHOOTING.md +41 -15
  15. data/UPGRADE.md +5 -0
  16. data/USAGE.md +1130 -1129
  17. data/USE_CASES.md +280 -16
  18. data/config.ru +4 -0
  19. data/docker/Dockerfile +12 -0
  20. data/docker/README.md +30 -0
  21. data/examples/helpers/mail/example.rb +62 -45
  22. data/examples/helpers/settings/example.rb +23 -0
  23. data/examples/helpers/stats/example.rb +42 -0
  24. data/examples/ips/ips.rb +13 -0
  25. data/examples/mail/mail.rb +2 -2
  26. data/examples/scopes/scopes.rb +49 -3
  27. data/examples/{whitelabel/whitelabel.rb → senderauthentication/senderauthentication.rb} +27 -27
  28. data/examples/suppression/suppression.rb +10 -10
  29. data/gemfiles/Sinatra_1.gemfile +6 -0
  30. data/gemfiles/Sinatra_2.gemfile +6 -0
  31. data/lib/sendgrid-ruby.rb +27 -1
  32. data/lib/sendgrid/client.rb +12 -9
  33. data/lib/sendgrid/helpers/inbound/README.md +98 -0
  34. data/lib/sendgrid/helpers/inbound/app.rb +32 -0
  35. data/lib/sendgrid/helpers/inbound/config.yml +26 -0
  36. data/lib/sendgrid/helpers/inbound/public/index.html +10 -0
  37. data/lib/sendgrid/helpers/inbound/sample_data/default_data.txt +58 -0
  38. data/lib/sendgrid/helpers/inbound/sample_data/raw_data.txt +57 -0
  39. data/lib/sendgrid/helpers/inbound/sample_data/raw_data_with_attachments.txt +298 -0
  40. data/lib/sendgrid/helpers/inbound/send.rb +26 -0
  41. data/lib/sendgrid/helpers/ip_management/ip_management.rb +17 -0
  42. data/lib/sendgrid/helpers/mail/README.md +1 -1
  43. data/lib/sendgrid/helpers/mail/asm.rb +33 -0
  44. data/lib/sendgrid/helpers/mail/attachment.rb +86 -0
  45. data/lib/sendgrid/helpers/mail/bcc_settings.rb +33 -0
  46. data/lib/sendgrid/helpers/mail/bypass_list_management.rb +43 -0
  47. data/lib/sendgrid/helpers/mail/category.rb +20 -0
  48. data/lib/sendgrid/helpers/mail/click_tracking.rb +33 -0
  49. data/lib/sendgrid/helpers/mail/content.rb +20 -0
  50. data/lib/sendgrid/helpers/mail/custom_arg.rb +24 -0
  51. data/lib/sendgrid/helpers/mail/email.rb +29 -0
  52. data/lib/sendgrid/helpers/mail/footer.rb +43 -0
  53. data/lib/sendgrid/helpers/mail/ganalytics.rb +74 -0
  54. data/lib/sendgrid/helpers/mail/header.rb +24 -0
  55. data/lib/sendgrid/helpers/mail/mail.rb +36 -895
  56. data/lib/sendgrid/helpers/mail/mail_settings.rb +63 -0
  57. data/lib/sendgrid/helpers/mail/open_tracking.rb +33 -0
  58. data/lib/sendgrid/helpers/mail/personalization.rb +82 -0
  59. data/lib/sendgrid/helpers/mail/section.rb +24 -0
  60. data/lib/sendgrid/helpers/mail/spam_check.rb +43 -0
  61. data/lib/sendgrid/helpers/mail/subscription_tracking.rb +53 -0
  62. data/lib/sendgrid/helpers/mail/substitution.rb +24 -0
  63. data/lib/sendgrid/helpers/mail/tracking_settings.rb +53 -0
  64. data/lib/sendgrid/helpers/permissions/scope.rb +28 -0
  65. data/lib/sendgrid/helpers/permissions/scopes.yml +309 -0
  66. data/lib/sendgrid/helpers/settings/README.md +14 -0
  67. data/lib/sendgrid/helpers/settings/mail_settings_dto.rb +13 -0
  68. data/lib/sendgrid/helpers/settings/partner_settings_dto.rb +13 -0
  69. data/lib/sendgrid/helpers/settings/settings.rb +28 -0
  70. data/lib/sendgrid/helpers/settings/tracking_settings_dto.rb +24 -0
  71. data/lib/sendgrid/helpers/settings/user_settings_dto.rb +13 -0
  72. data/lib/sendgrid/helpers/stats/email_stats.rb +46 -0
  73. data/lib/sendgrid/helpers/stats/metrics.rb +35 -0
  74. data/lib/sendgrid/helpers/stats/stats_response.rb +31 -0
  75. data/lib/sendgrid/version.rb +2 -2
  76. data/mail_helper_v3.md +390 -0
  77. data/sendgrid-ruby.gemspec +12 -5
  78. data/spec/sendgrid/helpers/ip_management/ip_management_spec.rb +12 -0
  79. data/spec/sendgrid/helpers/settings/mail_settings_dto_spec.rb +32 -0
  80. data/spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb +24 -0
  81. data/spec/sendgrid/helpers/settings/settings_spec.rb +25 -0
  82. data/spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb +27 -0
  83. data/spec/sendgrid/helpers/settings/user_settings_dto_spec.rb +24 -0
  84. data/spec/sendgrid/helpers/stats/email_stats_spec.rb +112 -0
  85. data/spec/sendgrid/helpers/stats/metrics_spec.rb +46 -0
  86. data/spec/sendgrid/helpers/stats/stats_response_spec.rb +76 -0
  87. data/spec/spec_helper.rb +10 -0
  88. data/test/sendgrid/helpers/mail/test_attachment.rb +35 -0
  89. data/test/sendgrid/helpers/mail/test_category.rb +27 -0
  90. data/test/sendgrid/helpers/mail/test_email.rb +34 -0
  91. data/test/sendgrid/helpers/mail/test_mail.rb +198 -59
  92. data/test/sendgrid/helpers/mail/test_personalizations.rb +161 -0
  93. data/test/sendgrid/permissions/test_scopes.rb +38 -0
  94. data/test/sendgrid/test_sendgrid-ruby.rb +90 -9
  95. metadata +170 -10
@@ -0,0 +1,38 @@
1
+ require_relative '../../../lib/sendgrid/helpers/permissions/scope'
2
+ require 'minitest/autorun'
3
+
4
+ class TestCategory < Minitest::Test
5
+
6
+ include SendGrid
7
+
8
+ # usecases
9
+ # 1. test admin scopes
10
+ # 2. test read only scopes
11
+ # 3. test read only and full access scopes for a method by hardcoding
12
+ # 4. test read only and full access scopes by loading scopes.yaml
13
+
14
+ def setup
15
+ @scopes_from_yaml = YAML.load_file(File.dirname(__FILE__) + '/../../../lib/sendgrid/helpers/permissions/scopes.yml').freeze
16
+ end
17
+
18
+ def test_admin_scopes
19
+ assert_equal Scope.admin_permissions, @scopes_from_yaml.values.map(&:values).flatten
20
+ end
21
+
22
+ def test_read_only_scopes
23
+ assert_equal Scope.read_only_permissions, @scopes_from_yaml.map { |_, v| v[:read] }.flatten
24
+ end
25
+
26
+ def test_read_only_and_full_access_for_mail_hardcoded
27
+ assert_equal Scope.mail_read_only_permissions, ["mail.batch.read"]
28
+ assert_equal Scope.mail_full_access_permissions, ["mail.send", "mail.batch.create", "mail.batch.delete", "mail.batch.read", "mail.batch.update"]
29
+ end
30
+
31
+ def test_read_only_and_full_access_from_file
32
+ @scopes_from_yaml.each_key do |endpoint|
33
+ assert_equal Scope.send("#{endpoint}_read_only_permissions"), @scopes_from_yaml[endpoint][:read]
34
+ assert_equal Scope.send("#{endpoint}_full_access_permissions"), @scopes_from_yaml[endpoint].values.flatten
35
+ end
36
+ end
37
+
38
+ end
@@ -5,7 +5,7 @@ require 'minitest/unit'
5
5
 
6
6
  class TestAPI < MiniTest::Test
7
7
 
8
- unless File.exist?('/usr/local/bin/prism') || File.exists?(File.join(Dir.pwd, 'prism/bin/prism'))
8
+ unless File.exist?('/usr/local/bin/prism') || File.exist?(File.join(Dir.pwd, 'prism/bin/prism'))
9
9
  if RUBY_PLATFORM =~ /mswin|mingw/
10
10
  puts 'Please download the Windows binary (https://github.com/stoplightio/prism/releases) and place it in your /usr/local/bin directory'
11
11
  else
@@ -13,7 +13,7 @@ class TestAPI < MiniTest::Test
13
13
  IO.popen(['curl', '-s', 'https://raw.githubusercontent.com/stoplightio/prism/master/install.sh']) do |io|
14
14
  out = io.read
15
15
  unless system(out)
16
- puts "Error downloading the prism binary, you can try downloading directly here (https://github.com/stoplightio/prism/releases) and place in your /user/local/bin directory, #{out}"
16
+ puts "Error downloading the prism binary, you can try downloading directly here (https://github.com/stoplightio/prism/releases) and place in your /usr/local/bin directory, #{out}"
17
17
  exit
18
18
  end
19
19
  end
@@ -41,7 +41,8 @@ class TestAPI < MiniTest::Test
41
41
  "X-Test": "test"
42
42
  }
43
43
  ')
44
- sg = SendGrid::API.new(api_key: "SENDGRID_API_KEY", host: "https://api.test.com", request_headers: headers, version: "v3")
44
+ subuser = 'test_user'
45
+ sg = SendGrid::API.new(api_key: "SENDGRID_API_KEY", host: "https://api.test.com", request_headers: headers, version: "v3", impersonate_subuser: subuser)
45
46
 
46
47
  assert_equal("https://api.test.com", sg.host)
47
48
  user_agent = "sendgrid/#{SendGrid::VERSION};ruby"
@@ -50,15 +51,22 @@ class TestAPI < MiniTest::Test
50
51
  "Authorization": "Bearer SENDGRID_API_KEY",
51
52
  "Accept": "application/json",
52
53
  "X-Test": "test",
53
- "User-agent": "' + user_agent + '"
54
+ "User-agent": "' + user_agent + '",
55
+ "On-Behalf-Of": "' + subuser + '"
54
56
  }
55
57
  ')
56
58
  assert_equal(test_headers, sg.request_headers)
57
59
  assert_equal("v3", sg.version)
58
- assert_equal("4.0.8", SendGrid::VERSION)
60
+ assert_equal(subuser, sg.impersonate_subuser)
61
+ assert_equal("6.0.0", SendGrid::VERSION)
59
62
  assert_instance_of(SendGrid::Client, sg.client)
60
63
  end
61
64
 
65
+ def test_init_when_impersonate_subuser_is_not_given
66
+ sg = SendGrid::API.new(api_key: "SENDGRID_API_KEY", host: "https://api.test.com", version: "v3")
67
+ refute_includes(sg.request_headers, 'On-Behalf-Of')
68
+ end
69
+
62
70
  def test_access_settings_activity_get
63
71
  params = JSON.parse('{"limit": 1}')
64
72
  headers = JSON.parse('{"X-Mock": 200}')
@@ -1176,8 +1184,8 @@ class TestAPI < MiniTest::Test
1176
1184
  },
1177
1185
  "footer": {
1178
1186
  "enable": true,
1179
- "html": "<p>Thanks</br>The SendGrid Team</p>",
1180
- "text": "Thanks,/n The SendGrid Team"
1187
+ "html": "<p>Thanks</br>The Twilio SendGrid Team</p>",
1188
+ "text": "Thanks,/n The Twilio SendGrid Team"
1181
1189
  },
1182
1190
  "sandbox_mode": {
1183
1191
  "enable": false
@@ -1874,7 +1882,7 @@ class TestAPI < MiniTest::Test
1874
1882
  email = "test_url_param"
1875
1883
  headers = JSON.parse('{"X-Mock": 200}')
1876
1884
 
1877
- response = @sg.client.suppression.spam_report._(email).get(request_headers: headers)
1885
+ response = @sg.client.suppression.spam_reports._(email).get(request_headers: headers)
1878
1886
 
1879
1887
  self.assert_equal('200', response.status_code)
1880
1888
  end
@@ -1883,7 +1891,7 @@ class TestAPI < MiniTest::Test
1883
1891
  email = "test_url_param"
1884
1892
  headers = JSON.parse('{"X-Mock": 204}')
1885
1893
 
1886
- response = @sg.client.suppression.spam_report._(email).delete(request_headers: headers)
1894
+ response = @sg.client.suppression.spam_reports._(email).delete(request_headers: headers)
1887
1895
 
1888
1896
  self.assert_equal('204', response.status_code)
1889
1897
  end
@@ -2667,4 +2675,77 @@ class TestAPI < MiniTest::Test
2667
2675
 
2668
2676
  self.assert_equal('200', response.status_code)
2669
2677
  end
2678
+
2679
+
2680
+ def test_license_file_correct_year_range
2681
+ if File.exist?('./LICENSE.txt')
2682
+ # get only the first line from the license txt file
2683
+ year_range = File.open('./LICENSE.txt', &:readline).gsub(/[^\d-]/, '')
2684
+ self.assert_equal("2014-#{Time.now.year}", year_range)
2685
+ end
2686
+ end
2687
+
2688
+ def test_docker_exists
2689
+ assert(File.file?('./Docker') || File.file?('./docker/Dockerfile'))
2690
+ end
2691
+
2692
+ # def test_docker_compose_exists
2693
+ # assert(File.file?('./docker-compose.yml') || File.file?('./docker/docker-compose.yml'))
2694
+ # end
2695
+
2696
+ def test_env_sample_exists
2697
+ assert(File.file?('./.env_sample'))
2698
+ end
2699
+
2700
+ def test_gitignore_exists
2701
+ assert(File.file?('./.gitignore'))
2702
+ end
2703
+
2704
+ def test_travis_exists
2705
+ assert(File.file?('./.travis.yml'))
2706
+ end
2707
+
2708
+ def test_codeclimate_exists
2709
+ assert(File.file?('./.codeclimate.yml'))
2710
+ end
2711
+
2712
+ def test_changelog_exists
2713
+ assert(File.file?('./CHANGELOG.md'))
2714
+ end
2715
+
2716
+ def test_code_of_conduct_exists
2717
+ assert(File.file?('./CODE_OF_CONDUCT.md'))
2718
+ end
2719
+
2720
+ def test_contributing_exists
2721
+ assert(File.file?('./CONTRIBUTING.md'))
2722
+ end
2723
+
2724
+ def test_issue_template_exists
2725
+ assert(File.file?('./.github/ISSUE_TEMPLATE'))
2726
+ end
2727
+
2728
+ def test_license_exists
2729
+ assert(File.file?('./LICENSE.txt'))
2730
+ end
2731
+
2732
+ def test_pull_request_template_exists
2733
+ assert(File.file?('./.github/PULL_REQUEST_TEMPLATE'))
2734
+ end
2735
+
2736
+ def test_readme_exists
2737
+ assert(File.file?('./README.md'))
2738
+ end
2739
+
2740
+ def test_troubleshooting_exists
2741
+ assert(File.file?('./TROUBLESHOOTING.md'))
2742
+ end
2743
+
2744
+ def test_usage_exists
2745
+ assert(File.file?('./USAGE.md'))
2746
+ end
2747
+
2748
+ def test_use_cases_exists
2749
+ assert(File.file?('./USE_CASES.md'))
2750
+ end
2670
2751
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendgrid-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elmer Thomas
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-18 00:00:00.000000000 Z
13
+ date: 2019-06-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_http_client
@@ -18,14 +18,34 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 3.0.1
21
+ version: 3.3.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 3.0.1
28
+ version: 3.3.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: sinatra
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 1.4.7
36
+ - - "<"
37
+ - !ruby/object:Gem::Version
38
+ version: '3'
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 1.4.7
46
+ - - "<"
47
+ - !ruby/object:Gem::Version
48
+ version: '3'
29
49
  - !ruby/object:Gem::Dependency
30
50
  name: rake
31
51
  requirement: !ruby/object:Gem::Requirement
@@ -41,7 +61,35 @@ dependencies:
41
61
  - !ruby/object:Gem::Version
42
62
  version: '0'
43
63
  - !ruby/object:Gem::Dependency
44
- name: minitest
64
+ name: rspec
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ - !ruby/object:Gem::Dependency
78
+ name: pry
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ - !ruby/object:Gem::Dependency
92
+ name: faker
45
93
  requirement: !ruby/object:Gem::Requirement
46
94
  requirements:
47
95
  - - ">="
@@ -54,24 +102,61 @@ dependencies:
54
102
  - - ">="
55
103
  - !ruby/object:Gem::Version
56
104
  version: '0'
57
- description: Interact with SendGrids API in native Ruby
105
+ - !ruby/object:Gem::Dependency
106
+ name: rubocop
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ - !ruby/object:Gem::Dependency
120
+ name: minitest
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '5.9'
126
+ type: :development
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '5.9'
133
+ description: Official Twilio SendGrid Gem to Interact with Twilio SendGrids API in
134
+ native Ruby
58
135
  email: dx@sendgrid.com
59
136
  executables: []
60
137
  extensions: []
61
138
  extra_rdoc_files: []
62
139
  files:
140
+ - ".codeclimate.yml"
141
+ - ".env_sample"
63
142
  - ".github/ISSUE_TEMPLATE"
143
+ - ".github/PULL_REQUEST_TEMPLATE"
64
144
  - ".gitignore"
65
145
  - ".travis.yml"
66
146
  - CHANGELOG.md
147
+ - CODE_OF_CONDUCT.md
67
148
  - CONTRIBUTING.md
68
149
  - Gemfile
69
150
  - LICENSE.txt
70
151
  - README.md
71
152
  - Rakefile
72
153
  - TROUBLESHOOTING.md
154
+ - UPGRADE.md
73
155
  - USAGE.md
74
156
  - USE_CASES.md
157
+ - config.ru
158
+ - docker/Dockerfile
159
+ - docker/README.md
75
160
  - examples/accesssettings/accesssettings.rb
76
161
  - examples/alerts/alerts.rb
77
162
  - examples/apikeys/apikeys.rb
@@ -84,12 +169,15 @@ files:
84
169
  - examples/devices/devices.rb
85
170
  - examples/geo/geo.rb
86
171
  - examples/helpers/mail/example.rb
172
+ - examples/helpers/settings/example.rb
173
+ - examples/helpers/stats/example.rb
87
174
  - examples/ips/ips.rb
88
175
  - examples/mail/mail.rb
89
176
  - examples/mailboxproviders/mailboxproviders.rb
90
177
  - examples/mailsettings/mailsettings.rb
91
178
  - examples/partnersettings/partnersettings.rb
92
179
  - examples/scopes/scopes.rb
180
+ - examples/senderauthentication/senderauthentication.rb
93
181
  - examples/senders/senders.rb
94
182
  - examples/stats/stats.rb
95
183
  - examples/subusers/subusers.rb
@@ -97,15 +185,72 @@ files:
97
185
  - examples/templates/templates.rb
98
186
  - examples/trackingsettings/trackingsettings.rb
99
187
  - examples/user/user.rb
100
- - examples/whitelabel/whitelabel.rb
188
+ - gemfiles/Sinatra_1.gemfile
189
+ - gemfiles/Sinatra_2.gemfile
101
190
  - lib/sendgrid-ruby.rb
102
191
  - lib/sendgrid/client.rb
192
+ - lib/sendgrid/helpers/inbound/README.md
193
+ - lib/sendgrid/helpers/inbound/app.rb
194
+ - lib/sendgrid/helpers/inbound/config.yml
195
+ - lib/sendgrid/helpers/inbound/public/index.html
196
+ - lib/sendgrid/helpers/inbound/sample_data/default_data.txt
197
+ - lib/sendgrid/helpers/inbound/sample_data/raw_data.txt
198
+ - lib/sendgrid/helpers/inbound/sample_data/raw_data_with_attachments.txt
199
+ - lib/sendgrid/helpers/inbound/send.rb
200
+ - lib/sendgrid/helpers/ip_management/ip_management.rb
103
201
  - lib/sendgrid/helpers/mail/README.md
202
+ - lib/sendgrid/helpers/mail/asm.rb
203
+ - lib/sendgrid/helpers/mail/attachment.rb
204
+ - lib/sendgrid/helpers/mail/bcc_settings.rb
205
+ - lib/sendgrid/helpers/mail/bypass_list_management.rb
206
+ - lib/sendgrid/helpers/mail/category.rb
207
+ - lib/sendgrid/helpers/mail/click_tracking.rb
208
+ - lib/sendgrid/helpers/mail/content.rb
209
+ - lib/sendgrid/helpers/mail/custom_arg.rb
210
+ - lib/sendgrid/helpers/mail/email.rb
211
+ - lib/sendgrid/helpers/mail/footer.rb
212
+ - lib/sendgrid/helpers/mail/ganalytics.rb
213
+ - lib/sendgrid/helpers/mail/header.rb
104
214
  - lib/sendgrid/helpers/mail/mail.rb
215
+ - lib/sendgrid/helpers/mail/mail_settings.rb
216
+ - lib/sendgrid/helpers/mail/open_tracking.rb
217
+ - lib/sendgrid/helpers/mail/personalization.rb
218
+ - lib/sendgrid/helpers/mail/section.rb
219
+ - lib/sendgrid/helpers/mail/spam_check.rb
220
+ - lib/sendgrid/helpers/mail/subscription_tracking.rb
221
+ - lib/sendgrid/helpers/mail/substitution.rb
222
+ - lib/sendgrid/helpers/mail/tracking_settings.rb
223
+ - lib/sendgrid/helpers/permissions/scope.rb
224
+ - lib/sendgrid/helpers/permissions/scopes.yml
225
+ - lib/sendgrid/helpers/settings/README.md
226
+ - lib/sendgrid/helpers/settings/mail_settings_dto.rb
227
+ - lib/sendgrid/helpers/settings/partner_settings_dto.rb
228
+ - lib/sendgrid/helpers/settings/settings.rb
229
+ - lib/sendgrid/helpers/settings/tracking_settings_dto.rb
230
+ - lib/sendgrid/helpers/settings/user_settings_dto.rb
231
+ - lib/sendgrid/helpers/stats/email_stats.rb
232
+ - lib/sendgrid/helpers/stats/metrics.rb
233
+ - lib/sendgrid/helpers/stats/stats_response.rb
105
234
  - lib/sendgrid/version.rb
235
+ - mail_helper_v3.md
106
236
  - sendgrid-ruby.gemspec
237
+ - spec/sendgrid/helpers/ip_management/ip_management_spec.rb
238
+ - spec/sendgrid/helpers/settings/mail_settings_dto_spec.rb
239
+ - spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb
240
+ - spec/sendgrid/helpers/settings/settings_spec.rb
241
+ - spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb
242
+ - spec/sendgrid/helpers/settings/user_settings_dto_spec.rb
243
+ - spec/sendgrid/helpers/stats/email_stats_spec.rb
244
+ - spec/sendgrid/helpers/stats/metrics_spec.rb
245
+ - spec/sendgrid/helpers/stats/stats_response_spec.rb
246
+ - spec/spec_helper.rb
107
247
  - test/prism.sh
248
+ - test/sendgrid/helpers/mail/test_attachment.rb
249
+ - test/sendgrid/helpers/mail/test_category.rb
250
+ - test/sendgrid/helpers/mail/test_email.rb
108
251
  - test/sendgrid/helpers/mail/test_mail.rb
252
+ - test/sendgrid/helpers/mail/test_personalizations.rb
253
+ - test/sendgrid/permissions/test_scopes.rb
109
254
  - test/sendgrid/test_sendgrid-ruby.rb
110
255
  homepage: http://github.com/sendgrid/sendgrid-ruby
111
256
  licenses:
@@ -119,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
264
  requirements:
120
265
  - - ">="
121
266
  - !ruby/object:Gem::Version
122
- version: '0'
267
+ version: '2.2'
123
268
  required_rubygems_version: !ruby/object:Gem::Requirement
124
269
  requirements:
125
270
  - - ">="
@@ -127,11 +272,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
272
  version: '0'
128
273
  requirements: []
129
274
  rubyforge_project:
130
- rubygems_version: 2.6.8
275
+ rubygems_version: 2.6.10
131
276
  signing_key:
132
277
  specification_version: 4
133
- summary: Official SendGrid Gem
278
+ summary: Official Twilio SendGrid Gem
134
279
  test_files:
280
+ - spec/sendgrid/helpers/ip_management/ip_management_spec.rb
281
+ - spec/sendgrid/helpers/settings/mail_settings_dto_spec.rb
282
+ - spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb
283
+ - spec/sendgrid/helpers/settings/settings_spec.rb
284
+ - spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb
285
+ - spec/sendgrid/helpers/settings/user_settings_dto_spec.rb
286
+ - spec/sendgrid/helpers/stats/email_stats_spec.rb
287
+ - spec/sendgrid/helpers/stats/metrics_spec.rb
288
+ - spec/sendgrid/helpers/stats/stats_response_spec.rb
289
+ - spec/spec_helper.rb
135
290
  - test/prism.sh
291
+ - test/sendgrid/helpers/mail/test_attachment.rb
292
+ - test/sendgrid/helpers/mail/test_category.rb
293
+ - test/sendgrid/helpers/mail/test_email.rb
136
294
  - test/sendgrid/helpers/mail/test_mail.rb
295
+ - test/sendgrid/helpers/mail/test_personalizations.rb
296
+ - test/sendgrid/permissions/test_scopes.rb
137
297
  - test/sendgrid/test_sendgrid-ruby.rb