jera_push 1.2.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +12 -18
  3. data/app/controllers/jera_push/admin/messages_controller.rb +23 -10
  4. data/app/presenters/jera_push/message_presenter.rb +22 -18
  5. data/app/views/jera_push/admin/messages/show.html.erb +7 -4
  6. data/config/locale/jera_push.pt-BR.yml +7 -0
  7. data/config/routes.rb +1 -0
  8. data/lib/generators/active_record/templates/create_jera_push_devices.rb +2 -1
  9. data/lib/generators/active_record/templates/create_jera_push_messages.rb +6 -3
  10. data/lib/generators/active_record/templates/create_jera_push_messages_devices.rb +3 -3
  11. data/lib/generators/jera_push/templates/jera_push.rb +2 -1
  12. data/lib/jera_push/firebase/client.rb +56 -59
  13. data/lib/jera_push/models/device.rb +3 -31
  14. data/lib/jera_push/models/message.rb +2 -142
  15. data/lib/jera_push/models/message_device.rb +1 -0
  16. data/lib/jera_push/services/base_service.rb +23 -0
  17. data/lib/jera_push/services/send_message.rb +23 -8
  18. data/lib/jera_push/services/send_push_service.rb +99 -0
  19. data/lib/jera_push/services/send_to_device_service.rb +52 -0
  20. data/lib/jera_push/services/send_to_devices_service.rb +54 -0
  21. data/lib/jera_push/services/send_to_everyone_service.rb +40 -0
  22. data/lib/jera_push/services/send_to_topic_service.rb +37 -0
  23. data/lib/jera_push/services/topic_service.rb +18 -0
  24. data/lib/jera_push/version.rb +1 -1
  25. data/lib/jera_push.rb +19 -5
  26. metadata +71 -116
  27. data/test/dummy/README.rdoc +0 -28
  28. data/test/dummy/Rakefile +0 -6
  29. data/test/dummy/app/assets/javascripts/application.js +0 -13
  30. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  31. data/test/dummy/app/controllers/application_controller.rb +0 -5
  32. data/test/dummy/app/helpers/application_helper.rb +0 -2
  33. data/test/dummy/app/models/user.rb +0 -3
  34. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  35. data/test/dummy/bin/bundle +0 -3
  36. data/test/dummy/bin/rails +0 -4
  37. data/test/dummy/bin/rake +0 -4
  38. data/test/dummy/bin/setup +0 -29
  39. data/test/dummy/config/application.rb +0 -25
  40. data/test/dummy/config/boot.rb +0 -5
  41. data/test/dummy/config/database.yml +0 -16
  42. data/test/dummy/config/environment.rb +0 -5
  43. data/test/dummy/config/environments/development.rb +0 -41
  44. data/test/dummy/config/environments/production.rb +0 -79
  45. data/test/dummy/config/environments/test.rb +0 -42
  46. data/test/dummy/config/initializers/assets.rb +0 -12
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  48. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  50. data/test/dummy/config/initializers/inflections.rb +0 -16
  51. data/test/dummy/config/initializers/mime_types.rb +0 -4
  52. data/test/dummy/config/initializers/session_store.rb +0 -3
  53. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  54. data/test/dummy/config/locales/en.yml +0 -23
  55. data/test/dummy/config/locales/pt-BR.yml +0 -23
  56. data/test/dummy/config/routes.rb +0 -57
  57. data/test/dummy/config/secrets.yml +0 -22
  58. data/test/dummy/config.ru +0 -4
  59. data/test/dummy/db/migrate/20161005121035_create_users.rb +0 -10
  60. data/test/dummy/db/schema.rb +0 -61
  61. data/test/dummy/db/seeds.rb +0 -70
  62. data/test/dummy/public/404.html +0 -67
  63. data/test/dummy/public/422.html +0 -67
  64. data/test/dummy/public/500.html +0 -66
  65. data/test/dummy/public/favicon.ico +0 -0
  66. data/test/dummy/test/fixtures/users.yml +0 -7
  67. data/test/dummy/test/models/user_test.rb +0 -7
  68. data/test/jera_push_test.rb +0 -7
  69. data/test/test_helper.rb +0 -20
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jera_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,112 +16,146 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0
19
+ version: '7.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.0
26
+ version: '7.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: enumerize
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.2'
33
+ version: '2.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '2.2'
40
+ version: '2.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: httparty
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.16'
47
+ version: '0.21'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0.16'
54
+ version: '0.21'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sass-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '5.0'
61
+ version: '6.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '5.0'
68
+ version: '6.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: kaminari
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.1'
75
+ version: 1.2.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.1'
82
+ version: 1.2.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: responders
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '2.4'
89
+ version: '3.1'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '2.4'
96
+ version: '3.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: jquery-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '4.3'
103
+ version: 4.5.1
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: '4.3'
110
+ version: 4.5.1
111
111
  - !ruby/object:Gem::Dependency
