acts_as_citable 4.0.0 → 5.0.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -13
  3. data/lib/acts_as_citable/base.rb +1 -1
  4. data/lib/acts_as_citable/version.rb +1 -1
  5. data/lib/acts_as_citable.rb +2 -2
  6. data/test/dummy/log/test.log +260 -8031
  7. metadata +32 -238
  8. data/test/acts_as_citable_test.rb +0 -14
  9. data/test/dummy/README.rdoc +0 -28
  10. data/test/dummy/Rakefile +0 -6
  11. data/test/dummy/app/assets/javascripts/application.js +0 -13
  12. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  13. data/test/dummy/app/controllers/application_controller.rb +0 -10
  14. data/test/dummy/app/controllers/test_controller.rb +0 -11
  15. data/test/dummy/app/helpers/application_helper.rb +0 -2
  16. data/test/dummy/app/models/inherited_record.rb +0 -3
  17. data/test/dummy/app/models/record.rb +0 -4
  18. data/test/dummy/app/models/record_changed_field.rb +0 -6
  19. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  20. data/test/dummy/bin/bundle +0 -3
  21. data/test/dummy/bin/rails +0 -4
  22. data/test/dummy/bin/rake +0 -4
  23. data/test/dummy/config/application.rb +0 -23
  24. data/test/dummy/config/boot.rb +0 -5
  25. data/test/dummy/config/database.yml +0 -23
  26. data/test/dummy/config/environment.rb +0 -5
  27. data/test/dummy/config/environments/development.rb +0 -37
  28. data/test/dummy/config/environments/production.rb +0 -78
  29. data/test/dummy/config/environments/test.rb +0 -41
  30. data/test/dummy/config/initializers/assets.rb +0 -8
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  32. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  33. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  34. data/test/dummy/config/initializers/inflections.rb +0 -16
  35. data/test/dummy/config/initializers/mime_types.rb +0 -4
  36. data/test/dummy/config/initializers/session_store.rb +0 -3
  37. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  38. data/test/dummy/config/locales/en.yml +0 -23
  39. data/test/dummy/config/locales/responders.en.yml +0 -12
  40. data/test/dummy/config/routes.rb +0 -3
  41. data/test/dummy/config/secrets.yml +0 -22
  42. data/test/dummy/config.ru +0 -4
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/migrate/20130221210429_create_records.rb +0 -10
  45. data/test/dummy/db/migrate/20130221214225_create_record_changed_fields.rb +0 -10
  46. data/test/dummy/db/schema.rb +0 -30
  47. data/test/dummy/db/test.sqlite3 +0 -0
  48. data/test/dummy/lib/application_responder.rb +0 -8
  49. data/test/dummy/log/development.log +0 -32
  50. data/test/dummy/public/404.html +0 -67
  51. data/test/dummy/public/422.html +0 -67
  52. data/test/dummy/public/500.html +0 -66
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/test/fixtures/record_changed_fields.yml +0 -9
  55. data/test/dummy/test/fixtures/records.yml +0 -9
  56. data/test/dummy/test/functional/test_controller_test.rb +0 -22
  57. data/test/dummy/test/unit/helpers/test_helper_test.rb +0 -4
  58. data/test/dummy/test/unit/inherited_record_test.rb +0 -75
  59. data/test/dummy/test/unit/record_changed_field_test.rb +0 -66
  60. data/test/dummy/test/unit/record_test.rb +0 -67
  61. data/test/test_helper.rb +0 -26
metadata CHANGED
@@ -1,175 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_citable
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - hab278
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 4.0.0
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: '5'
23
15
  requirement: !ruby/object:Gem::Requirement
24
16
  requirements:
25
- - - '>='
17
+ - - ">="
26
18
  - !ruby/object:Gem::Version
27
19
  version: 4.0.0
28
- - - <
20
+ - - "<"
29
21
  - !ruby/object:Gem::Version
30
22
  version: '5'
31
- prerelease: false
32
23
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: citero-jruby
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ~>
38
- - !ruby/object:Gem::Version
39
- version: '2.0'
40
- requirement: !ruby/object:Gem::Requirement
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- version: '2.0'
45
24
  prerelease: false
46
- type: :runtime
47
- - !ruby/object:Gem::Dependency
48
- name: require_all
49
25
  version_requirements: !ruby/object:Gem::Requirement
50
26
  requirements:
51
- - - ~>
27
+ - - ">="
52
28
  - !ruby/object:Gem::Version
53
- version: '1.2'
54
- requirement: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ~>
29
+ version: 4.0.0
30
+ - - "<"
57
31
  - !ruby/object:Gem::Version
58
- version: '1.2'
59
- prerelease: false
60
- type: :runtime
32
+ version: '5'
61
33
  - !ruby/object:Gem::Dependency
