thecore_settings 1.1.15 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/.devcontainer/Dockerfile +20 -0
  3. data/.devcontainer/devcontainer.json +33 -0
  4. data/.github/workflows/gempush.yml +34 -0
  5. data/.gitignore +542 -0
  6. data/.rakeTasks +7 -0
  7. data/.rspec +1 -0
  8. data/.ruby-version +1 -0
  9. data/.travis.yml +31 -0
  10. data/CHANGELOG.md +81 -0
  11. data/Gemfile +4 -0
  12. data/Gemfile.lock +275 -0
  13. data/LICENSE.txt +22 -0
  14. data/README.md +169 -0
  15. data/README.rdoc +68 -0
  16. data/Rakefile +6 -34
  17. data/app/assets/images/thecore_settings/.keep +0 -0
  18. data/app/assets/javascripts/thecore_settings/.keep +0 -0
  19. data/app/assets/stylesheets/thecore_settings/.keep +0 -0
  20. data/app/controllers/.keep +0 -0
  21. data/app/helpers/.keep +0 -0
  22. data/app/mailers/.keep +0 -0
  23. data/app/models/.keep +0 -0
  24. data/app/models/rails_admin_settings/setting.rb +77 -0
  25. data/app/views/.keep +0 -0
  26. data/app/views/rails_admin/main/_setting_value.html.haml +41 -0
  27. data/assets/javascripts/rails_admin/custom/thecore_settings.rb +2 -0
  28. data/bin/rails +13 -0
  29. data/config/locales/en.yml +29 -0
  30. data/config/locales/pt-BR.yml +28 -0
  31. data/config/locales/ru.yml +29 -0
  32. data/gemfiles/mongoid-6.0.gemfile +5 -0
  33. data/gemfiles/mongoid-6.3.gemfile +5 -0
  34. data/lib/generators/rails_admin_settings/migration_generator.rb +15 -0
  35. data/lib/generators/rails_admin_settings/templates/db/migrate/20161227101954_create_thecore_settings.rb +29 -0
  36. data/lib/generators/rails_admin_settings/templates/migration.rb +29 -0
  37. data/lib/thecore_settings/determine_mime_type.rb +193 -0
  38. data/lib/thecore_settings/dumper.rb +12 -0
  39. data/lib/thecore_settings/engine.rb +17 -3
  40. data/lib/thecore_settings/fallback.rb +21 -0
  41. data/lib/thecore_settings/hex_color_validator.rb +11 -0
  42. data/lib/thecore_settings/kinds.rb +34 -0
  43. data/lib/thecore_settings/mongoid.rb +19 -0
  44. data/lib/thecore_settings/namespaced.rb +210 -0
  45. data/lib/thecore_settings/processing.rb +217 -0
  46. data/lib/thecore_settings/rails_admin_config.rb +71 -0
  47. data/lib/thecore_settings/require_helpers.rb +86 -0
  48. data/lib/thecore_settings/settings.rb +95 -0
  49. data/lib/thecore_settings/storage/carrier_wave_uploader.rb +9 -0
  50. data/lib/thecore_settings/storage/shrine_uploader.rb +14 -0
  51. data/lib/thecore_settings/tasks.rb +35 -0
  52. data/lib/thecore_settings/uploads.rb +57 -0
  53. data/lib/thecore_settings/validation.rb +126 -0
  54. data/lib/thecore_settings/version.rb +1 -1
  55. data/lib/thecore_settings.rb +115 -123
  56. data/log/development.log +0 -0
  57. data/spec/advanced_usage_spec.rb +11 -0
  58. data/spec/carrierwave_spec.rb +41 -0
  59. data/spec/database_trickery_spec.rb +48 -0
  60. data/spec/defaults_spec.rb +87 -0
  61. data/spec/enabling_spec.rb +29 -0
  62. data/spec/factories/setting.rb +8 -0
  63. data/spec/label_spec.rb +16 -0
  64. data/spec/migration_spec.rb +20 -0
  65. data/spec/model_spec.rb +105 -0
  66. data/spec/namespaced_spec.rb +67 -0
  67. data/spec/paperclip_spec.rb +38 -0
  68. data/spec/settings_spec.rb +75 -0
  69. data/spec/shrine_spec.rb +34 -0
  70. data/spec/spec_helper.rb +85 -0
  71. data/spec/support/1024x768.gif +0 -0
  72. data/spec/support/database_cleaner.rb +10 -0
  73. data/spec/support/defaults.yml +23 -0
  74. data/spec/support/defaults_w_file.yml +19 -0
  75. data/spec/support/mongoid.rb +6 -0
  76. data/spec/support/mongoid.yml +6 -0
  77. data/spec/types_spec.rb +101 -0
  78. data/test/dummy/Rakefile +6 -0
  79. data/test/dummy/app/assets/config/manifest.js +4 -0
  80. data/test/dummy/app/assets/images/.keep +0 -0
  81. data/test/dummy/app/assets/javascripts/application.js +13 -0
  82. data/test/dummy/app/assets/javascripts/cable.js +13 -0
  83. data/test/dummy/app/assets/javascripts/channels/.keep +0 -0
  84. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  85. data/test/dummy/app/channels/application_cable/channel.rb +4 -0
  86. data/test/dummy/app/channels/application_cable/connection.rb +4 -0
  87. data/test/dummy/app/controllers/application_controller.rb +3 -0
  88. data/test/dummy/app/controllers/concerns/.keep +0 -0
  89. data/test/dummy/app/helpers/application_helper.rb +2 -0
  90. data/test/dummy/app/jobs/application_job.rb +2 -0
  91. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  92. data/test/dummy/app/models/application_record.rb +3 -0
  93. data/test/dummy/app/models/concerns/.keep +0 -0
  94. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  95. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  96. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  97. data/test/dummy/bin/bundle +3 -0
  98. data/test/dummy/bin/rails +4 -0
  99. data/test/dummy/bin/rake +4 -0
  100. data/test/dummy/bin/setup +34 -0
  101. data/test/dummy/bin/update +29 -0
  102. data/test/dummy/config/application.rb +15 -0
  103. data/test/dummy/config/boot.rb +5 -0
  104. data/test/dummy/config/cable.yml +9 -0
  105. data/test/dummy/config/database.yml +25 -0
  106. data/test/dummy/config/environment.rb +5 -0
  107. data/test/dummy/config/environments/development.rb +54 -0
  108. data/test/dummy/config/environments/production.rb +86 -0
  109. data/test/dummy/config/environments/test.rb +42 -0
  110. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  111. data/test/dummy/config/initializers/assets.rb +11 -0
  112. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  113. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  114. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  115. data/test/dummy/config/initializers/inflections.rb +16 -0
  116. data/test/dummy/config/initializers/mime_types.rb +4 -0
  117. data/test/dummy/config/initializers/new_framework_defaults.rb +24 -0
  118. data/test/dummy/config/initializers/session_store.rb +3 -0
  119. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  120. data/test/dummy/config/locales/en.yml +23 -0
  121. data/test/dummy/config/puma.rb +47 -0
  122. data/test/dummy/config/routes.rb +3 -0
  123. data/test/dummy/config/secrets.yml +22 -0
  124. data/test/dummy/config/spring.rb +6 -0
  125. data/test/dummy/config.ru +5 -0
  126. data/test/dummy/db/development.sqlite3 +0 -0
  127. data/test/dummy/lib/assets/.keep +0 -0
  128. data/test/dummy/log/.keep +0 -0
  129. data/test/dummy/log/development.log +16 -0
  130. data/test/dummy/public/404.html +67 -0
  131. data/test/dummy/public/422.html +67 -0
  132. data/test/dummy/public/500.html +66 -0
  133. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  134. data/test/dummy/public/apple-touch-icon.png +0 -0
  135. data/test/dummy/public/favicon.ico +0 -0
  136. data/test/dummy/tmp/.keep +0 -0
  137. data/test/integration/navigation_test.rb +8 -0
  138. data/test/test_helper.rb +19 -0
  139. data/test/thecore_settings_test.rb +7 -0
  140. data/thecore_settings.gemspec +44 -0
  141. metadata +457 -54
