helena_administration 0.3.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +14 -9
  3. data/.travis.yml +13 -3
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +175 -174
  6. data/MIT-LICENSE +1 -1
  7. data/README.md +21 -18
  8. data/Rakefile +1 -1
  9. data/app/assets/javascripts/helena_administration.js.coffee +0 -1
  10. data/app/assets/stylesheets/_layout.sass +3 -14
  11. data/app/assets/stylesheets/_variables.sass +13 -13
  12. data/app/assets/stylesheets/helena_administration.css.sass +1 -3
  13. data/app/controllers/helena_administration/application_controller.rb +1 -0
  14. data/app/controllers/helena_administration/question_groups_controller.rb +17 -11
  15. data/app/controllers/helena_administration/versions_controller.rb +10 -6
  16. data/app/views/helena_administration/application/{_flash_messages.html.haml → _flash_messages.html.slim} +1 -1
  17. data/app/views/helena_administration/application/_header.html.slim +11 -15
  18. data/app/views/helena_administration/layouts/application.html.slim +1 -1
  19. data/app/views/helena_administration/question_groups/show.html.slim +18 -18
  20. data/app/views/helena_administration/questions/_sub_questions.html.slim +1 -1
  21. data/app/views/helena_administration/questions/show.html.slim +14 -14
  22. data/app/views/helena_administration/surveys/index.html.slim +5 -5
  23. data/app/views/helena_administration/surveys/show.html.slim +29 -29
  24. data/app/views/helena_administration/versions/show.html.slim +24 -24
  25. data/app/views/layouts/helena_administration/application.html.slim +1 -1
  26. data/config/locales/en.yml +11 -0
  27. data/helena_administration.gemspec +7 -8
  28. data/lib/helena_administration/engine.rb +6 -5
  29. data/lib/helena_administration/version.rb +1 -1
  30. data/lib/helena_administration.rb +2 -2
  31. data/spec/controllers/sessions_controller_spec.rb +4 -4
  32. data/spec/dummy/Rakefile +1 -1
  33. data/spec/dummy/config/application.rb +1 -1
  34. data/spec/dummy/config/boot.rb +2 -2
  35. data/spec/dummy/config/environment.rb +1 -1
  36. data/spec/dummy/config/environments/test.rb +1 -1
  37. data/spec/dummy/config/initializers/assets.rb +1 -1
  38. data/spec/dummy/config.ru +1 -1
  39. data/spec/features/dashboard/index_spec.rb +1 -1
  40. data/spec/features/question_groups/manage_question_groups_spec.rb +1 -1
  41. data/spec/features/questions/manage_questions_spec.rb +2 -2
  42. data/spec/features/sessions/manage_sessions_spec.rb +1 -1
  43. data/spec/features/surveys/manage_survey_spec.rb +2 -2
  44. data/spec/features/versions/manage_version_spec.rb +33 -3
  45. data/spec/helpers/applicatin_helper_spec.rb +1 -1
  46. data/spec/spec_helper.rb +1 -1
  47. data/spec/support/rails_compatibility.rb +1 -1
  48. metadata +35 -53
  49. data/app/assets/javascripts/polyfills.js +0 -10
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  51. data/spec/dummy/config/initializers/inflections.rb +0 -16
  52. data/spec/dummy/config/initializers/mime_types.rb +0 -4
@@ -1,3 +1,3 @@
1
1
  module HelenaAdministration
2
- VERSION = '0.3.4'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
@@ -1,7 +1,6 @@
1
1
  require 'helena_administration/engine'
2
2
  require 'breadcrumbs_on_rails'
3
- require 'html5-rails'
4
- require 'bootstrap-sass'
3
+ require 'bootstrap'
5
4
  require 'font-awesome-sass'
6
5
  require 'codemirror-rails'
7
6
  require 'jquery-rails'
@@ -11,6 +10,7 @@ require 'mongoid_orderable'
11
10
  require 'mongoid-simple-tags'
12
11
  require 'kaminari/mongoid'
13
12
  require 'kaminari/actionview'
