dynamic_fields_for_rails 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/dynamic_fields_for_rails/version.rb +1 -1
- metadata +9 -184
- data/.gitignore +0 -18
- data/.rubocop.yml +0 -87
- data/.ruby-version +0 -1
- data/Gemfile +0 -6
- data/dynamic_fields_for_rails.gemspec +0 -28
- data/test/config/active_record.rb +0 -15
- data/test/dummy/Rakefile +0 -9
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -4
- data/test/dummy/app/models/application_record.rb +0 -5
- data/test/dummy/app/models/child.rb +0 -4
- data/test/dummy/app/models/parent.rb +0 -6
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/parents/form.html.erb +0 -1
- data/test/dummy/config/application.rb +0 -45
- data/test/dummy/config/boot.rb +0 -12
- data/test/dummy/config/database.yml +0 -22
- data/test/dummy/config/environment.rb +0 -7
- data/test/dummy/config/environments/development.rb +0 -26
- data/test/dummy/config/environments/production.rb +0 -52
- data/test/dummy/config/environments/test.rb +0 -35
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -9
- data/test/dummy/config/initializers/inflections.rb +0 -12
- data/test/dummy/config/initializers/mime_types.rb +0 -7
- data/test/dummy/config/initializers/secret_token.rb +0 -9
- data/test/dummy/config/initializers/session_store.rb +0 -10
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -61
- data/test/dummy/config.ru +0 -6
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130423140255_create_parents.rb +0 -7
- data/test/dummy/db/migrate/20130423140307_create_children.rb +0 -10
- data/test/dummy/db/schema.rb +0 -26
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -8
- data/test/dummy/log/test.log +0 -2047
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -26
- data/test/dummy/public/javascripts/application.js +0 -2
- data/test/dummy/public/javascripts/controls.js +0 -965
- data/test/dummy/public/javascripts/dragdrop.js +0 -974
- data/test/dummy/public/javascripts/effects.js +0 -1123
- data/test/dummy/public/javascripts/prototype.js +0 -6001
- data/test/dummy/public/javascripts/rails.js +0 -202
- data/test/dummy/script/rails +0 -8
- data/test/dynamic_fields_for_helper_test.rb +0 -9
- data/test/link_to_add_fields_test.rb +0 -36
- data/test/link_to_delete_fields_test.rb +0 -42
- data/test/test_helper.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd2e8387b7e122c29371ea76f22af9e30336790336aa1f7a9ed2ec6f4824152
|
4
|
+
data.tar.gz: 7a2fa3c5abac57789c139b0ef830310568c11c3cd21f38b3cfc4be8d13fa96d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0aa78afe2c8bfa0bd636ce966a2ab4eb7287ca7276b72c394fb8fee6c3a3f7f757e57fe53b91b2fe96c7602e0e3a4e74ca21eaf17204e7918597b273da047a3
|
7
|
+
data.tar.gz: 0f6ab301048a7ebc0ae0dece464b7e5d395c8aebf5d4e44073dc02d8dfa978147826403681dabf34301d582eb9b8aac3ac552baa6749210c325118b8ad7e814f
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# DynamicFieldsForRails
|
2
|
-
[![Build Status](https://travis-ci.org/mortik/dynamic_fields_for_rails.png?branch=master)](https://travis-ci.org/mortik/dynamic_fields_for_rails)
|
3
2
|
[![Gem Version](https://badge.fury.io/rb/dynamic_fields_for_rails.png)](http://badge.fury.io/rb/dynamic_fields_for_rails)
|
4
3
|
[![Dependency Status](https://gemnasium.com/mortik/dynamic_fields_for_rails.png)](https://gemnasium.com/mortik/dynamic_fields_for_rails)
|
5
4
|
|
metadata
CHANGED
@@ -1,95 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_fields_for_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Klitzke
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.3'
|
20
|
-
- - "~>"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '1.3'
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.3'
|
30
|
-
- - "~>"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '1.3'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: mocha
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1'
|
40
|
-
- - "~>"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '1'
|
43
|
-
type: :development
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ">"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1'
|
50
|
-
- - "~>"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '1'
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: rake
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - ">"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '12'
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '12'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '12'
|
70
|
-
- - "~>"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '12'
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: sqlite3
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - ">"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '1'
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1'
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1'
|
90
|
-
- - "~>"
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: '1'
|
93
13
|
- !ruby/object:Gem::Dependency
|
94
14
|
name: rails
|
95
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +19,7 @@ dependencies:
|
|
99
19
|
version: 3.0.0
|
100
20
|
- - "<"
|
101
21
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
22
|
+
version: 8.0.0
|
103
23
|
type: :runtime
|
104
24
|
prerelease: false
|
105
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,7 +29,7 @@ dependencies:
|
|
109
29
|
version: 3.0.0
|
110
30
|
- - "<"
|
111
31
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
32
|
+
version: 8.0.0
|
113
33
|
description: Dynamic fields helper for Rails.
|
114
34
|
email:
|
115
35
|
- m.klitzke@gmail.com
|
@@ -117,68 +37,18 @@ executables: []
|
|
117
37
|
extensions: []
|
118
38
|
extra_rdoc_files: []
|
119
39
|
files:
|
120
|
-
- ".gitignore"
|
121
|
-
- ".rubocop.yml"
|
122
|
-
- ".ruby-version"
|
123
|
-
- Gemfile
|
124
40
|
- LICENSE.txt
|
125
41
|
- README.md
|
126
42
|
- Rakefile
|
127
43
|
- app/assets/javascripts/dynamic_fields_for.coffee
|
128
44
|
- app/helpers/dynamic_fields_for_helper.rb
|
129
|
-
- dynamic_fields_for_rails.gemspec
|
130
45
|
- lib/dynamic_fields_for_rails.rb
|
131
46
|
- lib/dynamic_fields_for_rails/version.rb
|
132
|
-
- test/config/active_record.rb
|
133
|
-
- test/dummy/Rakefile
|
134
|
-
- test/dummy/app/controllers/application_controller.rb
|
135
|
-
- test/dummy/app/helpers/application_helper.rb
|
136
|
-
- test/dummy/app/models/application_record.rb
|
137
|
-
- test/dummy/app/models/child.rb
|
138
|
-
- test/dummy/app/models/parent.rb
|
139
|
-
- test/dummy/app/views/layouts/application.html.erb
|
140
|
-
- test/dummy/app/views/parents/form.html.erb
|
141
|
-
- test/dummy/config.ru
|
142
|
-
- test/dummy/config/application.rb
|
143
|
-
- test/dummy/config/boot.rb
|
144
|
-
- test/dummy/config/database.yml
|
145
|
-
- test/dummy/config/environment.rb
|
146
|
-
- test/dummy/config/environments/development.rb
|
147
|
-
- test/dummy/config/environments/production.rb
|
148
|
-
- test/dummy/config/environments/test.rb
|
149
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
150
|
-
- test/dummy/config/initializers/inflections.rb
|
151
|
-
- test/dummy/config/initializers/mime_types.rb
|
152
|
-
- test/dummy/config/initializers/secret_token.rb
|
153
|
-
- test/dummy/config/initializers/session_store.rb
|
154
|
-
- test/dummy/config/locales/en.yml
|
155
|
-
- test/dummy/config/routes.rb
|
156
|
-
- test/dummy/db/development.sqlite3
|
157
|
-
- test/dummy/db/migrate/20130423140255_create_parents.rb
|
158
|
-
- test/dummy/db/migrate/20130423140307_create_children.rb
|
159
|
-
- test/dummy/db/schema.rb
|
160
|
-
- test/dummy/db/test.sqlite3
|
161
|
-
- test/dummy/log/development.log
|
162
|
-
- test/dummy/log/test.log
|
163
|
-
- test/dummy/public/404.html
|
164
|
-
- test/dummy/public/422.html
|
165
|
-
- test/dummy/public/500.html
|
166
|
-
- test/dummy/public/javascripts/application.js
|
167
|
-
- test/dummy/public/javascripts/controls.js
|
168
|
-
- test/dummy/public/javascripts/dragdrop.js
|
169
|
-
- test/dummy/public/javascripts/effects.js
|
170
|
-
- test/dummy/public/javascripts/prototype.js
|
171
|
-
- test/dummy/public/javascripts/rails.js
|
172
|
-
- test/dummy/script/rails
|
173
|
-
- test/dynamic_fields_for_helper_test.rb
|
174
|
-
- test/link_to_add_fields_test.rb
|
175
|
-
- test/link_to_delete_fields_test.rb
|
176
|
-
- test/test_helper.rb
|
177
47
|
homepage: https://github.com/mortik/dynamic_fields_for_rails
|
178
48
|
licenses:
|
179
49
|
- MIT
|
180
50
|
metadata: {}
|
181
|
-
post_install_message:
|
51
|
+
post_install_message:
|
182
52
|
rdoc_options: []
|
183
53
|
require_paths:
|
184
54
|
- lib
|
@@ -193,53 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
63
|
- !ruby/object:Gem::Version
|
194
64
|
version: '0'
|
195
65
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
197
|
-
signing_key:
|
66
|
+
rubygems_version: 3.2.15
|
67
|
+
signing_key:
|
198
68
|
specification_version: 4
|
199
69
|
summary: Helper for nested forms with dynamic fields.
|
200
|
-
test_files:
|
201
|
-
- test/config/active_record.rb
|
202
|
-
- test/dummy/Rakefile
|
203
|
-
- test/dummy/app/controllers/application_controller.rb
|
204
|
-
- test/dummy/app/helpers/application_helper.rb
|
205
|
-
- test/dummy/app/models/application_record.rb
|
206
|
-
- test/dummy/app/models/child.rb
|
207
|
-
- test/dummy/app/models/parent.rb
|
208
|
-
- test/dummy/app/views/layouts/application.html.erb
|
209
|
-
- test/dummy/app/views/parents/form.html.erb
|
210
|
-
- test/dummy/config.ru
|
211
|
-
- test/dummy/config/application.rb
|
212
|
-
- test/dummy/config/boot.rb
|
213
|
-
- test/dummy/config/database.yml
|
214
|
-
- test/dummy/config/environment.rb
|
215
|
-
- test/dummy/config/environments/development.rb
|
216
|
-
- test/dummy/config/environments/production.rb
|
217
|
-
- test/dummy/config/environments/test.rb
|
218
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
219
|
-
- test/dummy/config/initializers/inflections.rb
|
220
|
-
- test/dummy/config/initializers/mime_types.rb
|
221
|
-
- test/dummy/config/initializers/secret_token.rb
|
222
|
-
- test/dummy/config/initializers/session_store.rb
|
223
|
-
- test/dummy/config/locales/en.yml
|
224
|
-
- test/dummy/config/routes.rb
|
225
|
-
- test/dummy/db/development.sqlite3
|
226
|
-
- test/dummy/db/migrate/20130423140255_create_parents.rb
|
227
|
-
- test/dummy/db/migrate/20130423140307_create_children.rb
|
228
|
-
- test/dummy/db/schema.rb
|
229
|
-
- test/dummy/db/test.sqlite3
|
230
|
-
- test/dummy/log/development.log
|
231
|
-
- test/dummy/log/test.log
|
232
|
-
- test/dummy/public/404.html
|
233
|
-
- test/dummy/public/422.html
|
234
|
-
- test/dummy/public/500.html
|
235
|
-
- test/dummy/public/javascripts/application.js
|
236
|
-
- test/dummy/public/javascripts/controls.js
|
237
|
-
- test/dummy/public/javascripts/dragdrop.js
|
238
|
-
- test/dummy/public/javascripts/effects.js
|
239
|
-
- test/dummy/public/javascripts/prototype.js
|
240
|
-
- test/dummy/public/javascripts/rails.js
|
241
|
-
- test/dummy/script/rails
|
242
|
-
- test/dynamic_fields_for_helper_test.rb
|
243
|
-
- test/link_to_add_fields_test.rb
|
244
|
-
- test/link_to_delete_fields_test.rb
|
245
|
-
- test/test_helper.rb
|
70
|
+
test_files: []
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
|
2
|
-
AllCops:
|
3
|
-
Exclude:
|
4
|
-
- 'node_modules/**/*'
|
5
|
-
- 'db/**/*'
|
6
|
-
- 'tmp/**/*'
|
7
|
-
- 'vendor/**/*'
|
8
|
-
- 'bin/**/*'
|
9
|
-
- 'log/**/*'
|
10
|
-
- 'Brewfile'
|
11
|
-
- 'Rakefile'
|
12
|
-
|
13
|
-
Rails:
|
14
|
-
Enabled: true
|
15
|
-
|
16
|
-
Style/Documentation:
|
17
|
-
Enabled: false # for now
|
18
|
-
|
19
|
-
Style/Lambda:
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
Style/RaiseArgs:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
Naming/FileName:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
# User.all.map do |user|
|
29
|
-
# [user.name, user.children.map(&:names)]
|
30
|
-
# end.flatten.map do |name|
|
31
|
-
# name.capitalize
|
32
|
-
# end.join(", ")
|
33
|
-
Style/MultilineBlockChain:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
# [
|
37
|
-
# "foo",
|
38
|
-
# "bar",
|
39
|
-
# ]
|
40
|
-
Style/TrailingCommaInArrayLiteral:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Style/TrailingCommaInHashLiteral:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Layout/RescueEnsureAlignment:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Style/AccessModifierDeclarations:
|
50
|
-
EnforcedStyle: inline
|
51
|
-
|
52
|
-
Metrics/LineLength:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Metrics/ClassLength:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
Metrics/MethodLength:
|
59
|
-
Max: 40
|
60
|
-
|
61
|
-
Metrics/BlockLength:
|
62
|
-
Enabled: false
|
63
|
-
|
64
|
-
Metrics/AbcSize:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Metrics/PerceivedComplexity:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Style/ParallelAssignment:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Metrics/CyclomaticComplexity:
|
74
|
-
Max: 10
|
75
|
-
|
76
|
-
# `fail` is seldom/never seen in Ruby code.
|
77
|
-
# https://github.com/bbatsov/ruby-style-guide/issues/233
|
78
|
-
Style/SignalException:
|
79
|
-
EnforcedStyle: only_raise
|
80
|
-
|
81
|
-
# Would complain about `new_record?` otherwise
|
82
|
-
Style/TrivialAccessors:
|
83
|
-
ExactNameMatch: true
|
84
|
-
|
85
|
-
Rails/Delegate:
|
86
|
-
Exclude:
|
87
|
-
- lib/**/*
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.2
|
data/Gemfile
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'dynamic_fields_for_rails/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = 'dynamic_fields_for_rails'
|
9
|
-
spec.version = DynamicFieldsForRails::VERSION
|
10
|
-
spec.authors = ['Marten Klitzke']
|
11
|
-
spec.email = ['m.klitzke@gmail.com']
|
12
|
-
spec.description = 'Dynamic fields helper for Rails.'
|
13
|
-
spec.summary = 'Helper for nested forms with dynamic fields.'
|
14
|
-
spec.homepage = 'https://github.com/mortik/dynamic_fields_for_rails'
|
15
|
-
spec.license = 'MIT'
|
16
|
-
|
17
|
-
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
-
spec.require_paths = ['lib']
|
21
|
-
|
22
|
-
spec.add_development_dependency 'bundler', '~> 1.3', '> 1.3'
|
23
|
-
spec.add_development_dependency 'mocha', '~> 1', '> 1'
|
24
|
-
spec.add_development_dependency 'rake', '~> 12', '> 12'
|
25
|
-
spec.add_development_dependency 'sqlite3', '~> 1', '> 1'
|
26
|
-
|
27
|
-
spec.add_dependency 'rails', '>= 3.0.0', '< 7.0.0'
|
28
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# rubocop:disable ClassAndModuleChildren
|
4
|
-
# rubocop:disable Style/ClassVars
|
5
|
-
class ActiveRecord::Base
|
6
|
-
mattr_accessor :shared_connection
|
7
|
-
@@shared_connection = nil
|
8
|
-
|
9
|
-
def self.connection
|
10
|
-
@@shared_connection || retrieve_connection
|
11
|
-
end
|
12
|
-
end
|
13
|
-
# rubocop:enable Style/ClassVars
|
14
|
-
# rubocop:enable ClassAndModuleChildren
|
15
|
-
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
|
data/test/dummy/Rakefile
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
4
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
5
|
-
|
6
|
-
require File.expand_path('config/application', __dir__)
|
7
|
-
require 'rake'
|
8
|
-
|
9
|
-
Dummy::Application.load_tasks
|
@@ -1 +0,0 @@
|
|
1
|
-
form.html.erb
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require File.expand_path('boot', __dir__)
|
4
|
-
|
5
|
-
require 'rails/all'
|
6
|
-
|
7
|
-
Bundler.require
|
8
|
-
require 'dynamic_fields_for_rails'
|
9
|
-
|
10
|
-
module Dummy
|
11
|
-
class Application < Rails::Application
|
12
|
-
# Settings in config/environments/* take precedence over those specified here.
|
13
|
-
# Application configuration should go into files in config/initializers
|
14
|
-
# -- all .rb files in that directory are automatically loaded.
|
15
|
-
|
16
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
17
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
18
|
-
|
19
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
20
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
21
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
22
|
-
|
23
|
-
# Activate observers that should always be running.
|
24
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
25
|
-
|
26
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
27
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
28
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
29
|
-
|
30
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
31
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
32
|
-
# config.i18n.default_locale = :de
|
33
|
-
|
34
|
-
# JavaScript files you want as :defaults (application.js is always included).
|
35
|
-
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
|
36
|
-
|
37
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
38
|
-
config.encoding = 'utf-8'
|
39
|
-
|
40
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
41
|
-
config.filter_parameters += [:password]
|
42
|
-
|
43
|
-
config.active_record.sqlite3.represent_boolean_as_integer = true
|
44
|
-
end
|
45
|
-
end
|
data/test/dummy/config/boot.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
gemfile = File.expand_path('../../../Gemfile', __dir__)
|
5
|
-
|
6
|
-
if File.exist?(gemfile)
|
7
|
-
ENV['BUNDLE_GEMFILE'] = gemfile
|
8
|
-
require 'bundler'
|
9
|
-
Bundler.setup
|
10
|
-
end
|
11
|
-
|
12
|
-
$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
development:
|
4
|
-
adapter: sqlite3
|
5
|
-
database: db/development.sqlite3
|
6
|
-
pool: 5
|
7
|
-
timeout: 5000
|
8
|
-
|
9
|
-
# Warning: The database defined as "test" will be erased and
|
10
|
-
# re-generated from your development database when you run "rake".
|
11
|
-
# Do not set this db to the same as development or production.
|
12
|
-
test:
|
13
|
-
adapter: sqlite3
|
14
|
-
database: db/test.sqlite3
|
15
|
-
pool: 5
|
16
|
-
timeout: 5000
|
17
|
-
|
18
|
-
production:
|
19
|
-
adapter: sqlite3
|
20
|
-
database: db/production.sqlite3
|
21
|
-
pool: 5
|
22
|
-
timeout: 5000
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Dummy::Application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb
|
5
|
-
|
6
|
-
# In the development environment your application's code is reloaded on
|
7
|
-
# every request. This slows down response time but is perfect for development
|
8
|
-
# since you don't have to restart the webserver when you make code changes.
|
9
|
-
config.cache_classes = false
|
10
|
-
|
11
|
-
config.eager_load = false
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_view.debug_rjs = true
|
16
|
-
config.action_controller.perform_caching = false
|
17
|
-
|
18
|
-
# Don't care if the mailer can't send
|
19
|
-
config.action_mailer.raise_delivery_errors = false
|
20
|
-
|
21
|
-
# Print deprecation notices to the Rails logger
|
22
|
-
config.active_support.deprecation = :log
|
23
|
-
|
24
|
-
# Only use best-standards-support built into browsers
|
25
|
-
config.action_dispatch.best_standards_support = :builtin
|
26
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Dummy::Application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb
|
5
|
-
|
6
|
-
# The production environment is meant for finished, "live" apps.
|
7
|
-
# Code is not reloaded between requests
|
8
|
-
config.cache_classes = true
|
9
|
-
config.eager_load = true
|
10
|
-
|
11
|
-
# Full error reports are disabled and caching is turned on
|
12
|
-
config.consider_all_requests_local = false
|
13
|
-
config.action_controller.perform_caching = true
|
14
|
-
|
15
|
-
# Specifies the header that your server uses for sending files
|
16
|
-
config.action_dispatch.x_sendfile_header = 'X-Sendfile'
|
17
|
-
|
18
|
-
# For nginx:
|
19
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
20
|
-
|
21
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
22
|
-
# just comment this out and Rails will serve the files
|
23
|
-
|
24
|
-
# See everything in the log (default is :info)
|
25
|
-
# config.log_level = :debug
|
26
|
-
|
27
|
-
# Use a different logger for distributed setups
|
28
|
-
# config.logger = SyslogLogger.new
|
29
|
-
|
30
|
-
# Use a different cache store in production
|
31
|
-
# config.cache_store = :mem_cache_store
|
32
|
-
|
33
|
-
# Disable Rails's static asset server
|
34
|
-
# In production, Apache or nginx will already do this
|
35
|
-
config.serve_static_assets = false
|
36
|
-
|
37
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
38
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
39
|
-
|
40
|
-
# Disable delivery errors, bad email addresses will be ignored
|
41
|
-
# config.action_mailer.raise_delivery_errors = false
|
42
|
-
|
43
|
-
# Enable threaded mode
|
44
|
-
# config.threadsafe!
|
45
|
-
|
46
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
47
|
-
# the I18n.default_locale when a translation can not be found)
|
48
|
-
config.i18n.fallbacks = true
|
49
|
-
|
50
|
-
# Send deprecation notices to registered listeners
|
51
|
-
config.active_support.deprecation = :notify
|
52
|
-
end
|