postageapp 1.0.24 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +13 -12
  3. data/Gemfile +6 -1
  4. data/LICENSE +1 -1
  5. data/README.md +122 -70
  6. data/Rakefile +19 -4
  7. data/generators/postageapp/postageapp_generator.rb +5 -7
  8. data/lib/generators/postageapp/postageapp_generator.rb +15 -9
  9. data/lib/postageapp.rb +42 -36
  10. data/lib/postageapp/configuration.rb +34 -21
  11. data/lib/postageapp/failed_request.rb +60 -36
  12. data/lib/postageapp/logger.rb +6 -7
  13. data/lib/postageapp/mail.rb +3 -0
  14. data/lib/postageapp/mail/arguments.rb +75 -0
  15. data/lib/postageapp/mail/delivery_method.rb +32 -0
  16. data/lib/postageapp/mail/extensions.rb +21 -0
  17. data/lib/postageapp/mailer.rb +72 -20
  18. data/lib/postageapp/mailer/mailer_2.rb +65 -22
  19. data/lib/postageapp/mailer/mailer_3.rb +45 -28
  20. data/lib/postageapp/mailer/mailer_4.rb +72 -40
  21. data/lib/postageapp/rails/rails.rb +17 -7
  22. data/lib/postageapp/rails/railtie.rb +22 -7
  23. data/lib/postageapp/request.rb +67 -43
  24. data/lib/postageapp/response.rb +11 -8
  25. data/lib/postageapp/utils.rb +11 -3
  26. data/lib/postageapp/version.rb +2 -2
  27. data/postageapp.gemspec +13 -11
  28. data/rails/init.rb +1 -1
  29. data/test/configuration_test.rb +35 -38
  30. data/test/failed_request_test.rb +33 -18
  31. data/test/gemfiles/Gemfile.rails-2.3.x +4 -1
  32. data/test/gemfiles/Gemfile.rails-3.0.x +4 -1
  33. data/test/gemfiles/Gemfile.rails-3.1.x +4 -1
  34. data/test/gemfiles/Gemfile.rails-3.2.x +4 -1
  35. data/test/gemfiles/Gemfile.rails-4.0.x +4 -1
  36. data/test/gemfiles/Gemfile.rails-4.1.x +12 -0
  37. data/test/gemfiles/Gemfile.rails-4.2.x +12 -0
  38. data/test/gemfiles/Gemfile.ruby +11 -0
  39. data/test/helper.rb +52 -33
  40. data/test/live_test.rb +11 -8
  41. data/test/mail_delivery_method_test.rb +161 -0
  42. data/test/mailer/action_mailer_2/notifier.rb +37 -28
  43. data/test/mailer/action_mailer_3/notifier.rb +28 -22
  44. data/test/mailer_2_test.rb +20 -16
  45. data/test/mailer_3_test.rb +16 -22
  46. data/test/mailer_4_test.rb +28 -28
  47. data/test/mailer_helper_methods_test.rb +17 -14
  48. data/test/postageapp_test.rb +8 -9
  49. data/test/rails_initialization_test.rb +14 -14
  50. data/test/request_test.rb +35 -35
  51. data/test/response_test.rb +20 -19
  52. data/test/travis_test.rb +168 -0
  53. data/test/with_environment.rb +27 -0
  54. metadata +23 -17
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postageapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Oleg Khabarov
@@ -11,35 +10,33 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2014-12-10 00:00:00.000000000 Z
13
+ date: 2015-03-20 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: json
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: '0'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - ">="
30
27
  - !ruby/object:Gem::Version
31
28
  version: '0'
32
29
  description: Gem that interfaces with PostageApp.com service to send emails from web
33
30
  apps
34
31
  email:
35
32
  - oleg@khabarov.ca
36
- - scott@twg.ca
33
+ - tadman@postageapp.com
37
34
  executables: []
38
35
  extensions: []
39
36
  extra_rdoc_files: []
40
37
  files:
41
- - .gitignore
42
- - .travis.yml
38
+ - ".gitignore"
39
+ - ".travis.yml"
43
40
  - Gemfile
44
41
  - LICENSE
45
42
  - README.md
@@ -52,6 +49,10 @@ files:
52
49
  - lib/postageapp/configuration.rb
53
50
  - lib/postageapp/failed_request.rb
54
51
  - lib/postageapp/logger.rb
52
+ - lib/postageapp/mail.rb
53
+ - lib/postageapp/mail/arguments.rb
54
+ - lib/postageapp/mail/delivery_method.rb
55
+ - lib/postageapp/mail/extensions.rb
55
56
  - lib/postageapp/mailer.rb
56
57
  - lib/postageapp/mailer/mailer_2.rb
57
58
  - lib/postageapp/mailer/mailer_3.rb
@@ -71,8 +72,12 @@ files:
71
72
  - test/gemfiles/Gemfile.rails-3.1.x
72
73
  - test/gemfiles/Gemfile.rails-3.2.x
73
74
  - test/gemfiles/Gemfile.rails-4.0.x
75
+ - test/gemfiles/Gemfile.rails-4.1.x
76
+ - test/gemfiles/Gemfile.rails-4.2.x
77
+ - test/gemfiles/Gemfile.ruby
74
78
  - test/helper.rb
75
79
  - test/live_test.rb
80
+ - test/mail_delivery_method_test.rb
76
81
  - test/mailer/action_mailer_2/notifier.rb
77
82
  - test/mailer/action_mailer_2/notifier/with_body_and_attachment.erb
78
83
  - test/mailer/action_mailer_2/notifier/with_custom_postage_variables.text.html.erb
@@ -99,29 +104,30 @@ files:
99
104
  - test/rails_initialization_test.rb
100
105
  - test/request_test.rb
101
106
  - test/response_test.rb
107
+ - test/travis_test.rb
108
+ - test/with_environment.rb
102
109
  homepage: http://github.com/postageapp/postageapp-ruby
103
110
  licenses:
104
111
  - MIT
112
+ metadata: {}
105
113
  post_install_message:
106
114
  rdoc_options: []
107
115
  require_paths:
108
116
  - lib
109
117
  required_ruby_version: !ruby/object:Gem::Requirement
110
- none: false
111
118
  requirements:
112
- - - ! '>='
119
+ - - ">="
113
120
  - !ruby/object:Gem::Version
114
- version: '0'
121
+ version: 1.9.3
115
122
  required_rubygems_version: !ruby/object:Gem::Requirement
116
- none: false
117
123
  requirements:
118
- - - ! '>='
124
+ - - ">="
119
125
  - !ruby/object:Gem::Version
120
126
  version: '0'
121
127
  requirements: []
122
128
  rubyforge_project:
123
- rubygems_version: 1.8.25
129
+ rubygems_version: 2.4.5
124
130
  signing_key:
125
- specification_version: 3
131
+ specification_version: 4
126
132
  summary: Easier way to send email from web apps
127
133
  test_files: []