13
+ require 'simple_form'
14
14
 
15
15
  module HelenaAdministration
16
16
  end
@@ -64,7 +64,7 @@ describe HelenaAdministration::SessionsController do
64
64
  get :index, parametrize(survey_id: survey, format: :csv)
65
65
 
66
66
  csv = CSV.parse(response.body)
67
- %w(string_answer_2 integer_answer_2 string_answer_1 integer_answer_1).each do |code|
67
+ %w[string_answer_2 integer_answer_2 string_answer_1 integer_answer_1].each do |code|
68
68
  expect(csv.first).to include code
69
69
  end
70
70
 
@@ -72,7 +72,7 @@ describe HelenaAdministration::SessionsController do
72
72
  expect(csv[1]).to include value
73
73
  end
74
74
 
75
- %w(123 abc).each do |value|
75
+ %w[123 abc].each do |value|
76
76
  expect(csv[2]).to include value
77
77
  end
78
78
  end
@@ -87,7 +87,7 @@ describe HelenaAdministration::SessionsController do
87
87
  get :index, parametrize(survey_id: survey, format: :csv)
88
88
 
89
89
  csv = CSV.parse(response.body)
90
- %w(answer_token answer_completed).each do |code|
90
+ %w[answer_token answer_completed].each do |code|
91
91
  expect(csv.first).to include code
92
92
  end
93
93
  end
@@ -108,7 +108,7 @@ describe HelenaAdministration::SessionsController do
108
108
  build(:string_answer, code: 'bla', value: 'yyy'),
109
109
  build(:string_answer, code: 'bli', value: 'asdfasdfasdf')
110
110
  ]
111
-
111
+
112
112
  get :index, parametrize(survey_id: survey, format: :csv)
113
113
 
114
114
  csv = CSV.parse(response.body)
data/spec/dummy/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
3
 
4
- require File.expand_path('../config/application', __FILE__)
4
+ require File.expand_path('config/application', __dir__)
5
5
 
6
6
  Rails.application.load_tasks
@@ -1,4 +1,4 @@
1
- require File.expand_path('../boot', __FILE__)
1
+ require File.expand_path('boot', __dir__)
2
2
 
3
3
  # Pick the frameworks you want:
4
4
  require 'action_controller/railtie'
@@ -1,5 +1,5 @@
1
1
  # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
3
 
4
4
  require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
5
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
2
+ require File.expand_path('application', __dir__)
3
3
 
4
4
  # Initialize the Rails application.
5
5
  Rails.application.initialize!
@@ -13,7 +13,7 @@ Rails.application.configure do
13
13
  config.eager_load = false
14
14
 
15
15
  # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
16
+ config.serve_static_files = true
17
17
  config.static_cache_control = 'public, max-age=3600'
18
18
 
19
19
  # Show full error reports and disable caching.
@@ -6,4 +6,4 @@ Rails.application.config.assets.version = '1.0'
6
6
  # Precompile additional assets.
7
7
  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
8
8
  # Rails.application.config.assets.precompile += %w( search.js )
9
- Rails.application.config.assets.precompile += %w( codemirror* codemirror/**/* polyfills.js helena_administration.css )
9
+ Rails.application.config.assets.precompile += %w[codemirror* codemirror/**/* polyfills.js helena_administration.css]
data/spec/dummy/config.ru CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
4
  run Rails.application
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  feature 'Dashboard' do
4
- scenario 'User visits the index page that links to the survey management' do
4
+ scenario 'User visits the index page that links to the survey management' do
5
5
  visit dashboard_index_path
6
6
 
7
7
  expect(page).to have_link 'Manage Surveys', href: surveys_path
@@ -79,7 +79,7 @@ feature 'Question groups' do
79
79
  end
80
80
 
81
81
  scenario 'User can view question_group details' do
82
- question_group = version.question_groups.create title: 'Awesome new question group', position: 666
82
+ question_group = version.question_groups.create title: 'Awesome new question group', position: 666
83
83
 
84
84
  visit survey_version_question_group_path(survey, version, question_group)
85
85
 
