ken_all 0.1.12 → 0.2.0
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.
- checksums.yaml +5 -5
- data/.travis.yml +2 -1
- data/Gemfile +0 -2
- data/Gemfile.lock +131 -95
- data/db/migrate/20121028092517_create_ken_all_postal_codes.rb +7 -1
- data/db/migrate/20130722102956_column_change_postal_codes.rb +7 -1
- data/ken_all.gemspec +1 -1
- data/lib/ken_all/version.rb +1 -1
- data/spec/dummy/README.md +24 -0
- data/spec/dummy/Rakefile +2 -3
- data/spec/dummy/config/application.rb +18 -50
- data/spec/dummy/config/boot.rb +3 -9
- data/spec/dummy/config/database.yml +9 -9
- data/spec/dummy/config/environment.rb +4 -4
- data/spec/dummy/config/environments/test.rb +24 -15
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +5 -5
- data/spec/dummy/config/routes.rb +1 -2
- data/spec/dummy/config.ru +3 -2
- data/spec/dummy/db/migrate/{20121028094049_create_ken_all_postal_codes.ken_all.rb → 20121028092517_create_ken_all_postal_codes.rb} +9 -2
- data/spec/dummy/db/migrate/{20130722113003_column_change_postal_codes.ken_all.rb → 20130722102956_column_change_postal_codes.rb} +7 -2
- data/spec/dummy/db/schema.rb +12 -13
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/public/404.html +55 -14
- data/spec/dummy/public/422.html +55 -14
- data/spec/dummy/public/500.html +54 -13
- data/{app/assets/images/ken_all/.gitkeep → spec/dummy/public/apple-touch-icon-precomposed.png} +0 -0
- data/spec/dummy/{app/mailers/.gitkeep → public/apple-touch-icon.png} +0 -0
- data/spec/dummy/public/robots.txt +1 -0
- data/spec/lib/ken_all_spec.rb +14 -14
- data/spec/models/ken_all/postal_code_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -1
- metadata +37 -52
- data/app/assets/javascripts/ken_all/application.js +0 -15
- data/app/assets/stylesheets/ken_all/application.css +0 -13
- data/app/controllers/ken_all/application_controller.rb +0 -4
- data/app/helpers/ken_all/application_helper.rb +0 -4
- data/app/views/layouts/ken_all/application.html.erb +0 -14
- data/config/routes.rb +0 -2
- data/spec/dummy/README.rdoc +0 -261
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/script/rails +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 001d9cd3e435719da6c854b5212d0e09b08587e209413402a73d7666f7bbb8b7
|
4
|
+
data.tar.gz: dcac108baa7a78c398ab81e309e7d6d9015c6429ad37a902acbec1ec76ad0eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d53ee26f6da919559a41c312b31808a86f84a3bd01f2ea0d76cd324bfc81cd24fb4946a1ddfbc78b02e0344141fdef924a3051594c226129fae61ae553f1e9d0
|
7
|
+
data.tar.gz: 0316a302cf2fd6660ebbc1097c2ab999927b64bc92a8f0b4a43e98c79c422157c48bd5aeb966b1fb6337e71bfb5c8a46f109798c4b33cd47360615ec6df94b89
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ken_all (0.
|
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
|
-
|
14
|
-
actionpack (=
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
activesupport (=
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
rspec-core (3.
|
84
|
-
rspec-support (~> 3.
|
85
|
-
rspec-expectations (3.
|
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.
|
88
|
-
rspec-mocks (3.
|
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.
|
91
|
-
rspec-rails (3.
|
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.
|
96
|
-
rspec-expectations (~> 3.
|
97
|
-
rspec-mocks (~> 3.
|
98
|
-
rspec-support (~> 3.
|
99
|
-
rspec-support (3.
|
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 (
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
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
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
-
|
158
|
+
listen
|
122
159
|
rspec-rails
|
123
160
|
sqlite3
|
124
|
-
test-unit (~> 3.0)
|
125
161
|
|
126
162
|
BUNDLED WITH
|
127
|
-
1.
|
163
|
+
1.16.1
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
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
|
-
|
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
|
data/lib/ken_all/version.rb
CHANGED
@@ -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
|
-
|
4
|
+
require_relative 'config/application'
|
6
5
|
|
7
|
-
|
6
|
+
Rails.application.load_tasks
|
@@ -1,65 +1,33 @@
|
|
1
|
-
|
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 "
|
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
|
-
|
12
|
-
|
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
|
-
#
|
17
|
-
|
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
|
-
#
|
42
|
-
|
43
|
-
|
44
|
-
#
|
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
|
-
#
|
62
|
-
config.
|
30
|
+
# Don't generate system test files.
|
31
|
+
config.generators.system_tests = nil
|
63
32
|
end
|
64
33
|
end
|
65
|
-
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
1
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
3
2
|
|
4
|
-
|
5
|
-
|
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
|
-
|
6
|
+
#
|
7
|
+
default: &default
|
7
8
|
adapter: sqlite3
|
8
|
-
|
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
|
-
|
20
|
+
<<: *default
|
17
21
|
database: db/test.sqlite3
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
22
|
|
21
23
|
production:
|
22
|
-
|
24
|
+
<<: *default
|
23
25
|
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# Load the
|
2
|
-
|
1
|
+
# Load the Rails application.
|
2
|
+
require_relative 'application'
|
3
3
|
|
4
|
-
# Initialize the
|
5
|
-
|
4
|
+
# Initialize the Rails application.
|
5
|
+
Rails.application.initialize!
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
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
|
-
#
|
11
|
-
|
12
|
-
|
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
|
-
#
|
15
|
-
config.
|
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
|
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
|
-
#
|
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 )
|
@@ -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
|
-
#
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
|
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
|
data/spec/dummy/config/routes.rb
CHANGED
data/spec/dummy/config.ru
CHANGED