letter_opener_web 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +96 -94
- data/Guardfile +1 -1
- data/README.md +2 -0
- data/config/routes.rb +1 -1
- data/letter_opener_web.gemspec +2 -1
- data/lib/letter_opener_web/version.rb +1 -1
- data/spec/controllers/letter_opener_web/letters_controller_spec.rb +5 -4
- data/spec/internal/config/routes.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc3e9d208457b74f5208cba77de77df5715b758d
|
4
|
+
data.tar.gz: c209dc2295e0a73f3ec4b98029a47bdbdfe43e42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360879d3bb50ef1d786072d5457c17b227c67a365e386c62cd3d8a7319f54aba9c614bdc2aaccc6583fb8b7ee573b71692681472ab89696e9a58d895c1a670e4
|
7
|
+
data.tar.gz: 5cab26799d2cda0adfbe7a045265096b5743b08427b3d0bbd1e8acf3666bc4676bbbf7a1add1b81e8875a8ee94aeee0f7eacacebe7c8a64121db98759bf4bfc7
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [1.3.0](https://github.com/fgrehm/letter_opener_web/compare/v1.2.3...v1.3.0) (Feb 02, 2015)
|
2
|
+
|
3
|
+
- Depend on `railties` and `actionmailer` [#38](https://github.com/fgrehm/letter_opener_web/pull/38)
|
4
|
+
|
1
5
|
## [1.2.3](https://github.com/fgrehm/letter_opener_web/compare/v1.2.2...v1.2.3) (Sep 12, 2014)
|
2
6
|
|
3
7
|
- Fix exception with `sprockets-rails` >= `2.1.4` [#32](https://github.com/fgrehm/letter_opener_web/issues/32) / [#33](https://github.com/fgrehm/letter_opener_web/pull/33)
|
data/Gemfile.lock
CHANGED
@@ -1,148 +1,150 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
letter_opener_web (1.
|
4
|
+
letter_opener_web (1.3.0)
|
5
|
+
actionmailer (>= 3.2)
|
5
6
|
letter_opener (~> 1.0)
|
6
|
-
|
7
|
+
railties (>= 3.2)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: http://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actionmailer (4.
|
12
|
-
actionpack (= 4.
|
13
|
-
actionview (= 4.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
actionmailer (4.2.0)
|
13
|
+
actionpack (= 4.2.0)
|
14
|
+
actionview (= 4.2.0)
|
15
|
+
activejob (= 4.2.0)
|
16
|
+
mail (~> 2.5, >= 2.5.4)
|
17
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
+
actionpack (4.2.0)
|
19
|
+
actionview (= 4.2.0)
|
20
|
+
activesupport (= 4.2.0)
|
21
|
+
rack (~> 1.6.0)
|
19
22
|
rack-test (~> 0.6.2)
|
20
|
-
|
21
|
-
|
23
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
24
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
25
|
+
actionview (4.2.0)
|
26
|
+
activesupport (= 4.2.0)
|
22
27
|
builder (~> 3.1)
|
23
28
|
erubis (~> 2.7.0)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
activesupport (4.1.1)
|
32
|
-
i18n (~> 0.6, >= 0.6.9)
|
29
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
30
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
31
|
+
activejob (4.2.0)
|
32
|
+
activesupport (= 4.2.0)
|
33
|
+
globalid (>= 0.3.0)
|
34
|
+
activesupport (4.2.0)
|
35
|
+
i18n (~> 0.7)
|
33
36
|
json (~> 1.7, >= 1.7.7)
|
34
37
|
minitest (~> 5.1)
|
35
|
-
thread_safe (~> 0.
|
38
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
36
39
|
tzinfo (~> 1.1)
|
37
40
|
addressable (2.3.6)
|
38
|
-
arel (5.0.1.20140414130214)
|
39
41
|
builder (3.2.2)
|
40
|
-
celluloid (0.
|
41
|
-
timers (~>
|
42
|
+
celluloid (0.16.0)
|
43
|
+
timers (~> 4.0.0)
|
42
44
|
coderay (1.1.0)
|
43
|
-
combustion (0.5.
|
45
|
+
combustion (0.5.2)
|
44
46
|
activesupport (>= 3.0.0)
|
45
47
|
railties (>= 3.0.0)
|
46
48
|
thor (>= 0.14.6)
|
47
49
|
diff-lcs (1.2.5)
|
48
50
|
erubis (2.7.0)
|
49
|
-
ffi (1.9.
|
51
|
+
ffi (1.9.6)
|
50
52
|
formatador (0.2.5)
|
51
|
-
|
53
|
+
globalid (0.3.0)
|
54
|
+
activesupport (>= 4.1.0)
|
55
|
+
guard (2.11.1)
|
52
56
|
formatador (>= 0.2.4)
|
53
57
|
listen (~> 2.7)
|
54
58
|
lumberjack (~> 1.0)
|
59
|
+
nenv (~> 0.1)
|
60
|
+
notiffany (~> 0.0)
|
55
61
|
pry (>= 0.9.12)
|
62
|
+
shellany (~> 0.0)
|
56
63
|
thor (>= 0.18.1)
|
57
|
-
guard-
|
64
|
+
guard-compat (1.2.1)
|
65
|
+
guard-rspec (4.5.0)
|
58
66
|
guard (~> 2.1)
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
67
|
+
guard-compat (~> 1.1)
|
68
|
+
rspec (>= 2.99.0, < 4.0)
|
69
|
+
hitimes (1.2.2)
|
70
|
+
i18n (0.7.0)
|
71
|
+
json (1.8.2)
|
72
|
+
launchy (2.4.3)
|
64
73
|
addressable (~> 2.3)
|
65
|
-
letter_opener (1.
|
74
|
+
letter_opener (1.3.0)
|
66
75
|
launchy (~> 2.2)
|
67
|
-
listen (2.
|
76
|
+
listen (2.8.5)
|
68
77
|
celluloid (>= 0.15.2)
|
69
78
|
rb-fsevent (>= 0.9.3)
|
70
79
|
rb-inotify (>= 0.9)
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
80
|
+
loofah (2.0.1)
|
81
|
+
nokogiri (>= 1.5.9)
|
82
|
+
lumberjack (1.0.9)
|
83
|
+
mail (2.6.3)
|
84
|
+
mime-types (>= 1.16, < 3)
|
75
85
|
method_source (0.8.2)
|
76
|
-
mime-types (
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
86
|
+
mime-types (2.4.3)
|
87
|
+
mini_portile (0.6.2)
|
88
|
+
minitest (5.5.1)
|
89
|
+
nenv (0.2.0)
|
90
|
+
nokogiri (1.6.6.2)
|
91
|
+
mini_portile (~> 0.6.0)
|
92
|
+
notiffany (0.0.3)
|
93
|
+
nenv (~> 0.1)
|
94
|
+
shellany (~> 0.0)
|
95
|
+
pry (0.10.1)
|
81
96
|
coderay (~> 1.1.0)
|
82
97
|
method_source (~> 0.8.1)
|
83
98
|
slop (~> 3.4)
|
84
|
-
rack (1.
|
85
|
-
rack-test (0.6.
|
99
|
+
rack (1.6.0)
|
100
|
+
rack-test (0.6.3)
|
86
101
|
rack (>= 1.0)
|
87
|
-
rails (
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
actionpack (= 4.1.1)
|
99
|
-
activesupport (= 4.1.1)
|
102
|
+
rails-deprecated_sanitizer (1.0.3)
|
103
|
+
activesupport (>= 4.2.0.alpha)
|
104
|
+
rails-dom-testing (1.0.5)
|
105
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
106
|
+
nokogiri (~> 1.6.0)
|
107
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
108
|
+
rails-html-sanitizer (1.0.1)
|
109
|
+
loofah (~> 2.0)
|
110
|
+
railties (4.2.0)
|
111
|
+
actionpack (= 4.2.0)
|
112
|
+
activesupport (= 4.2.0)
|
100
113
|
rake (>= 0.8.7)
|
101
114
|
thor (>= 0.18.1, < 2.0)
|
102
|
-
rake (10.
|
115
|
+
rake (10.4.2)
|
103
116
|
rb-fsevent (0.9.4)
|
104
117
|
rb-inotify (0.9.5)
|
105
118
|
ffi (>= 0.5.0)
|
106
|
-
rspec (3.
|
107
|
-
rspec-core (~> 3.
|
108
|
-
rspec-expectations (~> 3.
|
109
|
-
rspec-mocks (~> 3.
|
110
|
-
rspec-core (3.
|
111
|
-
rspec-support (~> 3.
|
112
|
-
rspec-expectations (3.
|
119
|
+
rspec (3.1.0)
|
120
|
+
rspec-core (~> 3.1.0)
|
121
|
+
rspec-expectations (~> 3.1.0)
|
122
|
+
rspec-mocks (~> 3.1.0)
|
123
|
+
rspec-core (3.1.7)
|
124
|
+
rspec-support (~> 3.1.0)
|
125
|
+
rspec-expectations (3.1.2)
|
113
126
|
diff-lcs (>= 1.2.0, < 2.0)
|
114
|
-
rspec-support (~> 3.
|
115
|
-
rspec-mocks (3.
|
116
|
-
rspec-support (~> 3.
|
117
|
-
rspec-rails (3.0
|
127
|
+
rspec-support (~> 3.1.0)
|
128
|
+
rspec-mocks (3.1.3)
|
129
|
+
rspec-support (~> 3.1.0)
|
130
|
+
rspec-rails (3.1.0)
|
118
131
|
actionpack (>= 3.0)
|
119
132
|
activesupport (>= 3.0)
|
120
133
|
railties (>= 3.0)
|
121
|
-
rspec-core (~> 3.
|
122
|
-
rspec-expectations (~> 3.
|
123
|
-
rspec-mocks (~> 3.
|
124
|
-
rspec-support (~> 3.
|
125
|
-
rspec-support (3.
|
126
|
-
|
134
|
+
rspec-core (~> 3.1.0)
|
135
|
+
rspec-expectations (~> 3.1.0)
|
136
|
+
rspec-mocks (~> 3.1.0)
|
137
|
+
rspec-support (~> 3.1.0)
|
138
|
+
rspec-support (3.1.2)
|
139
|
+
shellany (0.0.1)
|
140
|
+
shoulda-matchers (2.8.0)
|
127
141
|
activesupport (>= 3.0.0)
|
128
|
-
slop (3.
|
129
|
-
sprockets (2.12.1)
|
130
|
-
hike (~> 1.2)
|
131
|
-
multi_json (~> 1.0)
|
132
|
-
rack (~> 1.0)
|
133
|
-
tilt (~> 1.1, != 1.3.0)
|
134
|
-
sprockets-rails (2.1.3)
|
135
|
-
actionpack (>= 3.0)
|
136
|
-
activesupport (>= 3.0)
|
137
|
-
sprockets (~> 2.8)
|
142
|
+
slop (3.6.0)
|
138
143
|
thor (0.19.1)
|
139
144
|
thread_safe (0.3.4)
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
polyglot
|
144
|
-
polyglot (>= 0.3.1)
|
145
|
-
tzinfo (1.2.1)
|
145
|
+
timers (4.0.1)
|
146
|
+
hitimes
|
147
|
+
tzinfo (1.2.2)
|
146
148
|
thread_safe (~> 0.1)
|
147
149
|
|
148
150
|
PLATFORMS
|
data/Guardfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# A sample Guardfile
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
|
4
|
-
guard 'rspec' do
|
4
|
+
guard 'rspec', cmd: 'bundle exec rspec' do
|
5
5
|
watch(%r{^spec/.+_spec\.rb$})
|
6
6
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
7
|
watch('spec/spec_helper.rb') { "spec" }
|
data/README.md
CHANGED
@@ -75,6 +75,8 @@ end
|
|
75
75
|
You might also want to have a look at the sources for the [demo](http://letter-opener-web.herokuapp.com)
|
76
76
|
available at https://github.com/fgrehm/letter_opener_web_demo.
|
77
77
|
|
78
|
+
**NOTICE: Using this gem on Heroku will only work if your app has just one Dyno and does not send emails from background jobs. For updates on this matter please subscribe to [GH-35](https://github.com/fgrehm/letter_opener_web/issues/35)**
|
79
|
+
|
78
80
|
## Acknowledgements
|
79
81
|
|
80
82
|
Special thanks to [@alexrothenberg](https://github.com/alexrothenberg) for some
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
LetterOpenerWeb::Engine.routes.draw do
|
2
2
|
delete 'clear' => 'letters#clear', :as => :clear_letters
|
3
|
-
delete ':id
|
3
|
+
delete ':id' => 'letters#destroy', :as => :delete_letter
|
4
4
|
get '/' => 'letters#index', :as => :letters
|
5
5
|
get ':id(/:style)' => 'letters#show', :as => :letter
|
6
6
|
get ':id/attachments/:file' => 'letters#attachment'
|
data/letter_opener_web.gemspec
CHANGED
@@ -18,7 +18,8 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency '
|
21
|
+
gem.add_dependency 'railties', '>= 3.2'
|
22
|
+
gem.add_dependency 'actionmailer', '>= 3.2'
|
22
23
|
gem.add_dependency 'letter_opener', '~> 1.0'
|
23
24
|
|
24
25
|
gem.add_development_dependency 'rspec-rails', '~> 3.0'
|
@@ -36,7 +36,7 @@ describe LetterOpenerWeb::LettersController do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
context 'plain text version' do
|
39
|
-
before do
|
39
|
+
before do
|
40
40
|
allow(LetterOpenerWeb::Letter).to receive_messages(:find => letter)
|
41
41
|
allow(letter).to receive_messages(:exists? => true)
|
42
42
|
get :show, :id => id, :style => 'plain'
|
@@ -52,8 +52,8 @@ describe LetterOpenerWeb::LettersController do
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
context 'with wrong parameters' do
|
56
|
-
it 'should return 404 when invalid id given' do
|
55
|
+
context 'with wrong parameters' do
|
56
|
+
it 'should return 404 when invalid id given' do
|
57
57
|
get :show, :id => id, :style => 'rich'
|
58
58
|
expect(response.status).to eq(404)
|
59
59
|
end
|
@@ -98,10 +98,11 @@ describe LetterOpenerWeb::LettersController do
|
|
98
98
|
|
99
99
|
describe 'DELETE destroy' do
|
100
100
|
let(:id) { 'an-id' }
|
101
|
+
|
101
102
|
it 'removes the selected letter' do
|
102
103
|
allow_any_instance_of(LetterOpenerWeb::Letter).to receive(:exists?).and_return(true)
|
103
104
|
expect_any_instance_of(LetterOpenerWeb::Letter).to receive(:delete)
|
104
|
-
delete :destroy, :id => id
|
105
|
+
delete :destroy, :id => id
|
105
106
|
end
|
106
107
|
end
|
107
108
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
2
|
delete 'clear' => 'letter_opener_web/letters#clear'
|
3
|
-
delete ':id
|
4
|
-
get '/' => 'letter_opener_web/letters#index',
|
5
|
-
get ':id(/:style)' => 'letter_opener_web/letters#show',
|
3
|
+
delete ':id' => 'letter_opener_web/letters#destroy', :as => :delete_letter
|
4
|
+
get '/' => 'letter_opener_web/letters#index', :as => :letters
|
5
|
+
get ':id(/:style)' => 'letter_opener_web/letters#show', :as => :letter
|
6
6
|
get ':id/attachments/:file' => 'letter_opener_web/letters#attachment'
|
7
7
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,7 +4,7 @@ require 'bundler/setup'
|
|
4
4
|
require 'combustion'
|
5
5
|
Bundler.require :default, :test
|
6
6
|
|
7
|
-
Combustion.initialize! :action_controller, :action_view, :
|
7
|
+
Combustion.initialize! :action_controller, :action_view, :action_mailer
|
8
8
|
|
9
9
|
require 'rspec/rails'
|
10
10
|
require 'shoulda-matchers'
|
metadata
CHANGED
@@ -1,17 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letter_opener_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Rehm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: actionmailer
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - ">="
|
@@ -148,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
162
|
version: '0'
|
149
163
|
requirements: []
|
150
164
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.4.5
|
152
166
|
signing_key:
|
153
167
|
specification_version: 4
|
154
168
|
summary: Gives letter_opener an interface for browsing sent emails
|