characterize 0.0.3 → 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.
Files changed (72) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +1 -1
  3. data/README.md +31 -6
  4. data/Rakefile +10 -9
  5. data/lib/characterize/collection.rb +65 -0
  6. data/lib/characterize/controller.rb +102 -41
  7. data/lib/characterize/feature_controls.rb +56 -34
  8. data/lib/characterize/feature_set.rb +19 -0
  9. data/lib/characterize/object_set.rb +56 -0
  10. data/lib/characterize/railtie.rb +5 -7
  11. data/lib/characterize/relation_collection.rb +31 -0
  12. data/lib/characterize/version.rb +1 -1
  13. data/lib/characterize/view_forwards.rb +15 -6
  14. data/lib/characterize.rb +24 -9
  15. data/lib/generators/characterize/install/install_generator.rb +16 -0
  16. data/lib/generators/characterize/templates/initializer.rb +9 -0
  17. metadata +26 -127
  18. data/.gitignore +0 -18
  19. data/.travis.yml +0 -16
  20. data/Gemfile +0 -14
  21. data/characterize.gemspec +0 -25
  22. data/test/characterize_test.rb +0 -14
  23. data/test/internal/README.rdoc +0 -28
  24. data/test/internal/Rakefile +0 -6
  25. data/test/internal/app/assets/images/.keep +0 -0
  26. data/test/internal/app/assets/javascripts/application.js +0 -13
  27. data/test/internal/app/assets/stylesheets/application.css +0 -15
  28. data/test/internal/app/characters/edit_user_character.rb +0 -5
  29. data/test/internal/app/characters/special_character.rb +0 -5
  30. data/test/internal/app/characters/user_character.rb +0 -2
  31. data/test/internal/app/controllers/application_controller.rb +0 -5
  32. data/test/internal/app/controllers/concerns/.keep +0 -0
  33. data/test/internal/app/controllers/users_controller.rb +0 -10
  34. data/test/internal/app/helpers/application_helper.rb +0 -2
  35. data/test/internal/app/mailers/.keep +0 -0
  36. data/test/internal/app/models/.keep +0 -0
  37. data/test/internal/app/models/concerns/.keep +0 -0
  38. data/test/internal/app/models/user.rb +0 -2
  39. data/test/internal/app/views/layouts/application.html.erb +0 -13
  40. data/test/internal/app/views/users/show.html.erb +0 -2
  41. data/test/internal/bin/bundle +0 -3
  42. data/test/internal/bin/rails +0 -4
  43. data/test/internal/bin/rake +0 -4
  44. data/test/internal/config/application.rb +0 -29
  45. data/test/internal/config/boot.rb +0 -5
  46. data/test/internal/config/database.yml +0 -21
  47. data/test/internal/config/environment.rb +0 -5
  48. data/test/internal/config/environments/development.rb +0 -37
  49. data/test/internal/config/environments/production.rb +0 -83
  50. data/test/internal/config/environments/test.rb +0 -39
  51. data/test/internal/config/initializers/backtrace_silencers.rb +0 -7
  52. data/test/internal/config/initializers/cookies_serializer.rb +0 -3
  53. data/test/internal/config/initializers/filter_parameter_logging.rb +0 -4
  54. data/test/internal/config/initializers/inflections.rb +0 -16
  55. data/test/internal/config/initializers/mime_types.rb +0 -4
  56. data/test/internal/config/initializers/session_store.rb +0 -3
  57. data/test/internal/config/initializers/wrap_parameters.rb +0 -14
  58. data/test/internal/config/locales/en.yml +0 -23
  59. data/test/internal/config/routes.rb +0 -3
  60. data/test/internal/config/secrets.yml +0 -22
  61. data/test/internal/config.ru +0 -4
  62. data/test/internal/db/.keep +0 -0
  63. data/test/internal/db/schema.rb +0 -7
  64. data/test/internal/db/seeds.rb +0 -1
  65. data/test/internal/lib/assets/.keep +0 -0
  66. data/test/internal/log/.gitignore +0 -1
  67. data/test/internal/log/.keep +0 -0
  68. data/test/internal/public/404.html +0 -67
  69. data/test/internal/public/422.html +0 -67
  70. data/test/internal/public/500.html +0 -66
  71. data/test/internal/public/favicon.ico +0 -0
  72. data/test/test_helper.rb +0 -25
data/lib/characterize.rb CHANGED
@@ -1,28 +1,39 @@
1
1
  require "characterize/version"
2
2
  require "characterize/controller"
3
- require 'characterize/feature_controls'
3
+ require "characterize/feature_controls"
4
4
  require "casting"
5
- require 'characterize/railtie' if defined?(::Rails)
5
+ require "characterize/collection"
6
+ require "characterize/railtie" if defined?(::Rails)
6
7
 
7
8
  module Characterize
8
9
  def self.included(klass)
9
10
  klass.class_eval {
10
11
  include Casting::Client
11
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
12
23
  }
13
24
  end
14
-
15
- def view
25
+
26
+ def __view__
16
27
  @characterize_view
17
28
  end
18
-
29
+
19
30
  def __set_characterize_view__(obj)
20
31
  @characterize_view = obj
21
32
  self
22
33
  end
23
34
 
24
35
  def self.module_suffix
25
- @characterize_suffix ||= 'Character'
36
+ @characterize_suffix ||= "Character"
26
37
  end
27
38
 
28
39
  def self.module_suffix=(val)
@@ -30,7 +41,7 @@ module Characterize
30
41
  end
31
42
 
32
43
  def self.standard_features
33
- @standard_features ||= builtin_standard_features
44
+ @standard_features ||= builtin_standard_features.dup
34
45
  end
35
46
 
36
47
  def self.standard_features=(mods_array)
@@ -38,6 +49,10 @@ module Characterize
38
49
  end
39
50
 
40
51
  def self.builtin_standard_features
41
- [::Characterize::FeatureControls]
52
+ [::Characterize::FeatureControls].freeze
53
+ end
54
+
55
+ def self.register_collection(klass, type)
56
+ Collection.register(klass, type)
42
57
  end
43
- 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.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - "'Jim Gay'"
8
- autorequire:
7
+ - Jim Gay
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
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.7.1
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.7.1
25
+ version: 1.0.2
27
26
  - !ruby/object:Gem::Dependency
28
- name: bundler
27
+ name: rails
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - "~>"
30
+ - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: '1.3'
34
- type: :development
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.3'
39
+ version: '6.1'
41
40
  - !ruby/object:Gem::Dependency
42
- name: rake
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: :development
47
+ type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
@@ -59,75 +58,28 @@ executables: []
59
58
  extensions: []
60
59
  extra_rdoc_files: []
61
60
  files:
62
- - ".gitignore"
63
- - ".travis.yml"
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
- - test/characterize_test.rb
76
- - test/internal/README.rdoc
77
- - test/internal/Rakefile
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/edit_user_character.rb
82
- - test/internal/app/characters/special_character.rb
83
- - test/internal/app/characters/user_character.rb
84
- - test/internal/app/controllers/application_controller.rb
85
- - test/internal/app/controllers/concerns/.keep
86
- - test/internal/app/controllers/users_controller.rb
87
- - test/internal/app/helpers/application_helper.rb
88
- - test/internal/app/mailers/.keep
89
- - test/internal/app/models/.keep
90
- - test/internal/app/models/concerns/.keep
91
- - test/internal/app/models/user.rb
92
- - test/internal/app/views/layouts/application.html.erb
93
- - test/internal/app/views/users/show.html.erb
94
- - test/internal/bin/bundle
95
- - test/internal/bin/rails
96
- - test/internal/bin/rake
97
- - test/internal/config.ru
98
- - test/internal/config/application.rb
99
- - test/internal/config/boot.rb
100
- - test/internal/config/database.yml
101
- - test/internal/config/environment.rb
102
- - test/internal/config/environments/development.rb
103
- - test/internal/config/environments/production.rb
104
- - test/internal/config/environments/test.rb
105
- - test/internal/config/initializers/backtrace_silencers.rb
106
- - test/internal/config/initializers/cookies_serializer.rb
107
- - test/internal/config/initializers/filter_parameter_logging.rb
108
- - test/internal/config/initializers/inflections.rb
109
- - test/internal/config/initializers/mime_types.rb
110
- - test/internal/config/initializers/session_store.rb
111
- - test/internal/config/initializers/wrap_parameters.rb
112
- - test/internal/config/locales/en.yml
113
- - test/internal/config/routes.rb
114
- - test/internal/config/secrets.yml
115
- - test/internal/db/.keep
116
- - test/internal/db/schema.rb
117
- - test/internal/db/seeds.rb
118
- - test/internal/lib/assets/.keep
119
- - test/internal/log/.gitignore
120
- - test/internal/log/.keep
121
- - test/internal/public/404.html
122
- - test/internal/public/422.html
123
- - test/internal/public/500.html
124
- - test/internal/public/favicon.ico
125
- - test/test_helper.rb
126
- homepage: ''
74
+ - lib/generators/characterize/install/install_generator.rb
75
+ - lib/generators/characterize/templates/initializer.rb
76
+ homepage: https://github.com/saturnflyer/characterize
127
77
  licenses:
128
78
  - MIT
129
- metadata: {}
130
- post_install_message:
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
131
83
  rdoc_options: []
132
84
  require_paths:
133
85
  - lib
@@ -142,60 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
94
  - !ruby/object:Gem::Version
143
95
  version: '0'
144
96
  requirements: []
145
- rubyforge_project:
146
- rubygems_version: 2.4.5
147
- signing_key:
97
+ rubygems_version: 4.0.10
148
98
  specification_version: 4
149
99
  summary: Use plain modules like presenters
150
- test_files:
151
- - test/characterize_test.rb
152
- - test/internal/README.rdoc
153
- - test/internal/Rakefile
154
- - test/internal/app/assets/images/.keep
155
- - test/internal/app/assets/javascripts/application.js
156
- - test/internal/app/assets/stylesheets/application.css
157
- - test/internal/app/characters/edit_user_character.rb
158
- - test/internal/app/characters/special_character.rb
159
- - test/internal/app/characters/user_character.rb
160
- - test/internal/app/controllers/application_controller.rb
161
- - test/internal/app/controllers/concerns/.keep
162
- - test/internal/app/controllers/users_controller.rb
163
- - test/internal/app/helpers/application_helper.rb
164
- - test/internal/app/mailers/.keep
165
- - test/internal/app/models/.keep
166
- - test/internal/app/models/concerns/.keep
167
- - test/internal/app/models/user.rb
168
- - test/internal/app/views/layouts/application.html.erb
169
- - test/internal/app/views/users/show.html.erb
170
- - test/internal/bin/bundle
171
- - test/internal/bin/rails
172
- - test/internal/bin/rake
173
- - test/internal/config.ru
174
- - test/internal/config/application.rb
175
- - test/internal/config/boot.rb
176
- - test/internal/config/database.yml
177
- - test/internal/config/environment.rb
178
- - test/internal/config/environments/development.rb
179
- - test/internal/config/environments/production.rb
180
- - test/internal/config/environments/test.rb
181
- - test/internal/config/initializers/backtrace_silencers.rb
182
- - test/internal/config/initializers/cookies_serializer.rb
183
- - test/internal/config/initializers/filter_parameter_logging.rb
184
- - test/internal/config/initializers/inflections.rb
185
- - test/internal/config/initializers/mime_types.rb
186
- - test/internal/config/initializers/session_store.rb
187
- - test/internal/config/initializers/wrap_parameters.rb
188
- - test/internal/config/locales/en.yml
189
- - test/internal/config/routes.rb
190
- - test/internal/config/secrets.yml
191
- - test/internal/db/.keep
192
- - test/internal/db/schema.rb
193
- - test/internal/db/seeds.rb
194
- - test/internal/lib/assets/.keep
195
- - test/internal/log/.gitignore
196
- - test/internal/log/.keep
197
- - test/internal/public/404.html
198
- - test/internal/public/422.html
199
- - test/internal/public/500.html
200
- - test/internal/public/favicon.ico
201
- - test/test_helper.rb
100
+ test_files: []
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- *.sqlite3
13
- pkg
14
- rdoc
15
- spec/reports
16
- test/tmp
17
- test/version_tmp
18
- tmp
data/.travis.yml DELETED
@@ -1,16 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
6
- - jruby-19mode # JRuby in 1.9 mode
7
- - ruby-head
8
- - jruby-head
9
- - rbx-2
10
- env:
11
- - COVERALLS=true
12
- matrix:
13
- allow_failures:
14
- - rvm: ruby-head
15
- - rvm: jruby-head
16
- - rvm: rbx-2
data/Gemfile DELETED
@@ -1,14 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in characterize.gemspec
4
- gemspec
5
-
6
- group :test do
7
- gem 'activerecord-jdbcsqlite3-adapter', '>= 1.3.0.rc1', platform: :jruby
8
- gem 'sqlite3', platform: :ruby
9
- gem 'rails'
10
- gem 'minitest-spec-rails'
11
- gem 'rubinius-coverage', platform: :rbx
12
- gem 'coveralls', require: false
13
- gem 'simplecov'
14
- end
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.7.1"
22
-
23
- spec.add_development_dependency "bundler", "~> 1.3"
24
- spec.add_development_dependency "rake"
25
- end
@@ -1,14 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe UsersController do
4
- it 'renders views with extra features from default characters' do
5
- get :show, id: '1'
6
- assert_template :show
7
- assert_select 'a', 'm( O.O )m'
8
- end
9
-
10
- it 'renders objects with extra features from specified characters' do
11
- get :edit, id: '1'
12
- assert_equal "Yay! Special title", response.body
13
- end
14
- end
@@ -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>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
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
- */
@@ -1,5 +0,0 @@
1
- module EditUserCharacter
2
- def editing_title
3
- "Yay! Special title"
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module SpecialCharacter
2
- def special_link
3
- view.link_to "m( O.O )m", self
4
- end
5
- end
@@ -1,2 +0,0 @@
1
- module UserCharacter
2
- end
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
File without changes
@@ -1,10 +0,0 @@
1
- class UsersController < ApplicationController
2
- characterize :user, default: [SpecialCharacter],
3
- edit: [EditUserCharacter]
4
-
5
- def show; end
6
- def edit
7
- render :text => user.editing_title
8
- end
9
-
10
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- class User < ActiveRecord::Base
2
- end
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Internal</title>
5
- <%= stylesheet_link_tag 'application', media: 'all' %>
6
- <%= csrf_meta_tags %>
7
- </head>
8
- <body>
9
-
10
- <%= yield %>
11
-
12
- </body>
13
- </html>
@@ -1,2 +0,0 @@
1
- <h1><%= user.name %></h1>
2
- <p>Here's a special link: <%= user.special_link %></p>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -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,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,21 +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
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!