characterize 0.0.2 → 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/LICENSE.txt +1 -1
- data/README.md +93 -1
- data/Rakefile +10 -9
- data/lib/characterize/collection.rb +65 -0
- data/lib/characterize/controller.rb +101 -46
- data/lib/characterize/feature_controls.rb +56 -34
- data/lib/characterize/feature_set.rb +19 -0
- data/lib/characterize/object_set.rb +56 -0
- data/lib/characterize/railtie.rb +5 -7
- data/lib/characterize/relation_collection.rb +31 -0
- data/lib/characterize/version.rb +1 -1
- data/lib/characterize/view_forwards.rb +15 -6
- data/lib/characterize.rb +44 -8
- data/lib/generators/characterize/install/install_generator.rb +16 -0
- data/lib/generators/characterize/templates/initializer.rb +9 -0
- metadata +26 -125
- data/.gitignore +0 -18
- data/.ruby-version +0 -1
- data/Gemfile +0 -10
- data/characterize.gemspec +0 -25
- data/test/characterize_test.rb +0 -8
- data/test/internal/README.rdoc +0 -28
- data/test/internal/Rakefile +0 -6
- data/test/internal/app/assets/images/.keep +0 -0
- data/test/internal/app/assets/javascripts/application.js +0 -13
- data/test/internal/app/assets/stylesheets/application.css +0 -15
- data/test/internal/app/characters/special_character.rb +0 -5
- data/test/internal/app/characters/user_character.rb +0 -2
- data/test/internal/app/controllers/application_controller.rb +0 -5
- data/test/internal/app/controllers/concerns/.keep +0 -0
- data/test/internal/app/controllers/users_controller.rb +0 -6
- data/test/internal/app/helpers/application_helper.rb +0 -2
- data/test/internal/app/mailers/.keep +0 -0
- data/test/internal/app/models/.keep +0 -0
- data/test/internal/app/models/concerns/.keep +0 -0
- data/test/internal/app/models/user.rb +0 -2
- data/test/internal/app/views/layouts/application.html.erb +0 -13
- data/test/internal/app/views/users/show.html.erb +0 -2
- data/test/internal/bin/bundle +0 -3
- data/test/internal/bin/rails +0 -4
- data/test/internal/bin/rake +0 -4
- data/test/internal/config/application.rb +0 -29
- data/test/internal/config/boot.rb +0 -5
- data/test/internal/config/database.yml +0 -25
- data/test/internal/config/environment.rb +0 -5
- data/test/internal/config/environments/development.rb +0 -37
- data/test/internal/config/environments/production.rb +0 -83
- data/test/internal/config/environments/test.rb +0 -39
- data/test/internal/config/initializers/backtrace_silencers.rb +0 -7
- data/test/internal/config/initializers/cookies_serializer.rb +0 -3
- data/test/internal/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/internal/config/initializers/inflections.rb +0 -16
- data/test/internal/config/initializers/mime_types.rb +0 -4
- data/test/internal/config/initializers/session_store.rb +0 -3
- data/test/internal/config/initializers/wrap_parameters.rb +0 -14
- data/test/internal/config/locales/en.yml +0 -23
- data/test/internal/config/routes.rb +0 -3
- data/test/internal/config/secrets.yml +0 -22
- data/test/internal/config.ru +0 -4
- data/test/internal/db/.keep +0 -0
- data/test/internal/db/schema.rb +0 -7
- data/test/internal/db/seeds.rb +0 -1
- data/test/internal/lib/assets/.keep +0 -0
- data/test/internal/log/.gitignore +0 -1
- data/test/internal/log/.keep +0 -0
- data/test/internal/public/404.html +0 -67
- data/test/internal/public/422.html +0 -67
- data/test/internal/public/500.html +0 -66
- data/test/internal/public/favicon.ico +0 -0
- data/test/test_helper.rb +0 -15
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "forwardable"
|
|
2
2
|
module Characterize
|
|
3
3
|
module ViewForwards
|
|
4
4
|
extend Forwardable
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
|
|
6
|
+
# Find all view helper modules
|
|
7
|
+
action_view_helpers = ActionView::Helpers.constants.map { |name|
|
|
8
|
+
ActionView::Helpers.const_get(name)
|
|
9
|
+
}.select { |const|
|
|
10
|
+
const.is_a?(Module)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
# Forward view helper module methods to the view object
|
|
14
|
+
delegate [*action_view_helpers.map(&:instance_methods).flatten.uniq] => :__view__
|
|
15
|
+
|
|
16
|
+
# Forward URL helper module methods to the view object
|
|
17
|
+
delegate [*Rails.application.routes.url_helpers.instance_methods] => :__view__
|
|
9
18
|
end
|
|
10
|
-
end
|
|
19
|
+
end
|
data/lib/characterize.rb
CHANGED
|
@@ -1,22 +1,58 @@
|
|
|
1
1
|
require "characterize/version"
|
|
2
2
|
require "characterize/controller"
|
|
3
|
+
require "characterize/feature_controls"
|
|
3
4
|
require "casting"
|
|
4
|
-
require
|
|
5
|
+
require "characterize/collection"
|
|
6
|
+
require "characterize/railtie" if defined?(::Rails)
|
|
5
7
|
|
|
6
8
|
module Characterize
|
|
7
9
|
def self.included(klass)
|
|
8
10
|
klass.class_eval {
|
|
9
11
|
include Casting::Client
|
|
10
12
|
delegate_missing_methods
|
|
13
|
+
|
|
14
|
+
# Rails 8 defines Object#with for temporary attribute assignment.
|
|
15
|
+
# Route to cast feature controls when present.
|
|
16
|
+
def with(*args, **kwargs, &block)
|
|
17
|
+
if (attendant = method_delegate(:with))
|
|
18
|
+
cast(:with, attendant, *args, **kwargs, &block)
|
|
19
|
+
else
|
|
20
|
+
super
|
|
21
|
+
end
|
|
22
|
+
end
|
|
11
23
|
}
|
|
12
24
|
end
|
|
13
|
-
|
|
14
|
-
def
|
|
15
|
-
@
|
|
25
|
+
|
|
26
|
+
def __view__
|
|
27
|
+
@characterize_view
|
|
16
28
|
end
|
|
17
|
-
|
|
18
|
-
def
|
|
19
|
-
@
|
|
29
|
+
|
|
30
|
+
def __set_characterize_view__(obj)
|
|
31
|
+
@characterize_view = obj
|
|
20
32
|
self
|
|
21
33
|
end
|
|
22
|
-
|
|
34
|
+
|
|
35
|
+
def self.module_suffix
|
|
36
|
+
@characterize_suffix ||= "Character"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.module_suffix=(val)
|
|
40
|
+
@characterize_suffix = val
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.standard_features
|
|
44
|
+
@standard_features ||= builtin_standard_features.dup
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.standard_features=(mods_array)
|
|
48
|
+
@standard_features = mods_array
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def self.builtin_standard_features
|
|
52
|
+
[::Characterize::FeatureControls].freeze
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def self.register_collection(klass, type)
|
|
56
|
+
Collection.register(klass, type)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require "rails/generators"
|
|
2
|
+
require "rails/generators/base"
|
|
3
|
+
|
|
4
|
+
module Characterize
|
|
5
|
+
module Generators
|
|
6
|
+
class InstallGenerator < Rails::Generators::Base
|
|
7
|
+
source_root File.expand_path("../../templates", __FILE__)
|
|
8
|
+
|
|
9
|
+
desc "Creates a Characterize initializer for your application."
|
|
10
|
+
|
|
11
|
+
def copy_initializer
|
|
12
|
+
template "initializer.rb", "config/initializers/characterize.rb"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require "characterize"
|
|
2
|
+
|
|
3
|
+
# This will take User and load a UserCharacter module by default.
|
|
4
|
+
# Set your module suffix name to some alternative if you wish:
|
|
5
|
+
# Characterize.module_suffix = "Character"
|
|
6
|
+
|
|
7
|
+
# This will set the standard features for all characterize calls
|
|
8
|
+
# By default it is set to Characterize.builtin_standard_features
|
|
9
|
+
# Characterize.standard_features = [MyApplicationCharacter]
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: characterize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- Jim Gay
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: casting
|
|
@@ -16,36 +15,36 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
18
|
+
version: 1.0.2
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
25
|
+
version: 1.0.2
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: rails
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1
|
|
34
|
-
type: :
|
|
32
|
+
version: '6.1'
|
|
33
|
+
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1
|
|
39
|
+
version: '6.1'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: direction
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
46
|
version: '0'
|
|
48
|
-
type: :
|
|
47
|
+
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
@@ -59,74 +58,28 @@ executables: []
|
|
|
59
58
|
extensions: []
|
|
60
59
|
extra_rdoc_files: []
|
|
61
60
|
files:
|
|
62
|
-
- ".gitignore"
|
|
63
|
-
- ".ruby-version"
|
|
64
|
-
- Gemfile
|
|
65
61
|
- LICENSE.txt
|
|
66
62
|
- README.md
|
|
67
63
|
- Rakefile
|
|
68
|
-
- characterize.gemspec
|
|
69
64
|
- lib/characterize.rb
|
|
65
|
+
- lib/characterize/collection.rb
|
|
70
66
|
- lib/characterize/controller.rb
|
|
71
67
|
- lib/characterize/feature_controls.rb
|
|
68
|
+
- lib/characterize/feature_set.rb
|
|
69
|
+
- lib/characterize/object_set.rb
|
|
72
70
|
- lib/characterize/railtie.rb
|
|
71
|
+
- lib/characterize/relation_collection.rb
|
|
73
72
|
- lib/characterize/version.rb
|
|
74
73
|
- lib/characterize/view_forwards.rb
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
- test/internal/app/assets/images/.keep
|
|
79
|
-
- test/internal/app/assets/javascripts/application.js
|
|
80
|
-
- test/internal/app/assets/stylesheets/application.css
|
|
81
|
-
- test/internal/app/characters/special_character.rb
|
|
82
|
-
- test/internal/app/characters/user_character.rb
|
|
83
|
-
- test/internal/app/controllers/application_controller.rb
|
|
84
|
-
- test/internal/app/controllers/concerns/.keep
|
|
85
|
-
- test/internal/app/controllers/users_controller.rb
|
|
86
|
-
- test/internal/app/helpers/application_helper.rb
|
|
87
|
-
- test/internal/app/mailers/.keep
|
|
88
|
-
- test/internal/app/models/.keep
|
|
89
|
-
- test/internal/app/models/concerns/.keep
|
|
90
|
-
- test/internal/app/models/user.rb
|
|
91
|
-
- test/internal/app/views/layouts/application.html.erb
|
|
92
|
-
- test/internal/app/views/users/show.html.erb
|
|
93
|
-
- test/internal/bin/bundle
|
|
94
|
-
- test/internal/bin/rails
|
|
95
|
-
- test/internal/bin/rake
|
|
96
|
-
- test/internal/config.ru
|
|
97
|
-
- test/internal/config/application.rb
|
|
98
|
-
- test/internal/config/boot.rb
|
|
99
|
-
- test/internal/config/database.yml
|
|
100
|
-
- test/internal/config/environment.rb
|
|
101
|
-
- test/internal/config/environments/development.rb
|
|
102
|
-
- test/internal/config/environments/production.rb
|
|
103
|
-
- test/internal/config/environments/test.rb
|
|
104
|
-
- test/internal/config/initializers/backtrace_silencers.rb
|
|
105
|
-
- test/internal/config/initializers/cookies_serializer.rb
|
|
106
|
-
- test/internal/config/initializers/filter_parameter_logging.rb
|
|
107
|
-
- test/internal/config/initializers/inflections.rb
|
|
108
|
-
- test/internal/config/initializers/mime_types.rb
|
|
109
|
-
- test/internal/config/initializers/session_store.rb
|
|
110
|
-
- test/internal/config/initializers/wrap_parameters.rb
|
|
111
|
-
- test/internal/config/locales/en.yml
|
|
112
|
-
- test/internal/config/routes.rb
|
|
113
|
-
- test/internal/config/secrets.yml
|
|
114
|
-
- test/internal/db/.keep
|
|
115
|
-
- test/internal/db/schema.rb
|
|
116
|
-
- test/internal/db/seeds.rb
|
|
117
|
-
- test/internal/lib/assets/.keep
|
|
118
|
-
- test/internal/log/.gitignore
|
|
119
|
-
- test/internal/log/.keep
|
|
120
|
-
- test/internal/public/404.html
|
|
121
|
-
- test/internal/public/422.html
|
|
122
|
-
- test/internal/public/500.html
|
|
123
|
-
- test/internal/public/favicon.ico
|
|
124
|
-
- test/test_helper.rb
|
|
125
|
-
homepage: ''
|
|
74
|
+
- lib/generators/characterize/install/install_generator.rb
|
|
75
|
+
- lib/generators/characterize/templates/initializer.rb
|
|
76
|
+
homepage: https://github.com/saturnflyer/characterize
|
|
126
77
|
licenses:
|
|
127
78
|
- MIT
|
|
128
|
-
metadata:
|
|
129
|
-
|
|
79
|
+
metadata:
|
|
80
|
+
homepage_uri: https://github.com/saturnflyer/characterize
|
|
81
|
+
source_code_uri: https://github.com/saturnflyer/characterize
|
|
82
|
+
changelog_uri: https://github.com/saturnflyer/characterize/blob/master/CHANGELOG.md
|
|
130
83
|
rdoc_options: []
|
|
131
84
|
require_paths:
|
|
132
85
|
- lib
|
|
@@ -141,59 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
94
|
- !ruby/object:Gem::Version
|
|
142
95
|
version: '0'
|
|
143
96
|
requirements: []
|
|
144
|
-
|
|
145
|
-
rubygems_version: 2.2.0
|
|
146
|
-
signing_key:
|
|
97
|
+
rubygems_version: 4.0.10
|
|
147
98
|
specification_version: 4
|
|
148
99
|
summary: Use plain modules like presenters
|
|
149
|
-
test_files:
|
|
150
|
-
- test/characterize_test.rb
|
|
151
|
-
- test/internal/README.rdoc
|
|
152
|
-
- test/internal/Rakefile
|
|
153
|
-
- test/internal/app/assets/images/.keep
|
|
154
|
-
- test/internal/app/assets/javascripts/application.js
|
|
155
|
-
- test/internal/app/assets/stylesheets/application.css
|
|
156
|
-
- test/internal/app/characters/special_character.rb
|
|
157
|
-
- test/internal/app/characters/user_character.rb
|
|
158
|
-
- test/internal/app/controllers/application_controller.rb
|
|
159
|
-
- test/internal/app/controllers/concerns/.keep
|
|
160
|
-
- test/internal/app/controllers/users_controller.rb
|
|
161
|
-
- test/internal/app/helpers/application_helper.rb
|
|
162
|
-
- test/internal/app/mailers/.keep
|
|
163
|
-
- test/internal/app/models/.keep
|
|
164
|
-
- test/internal/app/models/concerns/.keep
|
|
165
|
-
- test/internal/app/models/user.rb
|
|
166
|
-
- test/internal/app/views/layouts/application.html.erb
|
|
167
|
-
- test/internal/app/views/users/show.html.erb
|
|
168
|
-
- test/internal/bin/bundle
|
|
169
|
-
- test/internal/bin/rails
|
|
170
|
-
- test/internal/bin/rake
|
|
171
|
-
- test/internal/config.ru
|
|
172
|
-
- test/internal/config/application.rb
|
|
173
|
-
- test/internal/config/boot.rb
|
|
174
|
-
- test/internal/config/database.yml
|
|
175
|
-
- test/internal/config/environment.rb
|
|
176
|
-
- test/internal/config/environments/development.rb
|
|
177
|
-
- test/internal/config/environments/production.rb
|
|
178
|
-
- test/internal/config/environments/test.rb
|
|
179
|
-
- test/internal/config/initializers/backtrace_silencers.rb
|
|
180
|
-
- test/internal/config/initializers/cookies_serializer.rb
|
|
181
|
-
- test/internal/config/initializers/filter_parameter_logging.rb
|
|
182
|
-
- test/internal/config/initializers/inflections.rb
|
|
183
|
-
- test/internal/config/initializers/mime_types.rb
|
|
184
|
-
- test/internal/config/initializers/session_store.rb
|
|
185
|
-
- test/internal/config/initializers/wrap_parameters.rb
|
|
186
|
-
- test/internal/config/locales/en.yml
|
|
187
|
-
- test/internal/config/routes.rb
|
|
188
|
-
- test/internal/config/secrets.yml
|
|
189
|
-
- test/internal/db/.keep
|
|
190
|
-
- test/internal/db/schema.rb
|
|
191
|
-
- test/internal/db/seeds.rb
|
|
192
|
-
- test/internal/lib/assets/.keep
|
|
193
|
-
- test/internal/log/.gitignore
|
|
194
|
-
- test/internal/log/.keep
|
|
195
|
-
- test/internal/public/404.html
|
|
196
|
-
- test/internal/public/422.html
|
|
197
|
-
- test/internal/public/500.html
|
|
198
|
-
- test/internal/public/favicon.ico
|
|
199
|
-
- test/test_helper.rb
|
|
100
|
+
test_files: []
|
data/.gitignore
DELETED
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
data/Gemfile
DELETED
data/characterize.gemspec
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require 'characterize/version'
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "characterize"
|
|
8
|
-
spec.version = Characterize::VERSION
|
|
9
|
-
spec.authors = ["'Jim Gay'"]
|
|
10
|
-
spec.email = ["jim@saturnflyer.com"]
|
|
11
|
-
spec.description = %q{Use plain modules like presenters}
|
|
12
|
-
spec.summary = %q{Use plain modules like presenters}
|
|
13
|
-
spec.homepage = ""
|
|
14
|
-
spec.license = "MIT"
|
|
15
|
-
|
|
16
|
-
spec.files = `git ls-files`.split($/)
|
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
-
spec.require_paths = ["lib"]
|
|
20
|
-
|
|
21
|
-
spec.add_dependency "casting", "~> 0.6.8"
|
|
22
|
-
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
|
24
|
-
spec.add_development_dependency "rake"
|
|
25
|
-
end
|
data/test/characterize_test.rb
DELETED
data/test/internal/README.rdoc
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
* ...
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/internal/Rakefile
DELETED
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require_tree .
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
-
* file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/test/internal/bin/bundle
DELETED
data/test/internal/bin/rails
DELETED
data/test/internal/bin/rake
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
|
2
|
-
|
|
3
|
-
# Pick the frameworks you want:
|
|
4
|
-
require "active_record/railtie"
|
|
5
|
-
require "action_controller/railtie"
|
|
6
|
-
require "action_mailer/railtie"
|
|
7
|
-
require "action_view/railtie"
|
|
8
|
-
# require "sprockets/railtie"
|
|
9
|
-
require "rails/test_unit/railtie"
|
|
10
|
-
|
|
11
|
-
Bundler.require(*Rails.groups)
|
|
12
|
-
require "characterize"
|
|
13
|
-
|
|
14
|
-
module Internal
|
|
15
|
-
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
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
21
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
22
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
|
23
|
-
|
|
24
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
25
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
26
|
-
# config.i18n.default_locale = :de
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# SQLite version 3.x
|
|
2
|
-
# gem install sqlite3
|
|
3
|
-
#
|
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
-
# gem 'sqlite3'
|
|
6
|
-
#
|
|
7
|
-
default: &default
|
|
8
|
-
adapter: sqlite3
|
|
9
|
-
pool: 5
|
|
10
|
-
timeout: 5000
|
|
11
|
-
|
|
12
|
-
development:
|
|
13
|
-
<<: *default
|
|
14
|
-
database: db/development.sqlite3
|
|
15
|
-
|
|
16
|
-
# Warning: The database defined as "test" will be erased and
|
|
17
|
-
# re-generated from your development database when you run "rake".
|
|
18
|
-
# Do not set this db to the same as development or production.
|
|
19
|
-
test:
|
|
20
|
-
<<: *default
|
|
21
|
-
database: db/test.sqlite3
|
|
22
|
-
|
|
23
|
-
production:
|
|
24
|
-
<<: *default
|
|
25
|
-
database: db/production.sqlite3
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Rails.application.configure do
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
|
3
|
-
|
|
4
|
-
# In the development environment your application's code is reloaded on
|
|
5
|
-
# every request. This slows down response time but is perfect for development
|
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
|
7
|
-
config.cache_classes = false
|
|
8
|
-
|
|
9
|
-
# Do not eager load code on boot.
|
|
10
|
-
config.eager_load = false
|
|
11
|
-
|
|
12
|
-
# Show full error reports and disable caching.
|
|
13
|
-
config.consider_all_requests_local = true
|
|
14
|
-
config.action_controller.perform_caching = false
|
|
15
|
-
|
|
16
|
-
# Don't care if the mailer can't send.
|
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
|
18
|
-
|
|
19
|
-
# Print deprecation notices to the Rails logger.
|
|
20
|
-
config.active_support.deprecation = :log
|
|
21
|
-
|
|
22
|
-
# Raise an error on page load if there are pending migrations.
|
|
23
|
-
config.active_record.migration_error = :page_load
|
|
24
|
-
|
|
25
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
|
26
|
-
# This option may cause significant delays in view rendering with a large
|
|
27
|
-
# number of complex assets.
|
|
28
|
-
config.assets.debug = true
|
|
29
|
-
|
|
30
|
-
# Adds additional error checking when serving assets at runtime.
|
|
31
|
-
# Checks for improperly declared sprockets dependencies.
|
|
32
|
-
# Raises helpful error messages.
|
|
33
|
-
config.assets.raise_runtime_errors = true
|
|
34
|
-
|
|
35
|
-
# Raises error for missing translations
|
|
36
|
-
# config.action_view.raise_on_missing_translations = true
|
|
37
|
-
end
|