62
- name: activerecord-jdbcsqlite3-adapter
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - '>='
66
- - !ruby/object:Gem::Version
67
- version: '0'
34
+ name: citero
68
35
  requirement: !ruby/object:Gem::Requirement
69
36
  requirements:
70
- - - '>='
37
+ - - "~>"
71
38
  - !ruby/object:Gem::Version
72
- version: '0'
39
+ version: 1.0.0.alpha
40
+ type: :runtime
73
41
  prerelease: false
74
- type: :development
75
- - !ruby/object:Gem::Dependency
76
- name: nokogiri
77
42
  version_requirements: !ruby/object:Gem::Requirement
78
43
  requirements:
79
- - - '>='
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- requirement: !ruby/object:Gem::Requirement
83
- requirements:
84
- - - '>='
44
+ - - "~>"
85
45
  - !ruby/object:Gem::Version
86
- version: '0'
87
- prerelease: false
88
- type: :development
46
+ version: 1.0.0.alpha
89
47
  - !ruby/object:Gem::Dependency
90
- name: brakeman
91
- version_requirements: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - '>='
94
- - !ruby/object:Gem::Version
95
- version: '0'
48
+ name: sqlite3
96
49
  requirement: !ruby/object:Gem::Requirement
97
50
  requirements:
98
- - - '>='
51
+ - - ">="
99
52
  - !ruby/object:Gem::Version
100
53
  version: '0'
101
- prerelease: false
102
54
  type: :development
103
- - !ruby/object:Gem::Dependency
104
- name: simplecov
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- requirement: !ruby/object:Gem::Requirement
111
- requirements:
112
- - - '>='
113
- - !ruby/object:Gem::Version
114
- version: '0'
115
55
  prerelease: false
116
- type: :development
117
- - !ruby/object:Gem::Dependency
118
- name: simplecov-rcov
119
56
  version_requirements: !ruby/object:Gem::Requirement
120
57
  requirements:
121
- - - '>='
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- requirement: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - '>='
58
+ - - ">="
127
59
  - !ruby/object:Gem::Version
128
60
  version: '0'
129
- prerelease: false
130
- type: :development
131
61
  - !ruby/object:Gem::Dependency
132
- name: test-unit
133
- version_requirements: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - '>='
136
- - !ruby/object:Gem::Version
137
- version: '0'
62
+ name: rspec-rails
138
63
  requirement: !ruby/object:Gem::Requirement
139
64
  requirements:
140
- - - '>='
65
+ - - "~>"
141
66
  - !ruby/object:Gem::Version
142
- version: '0'
143
- prerelease: false
67
+ version: '3.5'
144
68
  type: :development
145
- - !ruby/object:Gem::Dependency
146
- name: coveralls
147
- version_requirements: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - '>='
150
- - !ruby/object:Gem::Version
151
- version: '0'
152
- requirement: !ruby/object:Gem::Requirement
153
- requirements:
154
- - - '>='
155
- - !ruby/object:Gem::Version
156
- version: '0'
157
69
  prerelease: false
158
- type: :development
159
- - !ruby/object:Gem::Dependency
160
- name: ruby-debug
161
70
  version_requirements: !ruby/object:Gem::Requirement
162
71
  requirements:
163
- - - '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- requirement: !ruby/object:Gem::Requirement
167
- requirements:
168
- - - '>='
72
+ - - "~>"
169
73
  - !ruby/object:Gem::Version
170
- version: '0'
171
- prerelease: false
172
- type: :development
74
+ version: '3.5'
173
75
  description: Uses Citero to translate a model from one format to another.
174
76
  email:
175
77
  - hab278@nyu.edu
@@ -177,144 +79,36 @@ executables: []
177
79
  extensions: []
178
80
  extra_rdoc_files: []
179
81
  files:
82
+ - MIT-LICENSE
83
+ - README.rdoc
84
+ - Rakefile
180
85
  - lib/acts_as_citable.rb
181
86
  - lib/acts_as_citable/base.rb
182
87
  - lib/acts_as_citable/version.rb
183
88
  - lib/tasks/acts_as_citable_tasks.rake