@@ -5,7 +5,7 @@ feature 'Questions' do
5
5
  let!(:version) { survey.versions.create version: 0 }
6
6
  let!(:question_group) { version.question_groups.create title: 'Abakadabara' }
7
7
 
8
- scenario 'Index site lists all questions' do
8
+ scenario 'Index site lists all questions' do
9
9
  question_group.questions.create code: 'second_question', question_text: 'Second question', position: 123, _type: Helena::Questions::LongText
10
10
  question_group.questions.create code: 'first_question', question_text: 'First question', position: 42, _type: Helena::Questions::ShortText
11
11
 
@@ -75,7 +75,7 @@ feature 'Questions' do
75
75
 
76
76
  fill_in 'Code', with: ''
77
77
 
78
- expect { click_button 'Save' }.not_to change { question.reload }
78
+ expect { click_button 'Save' }.not_to(change { question.reload })
79
79
  end
80
80
 
81
81
  scenario 'User deletes a question' do
@@ -43,7 +43,7 @@ feature 'Sessions' do
43
43
 
44
44
  expect(session.reload.token).to eq '123'
45
45
  expect(session.reload.view_token).to eq '456'
46
- expect(session.reload.answers.map(&:code)).to eq %w(a b)
46
+ expect(session.reload.answers.map(&:code)).to eq %w[a b]
47
47
  expect(session.reload.answers.map(&:value)).to eq ['c', 4]
48
48
  expect(session.reload.completed).to eq true
49
49
  expect(session.reload.last_question_group_id).to eq second_question_group.id
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  feature 'Surveys' do
4
- scenario 'Index site lists all surveys' do
4
+ scenario 'Index site lists all surveys' do
5
5
  create :survey, name: 'Innerbetriebliche Zufriedenheit', position: 2
6
6
  create :survey, name: 'Life satisfaction scale', position: 1
7
7
 
@@ -67,7 +67,7 @@ feature 'Surveys' do
67
67
 
68
68
  fill_in 'Name', with: ''
69
69
 
70
- expect { click_button 'Save' }.not_to change { survey.reload }
70
+ expect { click_button 'Save' }.not_to(change { survey.reload })
71
71
 
72
72
  within 'nav .breadcrumbs' do
73
73
  expect(page).to have_text 'Swiss fertility survey'
@@ -15,7 +15,7 @@ feature 'Versions ' do
15
15
  end
16
16
  end
17
17
 
18
- scenario 'User publish a new version' do
18
+ scenario 'User publish a new version without setting a parent' do
19
19
  visit survey_path(survey)
20
20
  within 'table.versions' do
21
21
  click_link 'New'
@@ -29,13 +29,43 @@ feature 'Versions ' do
29
29
  fill_in 'version_survey_detail_attributes_description', with: 'but shoes always tell the truth'
30
30
  fill_in 'Notes', with: 'Luke, I am your father!'
31
31
  fill_in 'version_session_report', with: 'Foo Bar'
32
+ select('', from: 'Parent').select_option
32
33
  check 'Display progressbar'
33
34
 
34
35
  expect(page).not_to have_selector 'version_active'
35
36
 
36
37
  expect { click_button 'Save' }.to change { survey.reload.versions.count }.by(1)
37
38
 
38
- new_version = survey.versions.sort.last
39
+ new_version = survey.versions.where(version: survey.versions.max(:version)).first
40
+
41
+ expect(new_version.survey_detail.title).to eq 'Everybody lies'
42
+ expect(new_version.survey_detail.description).to eq 'but shoes always tell the truth'
43
+ expect(new_version.notes).to eq 'Luke, I am your father!'
44
+ expect(new_version.session_report).to eq 'Foo Bar'
45
+ expect(new_version.active).to be false
46
+ end
47
+
48
+ scenario 'User publish a new version when setting a parent' do
49
+ visit survey_path(survey)
50
+ within 'table.versions' do
51
+ click_link 'New'
52
+ end
53
+
54
+ within 'nav .breadcrumbs' do
55
+ expect(page).to have_text 'New version'
56
+ end
57
+
58
+ fill_in 'version_survey_detail_attributes_title', with: 'Everybody lies'
59
+ fill_in 'version_survey_detail_attributes_description', with: 'but shoes always tell the truth'
60
+ fill_in 'Notes', with: 'Luke, I am your father!'
61
+ fill_in 'version_session_report', with: 'Foo Bar'
62
+ check 'Display progressbar'
63
+
64
+ expect(page).not_to have_selector 'version_active'
65
+
66
+ expect { click_button 'Save' }.to change { survey.reload.versions.count }.by(1)
67
+
68
+ new_version = survey.versions.where(version: survey.versions.max(:version)).first
39
69
 
40
70
  expect(new_version.survey_detail.title).to eq 'Everybody lies'
41
71
  expect(new_version.survey_detail.description).to eq 'but shoes always tell the truth'
@@ -90,7 +120,7 @@ feature 'Versions ' do
90
120
  end
91
121
 
92
122
  scenario 'User can view version details' do
93
- version = survey.versions.create notes: 'Awesome new version', version: 666, session_report: 'AbCdE'
123
+ version = survey.versions.create notes: 'Awesome new version', version: 666, session_report: 'AbCdE'
94
124
  version.survey_detail = Helena::SurveyDetail.new title: 'Piracy', description: 'Typically an act of robbery or criminal violence at sea.'
95
125
 
96
126
  visit survey_version_path(survey, version)
@@ -4,7 +4,7 @@ describe HelenaAdministration::ApplicationHelper do
4
4
  describe '.title' do
5
5
  it 'sets content for :title' do
6
6
  helper.title 'test'
7
- expect(view.content_for :title).to eq 'test'
7
+ expect(view.content_for(:title)).to eq 'test'
8
8
  end
9
9
  end
10
10
 
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,7 @@ require 'simplecov'
2
2
  SimpleCov.start
3
3
 
4
4
  ENV['RAILS_ENV'] ||= 'test'
5
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
+ require File.expand_path('dummy/config/environment.rb', __dir__)
6
6
 
7
7
  require 'rspec/rails'
8
8
  require 'factory_bot_rails'
@@ -1,4 +1,4 @@
1
1
  # As in rails 5.1 we can no longer accept direct hashes as parameters so we ned to cast it
2
2
  def parametrize(params)
3
3
  Rails.version.to_f >= 5 ? { params: params } : params
4
- end
4
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helena_administration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Graf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codemirror-rails
@@ -100,58 +100,44 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.3'
103
+ version: '2.0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.3'
111
- - !ruby/object:Gem::Dependency
112
- name: mongoid
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '4.0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '4.0'
110
+ version: '2.0'
125
111
  - !ruby/object:Gem::Dependency
126
- name: mongoid-simple-tags
112
+ name: jquery-rails
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '0.1'
117
+ version: '4'
132
118
  type: :runtime
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0.1'
124
+ version: '4'
139
125
  - !ruby/object:Gem::Dependency
140
- name: mongoid_orderable
126
+ name: mongoid
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - "~>"
129
+ - - ">="
144
130
  - !ruby/object:Gem::Version
145
- version: '4.1'
131
+ version: '4.0'
146
132
  type: :runtime
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - "~>"
136
+ - - ">="
151
137
  - !ruby/object:Gem::Version
152
- version: '4.1'
138
+ version: '4.0'
153
139
  - !ruby/object:Gem::Dependency
154
- name: html5-rails
140
+ name: mongoid-simple-tags
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
@@ -165,19 +151,19 @@ dependencies:
165
151
  - !ruby/object:Gem::Version
166
152
  version: '0.1'
167
153
  - !ruby/object:Gem::Dependency
168
- name: jquery-rails
154
+ name: mongoid_orderable
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '4'
159
+ version: '5.2'
174
160
  type: :runtime
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '4'
166
+ version: '5.2'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: sass-rails
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -192,20 +178,6 @@ dependencies:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
180
  version: '5.0'
