postageapp 1.2.5 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.travis.yml +10 -30
  4. data/{LICENSE → LICENSE.md} +1 -1
  5. data/README.md +118 -68
  6. data/Rakefile +15 -4
  7. data/VERSION +1 -0
  8. data/app/ingresses/action_mailbox/ingresses/postage_app.rb +2 -0
  9. data/app/ingresses/action_mailbox/ingresses/postage_app/inbound_emails_controller.rb +50 -0
  10. data/config/routes.rb +6 -0
  11. data/doc/RAILS2.md +54 -0
  12. data/doc/RAILS3.md +15 -0
  13. data/exe/postageapp +37 -0
  14. data/generators/postageapp/templates/postageapp_tasks.rake +25 -8
  15. data/lib/generators/postageapp/postageapp_generator.rb +9 -6
  16. data/lib/postageapp.rb +59 -30
  17. data/lib/postageapp/cli.rb +14 -0
  18. data/lib/postageapp/cli/command.rb +110 -0
  19. data/lib/postageapp/cli/command/config.rb +74 -0
  20. data/lib/postageapp/cli/command/create_mailbox.rb +21 -0
  21. data/lib/postageapp/cli/command/env.rb +58 -0
  22. data/lib/postageapp/cli/command/get_project_info.rb +3 -0
  23. data/lib/postageapp/configuration.rb +267 -63
  24. data/lib/postageapp/diagnostics.rb +30 -0
  25. data/lib/postageapp/engine.rb +9 -0
  26. data/lib/postageapp/env.rb +9 -0
  27. data/lib/postageapp/failed_request.rb +2 -0
  28. data/lib/postageapp/http.rb +32 -0
  29. data/lib/postageapp/logger.rb +2 -0
  30. data/lib/postageapp/mail.rb +1 -1
  31. data/lib/postageapp/mailer.rb +2 -11
  32. data/lib/postageapp/mailer/mailer_4.rb +29 -15
  33. data/lib/postageapp/rails/railtie.rb +1 -3
  34. data/lib/postageapp/request.rb +27 -11
  35. data/lib/postageapp/response.rb +22 -8
  36. data/lib/postageapp/utils.rb +0 -11
  37. data/log/.gitignore +1 -0
  38. data/postageapp.gemspec +16 -17
  39. data/script/with +3 -3
  40. data/test/gemfiles/Gemfile.rails-2.3.x +1 -1
  41. data/test/gemfiles/Gemfile.rails-3.0.x +1 -1
  42. data/test/gemfiles/Gemfile.rails-3.1.x +1 -1
  43. data/test/gemfiles/Gemfile.rails-3.2.x +1 -1
  44. data/test/gemfiles/Gemfile.rails-4.0.x +1 -1
  45. data/test/gemfiles/Gemfile.rails-4.1.x +1 -1
  46. data/test/gemfiles/Gemfile.rails-4.2.x +1 -2
  47. data/test/gemfiles/Gemfile.rails-5.0.x +12 -0
  48. data/test/gemfiles/Gemfile.rails-5.2.x +12 -0
  49. data/test/gemfiles/Gemfile.rails-6.0.x +12 -0
  50. data/test/gemfiles/Gemfile.rails-6.1.x +12 -0
  51. data/test/gemfiles/Gemfile.ruby +2 -3
  52. data/test/helper.rb +6 -17
  53. data/test/log/.gitignore +1 -0
  54. data/test/mailer/action_mailer_3/notifier.rb +10 -10
  55. data/test/tmp/.gitignore +1 -0
  56. data/test/travis_test.rb +58 -40
  57. data/test/{configuration_test.rb → unit/configuration_test.rb} +35 -22
  58. data/test/{failed_request_test.rb → unit/failed_request_test.rb} +6 -6
  59. data/test/{live_test.rb → unit/live_test.rb} +33 -43
  60. data/test/{mail_delivery_method_test.rb → unit/mail_delivery_method_test.rb} +1 -1
  61. data/test/{mailer_4_test.rb → unit/mailer_4_test.rb} +2 -2
  62. data/test/{mailer_helper_methods_test.rb → unit/mailer_helper_methods_test.rb} +4 -4
  63. data/test/{postageapp_test.rb → unit/postageapp_test.rb} +10 -1
  64. data/test/{rails_initialization_test.rb → unit/rails_initialization_test.rb} +2 -2
  65. data/test/{request_test.rb → unit/request_test.rb} +24 -23
  66. data/test/{response_test.rb → unit/response_test.rb} +4 -4
  67. data/test/unit/tmp/.gitignore +1 -0
  68. data/tmp/.gitignore +1 -0
  69. metadata +60 -68
  70. data/lib/postageapp/mailer/mailer_2.rb +0 -140
  71. data/lib/postageapp/mailer/mailer_3.rb +0 -190
  72. data/lib/postageapp/version.rb +0 -3
  73. data/test/mailer/action_mailer_2/notifier.rb +0 -76
  74. data/test/mailer/action_mailer_2/notifier/with_body_and_attachment.erb +0 -1
  75. data/test/mailer/action_mailer_2/notifier/with_custom_postage_variables.text.html.erb +0 -1
  76. data/test/mailer/action_mailer_2/notifier/with_custom_postage_variables.text.plain.erb +0 -1
  77. data/test/mailer/action_mailer_2/notifier/with_html_and_text_views.text.html.erb +0 -1
  78. data/test/mailer/action_mailer_2/notifier/with_html_and_text_views.text.plain.erb +0 -1
  79. data/test/mailer/action_mailer_2/notifier/with_simple_view.erb +0 -1
  80. data/test/mailer/action_mailer_2/notifier/with_text_only_view.text.plain.erb +0 -1
  81. data/test/mailer_2_test.rb +0 -95
  82. data/test/mailer_3_test.rb +0 -118