184
- - MIT-LICENSE
185
- - Rakefile
186
- - README.rdoc
187
- - test/acts_as_citable_test.rb
188
- - test/test_helper.rb
189
- - test/dummy/config.ru
190
- - test/dummy/Rakefile
191
- - test/dummy/README.rdoc
192
- - test/dummy/app/assets/javascripts/application.js
193
- - test/dummy/app/assets/stylesheets/application.css
194
- - test/dummy/app/controllers/application_controller.rb
195
- - test/dummy/app/controllers/test_controller.rb
196
- - test/dummy/app/helpers/application_helper.rb
197
- - test/dummy/app/models/inherited_record.rb
198
- - test/dummy/app/models/record.rb
199
- - test/dummy/app/models/record_changed_field.rb
200
- - test/dummy/app/views/layouts/application.html.erb
201
- - test/dummy/bin/bundle
202
- - test/dummy/bin/rails
203
- - test/dummy/bin/rake
204
- - test/dummy/config/application.rb
205
- - test/dummy/config/boot.rb
206
- - test/dummy/config/database.yml
207
- - test/dummy/config/environment.rb
208
- - test/dummy/config/routes.rb
209
- - test/dummy/config/secrets.yml
210
- - test/dummy/config/environments/development.rb
211
- - test/dummy/config/environments/production.rb
212
- - test/dummy/config/environments/test.rb
213
- - test/dummy/config/initializers/assets.rb
214
- - test/dummy/config/initializers/backtrace_silencers.rb
215
- - test/dummy/config/initializers/cookies_serializer.rb
216
- - test/dummy/config/initializers/filter_parameter_logging.rb
217
- - test/dummy/config/initializers/inflections.rb
218
- - test/dummy/config/initializers/mime_types.rb
219
- - test/dummy/config/initializers/session_store.rb
220
- - test/dummy/config/initializers/wrap_parameters.rb
221
- - test/dummy/config/locales/en.yml
222
- - test/dummy/config/locales/responders.en.yml
223
- - test/dummy/db/development.sqlite3
224
- - test/dummy/db/schema.rb
225
- - test/dummy/db/test.sqlite3
226
- - test/dummy/db/migrate/20130221210429_create_records.rb
227
- - test/dummy/db/migrate/20130221214225_create_record_changed_fields.rb
228
- - test/dummy/lib/application_responder.rb
229
- - test/dummy/log/development.log
230
89
  - test/dummy/log/test.log
231
- - test/dummy/public/404.html
232
- - test/dummy/public/422.html
233
- - test/dummy/public/500.html
234
- - test/dummy/public/favicon.ico
235
- - test/dummy/test/fixtures/record_changed_fields.yml
236
- - test/dummy/test/fixtures/records.yml
237
- - test/dummy/test/functional/test_controller_test.rb
238
- - test/dummy/test/unit/inherited_record_test.rb
239
- - test/dummy/test/unit/record_changed_field_test.rb
240
- - test/dummy/test/unit/record_test.rb
241
- - test/dummy/test/unit/helpers/test_helper_test.rb
242
90
  homepage: https://github.com/NYULibraries/acts_as_citable
243
91
  licenses: []
244
92
  metadata: {}
245
- post_install_message:
93
+ post_install_message:
246
94
  rdoc_options: []
247
95
  require_paths:
248
96
  - lib
249
97
  required_ruby_version: !ruby/object:Gem::Requirement
250
98
  requirements:
251
- - - '>='
99
+ - - ">="
252
100
  - !ruby/object:Gem::Version
253
101
  version: '0'
254
102
  required_rubygems_version: !ruby/object:Gem::Requirement
255
103
  requirements:
256
- - - '>='
104
+ - - ">"
257
105
  - !ruby/object:Gem::Version
258
- version: '0'
106
+ version: 1.3.1
259
107
  requirements: []
260
- rubyforge_project:
261
- rubygems_version: 2.1.9
262
- signing_key:
108
+ rubyforge_project:
109
+ rubygems_version: 2.6.11
110
+ signing_key:
263
111
  specification_version: 4
264
112
  summary: Acts As gem for allowing models to be used as citable objects.
265
113
  test_files:
