api_mailer 0.0.4 → 0.0.5

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ M2E5ZWJlZjlkMjBhNDVjZjY0ZDkwY2IwZTExOGFlNzA1ZTE1NDc3Mg==
5
+ data.tar.gz: !binary |-
6
+ ZGEyMmQ4YWNlMTQ4YTgyMzllNzgyMDc4NDE0NzNiOWZjNDU1OThmMg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ M2NjZGU2N2UzNDgyZWM1MTMyMDJlNTBhNTMzNTY0M2IxOGI1NmE5NTlhZDhk
10
+ YTJjYzNjMjE2NDhkOWFmYzUzNzJkZmIxZDU1NGIzNzAzMTg4NjJkNDZhYzM4
11
+ NGRhZjM1YzA0ZGMzMmY3MzIyNWQ4MzlhYzdhMWU1MWZkMzViZDU=
12
+ data.tar.gz: !binary |-
13
+ MTkyYjQ1NzhmZWQ2NWFjOWMxM2UwZGZjMGIwYjQyMTQ4YTI3YTdmMzllYTY4
14
+ YzBmZjRiNmU3OTU1MWIzZjY0ZTYyYjMyNzRkM2E2ZWE5MDJkNTZkYmRkZTE0
15
+ ZmQzODg3OGQ2YmM2YTcyYTIwNGM3ZmZjYmE1ZjAwMGE0ZGY3MjA=
@@ -2,4 +2,8 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
- script: bundle exec rspec spec
5
+ gemfile:
6
+ - gemfiles/Gemfile.rails-3.2.x
7
+ - gemfiles/Gemfile.rails-4.0.x
8
+ - gemfiles/Gemfile.rails-4.1.x
9
+ script: bundle exec rspec spec
@@ -1,41 +1,36 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_mailer (0.0.3)
5
- actionpack (>= 3.0)
6
- activesupport (>= 3.0)
4
+ api_mailer (0.0.4)
5
+ actionpack (>= 3.2)
6
+ activesupport (>= 3.2)
7
7
  hashie
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (4.0.0)
13
- activesupport (= 4.0.0)
14
- builder (~> 3.1.0)
15
- erubis (~> 2.7.0)
12
+ actionpack (4.1.4)
13
+ actionview (= 4.1.4)
14
+ activesupport (= 4.1.4)
16
15
  rack (~> 1.5.2)
17
16
  rack-test (~> 0.6.2)
18
- activesupport (4.0.0)
19
- i18n (~> 0.6, >= 0.6.4)
20
- minitest (~> 4.2)
21
- multi_json (~> 1.3)
17
+ actionview (4.1.4)
18
+ activesupport (= 4.1.4)
19
+ builder (~> 3.1)
20
+ erubis (~> 2.7.0)
21
+ activesupport (4.1.4)
22
+ i18n (~> 0.6, >= 0.6.9)
23
+ json (~> 1.7, >= 1.7.7)
24
+ minitest (~> 5.1)
22
25
  thread_safe (~> 0.1)
23
- tzinfo (~> 0.3.37)
24
- atomic (1.1.10)
25
- builder (3.1.4)
26
- columnize (0.3.6)
27
- debugger (1.6.2)
28
- columnize (>= 0.3.1)
29
- debugger-linecache (~> 1.2.0)
30
- debugger-ruby_core_source (~> 1.2.3)
31
- debugger-linecache (1.2.0)
32
- debugger-ruby_core_source (1.2.3)
26
+ tzinfo (~> 1.1)
27
+ builder (3.2.2)
33
28
  diff-lcs (1.2.4)
34
29
  erubis (2.7.0)
35
- hashie (2.0.5)
36
- i18n (0.6.4)
37
- minitest (4.7.5)
38
- multi_json (1.7.7)
30
+ hashie (3.2.0)
31
+ i18n (0.6.11)
32
+ json (1.8.1)
33
+ minitest (5.4.0)
39
34
  rack (1.5.2)
40
35
  rack-test (0.6.2)
41
36
  rack (>= 1.0)
@@ -47,14 +42,13 @@ GEM
47
42
  rspec-expectations (2.14.3)
48
43
  diff-lcs (>= 1.1.3, < 2.0)
49
44
  rspec-mocks (2.14.4)
50
- thread_safe (0.1.2)
51
- atomic
52
- tzinfo (0.3.38)
45
+ thread_safe (0.3.4)
46
+ tzinfo (1.2.1)
47
+ thread_safe (~> 0.1)
53
48
 
54
49
  PLATFORMS
55
50
  ruby
56
51
 
57
52
  DEPENDENCIES
58
53
  api_mailer!
59
- debugger
60
54
  rspec
@@ -0,0 +1,20 @@
1
+ Copyright 2013 Sport Ngin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -12,11 +12,11 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(spec)/})
13
13
  gem.name = "api_mailer"
14
14
  gem.require_paths = ["lib"]
15
+ gem.license = "MIT"
15
16
  gem.version = ApiMailer::VERSION
16
17
 
17
18
  gem.add_development_dependency "rspec"