112
- name: sqlite3
112
+ name: google-apis-fcm_v1
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 0.19.0
118
+ - - "<"
119
+ - !ruby/object:Gem::Version
120
+ version: '1.0'
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 0.19.0
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '1.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rake
113
133
  requirement: !ruby/object:Gem::Requirement
114
134
  requirements:
115
135
  - - "~>"
116
136
  - !ruby/object:Gem::Version
117
- version: '1.3'
137
+ version: 13.0.6
118
138
  type: :development
119
139
  prerelease: false
120
140
  version_requirements: !ruby/object:Gem::Requirement
121
141
  requirements:
122
142
  - - "~>"
123
143
  - !ruby/object:Gem::Version
124
- version: '1.3'
144
+ version: 13.0.6
145
+ - !ruby/object:Gem::Dependency
146
+ name: sqlite3
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
125
159
  description: This gem is for send push messages via firebase and track their status.
126
160
  email:
127
161
  - hospedagem@jera.com.br
@@ -259,52 +293,16 @@ files:
259
293
  - lib/jera_push/models/device_filter.rb
260
294
  - lib/jera_push/models/message.rb
261
295
  - lib/jera_push/models/message_device.rb
296
+ - lib/jera_push/services/base_service.rb
262
297
  - lib/jera_push/services/send_message.rb
298
+ - lib/jera_push/services/send_push_service.rb
299
+ - lib/jera_push/services/send_to_device_service.rb
300
+ - lib/jera_push/services/send_to_devices_service.rb
301
+ - lib/jera_push/services/send_to_everyone_service.rb
302
+ - lib/jera_push/services/send_to_topic_service.rb
303
+ - lib/jera_push/services/topic_service.rb
263
304
  - lib/jera_push/version.rb
264
305
  - lib/tasks/jera_push_tasks.rake
265
- - test/dummy/README.rdoc
266
- - test/dummy/Rakefile
267
- - test/dummy/app/assets/javascripts/application.js
268
- - test/dummy/app/assets/stylesheets/application.css
269
- - test/dummy/app/controllers/application_controller.rb
270
- - test/dummy/app/helpers/application_helper.rb
271
- - test/dummy/app/models/user.rb
272
- - test/dummy/app/views/layouts/application.html.erb
273
- - test/dummy/bin/bundle
274
- - test/dummy/bin/rails
275
- - test/dummy/bin/rake
276
- - test/dummy/bin/setup
277
- - test/dummy/config.ru
278
- - test/dummy/config/application.rb
279
- - test/dummy/config/boot.rb
280
- - test/dummy/config/database.yml
281
- - test/dummy/config/environment.rb
282
- - test/dummy/config/environments/development.rb
283
- - test/dummy/config/environments/production.rb
284
- - test/dummy/config/environments/test.rb
285
- - test/dummy/config/initializers/assets.rb
286
- - test/dummy/config/initializers/backtrace_silencers.rb
287
- - test/dummy/config/initializers/cookies_serializer.rb
288
- - test/dummy/config/initializers/filter_parameter_logging.rb
289
- - test/dummy/config/initializers/inflections.rb
290
- - test/dummy/config/initializers/mime_types.rb
291
- - test/dummy/config/initializers/session_store.rb
292
- - test/dummy/config/initializers/wrap_parameters.rb
293
- - test/dummy/config/locales/en.yml
294
- - test/dummy/config/locales/pt-BR.yml
295
- - test/dummy/config/routes.rb
296
- - test/dummy/config/secrets.yml
297
- - test/dummy/db/migrate/20161005121035_create_users.rb
298
- - test/dummy/db/schema.rb
299
- - test/dummy/db/seeds.rb
300
- - test/dummy/public/404.html
301
- - test/dummy/public/422.html
302
- - test/dummy/public/500.html
303
- - test/dummy/public/favicon.ico
304
- - test/dummy/test/fixtures/users.yml
305
- - test/dummy/test/models/user_test.rb
306
- - test/jera_push_test.rb
307
- - test/test_helper.rb
308
306
  homepage: https://github.com/jera/jera-push
309
307
  licenses:
310
308
  - MIT
@@ -317,58 +315,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
317
315
  requirements:
318
316
  - - ">="
319
317
  - !ruby/object:Gem::Version
320
- version: 2.5.0
318
+ version: 3.0.3
321
319
  required_rubygems_version: !ruby/object:Gem::Requirement
322
320
  requirements:
323
321
  - - ">="
324
322
  - !ruby/object:Gem::Version
325
323
  version: '0'
326
324
  requirements: []
327
- rubygems_version: 3.1.2
325
+ rubygems_version: 3.2.32
328
326
  signing_key:
329
327
  specification_version: 4
330
328
  summary: Gem to use firebase push messages.