File without changes
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
8
+
@@ -0,0 +1,19 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
+ require "rails/test_help"
7
+
8
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
9
+ # to be shown.
10
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
11
+
12
+
13
+ # Load fixtures from the engine
14
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
15
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
16
+ ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
17
+ ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
18
+ ActiveSupport::TestCase.fixtures :all
19
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ThecoreSettings::Test < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ThecoreSettings
6
+ end
7
+ end
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'thecore_settings/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "thecore_settings"
8
+ spec.version = ThecoreSettings::VERSION
9
+ spec.authors = ["Gabriele Tassoni", "Gleb Tv"]
10
+ spec.email = ["gabriele.tassoni@gmail.com", "glebtv@gmail.com"]
11
+ spec.description = %q{Mongoid / ActiveRecord + RailsAdmin App Settings management}
12
+ spec.summary = %q{}
13
+ spec.homepage = "https://github.com/gabrieletassoni/thecore_settings"
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
+
22
+ spec.add_development_dependency "mongoid", '~> 6.3'
23
+ spec.add_development_dependency "rails"
24
+ spec.add_development_dependency "bundler"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rspec"
27
+ spec.add_development_dependency "mongoid-rspec"
28
+ spec.add_development_dependency "simplecov"
29
+ spec.add_development_dependency "database_cleaner"
30
+ spec.add_development_dependency "factory_bot"
31
+ spec.add_development_dependency "safe_yaml"
32
+ spec.add_development_dependency "russian_phone"
33
+ spec.add_development_dependency "sanitize"
34
+ spec.add_development_dependency "validates_email_format_of"
35
+ spec.add_development_dependency "geocoder"
36
+ spec.add_development_dependency "addressable"
37
+ spec.add_development_dependency "carrierwave-mongoid"
38
+ spec.add_development_dependency "mongoid-paperclip"
39
+ spec.add_development_dependency "rubocop-rspec"
40
+ spec.add_development_dependency 'image_processing'
41
+ spec.add_development_dependency "mini_magick"
42
+ spec.add_development_dependency "shrine", "~> 3.0"
43
+ spec.add_development_dependency "shrine-mongoid", "~> 1.0"
44
+ end
metadata CHANGED
@@ -1,164 +1,484 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.15
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
+ - Gleb Tv
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
12
+ date: 2021-08-25 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: thecore
15
+ name: mongoid
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :runtime
20
+ version: '6.3'
21
+ type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '1.0'
27
+ version: '6.3'
27
28
  - !ruby/object:Gem::Dependency
28
- name: russian_phone
29
+ name: rails
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - "~>"
32
+ - - ">="
32
33
  - !ruby/object:Gem::Version
33
- version: '0.6'
34
- type: :runtime
34
+ version: '0'
35
+ type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - "~>"
39
+ - - ">="
39
40
  - !ruby/object:Gem::Version
40
- version: '0.6'
41
+ version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
- name: sanitize
43
+ name: bundler
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - "~>"
46
+ - - ">="
46
47
  - !ruby/object:Gem::Version
47
- version: '4.5'
48
- type: :runtime
48
+ version: '0'
49
+ type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - "~>"
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: mongoid-rspec
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
53
96
  - !ruby/object:Gem::Version
54
- version: '4.5'
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: simplecov
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: database_cleaner
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: factory_bot
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
55
140
  - !ruby/object:Gem::Dependency
56
141
  name: safe_yaml
57
142
  requirement: !ruby/object:Gem::Requirement
58
143
  requirements:
59
- - - "~>"
144
+ - - ">="
60
145
  - !ruby/object:Gem::Version
61
- version: '1.0'
62
- type: :runtime
146
+ version: '0'
147
+ type: :development
63
148
  prerelease: false
64
149
  version_requirements: !ruby/object:Gem::Requirement
65
150
  requirements:
66
- - - "~>"
151
+ - - ">="
67
152
  - !ruby/object:Gem::Version
68
- version: '1.0'
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: russian_phone
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: sanitize
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
69
182
  - !ruby/object:Gem::Dependency
70
183
  name: validates_email_format_of
71
184
  requirement: !ruby/object:Gem::Requirement
72
185
  requirements:
73
- - - "~>"
186
+ - - ">="
74
187
  - !ruby/object:Gem::Version
75
- version: '1.6'
76
- type: :runtime
188
+ version: '0'
189
+ type: :development
77
190
  prerelease: false
78
191
  version_requirements: !ruby/object:Gem::Requirement
79
192
  requirements:
80
- - - "~>"
193
+ - - ">="
81
194
  - !ruby/object:Gem::Version
82
- version: '1.6'
195
+ version: '0'
83
196
  - !ruby/object:Gem::Dependency
84
197
  name: geocoder
85
198
  requirement: !ruby/object:Gem::Requirement
86
199
  requirements:
87
- - - "~>"
200
+ - - ">="
88
201
  - !ruby/object:Gem::Version
89
- version: '1.4'
90
- type: :runtime
202
+ version: '0'
203
+ type: :development
91
204
  prerelease: false
92
205
  version_requirements: !ruby/object:Gem::Requirement
93
206
  requirements:
94
- - - "~>"
207
+ - - ">="
95
208
  - !ruby/object:Gem::Version
96
- version: '1.4'
209
+ version: '0'
97
210
  - !ruby/object:Gem::Dependency
98
- name: paperclip
211
+ name: addressable
99
212
  requirement: !ruby/object:Gem::Requirement
100
213
  requirements:
101
- - - "~>"
214
+ - - ">="
102
215
  - !ruby/object:Gem::Version
103
- version: '5.1'
104
- type: :runtime
216
+ version: '0'
217
+ type: :development
105
218
  prerelease: false
106
219
  version_requirements: !ruby/object:Gem::Requirement
107
220
  requirements:
108
- - - "~>"
221
+ - - ">="
109
222
  - !ruby/object:Gem::Version
110
- version: '5.1'
223
+ version: '0'
111
224
  - !ruby/object:Gem::Dependency
112
- name: addressable
225
+ name: carrierwave-mongoid
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ - !ruby/object:Gem::Dependency
239
+ name: mongoid-paperclip
240
+ requirement: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: '0'
245
+ type: :development
246
+ prerelease: false
247
+ version_requirements: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - ">="
250
+ - !ruby/object:Gem::Version
251
+ version: '0'
252
+ - !ruby/object:Gem::Dependency
253
+ name: rubocop-rspec
254
+ requirement: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: '0'
259
+ type: :development
260
+ prerelease: false
261
+ version_requirements: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: '0'
266
+ - !ruby/object:Gem::Dependency
267
+ name: image_processing
268
+ requirement: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ version: '0'
273
+ type: :development
274
+ prerelease: false
275
+ version_requirements: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
280
+ - !ruby/object:Gem::Dependency
281
+ name: mini_magick
282
+ requirement: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: '0'
287
+ type: :development
288
+ prerelease: false
289
+ version_requirements: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - ">="
292
+ - !ruby/object:Gem::Version
293
+ version: '0'
294
+ - !ruby/object:Gem::Dependency
295
+ name: shrine
113
296
  requirement: !ruby/object:Gem::Requirement
114
297
  requirements:
115
298
  - - "~>"
116
299
  - !ruby/object:Gem::Version
117
- version: '2.5'
118
- type: :runtime
300
+ version: '3.0'
301
+ type: :development
119
302
  prerelease: false
120
303
  version_requirements: !ruby/object:Gem::Requirement
121
304
  requirements:
122
305
  - - "~>"
123
306
  - !ruby/object:Gem::Version
124
- version: '2.5'
307
+ version: '3.0'
125
308
  - !ruby/object:Gem::Dependency
126
- name: rails_admin_settings
309
+ name: shrine-mongoid
127
310
  requirement: !ruby/object:Gem::Requirement
128
311
  requirements:
129
312
  - - "~>"
130
313
  - !ruby/object:Gem::Version
131
- version: '1.3'
132
- type: :runtime
314
+ version: '1.0'
315
+ type: :development
133
316
  prerelease: false
134
317
  version_requirements: !ruby/object:Gem::Requirement
135
318
  requirements:
136
319
  - - "~>"
137
320
  - !ruby/object:Gem::Version
138
- version: '1.3'
139
- description: Automagically manage settings.
321
+ version: '1.0'
322
+ description: Mongoid / ActiveRecord + RailsAdmin App Settings management
140
323
  email:
141
- - gabrieletassoni@taris.it
142
- executables: []
324
+ - gabriele.tassoni@gmail.com
325
+ - glebtv@gmail.com
326
+ executables:
327
+ - rails
143
328
  extensions: []
144
329
  extra_rdoc_files: []
145
330
  files:
331
+ - ".devcontainer/Dockerfile"
332
+ - ".devcontainer/devcontainer.json"
333
+ - ".github/workflows/gempush.yml"
334
+ - ".gitignore"
335
+ - ".rakeTasks"
336
+ - ".rspec"
337
+ - ".ruby-version"
338
+ - ".travis.yml"
339
+ - CHANGELOG.md
340
+ - Gemfile
341
+ - Gemfile.lock
342
+ - LICENSE.txt
146
343
  - MIT-LICENSE
344
+ - README.md
345
+ - README.rdoc
147
346
  - Rakefile
148
347
  - app/assets/config/thecore_settings_manifest.js
348
+ - app/assets/images/thecore_settings/.keep
349
+ - app/assets/javascripts/thecore_settings/.keep
149
350
  - app/assets/stylesheets/rich/editor.css
351
+ - app/assets/stylesheets/thecore_settings/.keep
352
+ - app/controllers/.keep
353
+ - app/helpers/.keep
354
+ - app/mailers/.keep
355
+ - app/models/.keep
356
+ - app/models/rails_admin_settings/setting.rb
357
+ - app/views/.keep
358
+ - app/views/rails_admin/main/_setting_value.html.haml
359
+ - assets/javascripts/rails_admin/custom/thecore_settings.rb
360
+ - bin/rails
150
361
  - config/initializers/rails_admin_requirements.rb
151
362
  - config/initializers/thecore_settings_abilities.rb
152
363
  - config/initializers/thecore_settings_post_init.rb
364
+ - config/locales/en.yml
365
+ - config/locales/pt-BR.yml
366
+ - config/locales/ru.yml
153
367
  - config/locales/thecore_settings.it.yml
154
368
  - config/routes.rb
155
369
  - db/migrate/20161227101954_create_rails_admin_settings.rb
156
370
  - db/migrate/20161227101956_add_app_name.rb
371
+ - gemfiles/mongoid-6.0.gemfile
372
+ - gemfiles/mongoid-6.3.gemfile
373
+ - lib/generators/rails_admin_settings/migration_generator.rb
374
+ - lib/generators/rails_admin_settings/templates/db/migrate/20161227101954_create_thecore_settings.rb
375
+ - lib/generators/rails_admin_settings/templates/migration.rb
157
376
  - lib/tasks/thecore_settings_tasks.rake
158
377
  - lib/thecore_settings.rb
378
+ - lib/thecore_settings/determine_mime_type.rb
379
+ - lib/thecore_settings/dumper.rb
159
380
  - lib/thecore_settings/engine.rb
381
+ - lib/thecore_settings/fallback.rb
382
+ - lib/thecore_settings/hex_color_validator.rb
383
+ - lib/thecore_settings/kinds.rb
384
+ - lib/thecore_settings/mongoid.rb
385
+ - lib/thecore_settings/namespaced.rb
386
+ - lib/thecore_settings/processing.rb
387
+ - lib/thecore_settings/rails_admin_config.rb
388
+ - lib/thecore_settings/require_helpers.rb
389
+ - lib/thecore_settings/settings.rb
390
+ - lib/thecore_settings/storage/carrier_wave_uploader.rb
391
+ - lib/thecore_settings/storage/shrine_uploader.rb
392
+ - lib/thecore_settings/tasks.rb
393
+ - lib/thecore_settings/uploads.rb
394
+ - lib/thecore_settings/validation.rb
160
395
  - lib/thecore_settings/version.rb
161
- homepage: https://taris.it
396
+ - log/development.log
397
+ - spec/advanced_usage_spec.rb
398
+ - spec/carrierwave_spec.rb
399
+ - spec/database_trickery_spec.rb
400
+ - spec/defaults_spec.rb
401
+ - spec/enabling_spec.rb
402
+ - spec/factories/setting.rb
403
+ - spec/label_spec.rb
404
+ - spec/migration_spec.rb
405
+ - spec/model_spec.rb
406
+ - spec/namespaced_spec.rb
407
+ - spec/paperclip_spec.rb
408
+ - spec/settings_spec.rb
409
+ - spec/shrine_spec.rb
410
+ - spec/spec_helper.rb
411
+ - spec/support/1024x768.gif
412
+ - spec/support/database_cleaner.rb
413
+ - spec/support/defaults.yml
414
+ - spec/support/defaults_w_file.yml
415
+ - spec/support/mongoid.rb
416
+ - spec/support/mongoid.yml
417
+ - spec/types_spec.rb
418
+ - test/dummy/Rakefile
419
+ - test/dummy/app/assets/config/manifest.js
420
+ - test/dummy/app/assets/images/.keep
421
+ - test/dummy/app/assets/javascripts/application.js
422
+ - test/dummy/app/assets/javascripts/cable.js
423
+ - test/dummy/app/assets/javascripts/channels/.keep
424
+ - test/dummy/app/assets/stylesheets/application.css
425
+ - test/dummy/app/channels/application_cable/channel.rb
426
+ - test/dummy/app/channels/application_cable/connection.rb
427
+ - test/dummy/app/controllers/application_controller.rb
428
+ - test/dummy/app/controllers/concerns/.keep
429
+ - test/dummy/app/helpers/application_helper.rb
430
+ - test/dummy/app/jobs/application_job.rb
431
+ - test/dummy/app/mailers/application_mailer.rb
432
+ - test/dummy/app/models/application_record.rb
433
+ - test/dummy/app/models/concerns/.keep
434
+ - test/dummy/app/views/layouts/application.html.erb
435
+ - test/dummy/app/views/layouts/mailer.html.erb
436
+ - test/dummy/app/views/layouts/mailer.text.erb
437
+ - test/dummy/bin/bundle
438
+ - test/dummy/bin/rails
439
+ - test/dummy/bin/rake
440
+ - test/dummy/bin/setup
441
+ - test/dummy/bin/update
442
+ - test/dummy/config.ru
443
+ - test/dummy/config/application.rb
444
+ - test/dummy/config/boot.rb
445
+ - test/dummy/config/cable.yml
446
+ - test/dummy/config/database.yml
447
+ - test/dummy/config/environment.rb
448
+ - test/dummy/config/environments/development.rb
449
+ - test/dummy/config/environments/production.rb
450
+ - test/dummy/config/environments/test.rb
451
+ - test/dummy/config/initializers/application_controller_renderer.rb
452
+ - test/dummy/config/initializers/assets.rb
453
+ - test/dummy/config/initializers/backtrace_silencers.rb
454
+ - test/dummy/config/initializers/cookies_serializer.rb
455
+ - test/dummy/config/initializers/filter_parameter_logging.rb
456
+ - test/dummy/config/initializers/inflections.rb
457
+ - test/dummy/config/initializers/mime_types.rb
458
+ - test/dummy/config/initializers/new_framework_defaults.rb
459
+ - test/dummy/config/initializers/session_store.rb
460
+ - test/dummy/config/initializers/wrap_parameters.rb
461
+ - test/dummy/config/locales/en.yml
462
+ - test/dummy/config/puma.rb
463
+ - test/dummy/config/routes.rb
464
+ - test/dummy/config/secrets.yml
465
+ - test/dummy/config/spring.rb
466
+ - test/dummy/db/development.sqlite3
467
+ - test/dummy/lib/assets/.keep
468
+ - test/dummy/log/.keep
469
+ - test/dummy/log/development.log
470
+ - test/dummy/public/404.html
471
+ - test/dummy/public/422.html
472
+ - test/dummy/public/500.html
473
+ - test/dummy/public/apple-touch-icon-precomposed.png
474
+ - test/dummy/public/apple-touch-icon.png
475
+ - test/dummy/public/favicon.ico
476
+ - test/dummy/tmp/.keep
477
+ - test/integration/navigation_test.rb
478
+ - test/test_helper.rb
479
+ - test/thecore_settings_test.rb
480
+ - thecore_settings.gemspec
481
+ homepage: https://github.com/gabrieletassoni/thecore_settings
162
482
  licenses:
163
483
  - MIT
164
484
  metadata: {}
@@ -177,8 +497,91 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
497
  - !ruby/object:Gem::Version
178
498
  version: '0'
179
499
  requirements: []
180
- rubygems_version: 3.0.6
500
+ rubygems_version: 3.0.3.1
181
501
  signing_key:
182
502
  specification_version: 4
183
- summary: Adds settings section.
184
- test_files: []
503
+ summary: ''
504
+ test_files:
505
+ - spec/advanced_usage_spec.rb
506
+ - spec/carrierwave_spec.rb
507
+ - spec/database_trickery_spec.rb
508
+ - spec/defaults_spec.rb
509
+ - spec/enabling_spec.rb
510
+ - spec/factories/setting.rb
511
+ - spec/label_spec.rb
512
+ - spec/migration_spec.rb
513
+ - spec/model_spec.rb
514
+ - spec/namespaced_spec.rb
515
+ - spec/paperclip_spec.rb
516
+ - spec/settings_spec.rb
517
+ - spec/shrine_spec.rb
518
+ - spec/spec_helper.rb
519
+ - spec/support/1024x768.gif
520
+ - spec/support/database_cleaner.rb
521
+ - spec/support/defaults.yml
522
+ - spec/support/defaults_w_file.yml
523
+ - spec/support/mongoid.rb
524
+ - spec/support/mongoid.yml
525
+ - spec/types_spec.rb
526
+ - test/dummy/Rakefile
527
+ - test/dummy/app/assets/config/manifest.js
528
+ - test/dummy/app/assets/images/.keep
529
+ - test/dummy/app/assets/javascripts/application.js
530
+ - test/dummy/app/assets/javascripts/cable.js
531
+ - test/dummy/app/assets/javascripts/channels/.keep
532
+ - test/dummy/app/assets/stylesheets/application.css
533
+ - test/dummy/app/channels/application_cable/channel.rb
534
+ - test/dummy/app/channels/application_cable/connection.rb
535
+ - test/dummy/app/controllers/application_controller.rb
536
+ - test/dummy/app/controllers/concerns/.keep
537
+ - test/dummy/app/helpers/application_helper.rb
538
+ - test/dummy/app/jobs/application_job.rb
539
+ - test/dummy/app/mailers/application_mailer.rb
540
+ - test/dummy/app/models/application_record.rb
541
+ - test/dummy/app/models/concerns/.keep
542
+ - test/dummy/app/views/layouts/application.html.erb
543
+ - test/dummy/app/views/layouts/mailer.html.erb
544
+ - test/dummy/app/views/layouts/mailer.text.erb
545
+ - test/dummy/bin/bundle
546
+ - test/dummy/bin/rails
547
+ - test/dummy/bin/rake
548
+ - test/dummy/bin/setup
549
+ - test/dummy/bin/update
550
+ - test/dummy/config.ru
551
+ - test/dummy/config/application.rb
552
+ - test/dummy/config/boot.rb
553
+ - test/dummy/config/cable.yml
554
+ - test/dummy/config/database.yml
555
+ - test/dummy/config/environment.rb
556
+ - test/dummy/config/environments/development.rb
557
+ - test/dummy/config/environments/production.rb
558
+ - test/dummy/config/environments/test.rb
559
+ - test/dummy/config/initializers/application_controller_renderer.rb
560
+ - test/dummy/config/initializers/assets.rb
561
+ - test/dummy/config/initializers/backtrace_silencers.rb
562
+ - test/dummy/config/initializers/cookies_serializer.rb
563
+ - test/dummy/config/initializers/filter_parameter_logging.rb
564
+ - test/dummy/config/initializers/inflections.rb
565
+ - test/dummy/config/initializers/mime_types.rb
566
+ - test/dummy/config/initializers/new_framework_defaults.rb
567
+ - test/dummy/config/initializers/session_store.rb
568
+ - test/dummy/config/initializers/wrap_parameters.rb
569
+ - test/dummy/config/locales/en.yml
570
+ - test/dummy/config/puma.rb
571
+ - test/dummy/config/routes.rb
572
+ - test/dummy/config/secrets.yml
573
+ - test/dummy/config/spring.rb
574
+ - test/dummy/db/development.sqlite3
575
+ - test/dummy/lib/assets/.keep
576
+ - test/dummy/log/.keep
577
+ - test/dummy/log/development.log
578
+ - test/dummy/public/404.html
579
+ - test/dummy/public/422.html
580
+ - test/dummy/public/500.html
581
+ - test/dummy/public/apple-touch-icon-precomposed.png
582
+ - test/dummy/public/apple-touch-icon.png
583
+ - test/dummy/public/favicon.ico
584
+ - test/dummy/tmp/.keep
585
+ - test/integration/navigation_test.rb
586
+ - test/test_helper.rb
587
+ - test/thecore_settings_test.rb