18
- gem.add_development_dependency "debugger"
19
- gem.add_dependency "actionpack", ">= 3.0"
20
- gem.add_dependency "activesupport", ">= 3.0"
19
+ gem.add_dependency "actionpack", ">= 3.2"
20
+ gem.add_dependency "activesupport", ">= 3.2"
21
21
  gem.add_dependency "hashie"
22
22
  end
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in api_mailer.gemspec
4
+ gemspec :path => '../'
5
+
6
+ gem 'actionpack', "~> 3.2.0"
7
+ gem 'activesupport', "~> 3.2.0"
8
+ gem 'rspec', "2.14.1"
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in api_mailer.gemspec
4
+ gemspec :path => '../'
5
+
6
+ gem 'actionpack', "~> 4.0.0"
7
+ gem 'activesupport', "~> 4.0.0"
8
+ gem 'rspec', "2.14.1"
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in api_mailer.gemspec
4
+ gemspec :path => '../'
5
+
6
+ gem 'actionpack', "~> 4.1.0"
7
+ gem 'activesupport', "~> 4.1.0"
8
+ gem 'rspec', "2.14.1"
@@ -10,6 +10,8 @@ module ApiMailer
10
10
  include AbstractController::AssetPaths
11
11
  include AbstractController::Callbacks
12
12
 
13
+ include ActionView::Layouts if defined?(ActionView::Layouts)
14
+
13
15
  attr_accessor :action_name
14
16
  attr_accessor :responses
15
17
  attr_accessor :headers
@@ -1,3 +1,4 @@
1
+ require 'yaml'
1
2
  ApiMailer::Configuration = Object.new
2
3
 
3
4
  ApiMailer::Configuration.instance_eval do
@@ -1,3 +1,3 @@
1
1
  module ApiMailer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -19,7 +19,8 @@ RSpec.configure do |config|
19
19
  config.order = 'random'
20
20
 
21
21
  config.before(:each) do
22
- Rails = double(root: Pathname.new(__FILE__).dirname,
23
- env: double(to_s: "test", test?: true))
22
+ Rails = double(:rails) unless defined?(Rails)
23
+ Rails.stub(:root).and_return(Pathname.new(__FILE__).dirname)
24
+ Rails.stub(:env).and_return(double(to_s: "test", test?: true))
24
25
  end
25
26
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Carl Allen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-05 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,23 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: debugger
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
23
  requirements:
43
24
  - - ! '>='
44
25
  - !ruby/object:Gem::Version
@@ -46,39 +27,34 @@ dependencies:
46
27
  - !ruby/object:Gem::Dependency
47
28
  name: actionpack
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
31
  - - ! '>='
52
32
  - !ruby/object:Gem::Version
53
- version: '3.0'
33
+ version: '3.2'
54
34
  type: :runtime
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
38
  - - ! '>='
60
39
  - !ruby/object:Gem::Version
61
- version: '3.0'
40
+ version: '3.2'
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: activesupport
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
45
  - - ! '>='
68
46
  - !ruby/object:Gem::Version
69
- version: '3.0'
47
+ version: '3.2'
70
48
  type: :runtime
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
52
  - - ! '>='
76
53
  - !ruby/object:Gem::Version
77
- version: '3.0'
54
+ version: '3.2'
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: hashie
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
59
  - - ! '>='
84
60
  - !ruby/object:Gem::Version
@@ -86,7 +62,6 @@ dependencies:
86
62
  type: :runtime
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
66
  - - ! '>='
92
67
  - !ruby/object:Gem::Version
@@ -103,9 +78,13 @@ files:
103
78
  - .travis.yml
104
79
  - Gemfile
105
80
  - Gemfile.lock
81
+ - MIT-LICENSE
106
82
  - README.md
107
83
  - Rakefile
108
84
  - api_mailer.gemspec
85
+ - gemfiles/Gemfile.rails-3.2.x
86
+ - gemfiles/Gemfile.rails-4.0.x
87
+ - gemfiles/Gemfile.rails-4.1.x
109
88
  - lib/api_mailer.rb
110
89
  - lib/api_mailer/base.rb
111
90
  - lib/api_mailer/configuration.rb
@@ -115,28 +94,28 @@ files:
115
94
  - spec/config/api_mailer.yml
116
95
  - spec/spec_helper.rb
117
96
  homepage: http://github.com/sportngin/api_mailer
118
- licenses: []
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
119
100
  post_install_message:
120
101
  rdoc_options: []
121
102
  require_paths:
122
103
  - lib
123
104
  required_ruby_version: !ruby/object:Gem::Requirement
124
- none: false
125
105
  requirements:
126
106
  - - ! '>='
127
107
  - !ruby/object:Gem::Version
128
108
  version: '0'
129
109
  required_rubygems_version: !ruby/object:Gem::Requirement
130
- none: false
131
110
  requirements:
132
111
  - - ! '>='
133
112
  - !ruby/object:Gem::Version
134
113
  version: '0'
135
114
  requirements: []
136
115
  rubyforge_project:
137
- rubygems_version: 1.8.23
116
+ rubygems_version: 2.4.6
138
117
  signing_key:
139
- specification_version: 3
118
+ specification_version: 4
140
119
  summary: A simple replication of ActionMailer for API based mailing that doesn't require
141
120
  the mail gem
142
121
  test_files: