ken_all 0.1.12 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -1
  3. data/Gemfile +0 -2
  4. data/Gemfile.lock +131 -95
  5. data/db/migrate/20121028092517_create_ken_all_postal_codes.rb +7 -1
  6. data/db/migrate/20130722102956_column_change_postal_codes.rb +7 -1
  7. data/ken_all.gemspec +1 -1
  8. data/lib/ken_all/version.rb +1 -1
  9. data/spec/dummy/README.md +24 -0
  10. data/spec/dummy/Rakefile +2 -3
  11. data/spec/dummy/config/application.rb +18 -50
  12. data/spec/dummy/config/boot.rb +3 -9
  13. data/spec/dummy/config/database.yml +9 -9
  14. data/spec/dummy/config/environment.rb +4 -4
  15. data/spec/dummy/config/environments/test.rb +24 -15
  16. data/spec/dummy/config/initializers/assets.rb +14 -0
  17. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  18. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  19. data/spec/dummy/config/initializers/wrap_parameters.rb +5 -5
  20. data/spec/dummy/config/routes.rb +1 -2
  21. data/spec/dummy/config.ru +3 -2
  22. data/spec/dummy/db/migrate/{20121028094049_create_ken_all_postal_codes.ken_all.rb → 20121028092517_create_ken_all_postal_codes.rb} +9 -2
  23. data/spec/dummy/db/migrate/{20130722113003_column_change_postal_codes.ken_all.rb → 20130722102956_column_change_postal_codes.rb} +7 -2
  24. data/spec/dummy/db/schema.rb +12 -13
  25. data/spec/dummy/db/seeds.rb +7 -0
  26. data/spec/dummy/public/404.html +55 -14
  27. data/spec/dummy/public/422.html +55 -14
  28. data/spec/dummy/public/500.html +54 -13
  29. data/{app/assets/images/ken_all/.gitkeep → spec/dummy/public/apple-touch-icon-precomposed.png} +0 -0
  30. data/spec/dummy/{app/mailers/.gitkeep → public/apple-touch-icon.png} +0 -0
  31. data/spec/dummy/public/robots.txt +1 -0
  32. data/spec/lib/ken_all_spec.rb +14 -14
  33. data/spec/models/ken_all/postal_code_spec.rb +2 -2
  34. data/spec/spec_helper.rb +0 -1
  35. metadata +37 -52
  36. data/app/assets/javascripts/ken_all/application.js +0 -15
  37. data/app/assets/stylesheets/ken_all/application.css +0 -13
  38. data/app/controllers/ken_all/application_controller.rb +0 -4
  39. data/app/helpers/ken_all/application_helper.rb +0 -4
  40. data/app/views/layouts/ken_all/application.html.erb +0 -14
  41. data/config/routes.rb +0 -2
  42. data/spec/dummy/README.rdoc +0 -261
  43. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  44. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  45. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  46. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  47. data/spec/dummy/app/models/.gitkeep +0 -0
  48. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  49. data/spec/dummy/config/environments/development.rb +0 -37
  50. data/spec/dummy/config/environments/production.rb +0 -67
  51. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  52. data/spec/dummy/config/initializers/inflections.rb +0 -15
  53. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  54. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  55. data/spec/dummy/config/initializers/session_store.rb +0 -8
  56. data/spec/dummy/config/locales/en.yml +0 -5
  57. data/spec/dummy/lib/assets/.gitkeep +0 -0
  58. data/spec/dummy/log/.gitkeep +0 -0
  59. data/spec/dummy/script/rails +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 78b40e0a21883bde575dcf61cd4edfc7583797f9
4
- data.tar.gz: ccdd32f4cf32c20ec437ed871525e7db1f392d22
2
+ SHA256:
3
+ metadata.gz: 001d9cd3e435719da6c854b5212d0e09b08587e209413402a73d7666f7bbb8b7
4
+ data.tar.gz: dcac108baa7a78c398ab81e309e7d6d9015c6429ad37a902acbec1ec76ad0eb5
5
5
  SHA512:
6
- metadata.gz: e8c483f9895a68313290a6d4865e8e6a179b486a9de5c768ca6e8a6f22a14385101243d33abf289688c0bb809b15cf401b0cd8b2a701927ee7c043989c34f1e9
7
- data.tar.gz: df528bd9c30192e267b2125eff7ec095228ccf11f0e7f23f10fac8f652866d6c85a7b57096586e5b3521ed7862c122e7a6771d71235e4daf106c4a6683a54ef7
6
+ metadata.gz: d53ee26f6da919559a41c312b31808a86f84a3bd01f2ea0d76cd324bfc81cd24fb4946a1ddfbc78b02e0344141fdef924a3051594c226129fae61ae553f1e9d0
7
+ data.tar.gz: 0316a302cf2fd6660ebbc1097c2ab999927b64bc92a8f0b4a43e98c79c422157c48bd5aeb966b1fb6337e71bfb5c8a46f109798c4b33cd47360615ec6df94b89
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2
4
3
  - 2.3
4
+ - 2.4
5
+ - 2.5
5
6
  before_script:
6
7
  - cd spec/dummy
7
8
  - bundle exec rake db:setup
data/Gemfile CHANGED
@@ -3,5 +3,3 @@ source "http://rubygems.org"
3
3
  # Declare your gem's dependencies in ken_all.gemspec.
4
4
  gemspec
5
5
 
6
- gem 'rails', '~> 3.2'
7
- gem 'test-unit', '~> 3.0' # Ruby 2.2+ has removed test/unit from the core library. Rails requires this as a dependency.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ken_all (0.1.12)
4
+ ken_all (0.2.0)
5
5
  activerecord-import (~> 0.4)
6
6
  curses (~> 1.0)
7
7
  rails (>= 3.0.9)
@@ -10,118 +10,154 @@ PATH
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- actionmailer (3.2.22.5)
14
- actionpack (= 3.2.22.5)
15
- mail (~> 2.5.4)
16
- actionpack (3.2.22.5)
17
- activemodel (= 3.2.22.5)
18
- activesupport (= 3.2.22.5)
19
- builder (~> 3.0.0)
20
- erubis (~> 2.7.0)
21
- journey (~> 1.0.4)
22
- rack (~> 1.4.5)
23
- rack-cache (~> 1.2)
24
- rack-test (~> 0.6.1)
25
- sprockets (~> 2.2.1)
26
- activemodel (3.2.22.5)
27
- activesupport (= 3.2.22.5)
28
- builder (~> 3.0.0)
29
- activerecord (3.2.22.5)
30
- activemodel (= 3.2.22.5)
31
- activesupport (= 3.2.22.5)
32
- arel (~> 3.0.2)
33
- tzinfo (~> 0.3.29)
34
- activerecord-import (0.19.1)
13
+ actioncable (5.2.0)
14
+ actionpack (= 5.2.0)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailer (5.2.0)
18
+ actionpack (= 5.2.0)
19
+ actionview (= 5.2.0)
20
+ activejob (= 5.2.0)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (5.2.0)
24
+ actionview (= 5.2.0)
25
+ activesupport (= 5.2.0)
26
+ rack (~> 2.0)
27
+ rack-test (>= 0.6.3)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (5.2.0)
31
+ activesupport (= 5.2.0)
32
+ builder (~> 3.1)
33
+ erubi (~> 1.4)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
+ activejob (5.2.0)
37
+ activesupport (= 5.2.0)
38
+ globalid (>= 0.3.6)
39
+ activemodel (5.2.0)
40
+ activesupport (= 5.2.0)
41
+ activerecord (5.2.0)
42
+ activemodel (= 5.2.0)
43
+ activesupport (= 5.2.0)
44
+ arel (>= 9.0)
45
+ activerecord-import (0.23.0)
35
46
  activerecord (>= 3.2)
36
- activeresource (3.2.22.5)
37
- activemodel (= 3.2.22.5)
38
- activesupport (= 3.2.22.5)
39
- activesupport (3.2.22.5)
40
- i18n (~> 0.6, >= 0.6.4)
41
- multi_json (~> 1.0)
42
- arel (3.0.3)
43
- builder (3.0.4)
44
- curses (1.2.3)
47
+ activestorage (5.2.0)
48
+ actionpack (= 5.2.0)
49
+ activerecord (= 5.2.0)
50
+ marcel (~> 0.3.1)
51
+ activesupport (5.2.0)
52
+ concurrent-ruby (~> 1.0, >= 1.0.2)
53
+ i18n (>= 0.7, < 2)
54
+ minitest (~> 5.1)
55
+ tzinfo (~> 1.1)
56
+ arel (9.0.0)
57
+ builder (3.2.3)
58
+ concurrent-ruby (1.0.5)
59
+ crass (1.0.4)
60
+ curses (1.2.4)
45
61
  diff-lcs (1.3)
46
- erubis (2.7.0)
47
- hike (1.2.3)
48
- i18n (0.8.6)
49
- journey (1.0.4)
50
- json (1.8.6)
51
- mail (2.5.5)
52
- mime-types (~> 1.16)
53
- treetop (~> 1.4.8)
54
- mime-types (1.25.1)
55
- multi_json (1.12.1)
56
- polyglot (0.3.5)
57
- power_assert (1.0.2)
58
- rack (1.4.7)
59
- rack-cache (1.7.0)
60
- rack (>= 0.4)
61
- rack-ssl (1.3.4)
62
- rack
63
- rack-test (0.6.3)
64
- rack (>= 1.0)
65
- rails (3.2.22.5)
66
- actionmailer (= 3.2.22.5)
67
- actionpack (= 3.2.22.5)
68
- activerecord (= 3.2.22.5)
69
- activeresource (= 3.2.22.5)
70
- activesupport (= 3.2.22.5)
71
- bundler (~> 1.0)
72
- railties (= 3.2.22.5)
73
- railties (3.2.22.5)
74
- actionpack (= 3.2.22.5)
75
- activesupport (= 3.2.22.5)
76
- rack-ssl (~> 1.3.2)
62
+ erubi (1.7.1)
63
+ ffi (1.9.23)
64
+ globalid (0.4.1)
65
+ activesupport (>= 4.2.0)
66
+ i18n (1.0.1)
67
+ concurrent-ruby (~> 1.0)
68
+ listen (3.1.5)
69
+ rb-fsevent (~> 0.9, >= 0.9.4)
70
+ rb-inotify (~> 0.9, >= 0.9.7)
71
+ ruby_dep (~> 1.2)
72
+ loofah (2.2.2)
73
+ crass (~> 1.0.2)
74
+ nokogiri (>= 1.5.9)
75
+ mail (2.7.0)
76
+ mini_mime (>= 0.1.1)
77
+ marcel (0.3.2)
78
+ mimemagic (~> 0.3.2)
79
+ method_source (0.9.0)
80
+ mimemagic (0.3.2)
81
+ mini_mime (1.0.0)
82
+ mini_portile2 (2.3.0)
83
+ minitest (5.11.3)
84
+ nio4r (2.3.1)
85
+ nokogiri (1.8.2)
86
+ mini_portile2 (~> 2.3.0)
87
+ rack (2.0.5)
88
+ rack-test (1.0.0)
89
+ rack (>= 1.0, < 3)
90
+ rails (5.2.0)
91
+ actioncable (= 5.2.0)
92
+ actionmailer (= 5.2.0)
93
+ actionpack (= 5.2.0)
94
+ actionview (= 5.2.0)
95
+ activejob (= 5.2.0)
96
+ activemodel (= 5.2.0)
97
+ activerecord (= 5.2.0)
98
+ activestorage (= 5.2.0)
99
+ activesupport (= 5.2.0)
100
+ bundler (>= 1.3.0)
101
+ railties (= 5.2.0)
102
+ sprockets-rails (>= 2.0.0)
103
+ rails-dom-testing (2.0.3)
104
+ activesupport (>= 4.2.0)
105
+ nokogiri (>= 1.6)
106
+ rails-html-sanitizer (1.0.4)
107
+ loofah (~> 2.2, >= 2.2.2)
108
+ railties (5.2.0)
109
+ actionpack (= 5.2.0)
110
+ activesupport (= 5.2.0)
111
+ method_source
77
112
  rake (>= 0.8.7)
78
- rdoc (~> 3.4)
79
- thor (>= 0.14.6, < 2.0)
80
- rake (12.0.0)
81
- rdoc (3.12.2)
82
- json (~> 1.4)
83
- rspec-core (3.6.0)
84
- rspec-support (~> 3.6.0)
85
- rspec-expectations (3.6.0)
113
+ thor (>= 0.18.1, < 2.0)
114
+ rake (12.3.1)
115
+ rb-fsevent (0.10.3)
116
+ rb-inotify (0.9.10)
117
+ ffi (>= 0.5.0, < 2)
118
+ rspec-core (3.7.1)
119
+ rspec-support (~> 3.7.0)
120
+ rspec-expectations (3.7.0)
86
121
  diff-lcs (>= 1.2.0, < 2.0)
87
- rspec-support (~> 3.6.0)
88
- rspec-mocks (3.6.0)
122
+ rspec-support (~> 3.7.0)
123
+ rspec-mocks (3.7.0)
89
124
  diff-lcs (>= 1.2.0, < 2.0)
90
- rspec-support (~> 3.6.0)
91
- rspec-rails (3.6.1)
125
+ rspec-support (~> 3.7.0)
126
+ rspec-rails (3.7.2)
92
127
  actionpack (>= 3.0)
93
128
  activesupport (>= 3.0)
94
129
  railties (>= 3.0)
95
- rspec-core (~> 3.6.0)
96
- rspec-expectations (~> 3.6.0)
97
- rspec-mocks (~> 3.6.0)
98
- rspec-support (~> 3.6.0)
99
- rspec-support (3.6.0)
130
+ rspec-core (~> 3.7.0)
131
+ rspec-expectations (~> 3.7.0)
132
+ rspec-mocks (~> 3.7.0)
133
+ rspec-support (~> 3.7.0)
134
+ rspec-support (3.7.1)
135
+ ruby_dep (1.5.0)
100
136
  rubyzip (1.2.1)
101
- sprockets (2.2.3)
102
- hike (~> 1.2)
103
- multi_json (~> 1.0)
104
- rack (~> 1.0)
105
- tilt (~> 1.1, != 1.3.0)
137
+ sprockets (3.7.1)
138
+ concurrent-ruby (~> 1.0)
139
+ rack (> 1, < 3)
140
+ sprockets-rails (3.2.1)
141
+ actionpack (>= 4.0)
142
+ activesupport (>= 4.0)
143
+ sprockets (>= 3.0.0)
106
144
  sqlite3 (1.3.13)
107
- test-unit (3.2.5)
108
- power_assert
109
145
  thor (0.20.0)
110
- tilt (1.4.1)
111
- treetop (1.4.15)
112
- polyglot
113
- polyglot (>= 0.3.1)
114
- tzinfo (0.3.53)
146
+ thread_safe (0.3.6)
147
+ tzinfo (1.2.5)
148
+ thread_safe (~> 0.1)
149
+ websocket-driver (0.7.0)
150
+ websocket-extensions (>= 0.1.0)
151
+ websocket-extensions (0.1.3)
115
152
 
116
153
  PLATFORMS
117
154
  ruby
118
155
 
119
156
  DEPENDENCIES
120
157
  ken_all!
121
- rails (~> 3.2)
158
+ listen
122
159
  rspec-rails
123
160
  sqlite3
124
- test-unit (~> 3.0)
125
161
 
126
162
  BUNDLED WITH
127
- 1.15.3
163
+ 1.16.1
@@ -1,4 +1,10 @@
1
- class CreateKenAllPostalCodes < ActiveRecord::Migration
1
+ if ActiveRecord.gem_version >= Gem::Version.new('4.2')
2
+ class CreateKenAllPostalCodes < ActiveRecord::Migration[4.2]; end
3
+ else
4
+ class CreateKenAllPostalCodes < ActiveRecord::Migration; end
5
+ end
6
+
7
+ CreateKenAllPostalCodes.class_eval do
2
8
  def change
3
9
  create_table :ken_all_postal_codes do |t|
4
10
  t.string :code
@@ -1,4 +1,10 @@
1
- class ColumnChangePostalCodes < ActiveRecord::Migration
1
+ if ActiveRecord.gem_version >= Gem::Version.new('4.2')
2
+ class ColumnChangePostalCodes < ActiveRecord::Migration[4.2]; end
3
+ else
4
+ class ColumnChangePostalCodes < ActiveRecord::Migration; end
5
+ end
6
+
7
+ ColumnChangePostalCodes.class_eval do
2
8
  def change
3
9
  change_column :ken_all_postal_codes, :address1, :text
4
10
  change_column :ken_all_postal_codes, :address2, :text
data/ken_all.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_dependency "rails", ">= 3.0.9"
25
25
  s.add_dependency "rubyzip", '~> 1.2'
26
26
  s.add_dependency "curses", '~> 1.0'
27
-
27
+ s.add_development_dependency 'listen'
28
28
  s.add_development_dependency "sqlite3"
29
29
  s.add_development_dependency "rspec-rails"
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module KenAll
2
- VERSION = "0.1.12"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -0,0 +1,24 @@
1
+ # README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
data/spec/dummy/Rakefile CHANGED
@@ -1,7 +1,6 @@
1
- #!/usr/bin/env rake
2
1
  # Add your own tasks in files placed in lib/tasks ending in .rake,
3
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
3
 
5
- require File.expand_path('../config/application', __FILE__)
4
+ require_relative 'config/application'
6
5
 
7
- Dummy::Application.load_tasks
6
+ Rails.application.load_tasks
@@ -1,65 +1,33 @@
1
- require File.expand_path('../boot', __FILE__)
1
+ require_relative 'boot'
2
2
 
3
+ require "rails"
3
4
  # Pick the frameworks you want:
5
+ require "active_model/railtie"
6
+ require "active_job/railtie"
4
7
  require "active_record/railtie"
8
+ require "active_storage/engine"
5
9
  require "action_controller/railtie"
6
10
  require "action_mailer/railtie"
7
- require "active_resource/railtie"
11
+ require "action_view/railtie"
12
+ require "action_cable/engine"
8
13
  require "sprockets/railtie"
9
14
  # require "rails/test_unit/railtie"
10
15
 
11
- Bundler.require
12
- require "ken_all"
16
+ # Require the gems listed in Gemfile, including any gems
17
+ # you've limited to :test, :development, or :production.
18
+ Bundler.require(*Rails.groups)
13
19
 
14
20
  module Dummy
15
21
  class Application < Rails::Application
16
- # Settings in config/environments/* take precedence over those specified here.
17
- # Application configuration should go into files in config/initializers
18
- # -- all .rb files in that directory are automatically loaded.
19
-
20
- # Custom directories with classes and modules you want to be autoloadable.
21
- # config.autoload_paths += %W(#{config.root}/extras)
22
-
23
- # Only load the plugins named here, in the order given (default is alphabetical).
24
- # :all can be used as a placeholder for all plugins not explicitly named.
25
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
26
-
27
- # Activate observers that should always be running.
28
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
29
-
30
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
31
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
32
- # config.time_zone = 'Central Time (US & Canada)'
33
-
34
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
35
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
36
- # config.i18n.default_locale = :de
37
-
38
- # Configure the default encoding used in templates for Ruby 1.9.
39
- config.encoding = "utf-8"
22
+ # Initialize configuration defaults for originally generated Rails version.
23
+ config.load_defaults 5.2
40
24
 
41
- # Configure sensitive parameters which will be filtered from the log file.
42
- config.filter_parameters += [:password]
43
-
44
- # Enable escaping HTML in JSON.
45
- config.active_support.escape_html_entities_in_json = true
46
-
47
- # Use SQL instead of Active Record's schema dumper when creating the database.
48
- # This is necessary if your schema can't be completely dumped by the schema dumper,
49
- # like if you have constraints or database-specific column types
50
- # config.active_record.schema_format = :sql
51
-
52
- # Enforce whitelist mode for mass assignment.
53
- # This will create an empty whitelist of attributes available for mass-assignment for all models
54
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
55
- # parameters by using an attr_accessible or attr_protected declaration.
56
- config.active_record.whitelist_attributes = true
57
-
58
- # Enable the asset pipeline
59
- config.assets.enabled = true
25
+ # Settings in config/environments/* take precedence over those specified here.
26
+ # Application configuration can go into files in config/initializers
27
+ # -- all .rb files in that directory are automatically loaded after loading
28
+ # the framework and any gems in your application.
60
29
 
61
- # Version of your assets, change this if you want to expire all your assets
62
- config.assets.version = '1.0'
30
+ # Don't generate system test files.
31
+ config.generators.system_tests = nil
63
32
  end
64
33
  end
65
-
@@ -1,10 +1,4 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
1
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3
2
 
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
3
+ require 'bundler/setup' # Set up gems listed in the Gemfile.
4
+ # require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
@@ -3,23 +3,23 @@
3
3
  #
4
4
  # Ensure the SQLite 3 gem is defined in your Gemfile
5
5
  # gem 'sqlite3'
6
- development:
6
+ #
7
+ default: &default
7
8
  adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
10
  timeout: 5000
11
11
 
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
12
16
  # Warning: The database defined as "test" will be erased and
13
17
  # re-generated from your development database when you run "rake".
14
18
  # Do not set this db to the same as development or production.
15
19
  test:
16
- adapter: sqlite3
20
+ <<: *default
17
21
  database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
22
 
21
23
  production:
22
- adapter: sqlite3
24
+ <<: *default
23
25
  database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,5 +1,5 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
1
+ # Load the Rails application.
2
+ require_relative 'application'
3
3
 
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -1,5 +1,5 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
5
  # test suite. You never need to work with it otherwise. Remember that
@@ -7,31 +7,40 @@ Dummy::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
13
14
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
15
+ # Configure public file server for tests with Cache-Control for performance.
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = {
18
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19
+ }
16
20
 
17
- # Show full error reports and disable caching
21
+ # Show full error reports and disable caching.
18
22
  config.consider_all_requests_local = true
19
23
  config.action_controller.perform_caching = false
20
24
 
21
- # Raise exceptions instead of rendering exception templates
25
+ # Raise exceptions instead of rendering exception templates.
22
26
  config.action_dispatch.show_exceptions = false
23
27
 
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
28
+ # Disable request forgery protection in test environment.
29
+ config.action_controller.allow_forgery_protection = false
30
+
31
+ # Store uploaded files on the local file system in a temporary directory
32
+ config.active_storage.service = :test
33
+
34
+ config.action_mailer.perform_caching = false
26
35
 
27
36
  # Tell Action Mailer not to deliver emails to the real world.
28
37
  # The :test delivery method accumulates sent emails in the
29
38
  # ActionMailer::Base.deliveries array.
30
39
  config.action_mailer.delivery_method = :test
31
40
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
- # Print deprecation notices to the stderr
41
+ # Print deprecation notices to the stderr.
36
42
  config.active_support.deprecation = :stderr
43
+
44
+ # Raises error for missing translations
45
+ # config.action_view.raise_on_missing_translations = true
37
46
  end
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
+
11
+ # Precompile additional assets.
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -1,5 +1,5 @@
1
1
  # Be sure to restart your server when you modify this file.
2
- #
2
+
3
3
  # This file contains settings for ActionController::ParamsWrapper which
4
4
  # is enabled by default.
5
5
 
@@ -8,7 +8,7 @@ ActiveSupport.on_load(:action_controller) do
8
8
  wrap_parameters format: [:json]
9
9
  end
10
10
 
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -1,4 +1,3 @@
1
1
  Rails.application.routes.draw do
2
-
3
- mount KenAll::Engine => "/ken_all"
2
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
4
3
  end
data/spec/dummy/config.ru CHANGED
@@ -1,4 +1,5 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
3
+ require_relative 'config/environment'
4
+
5
+ run Rails.application