331
- test_files:
332
- - test/dummy/db/migrate/20161005121035_create_users.rb
333
- - test/dummy/db/schema.rb
334
- - test/dummy/db/seeds.rb
335
- - test/dummy/README.rdoc
336
- - test/dummy/app/helpers/application_helper.rb
337
- - test/dummy/app/controllers/application_controller.rb
338
- - test/dummy/app/views/layouts/application.html.erb
339
- - test/dummy/app/assets/javascripts/application.js
340
- - test/dummy/app/assets/stylesheets/application.css
341
- - test/dummy/app/models/user.rb
342
- - test/dummy/public/500.html
343
- - test/dummy/public/422.html
344
- - test/dummy/public/favicon.ico
345
- - test/dummy/public/404.html
346
- - test/dummy/config/boot.rb
347
- - test/dummy/config/routes.rb
348
- - test/dummy/config/initializers/wrap_parameters.rb
349
- - test/dummy/config/initializers/backtrace_silencers.rb
350
- - test/dummy/config/initializers/cookies_serializer.rb
351
- - test/dummy/config/initializers/assets.rb
352
- - test/dummy/config/initializers/mime_types.rb
353
- - test/dummy/config/initializers/session_store.rb
354
- - test/dummy/config/initializers/filter_parameter_logging.rb
355
- - test/dummy/config/initializers/inflections.rb
356
- - test/dummy/config/application.rb
357
- - test/dummy/config/locales/pt-BR.yml
358
- - test/dummy/config/locales/en.yml
359
- - test/dummy/config/environment.rb
360
- - test/dummy/config/environments/test.rb
361
- - test/dummy/config/environments/development.rb
362
- - test/dummy/config/environments/production.rb
363
- - test/dummy/config/database.yml
364
- - test/dummy/config/secrets.yml
365
- - test/dummy/test/models/user_test.rb
366
- - test/dummy/test/fixtures/users.yml
367
- - test/dummy/Rakefile
368
- - test/dummy/config.ru
369
- - test/dummy/bin/rails
370
- - test/dummy/bin/rake
371
- - test/dummy/bin/bundle
372
- - test/dummy/bin/setup
373
- - test/test_helper.rb
374
- - test/jera_push_test.rb
329
+ test_files: []
@@ -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 any plugin's vendor/assets/javascripts directory 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/rails/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 any plugin's vendor/assets/stylesheets directory 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
- 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
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,3 +0,0 @@
1
- class User < ActiveRecord::Base
2
- has_many :devices, foreign_key: :resource_id, class_name: 'JeraPush::Device'
3
- 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
data/test/dummy/bin/setup DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end
@@ -1,25 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "jera_push"
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 = :"pt-BR"
21
-
22
- # Do not swallow errors in after_commit/after_rollback callbacks.
23
- config.active_record.raise_in_transactional_callbacks = true
24
- end
25
- end
@@ -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,16 +0,0 @@
1
- default: &default
2
- adapter: sqlite3
3
- pool: 5
4
- timeout: 5000
5
-
6
- development:
7
- <<: *default
8
- database: db/development.sqlite3
9
-
10
- test:
11
- <<: *default
12
- database: db/test.sqlite3
13
-
14
- production:
15
- <<: *default
16
- 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,41 +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
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
- # yet still be able to expire them through the digest params.
32
- config.assets.digest = true
33
-
34
- # Adds additional error checking when serving assets at runtime.
35
- # Checks for improperly declared sprockets dependencies.
36
- # Raises helpful error messages.
37
- config.assets.raise_runtime_errors = true
38
-
39
- # Raises error for missing translations
40
- # config.action_view.raise_on_missing_translations = true
41
- end
@@ -1,79 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like
20
- # NGINX, varnish or squid.
21
- # config.action_dispatch.rack_cache = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
-
27
- # Compress JavaScripts and CSS.
28
- config.assets.js_compressor = :uglifier
29
- # config.assets.css_compressor = :sass
30
-
31
- # Do not fallback to assets pipeline if a precompiled asset is missed.
32
- config.assets.compile = false
33
-
34
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
- # yet still be able to expire them through the digest params.
36
- config.assets.digest = true
37
-
38
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
-
40
- # Specifies the header that your server uses for sending files.
41
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
-
44
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
- # config.force_ssl = true
46
-
47
- # Use the lowest log level to ensure availability of diagnostic information
48
- # when problems arise.
49
- config.log_level = :debug
50
-
51
- # Prepend all log lines with the following tags.
52
- # config.log_tags = [ :subdomain, :uuid ]
53
-
54
- # Use a different logger for distributed setups.
55
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
-
57
- # Use a different cache store in production.
58
- # config.cache_store = :mem_cache_store
59
-
60
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
- # config.action_controller.asset_host = 'http://assets.example.com'
62
-
63
- # Ignore bad email addresses and do not raise email delivery errors.
64
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
- # config.action_mailer.raise_delivery_errors = false
66
-
67
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
- # the I18n.default_locale when a translation cannot be found).
69
- config.i18n.fallbacks = true
70
-
71
- # Send deprecation notices to registered listeners.
72
- config.active_support.deprecation = :notify
73
-
74
- # Use default logging formatter so that PID and timestamp are not suppressed.
75
- config.log_formatter = ::Logger::Formatter.new
76
-
77
- # Do not dump schema after migrations.
78
- config.active_record.dump_schema_after_migration = false
79
- end