195
- - !ruby/object:Gem::Dependency
196
- name: bootstrap-sass
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '3.2'
202
- type: :runtime
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '3.2'
209
181
  - !ruby/object:Gem::Dependency
210
182
  name: breadcrumbs_on_rails
211
183
  requirement: !ruby/object:Gem::Requirement
@@ -240,14 +212,14 @@ dependencies:
240
212
  requirements:
241
213
  - - "~>"
242
214
  - !ruby/object:Gem::Version
243
- version: '3.2'
215
+ version: '4'
244
216
  type: :runtime
245
217
  prerelease: false
246
218
  version_requirements: !ruby/object:Gem::Requirement
247
219
  requirements:
248
220
  - - "~>"
249
221
  - !ruby/object:Gem::Version
250
- version: '3.2'
222
+ version: '4'
251
223
  - !ruby/object:Gem::Dependency
252
224
  name: coffee-rails
253
225
  requirement: !ruby/object:Gem::Requirement
@@ -264,18 +236,32 @@ dependencies:
264
236
  version: '4.1'
265
237
  - !ruby/object:Gem::Dependency
266
238
  name: font-awesome-sass
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: bootstrap
267
253
  requirement: !ruby/object:Gem::Requirement
268
254
  requirements:
269
255
  - - "~>"
270
256
  - !ruby/object:Gem::Version
271
- version: '4.4'
257
+ version: 4.1.3
272
258
  type: :runtime
273
259
  prerelease: false
274
260
  version_requirements: !ruby/object:Gem::Requirement
275
261
  requirements:
276
262
  - - "~>"
277
263
  - !ruby/object:Gem::Version
278
- version: '4.4'
264
+ version: 4.1.3
279
265
  - !ruby/object:Gem::Dependency
280
266
  name: responders
281
267
  requirement: !ruby/object:Gem::Requirement
@@ -336,7 +322,6 @@ files:
336
322
  - Rakefile
337
323
  - app/assets/images/helena_administration/.keep
338
324
  - app/assets/javascripts/helena_administration.js.coffee
339
- - app/assets/javascripts/polyfills.js
340
325
  - app/assets/stylesheets/_dashboard.sass
341
326
  - app/assets/stylesheets/_layout.sass
342
327
  - app/assets/stylesheets/_media_queries.scss
@@ -361,7 +346,7 @@ files:
361
346
  - app/helpers/helena_administration/application_helper.rb
362
347
  - app/models/helena_administration/import_survey_form.rb
363
348
  - app/views/helena_administration/application/_chromeframe.html.slim
364
- - app/views/helena_administration/application/_flash_messages.html.haml
349
+ - app/views/helena_administration/application/_flash_messages.html.slim
365
350
  - app/views/helena_administration/application/_head.html.slim
366
351
  - app/views/helena_administration/application/_header.html.slim
367
352
  - app/views/helena_administration/dashboard/index.html.slim
@@ -463,11 +448,8 @@ files:
463
448
  - spec/dummy/config/environments/production.rb
464
449
  - spec/dummy/config/environments/test.rb
465
450
  - spec/dummy/config/initializers/assets.rb
466
- - spec/dummy/config/initializers/backtrace_silencers.rb
467
451
  - spec/dummy/config/initializers/cookies_serializer.rb
468
452
  - spec/dummy/config/initializers/filter_parameter_logging.rb
469
- - spec/dummy/config/initializers/inflections.rb
470
- - spec/dummy/config/initializers/mime_types.rb
471
453
  - spec/dummy/config/initializers/session_store.rb
472
454
  - spec/dummy/config/initializers/wrap_parameters.rb
473
455
  - spec/dummy/config/locales/en.yml
@@ -1,10 +0,0 @@
1
- // This file was generated by html5-rails
2
- // https://github.com/sporkd/html5-rails
3
- // Upgrade with: $ rails generate html5:install
4
- //
5
- // This is a manifest for javascript polyfills that will be included
6
- // in the head section of your layouts.
7
- //
8
- // polyfill (n): a JavaScript shim that replicates the standard API for older browsers.
9
- //
10
- //= require modernizr.min
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf