letter_opener_web 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +3 -0
- data/.rspec +3 -0
- data/.rubocop.yml +27 -0
- data/.travis.yml +21 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +3 -7
- data/README.md +15 -4
- data/Rakefile +6 -35
- data/app/assets/javascripts/letter_opener_web/application.js +1 -1
- data/app/controllers/letter_opener_web/application_controller.rb +2 -0
- data/app/controllers/letter_opener_web/letters_controller.rb +19 -21
- data/app/models/letter_opener_web/letter.rb +27 -23
- data/app/views/layouts/letter_opener_web/{application.html.erb → letters.html.erb} +0 -2
- data/app/views/letter_opener_web/letters/index.html.erb +8 -8
- data/{script → bin}/rails +4 -1
- data/bin/setup +6 -0
- data/config/routes.rb +2 -0
- data/letter_opener_web.gemspec +13 -11
- data/lib/letter_opener_web.rb +20 -1
- data/lib/letter_opener_web/delivery_method.rb +5 -3
- data/lib/letter_opener_web/engine.rb +12 -7
- data/lib/letter_opener_web/version.rb +3 -1
- data/script/pre-push +2 -0
- data/spec/controllers/letter_opener_web/letters_controller_spec.rb +50 -32
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/config/manifest.js +5 -0
- data/spec/{internal/public/favicon.ico → dummy/app/assets/images/.keep} +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +31 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/home_controller.rb +10 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/mailers/application_mailer.rb +6 -0
- data/spec/dummy/app/mailers/contact_mailer.rb +14 -0
- data/spec/dummy/app/views/contact_mailer/new_message.html.erb +21 -0
- data/spec/dummy/app/views/contact_mailer/new_message.text.erb +3 -0
- data/spec/dummy/app/views/home/index.html.erb +50 -0
- data/spec/dummy/app/views/layouts/application.html.erb +18 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +5 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/bin/setup +36 -0
- data/spec/dummy/bin/update +31 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +40 -0
- data/spec/dummy/config/environments/production.rb +85 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +7 -0
- data/spec/dummy/config/initializers/assets.rb +13 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +17 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/new_framework_defaults.rb +10 -0
- data/spec/dummy/config/initializers/session_store.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/puma.rb +49 -0
- data/spec/dummy/config/routes.rb +8 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +8 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/letter_opener_web_spec.rb +44 -0
- data/spec/models/letter_opener_web/letter_spec.rb +23 -15
- data/spec/rails_helper.rb +8 -0
- data/spec/spec_helper.rb +2 -16
- metadata +142 -30
- data/Gemfile.lock +0 -167
- data/Guardfile +0 -14
- data/lib/tasks/letter_opener_web_tasks.rake +0 -4
- data/spec/internal/config/database.yml +0 -3
- data/spec/internal/config/routes.rb +0 -7
- data/spec/internal/db/schema.rb +0 -3
- data/spec/internal/log/.gitignore +0 -1
data/Guardfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
guard 'rspec', cmd: 'bundle exec rspec' do
|
5
|
-
watch(%r{^spec/.+_spec\.rb$})
|
6
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
|
-
watch('spec/spec_helper.rb') { "spec" }
|
8
|
-
|
9
|
-
# Rails example
|
10
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
11
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
12
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
13
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
14
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
Rails.application.routes.draw do
|
2
|
-
delete 'clear' => 'letter_opener_web/letters#clear'
|
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
|
-
get ':id/attachments/:file' => 'letter_opener_web/letters#attachment'
|
7
|
-
end
|
data/spec/internal/db/schema.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
*.log
|