266
- - test/acts_as_citable_test.rb
267
- - test/test_helper.rb
268
- - test/dummy/config.ru
269
- - test/dummy/Rakefile
270
- - test/dummy/README.rdoc
271
- - test/dummy/app/assets/javascripts/application.js
272
- - test/dummy/app/assets/stylesheets/application.css
273
- - test/dummy/app/controllers/application_controller.rb
274
- - test/dummy/app/controllers/test_controller.rb
275
- - test/dummy/app/helpers/application_helper.rb
276
- - test/dummy/app/models/inherited_record.rb
277
- - test/dummy/app/models/record.rb
278
- - test/dummy/app/models/record_changed_field.rb
279
- - test/dummy/app/views/layouts/application.html.erb
280
- - test/dummy/bin/bundle
281
- - test/dummy/bin/rails
282
- - test/dummy/bin/rake
283
- - test/dummy/config/application.rb
284
- - test/dummy/config/boot.rb
285
- - test/dummy/config/database.yml
286
- - test/dummy/config/environment.rb
287
- - test/dummy/config/routes.rb
288
- - test/dummy/config/secrets.yml
289
- - test/dummy/config/environments/development.rb
290
- - test/dummy/config/environments/production.rb
291
- - test/dummy/config/environments/test.rb
292
- - test/dummy/config/initializers/assets.rb
293
- - test/dummy/config/initializers/backtrace_silencers.rb
294
- - test/dummy/config/initializers/cookies_serializer.rb
295
- - test/dummy/config/initializers/filter_parameter_logging.rb
296
- - test/dummy/config/initializers/inflections.rb
297
- - test/dummy/config/initializers/mime_types.rb
298
- - test/dummy/config/initializers/session_store.rb
299
- - test/dummy/config/initializers/wrap_parameters.rb
300
- - test/dummy/config/locales/en.yml
301
- - test/dummy/config/locales/responders.en.yml
302
- - test/dummy/db/development.sqlite3
303
- - test/dummy/db/schema.rb
304
- - test/dummy/db/test.sqlite3
305
- - test/dummy/db/migrate/20130221210429_create_records.rb
306
- - test/dummy/db/migrate/20130221214225_create_record_changed_fields.rb
307
- - test/dummy/lib/application_responder.rb
308
- - test/dummy/log/development.log
309
114
  - test/dummy/log/test.log
310
- - test/dummy/public/404.html
311
- - test/dummy/public/422.html
312
- - test/dummy/public/500.html
313
- - test/dummy/public/favicon.ico
314
- - test/dummy/test/fixtures/record_changed_fields.yml
315
- - test/dummy/test/fixtures/records.yml
316
- - test/dummy/test/functional/test_controller_test.rb
317
- - test/dummy/test/unit/inherited_record_test.rb
318
- - test/dummy/test/unit/record_changed_field_test.rb
319
- - test/dummy/test/unit/record_test.rb
320
- - test/dummy/test/unit/helpers/test_helper_test.rb
@@ -1,14 +0,0 @@
1
- require 'test_helper'
2
- require 'ruby-debug'
3
-
4
- class ActsAsCitableTest < ActiveSupport::TestCase
5
- test "truth" do
6
- assert_kind_of Module, ActsAsCitable
7
- end
8
-
9
- test "new nokogiri xml document" do
10
- assert_nothing_raised("New Nokogiri::XML::Document raises an error.") {
11
- Nokogiri::XML::Document.new
12
- }
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>.
data/test/dummy/Rakefile DELETED
@@ -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
@@ -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,10 +0,0 @@
1
- require "application_responder"
2
-
3
- class ApplicationController < ActionController::Base
4
- self.responder = ApplicationResponder
5
- respond_to :html
6
-
7
- # Prevent CSRF attacks by raising an exception.
8
- # For APIs, you may want to use :null_session instead.
9
- protect_from_forgery with: :exception
10
- end
@@ -1,11 +0,0 @@
1
- class TestController < ApplicationController
2
- # respond_to :ris, :bibtex, :json, :csv
3
- def test
4
- # rec = Record.create(:data => "itemType: book", :format => "csf")
5
- # zip = Array.new
6
- # zip << rec
7
- # require 'pry'
8
- # # binding.pry`
9
- # respond_with(zip)
10
- end
11
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,3 +0,0 @@
1
- class InheritedRecord < Record
2
-
3
- end
@@ -1,4 +0,0 @@
1
- class Record < ActiveRecord::Base
2
- # attr_accessible :data, :format
3
- acts_as_citable
4
- end
@@ -1,6 +0,0 @@
1
- class RecordChangedField < ActiveRecord::Base
2
- # attr_accessible :data, :from_format
3
- acts_as_citable do |c|
4
- c.format_field = 'from_format'
5
- end
6
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -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')
data/test/dummy/bin/rails DELETED
@@ -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'
data/test/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,23 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "acts_as_citable"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
- # config.time_zone = 'Central Time (US & Canada)'
17
-
18
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
- # config.i18n.default_locale = :de
21
- end
22
- end
23
-
@@ -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,23 +0,0 @@
1
- # SQLite version 3.x
2
- # gem 'activerecord-jdbcsqlite3-adapter'
3
- #
4
- # Configure Using Gemfile
5
- # gem 'activerecord-jdbcsqlite3-adapter'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
-
10
- development:
11
- <<: *default
12
- database: db/development.sqlite3
13
-
14
- # Warning: The database defined as "test" will be erased and
15
- # re-generated from your development database when you run "rake".
16
- # Do not set this db to the same as development or production.
17
- test:
18
- <<: *default
19
- database: db/test.sqlite3
20
-
21
- production:
22
- <<: *default
23
- database: db/production.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!
@@ -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