@@ -1,10 +1,10 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class FailedRequestTest < MiniTest::Test
4
4
  def setup
5
5
  super
6
6
 
7
- PostageApp.configuration.project_root = File.dirname(__FILE__)
7
+ PostageApp.configuration.project_root = __dir__
8
8
  end
9
9
 
10
10
  def test_store_and_initialize
@@ -87,12 +87,12 @@ class FailedRequestTest < MiniTest::Test
87
87
  request = PostageApp::Request.new(:get_project_info)
88
88
 
89
89
  message_receipt_response = stub(
90
- :fail? => false,
91
- :ok? => false,
92
- :not_found? => true
90
+ fail?: false,
91
+ ok?: false,
92
+ not_found?: true
93
93
  )
94
94
 
95
- message_receipt_request = stub(:send => message_receipt_response)
95
+ message_receipt_request = stub(send: message_receipt_response)
96
96
 
97
97
  PostageApp::Request.stubs(:new).with do |a,b|
98
98
  a == :get_message_receipt
@@ -1,38 +1,20 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class LiveTest < MiniTest::Test
4
4
  # Note: Need access to a live PostageApp.com account
5
5
  # See helper.rb to set host / api key
6
6
 
7
- if (ENV['POSTAGEAPP_LIVE_TESTS'])
8
- def setup
9
- super
10
-
11
- PostageApp.configure do |config|
12
- config.secure = false
13
- config.host = 'api.postageapp.local'
14
- config.api_key = 'PROJECT_API_KEY'
15
- end
16
- end
17
-
18
- def test_request_get_method_list
19
- request = PostageApp::Request.new(:get_method_list)
20
- response = request.send
21
-
22
- assert_equal 'PostageApp::Response', response.class.name
23
- assert_equal 'ok', response.status
24
- assert_match(/^\w{40}$/, response.uid)
25
- assert_equal nil, response.message
26
- assert_equal(
27
- {
28
- 'methods' => 'get_account_info, get_message_receipt, get_method_list, get_project_info, send_message'
29
- },
30
- response.data
31
- )
7
+ if (ENV['POSTAGEAPP_API_KEY'] and ENV['POSTAGEAPP_API_KEY'] != '__TEST_API_KEY__')
8
+ def test_configuration
9
+ config = PostageApp.config
10
+
11
+ assert config
12
+ assert_equal ENV['POSTAGEAPP_API_KEY'], config.api_key
32
13
  end
33
14
 
34
15
  def test_request_send_message
35
- request = PostageApp::Request.new(:send_message, {
16
+ request = PostageApp::Request.new(
17
+ :send_message,
36
18
  headers: {
37
19
  'from' => 'sender@example.com',
38
20
  'subject' => 'Test Message'
@@ -42,7 +24,7 @@ class LiveTest < MiniTest::Test
42
24
  'text/plain' => 'text content',
43
25
  'text/html' => 'html content'
44
26
  }
45
- })
27
+ )
46
28
 
47
29
  response = request.send
48
30
 
@@ -50,7 +32,7 @@ class LiveTest < MiniTest::Test
50
32
  assert_equal 'ok', response.status
51
33
 
52
34
  assert_match(/^\w{40}$/, response.uid)
53
- assert_equal nil, response.message
35
+ assert_nil response.message
54
36
  assert_match(/\d+/, response.data['message']['id'].to_s)
55
37
 
56
38
  receipt = PostageApp::Request.new(
@@ -74,35 +56,43 @@ class LiveTest < MiniTest::Test
74
56
  response = request.send
75
57
 
76
58
  assert_equal 'PostageApp::Response', response.class.name
77
- assert_equal 'internal_server_error', response.status
59
+ assert_equal 'call_error', response.status
60
+
78
61
  assert_match(/\A\w{40}$/, response.uid)
79
- assert_match(/\ANo action responded to non_existant/, response.message)
80
- assert_equal nil, response.data
62
+ assert_match(/\ARequest could not be processed/, response.message)
63
+ assert_nil response.data
81
64
  end
82
65
 
83
66
  # Testable under ruby 1.9.2 Probably OK in production too... Probably
84
67
  # Lunchtime reading: http://ph7spot.com/musings/system-timer
85
68
  def test_request_timeout
86
- PostageApp.configuration.host = '127.0.0.254'
69
+ PostageApp.configuration.host = '127.0.0.255'
87
70
 
88
71
  request = PostageApp::Request.new(:get_method_list)
89
72
 
90
73
  response = request.send
91
74
 
92
75
  assert_equal 'PostageApp::Response', response.class.name
93
- assert_equal 'fail', response.status
76
+ assert_equal 'timeout', response.status
94
77
  end
95
78
 
96
- def test_deliver_with_custom_postage_variables
97
- response = if ActionMailer::VERSION::MAJOR < 3
98
- require File.expand_path('../mailer/action_mailer_2/notifier', __FILE__)
99
- Notifier.deliver_with_custom_postage_variables
100
- else
101
- require File.expand_path('../mailer/action_mailer_3/notifier', __FILE__)
102
- Notifier.with_custom_postage_variables.deliver
79
+ if (defined?(Rails))
80
+ def test_deliver_with_custom_postage_variables
81
+ response =
82
+ if (ActionMailer::VERSION::MAJOR < 3)
83
+ require File.expand_path('../mailer/action_mailer_2/notifier', __FILE__)
84
+
85
+ Notifier.deliver_with_custom_postage_variables
86
+ else
87
+ require File.expand_path('../mailer/action_mailer_3/notifier', __FILE__)
88
+
89
+ Notifier.with_custom_postage_variables.deliver
90
+ end
91
+
92
+ assert_equal 'ok', response.status
93
+ assert_equal true, response.ok?
103
94
  end
104
- assert response.ok?
105
- end
95
+ end
106
96
  else
107
97
  puts "\e[0m\e[31mSkipping #{File.basename(__FILE__)}\e[0m"
108
98
 
@@ -1,4 +1,4 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class MailerDeliveryTest < MiniTest::Test
4
4
  def setup
@@ -1,8 +1,8 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class Mailer4Test < MiniTest::Test
4
4
  require_action_mailer(4) do
5
- require File.expand_path('mailer/action_mailer_3/notifier', File.dirname(__FILE__))
5
+ require File.expand_path('mailer/action_mailer_3/notifier', __dir__)
6
6
 
7
7
  puts "\e[0m\e[32mRunning #{File.basename(__FILE__)} for action_mailer #{ActionMailer::VERSION::STRING}\e[0m"
8
8
 
@@ -1,15 +1,15 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class MailerHelperMethodsTest < MiniTest::Test
4
4
  def test_mailer_helper_methods
5
5
  request = PostageApp::Request.new(
6
6
  :send_message,
7
- :headers => {
7
+ headers: {
8
8
  'from' => 'sender@test.test',
9
9
  'subject' => 'Test Message'
10
10
  },
11
- :recipients => 'test@test.test',
12
- :content => {
11
+ recipients: 'test@test.test',
12
+ content: {
13
13
  'text/plain' => 'text content',
14
14
  'text/html' => 'html content'
15
15
  }
@@ -1,4 +1,4 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class PostageAppTest < MiniTest::Test
4
4
  def test_method_configure
@@ -9,6 +9,15 @@ class PostageAppTest < MiniTest::Test
9
9
 
10
10
  assert_equal 'abcdefg12345', PostageApp.configuration.api_key
11
11
  assert_equal 'test.test', PostageApp.configuration.host
12
+
13
+ ensure
14
+ PostageApp.configuration_reset!
15
+ end
16
+
17
+ def test_version
18
+ assert PostageApp.version.match(/\A\d+\.\d+\.\d+\z/), -> {
19
+ "%s is not a valid version number" % PostageApp.version.inspect
20
+ }
12
21
  end
13
22
 
14
23
  def test_logger
@@ -1,6 +1,6 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
- require File.expand_path('../lib/postageapp/rails/rails', File.dirname(__FILE__))
3
+ require_relative '../../lib/postageapp/rails/rails'
4
4
 
5
5
  class RailsInitializationTest < MiniTest::Test
6
6
  def test_initialization
@@ -1,4 +1,4 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class RequestTest < MiniTest::Test
4
4
  def test_method_uid
@@ -10,15 +10,15 @@ class RequestTest < MiniTest::Test
10
10
  assert_equal uid, request.uid
11
11
  assert uid != request.uid(true)
12
12
  end
13
-
13
+
14
14
  def test_method_url
15
15
  request = PostageApp::Request.new('test_method')
16
16
 
17
17
  assert_equal 'api.postageapp.com', request.url.host
18
18
  assert_equal 443, request.url.port
19
- assert_equal '/v.1.0/test_method.json', request.url.path
19
+ assert_equal '/v.1.1/test_method.json', request.url.path
20
20
  end
21
-
21
+
22
22
  def test_method_arguments_to_send
23
23
  request = PostageApp::Request.new('send_message',
24
24
  'headers' => {
@@ -34,56 +34,57 @@ class RequestTest < MiniTest::Test
34
34
 
35
35
  args = request.arguments_to_send
36
36
 
37
- assert_equal '1234567890abcdef', args['api_key']
37
+ assert args['api_key']
38
+ assert !args['api_key'].empty?
38
39
  assert_match(/^\w{40}$/, args['uid'])
39
-
40
+
40
41
  payload = args['arguments']
41
42
 
42
43
  assert_equal 'sender@test.test', payload['headers']['from']
43
- assert_equal 'Test Message', payload['headers']['subject']
44
- assert_equal 'test@test.test', payload['recipients']
45
- assert_equal 'text content', payload['content']['text/plain']
46
- assert_equal 'html content', payload['content']['text/html']
47
-
44
+ assert_equal 'Test Message', payload['headers']['subject']
45
+ assert_equal 'test@test.test', payload['recipients']
46
+ assert_equal 'text content', payload['content']['text/plain']
47
+ assert_equal 'html content', payload['content']['text/html']
48
+
48
49
  request.arguments = { 'data' => 'content' }
49
50
 
50
51
  args = request.arguments_to_send
51
52
 
52
- assert_equal '1234567890abcdef', args['api_key']
53
+ assert !args['api_key'].empty?
53
54
  assert_match(/^\w{40}$/, args['uid'])
54
55
  assert_equal 'content', args['arguments']['data']
55
56
  end
56
-
57
+
57
58
  def test_uid_is_enforceable
58
59
  request = PostageApp::Request.new('test_method')
59
60
 
60
61
  assert_match(/^\w{40}$/, request.arguments_to_send['uid'])
61
-
62
+
62
63
  request.uid = 'my_uid'
63
64
 
64
65
  assert_equal 'my_uid', request.arguments_to_send['uid']
65
-
66
+
66
67
  request = PostageApp::Request.new('test_method', 'uid' => 'new_uid', 'data' => 'value')
67
68
 
68
69
  assert_equal 'new_uid', request.uid
69
70
  assert_equal({ 'data' => 'value' }, request.arguments)
70
71
  end
71
-
72
+
72
73
  def test_api_key
73
74
  request = PostageApp::Request.new('test_method')
74
75
 
75
76
  assert_equal PostageApp.configuration.api_key, request.api_key
76
-
77
+
77
78
  request = PostageApp::Request.new('test_method', {
78
79
  'api_key' => 'custom_api_key'
79
80
  })
80
81
 
81
82
  assert_equal 'custom_api_key', request.api_key
82
83
  end
83
-
84
+
84
85
  def test_send
85
86
  mock_successful_send
86
-
87
+
87
88
  request = PostageApp::Request.new('send_message',
88
89
  'headers' => {
89
90
  'from' => 'sender@test.test',
@@ -102,10 +103,10 @@ class RequestTest < MiniTest::Test
102
103
  assert_equal 'sha1hashuid23456789012345678901234567890', response.uid
103
104
  assert_equal({ 'message' => { 'id' => 999 } }, response.data)
104
105
  end
105
-
106
+
106
107
  def test_send_failure
107
108
  mock_failed_send
108
-
109
+
109
110
  request = PostageApp::Request.new(
110
111
  'send_message',
111
112
  'headers' => {
@@ -122,7 +123,7 @@ class RequestTest < MiniTest::Test
122
123
  response = request.send
123
124
 
124
125
  assert_equal 'fail', response.status
125
- assert_equal nil, response.uid
126
- assert_equal nil, response.data
126
+ assert_nil response.uid
127
+ assert_nil response.data
127
128
  end
128
129
  end
@@ -1,12 +1,12 @@
1
- require File.expand_path('helper', File.dirname(__FILE__))
1
+ require_relative '../helper'
2
2
 
3
3
  class ResponseTest < MiniTest::Test
4
4
  def test_initialization
5
5
  object = stub(
6
- :body => {
6
+ body: {
7
7
  'response' => {
8
- 'uid' => 'md5_hash_uid',
9
- 'status' => 'ok',
8
+ 'uid' => 'md5_hash_uid',
9
+ 'status' => 'ok',
10
10
  'message' => 'api reply message'
11
11
  },
12
12
  'data' => {
@@ -0,0 +1 @@
1
+ *
data/tmp/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *
metadata CHANGED
@@ -1,92 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postageapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
5
- prerelease:
4
+ version: 1.4.0
6
5
  platform: ruby
7
6
  authors:
8
- - Oleg Khabarov
9
7
  - Scott Tadman
10
- - The Working Group Inc.
11
- autorequire:
8
+ - Oleg Khabarov
9
+ - PostageApp Ltd.
10
+ autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2016-07-27 00:00:00.000000000 Z
13
+ date: 2021-07-14 00:00:00.000000000 Z
15
14
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: json
18
- requirement: !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ! '>='
22
- - !ruby/object:Gem::Version
23
- version: '0'
24
- type: :runtime
25
- prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ! '>='
30
- - !ruby/object:Gem::Version
31
- version: '0'
32
15
  - !ruby/object:Gem::Dependency
33
16
  name: mail
34
17
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
18
  requirements:
37
- - - ! '>='
19
+ - - "~>"
38
20
  - !ruby/object:Gem::Version
39
- version: '0'
21
+ version: '2.4'
40
22
  type: :runtime
41
23
  prerelease: false
42
24
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
25
  requirements:
45
- - - ! '>='
26
+ - - "~>"
46
27
  - !ruby/object:Gem::Version
47
- version: '0'
48
- description: Gem that interfaces with PostageApp service to send emails from Ruby
49
- applications
28
+ version: '2.4'
29
+ description: PostageApp Library for Ruby and Ruby on Rails applications
50
30
  email:
51
- - oleg@khabarov.ca
52
31
  - tadman@postageapp.com
32
+ - oleg@khabarov.ca
33
+ - info@postageapp.com
53
34
  executables: []
54
35
  extensions: []
55
36
  extra_rdoc_files: []
56
37
  files:
57
- - .gitignore
58
- - .travis.yml
38
+ - ".gitignore"
39
+ - ".travis.yml"
59
40
  - Gemfile
60
- - LICENSE
41
+ - LICENSE.md
61
42
  - README.md
62
43
  - Rakefile
44
+ - VERSION
45
+ - app/ingresses/action_mailbox/ingresses/postage_app.rb
46
+ - app/ingresses/action_mailbox/ingresses/postage_app/inbound_emails_controller.rb
47
+ - config/routes.rb
48
+ - doc/RAILS2.md
49
+ - doc/RAILS3.md
50
+ - exe/postageapp
63
51
  - generators/postageapp/postageapp_generator.rb
64
52
  - generators/postageapp/templates/initializer.rb
65
53
  - generators/postageapp/templates/postageapp_tasks.rake
66
54
  - lib/generators/postageapp/postageapp_generator.rb
67
55
  - lib/postageapp.rb
56
+ - lib/postageapp/cli.rb
57
+ - lib/postageapp/cli/command.rb
58
+ - lib/postageapp/cli/command/config.rb
59
+ - lib/postageapp/cli/command/create_mailbox.rb
60
+ - lib/postageapp/cli/command/env.rb
61
+ - lib/postageapp/cli/command/get_project_info.rb
68
62
  - lib/postageapp/configuration.rb
63
+ - lib/postageapp/diagnostics.rb
64
+ - lib/postageapp/engine.rb
65
+ - lib/postageapp/env.rb
69
66
  - lib/postageapp/failed_request.rb
67
+ - lib/postageapp/http.rb
70
68
  - lib/postageapp/logger.rb
71
69
  - lib/postageapp/mail.rb
72
70
  - lib/postageapp/mail/arguments.rb
73
71
  - lib/postageapp/mail/delivery_method.rb
74
72
  - lib/postageapp/mail/extensions.rb
75
73
  - lib/postageapp/mailer.rb
76
- - lib/postageapp/mailer/mailer_2.rb
77
- - lib/postageapp/mailer/mailer_3.rb
78
74
  - lib/postageapp/mailer/mailer_4.rb
79
75
  - lib/postageapp/rails/rails.rb
80
76
  - lib/postageapp/rails/railtie.rb
81
77
  - lib/postageapp/request.rb
82
78
  - lib/postageapp/response.rb
83
79
  - lib/postageapp/utils.rb
84
- - lib/postageapp/version.rb
80
+ - log/.gitignore
85
81
  - postageapp.gemspec
86
82
  - rails/init.rb
87
83
  - script/with
88
- - test/configuration_test.rb
89
- - test/failed_request_test.rb
90
84
  - test/gemfiles/Gemfile.rails-2.3.x
91
85
  - test/gemfiles/Gemfile.rails-3.0.x
92
86
  - test/gemfiles/Gemfile.rails-3.1.x
@@ -94,18 +88,13 @@ files:
94
88
  - test/gemfiles/Gemfile.rails-4.0.x
95
89
  - test/gemfiles/Gemfile.rails-4.1.x
96
90
  - test/gemfiles/Gemfile.rails-4.2.x
91
+ - test/gemfiles/Gemfile.rails-5.0.x
92
+ - test/gemfiles/Gemfile.rails-5.2.x
93
+ - test/gemfiles/Gemfile.rails-6.0.x
94
+ - test/gemfiles/Gemfile.rails-6.1.x
97
95
  - test/gemfiles/Gemfile.ruby
98
96
  - test/helper.rb
99
- - test/live_test.rb
100
- - test/mail_delivery_method_test.rb
101
- - test/mailer/action_mailer_2/notifier.rb
102
- - test/mailer/action_mailer_2/notifier/with_body_and_attachment.erb
103
- - test/mailer/action_mailer_2/notifier/with_custom_postage_variables.text.html.erb
104
- - test/mailer/action_mailer_2/notifier/with_custom_postage_variables.text.plain.erb
105
- - test/mailer/action_mailer_2/notifier/with_html_and_text_views.text.html.erb
106
- - test/mailer/action_mailer_2/notifier/with_html_and_text_views.text.plain.erb
107
- - test/mailer/action_mailer_2/notifier/with_simple_view.erb
108
- - test/mailer/action_mailer_2/notifier/with_text_only_view.text.plain.erb
97
+ - test/log/.gitignore
109
98
  - test/mailer/action_mailer_3/layouts/notifier.html.erb
110
99
  - test/mailer/action_mailer_3/notifier.rb
111
100
  - test/mailer/action_mailer_3/notifier/with_custom_postage_variables.html.erb
@@ -116,39 +105,42 @@ files:
116
105
  - test/mailer/action_mailer_3/notifier/with_old_api.text.erb
117
106
  - test/mailer/action_mailer_3/notifier/with_simple_view.erb
118
107
  - test/mailer/action_mailer_3/notifier/with_text_only_view.text.erb
119
- - test/mailer_2_test.rb
120
- - test/mailer_3_test.rb
121
- - test/mailer_4_test.rb
122
- - test/mailer_helper_methods_test.rb
123
- - test/postageapp_test.rb
124
- - test/rails_initialization_test.rb
125
- - test/request_test.rb
126
- - test/response_test.rb
108
+ - test/tmp/.gitignore
127
109
  - test/travis_test.rb
110
+ - test/unit/configuration_test.rb
111
+ - test/unit/failed_request_test.rb
112
+ - test/unit/live_test.rb
113
+ - test/unit/mail_delivery_method_test.rb
114
+ - test/unit/mailer_4_test.rb
115
+ - test/unit/mailer_helper_methods_test.rb
116
+ - test/unit/postageapp_test.rb
117
+ - test/unit/rails_initialization_test.rb
118
+ - test/unit/request_test.rb
119
+ - test/unit/response_test.rb
120
+ - test/unit/tmp/.gitignore
128
121
  - test/with_environment.rb
122
+ - tmp/.gitignore
129
123
  homepage: http://github.com/postageapp/postageapp-ruby
130
124
  licenses:
131
125
  - MIT
132
- post_install_message:
126
+ metadata: {}
127
+ post_install_message:
133
128
  rdoc_options: []
134
129
  require_paths:
135
130
  - lib
136
131
  required_ruby_version: !ruby/object:Gem::Requirement
137
- none: false
138
132
  requirements:
139
- - - ! '>='
133
+ - - ">="
140
134
  - !ruby/object:Gem::Version
141
- version: 1.9.3
135
+ version: 2.5.0
142
136
  required_rubygems_version: !ruby/object:Gem::Requirement
143
- none: false
144
137
  requirements:
145
- - - ! '>='
138
+ - - ">="
146
139
  - !ruby/object:Gem::Version
147
140
  version: '0'
148
141
  requirements: []
149
- rubyforge_project:
150
- rubygems_version: 1.8.30
151
- signing_key:
152
- specification_version: 3
153
- summary: Gem for communicating with the PostageApp email API
142
+ rubygems_version: 3.2.15
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: Client library for PostageApp Email API
154
146
  test_files: []