rails_admin_settings 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/.ruby-gemset +0 -0
  5. data/.ruby-version +0 -0
  6. data/.travis.yml +0 -0
  7. data/CHANGELOG.md +0 -0
  8. data/Gemfile +0 -0
  9. data/Gemfile.lock +141 -118
  10. data/LICENSE.txt +0 -0
  11. data/README.md +0 -0
  12. data/Rakefile +0 -0
  13. data/app/models/rails_admin_settings/setting.rb +0 -0
  14. data/app/views/rails_admin/main/_setting_value.html.haml +0 -0
  15. data/config/locales/en.yml +0 -0
  16. data/config/locales/ru.yml +0 -0
  17. data/gemfiles/mongoid-3.1.gemfile +0 -0
  18. data/gemfiles/mongoid-4.0.gemfile +0 -0
  19. data/lib/generators/rails_admin_settings/migration_generator.rb +0 -0
  20. data/lib/generators/rails_admin_settings/templates/migration.rb +0 -0
  21. data/lib/rails_admin_settings/dumper.rb +0 -0
  22. data/lib/rails_admin_settings/engine.rb +0 -0
  23. data/lib/rails_admin_settings/fallback.rb +0 -0
  24. data/lib/rails_admin_settings/hex_color_validator.rb +0 -0
  25. data/lib/rails_admin_settings/kinds.rb +0 -0
  26. data/lib/rails_admin_settings/mongoid.rb +0 -0
  27. data/lib/rails_admin_settings/namespaced.rb +0 -0
  28. data/lib/rails_admin_settings/processing.rb +0 -0
  29. data/lib/rails_admin_settings/rails_admin_config.rb +0 -0
  30. data/lib/rails_admin_settings/require_helpers.rb +0 -0
  31. data/lib/rails_admin_settings/settings.rb +0 -0
  32. data/lib/rails_admin_settings/storage/carrierwave.rb +0 -0
  33. data/lib/rails_admin_settings/tasks.rb +0 -0
  34. data/lib/rails_admin_settings/uploads.rb +0 -0
  35. data/lib/rails_admin_settings/validation.rb +0 -0
  36. data/lib/rails_admin_settings/version.rb +1 -1
  37. data/lib/rails_admin_settings.rb +0 -0
  38. data/rails_admin_settings.gemspec +2 -2
  39. data/spec/advanced_usage_spec.rb +0 -0
  40. data/spec/carrierwave_spec.rb +0 -0
  41. data/spec/database_trickery_spec.rb +0 -0
  42. data/spec/defaults_spec.rb +0 -0
  43. data/spec/enabling_spec.rb +0 -0
  44. data/spec/factories/setting.rb +0 -0
  45. data/spec/label_spec.rb +0 -0
  46. data/spec/migration_spec.rb +6 -1
  47. data/spec/model_spec.rb +0 -0
  48. data/spec/namespaced_spec.rb +0 -0
  49. data/spec/paperclip_spec.rb +0 -0
  50. data/spec/settings_spec.rb +0 -0
  51. data/spec/spec_helper.rb +1 -1
  52. data/spec/support/database_cleaner.rb +0 -0
  53. data/spec/support/defaults.yml +0 -0
  54. data/spec/support/defaults_w_file.yml +0 -0
  55. data/spec/support/mongoid.rb +0 -0
  56. data/spec/support/mongoid.yml +1 -1
  57. data/spec/types_spec.rb +0 -0
  58. metadata +6 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c76a7a81140fa4baee9e1db13602f538721af8d
4
- data.tar.gz: 1dad9922dc2068e681ff5661996759aea13802b5
3
+ metadata.gz: 47d3f93294e3ae605d3c32140ba23450c262a89f
4
+ data.tar.gz: ba5887e77196c8e4f1b3d3c7944e3248ffe99442
5
5
  SHA512:
6
- metadata.gz: a4426f48c52e7fb3dcc74e141a5064a0e3932a58578482c8fa3258b98b0d6876f8b244bd13ab63c267f512f01cb91ba1fea5ba3fadf44133960a81fd540fbbf8
7
- data.tar.gz: f5935ca8276eb71bd5514f6c239215271f3f556cc704af2edaffb4996b292d3a4a6240d68de6127d6206522facecf94e81fd2f6bb7a46308ec857dbc35bf5c04
6
+ metadata.gz: 0db473dcb00deb425abffbf1cccaf6745c113f265a9931313993fd50d830bbb3496929fb9ae55652abc2adce08181053560ecc6caba2b3be5e7e5ab056af14e0
7
+ data.tar.gz: e9360ca3b45ecc6b02e6c2563b842952697ceda330fbc2cb02252db57af14abe61301d4effa9089e9045e2db38c25b2923c80a712856f4264507d7e6c1720378
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
data/.ruby-gemset CHANGED
File without changes
data/.ruby-version CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,166 +1,189 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_admin_settings (1.1.3)
4
+ rails_admin_settings (1.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionmailer (3.2.22)
10
- actionpack (= 3.2.22)
11
- mail (~> 2.5.4)
12
- actionpack (3.2.22)
13
- activemodel (= 3.2.22)
14
- activesupport (= 3.2.22)
15
- builder (~> 3.0.0)
9
+ actioncable (5.0.0.1)
10
+ actionpack (= 5.0.0.1)
11
+ nio4r (~> 1.2)
12
+ websocket-driver (~> 0.6.1)
13
+ actionmailer (5.0.0.1)
14
+ actionpack (= 5.0.0.1)
15
+ actionview (= 5.0.0.1)
16
+ activejob (= 5.0.0.1)
17
+ mail (~> 2.5, >= 2.5.4)
18
+ rails-dom-testing (~> 2.0)
19
+ actionpack (5.0.0.1)
20
+ actionview (= 5.0.0.1)
21
+ activesupport (= 5.0.0.1)
22
+ rack (~> 2.0)
23
+ rack-test (~> 0.6.3)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ actionview (5.0.0.1)
27
+ activesupport (= 5.0.0.1)
28
+ builder (~> 3.1)
16
29
  erubis (~> 2.7.0)
17
- journey (~> 1.0.4)
18
- rack (~> 1.4.5)
19
- rack-cache (~> 1.2)
20
- rack-test (~> 0.6.1)
21
- sprockets (~> 2.2.1)
22
- activemodel (3.2.22)
23
- activesupport (= 3.2.22)
24
- builder (~> 3.0.0)
25
- activerecord (3.2.22)
26
- activemodel (= 3.2.22)
27
- activesupport (= 3.2.22)
28
- arel (~> 3.0.2)
29
- tzinfo (~> 0.3.29)
30
- activeresource (3.2.22)
31
- activemodel (= 3.2.22)
32
- activesupport (= 3.2.22)
33
- activesupport (3.2.22)
34
- i18n (~> 0.6, >= 0.6.4)
35
- multi_json (~> 1.0)
30
+ rails-dom-testing (~> 2.0)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
32
+ activejob (5.0.0.1)
33
+ activesupport (= 5.0.0.1)
34
+ globalid (>= 0.3.6)
35
+ activemodel (5.0.0.1)
36
+ activesupport (= 5.0.0.1)
37
+ activerecord (5.0.0.1)
38
+ activemodel (= 5.0.0.1)
39
+ activesupport (= 5.0.0.1)
40
+ arel (~> 7.0)
41
+ activesupport (5.0.0.1)
42
+ concurrent-ruby (~> 1.0, >= 1.0.2)
43
+ i18n (~> 0.7)
44
+ minitest (~> 5.1)
45
+ tzinfo (~> 1.1)
36
46
  addressable (2.4.0)
37
- arel (3.0.3)
38
- builder (3.0.4)
39
- carrierwave (0.10.0)
47
+ arel (7.1.4)
48
+ bson (4.1.1)
49
+ builder (3.2.2)
50
+ carrierwave (0.11.2)
40
51
  activemodel (>= 3.2.0)
41
52
  activesupport (>= 3.2.0)
42
53
  json (>= 1.7)
43
54
  mime-types (>= 1.16)
55
+ mimemagic (>= 0.3.0)
56
+ carrierwave-mongoid (0.10.0)
57
+ carrierwave (>= 0.8.0, < 0.12.0)
58
+ mongoid (>= 3.0, < 7.0)
59
+ mongoid-grid_fs (>= 1.3, < 3.0)
44
60
  climate_control (0.0.3)
45
61
  activesupport (>= 3.0)
46
62
  cocaine (0.5.8)
47
63
  climate_control (>= 0.0.3, < 1.0)
48
- coderay (1.1.0)
64
+ coderay (1.1.1)
65
+ concurrent-ruby (1.0.2)
49
66
  crass (1.0.2)
50
- database_cleaner (1.5.1)
67
+ database_cleaner (1.5.3)
51
68
  diff-lcs (1.2.5)
52
69
  docile (1.1.5)
53
70
  erubis (2.7.0)
54
- factory_girl (4.5.0)
71
+ factory_girl (4.7.0)
55
72
  activesupport (>= 3.0.0)
56
- geocoder (1.2.12)
57
- glebtv-carrierwave-mongoid (0.8.0)
58
- carrierwave (>= 0.8.0, < 0.11.0)
59
- mongoid (>= 3.0, < 5.0)
60
- glebtv-mongoid-paperclip (0.4.0)
61
- mongoid (>= 3.0, < 6.0)
62
- paperclip (~> 4.3.1)
63
- hike (1.2.3)
73
+ geocoder (1.4.0)
74
+ glebtv-mongoid-paperclip (0.5.0)
75
+ mongoid (>= 3.0, < 6.1)
76
+ paperclip (~> 5.1.0)
77
+ globalid (0.3.7)
78
+ activesupport (>= 4.1.0)
64
79
  i18n (0.7.0)
65
- journey (1.0.4)
66
- json (1.8.3)
67
- mail (2.5.4)
68
- mime-types (~> 1.16)
69
- treetop (~> 1.4.8)
80
+ json (2.0.2)
81
+ loofah (2.0.3)
82
+ nokogiri (>= 1.5.9)
83
+ mail (2.6.4)
84
+ mime-types (>= 1.16, < 4)
70
85
  method_source (0.8.2)
71
- mime-types (1.25.1)
72
- mimemagic (0.3.0)
73
- mini_portile2 (2.0.0)
74
- mongoid (3.1.7)
75
- activemodel (~> 3.2)
76
- moped (~> 1.4)
77
- origin (~> 1.0)
78
- tzinfo (~> 0.3.29)
79
- mongoid-rspec (1.13.0)
80
- mongoid (~> 3.1)
86
+ mime-types (3.1)
87
+ mime-types-data (~> 3.2015)
88
+ mime-types-data (3.2016.0521)
89
+ mimemagic (0.3.2)
90
+ mini_portile2 (2.1.0)
91
+ minitest (5.9.1)
92
+ mongo (2.3.0)
93
+ bson (~> 4.1)
94
+ mongoid (6.0.0)
95
+ activemodel (~> 5.0)
96
+ mongo (~> 2.3)
97
+ mongoid-grid_fs (2.3.0)
98
+ mime-types (>= 1.0, < 4.0)
99
+ mongoid (>= 3.0, < 7.0)
100
+ mongoid-rspec (1.10.0)
101
+ mongoid (>= 3.0.1)
81
102
  rake
82
- rspec (~> 3.1)
83
- moped (1.5.3)
84
- multi_json (1.11.2)
85
- nokogiri (1.6.7)
86
- mini_portile2 (~> 2.0.0.rc2)
87
- nokogumbo (1.4.6)
103
+ rspec (>= 2.14)
104
+ nio4r (1.2.1)
105
+ nokogiri (1.6.8.1)
106
+ mini_portile2 (~> 2.1.0)
107
+ nokogumbo (1.4.9)
88
108
  nokogiri
89
- origin (1.1.0)
90
- paperclip (4.3.2)
91
- activemodel (>= 3.2.0)
92
- activesupport (>= 3.2.0)
109
+ paperclip (5.1.0)
110
+ activemodel (>= 4.2.0)
111
+ activesupport (>= 4.2.0)
93
112
  cocaine (~> 0.5.5)
94
113
  mime-types
95
- mimemagic (= 0.3.0)
96
- polyglot (0.3.5)
97
- pry (0.10.3)
114
+ mimemagic (~> 0.3.0)
115
+ pry (0.10.4)
98
116
  coderay (~> 1.1.0)
99
117
  method_source (~> 0.8.1)
100
118
  slop (~> 3.4)
101
- rack (1.4.7)
102
- rack-cache (1.5.1)
103
- rack (>= 0.4)
104
- rack-ssl (1.3.4)
105
- rack
119
+ rack (2.0.1)
106
120
  rack-test (0.6.3)
107
121
  rack (>= 1.0)
108
- rails (3.2.22)
109
- actionmailer (= 3.2.22)
110
- actionpack (= 3.2.22)
111
- activerecord (= 3.2.22)
112
- activeresource (= 3.2.22)
113
- activesupport (= 3.2.22)
114
- bundler (~> 1.0)
115
- railties (= 3.2.22)
116
- railties (3.2.22)
117
- actionpack (= 3.2.22)
118
- activesupport (= 3.2.22)
119
- rack-ssl (~> 1.3.2)
122
+ rails (5.0.0.1)
123
+ actioncable (= 5.0.0.1)
124
+ actionmailer (= 5.0.0.1)
125
+ actionpack (= 5.0.0.1)
126
+ actionview (= 5.0.0.1)
127
+ activejob (= 5.0.0.1)
128
+ activemodel (= 5.0.0.1)
129
+ activerecord (= 5.0.0.1)
130
+ activesupport (= 5.0.0.1)
131
+ bundler (>= 1.3.0, < 2.0)
132
+ railties (= 5.0.0.1)
133
+ sprockets-rails (>= 2.0.0)
134
+ rails-dom-testing (2.0.1)
135
+ activesupport (>= 4.2.0, < 6.0)
136
+ nokogiri (~> 1.6.0)
137
+ rails-html-sanitizer (1.0.3)
138
+ loofah (~> 2.0)
139
+ railties (5.0.0.1)
140
+ actionpack (= 5.0.0.1)
141
+ activesupport (= 5.0.0.1)
142
+ method_source
120
143
  rake (>= 0.8.7)
121
- rdoc (~> 3.4)
122
- thor (>= 0.14.6, < 2.0)
123
- rake (10.4.2)
124
- rdoc (3.12.2)
125
- json (~> 1.4)
126
- rspec (3.4.0)
127
- rspec-core (~> 3.4.0)
128
- rspec-expectations (~> 3.4.0)
129
- rspec-mocks (~> 3.4.0)
130
- rspec-core (3.4.1)
131
- rspec-support (~> 3.4.0)
132
- rspec-expectations (3.4.0)
144
+ thor (>= 0.18.1, < 2.0)
145
+ rake (11.3.0)
146
+ rspec (3.5.0)
147
+ rspec-core (~> 3.5.0)
148
+ rspec-expectations (~> 3.5.0)
149
+ rspec-mocks (~> 3.5.0)
150
+ rspec-core (3.5.4)
151
+ rspec-support (~> 3.5.0)
152
+ rspec-expectations (3.5.0)
133
153
  diff-lcs (>= 1.2.0, < 2.0)
134
- rspec-support (~> 3.4.0)
135
- rspec-mocks (3.4.0)
154
+ rspec-support (~> 3.5.0)
155
+ rspec-mocks (3.5.0)
136
156
  diff-lcs (>= 1.2.0, < 2.0)
137
- rspec-support (~> 3.4.0)
138
- rspec-support (3.4.1)
157
+ rspec-support (~> 3.5.0)
158
+ rspec-support (3.5.0)
139
159
  russian_phone (0.5.3)
140
160
  safe_yaml (1.0.4)
141
- sanitize (4.0.1)
161
+ sanitize (4.4.0)
142
162
  crass (~> 1.0.2)
143
163
  nokogiri (>= 1.4.4)
144
164
  nokogumbo (~> 1.4.1)
145
- simplecov (0.11.1)
165
+ simplecov (0.12.0)
146
166
  docile (~> 1.1.0)
147
- json (~> 1.8)
167
+ json (>= 1.8, < 3)
148
168
  simplecov-html (~> 0.10.0)
149
169
  simplecov-html (0.10.0)
150
170
  slop (3.6.0)
151
- sprockets (2.2.3)
152
- hike (~> 1.2)
153
- multi_json (~> 1.0)
154
- rack (~> 1.0)
155
- tilt (~> 1.1, != 1.3.0)
171
+ sprockets (3.7.0)
172
+ concurrent-ruby (~> 1.0)
173
+ rack (> 1, < 3)
174
+ sprockets-rails (3.2.0)
175
+ actionpack (>= 4.0)
176
+ activesupport (>= 4.0)
177
+ sprockets (>= 3.0.0)
156
178
  thor (0.19.1)
157
- tilt (1.4.1)
158
- treetop (1.4.15)
159
- polyglot
160
- polyglot (>= 0.3.1)
161
- tzinfo (0.3.46)
179
+ thread_safe (0.3.5)
180
+ tzinfo (1.2.2)
181
+ thread_safe (~> 0.1)
162
182
  validates_email_format_of (1.6.3)
163
183
  i18n
184
+ websocket-driver (0.6.4)
185
+ websocket-extensions (>= 0.1.0)
186
+ websocket-extensions (0.1.2)
164
187
 
165
188
  PLATFORMS
166
189
  ruby
@@ -168,12 +191,12 @@ PLATFORMS
168
191
  DEPENDENCIES
169
192
  addressable
170
193
  bundler
194
+ carrierwave-mongoid
171
195
  database_cleaner
172
196
  factory_girl
173
197
  geocoder
174
- glebtv-carrierwave-mongoid
175
198
  glebtv-mongoid-paperclip
176
- mongoid (>= 3.0, < 6.0)
199
+ mongoid (~> 6.0)
177
200
  mongoid-rspec
178
201
  pry
179
202
  rails
@@ -187,4 +210,4 @@ DEPENDENCIES
187
210
  validates_email_format_of
188
211
 
189
212
  BUNDLED WITH
190
- 1.10.6
213
+ 1.13.1
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
File without changes
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
 
22
- spec.add_development_dependency "mongoid", [">= 3.0", "< 6.0"]
22
+ spec.add_development_dependency "mongoid", '~> 6.0'
23
23
  spec.add_development_dependency "rails"
24
24
  spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rake"
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "validates_email_format_of"
35
35
  spec.add_development_dependency "geocoder"
36
36
  spec.add_development_dependency "addressable"
37
- spec.add_development_dependency "glebtv-carrierwave-mongoid"
37
+ spec.add_development_dependency "carrierwave-mongoid"
38
38
  spec.add_development_dependency "glebtv-mongoid-paperclip"
39
39
  spec.add_development_dependency "pry"
40
40
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/label_spec.rb CHANGED
File without changes
@@ -4,7 +4,12 @@ require 'spec_helper'
4
4
 
5
5
  describe 'Migrating from old versions' do
6
6
  it 'sets ns' do
7
- RailsAdminSettings::Setting.collection.insert({enabled: true, key: 'test', raw: '9060000000', type: 'phone'})
7
+ coll = RailsAdminSettings::Setting.collection
8
+ if coll.respond_to?(:insert_one)
9
+ coll.insert_one({enabled: true, key: 'test', raw: '9060000000', type: 'phone'})
10
+ else
11
+ coll.insert({enabled: true, key: 'test', raw: '9060000000', type: 'phone'})
12
+ end
8
13
  RailsAdminSettings.migrate!
9
14
  RailsAdminSettings::Setting.first.key.should eq 'test'
10
15
  RailsAdminSettings::Setting.first.raw.should eq '9060000000'
data/spec/model_spec.rb CHANGED
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
@@ -20,7 +20,7 @@ require 'mongoid-rspec'
20
20
 
21
21
  require "glebtv-mongoid-paperclip" if ENV['UPLOADS'] == 'paperclip'
22
22
  if ENV['UPLOADS'] == 'carrierwave'
23
- require "glebtv-carrierwave-mongoid"
23
+ require "carrierwave/mongoid"
24
24
  CarrierWave.configure do |config|
25
25
  config.asset_host = proc do |file|
26
26
  "http://localhost"
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  test:
2
- sessions:
2
+ clients:
3
3
  default:
4
4
  database: rails_admin_settings
5
5
  hosts:
data/spec/types_spec.rb CHANGED
File without changes
metadata CHANGED
@@ -1,33 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '6.0'
23
20
  type: :development
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '3.0'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
26
  version: '6.0'
33
27
  - !ruby/object:Gem::Dependency
@@ -227,7 +221,7 @@ dependencies:
227
221
  - !ruby/object:Gem::Version
228
222
  version: '0'
229
223
  - !ruby/object:Gem::Dependency
230
- name: glebtv-carrierwave-mongoid
224
+ name: carrierwave-mongoid
231
225
  requirement: !ruby/object:Gem::Requirement
232
226
  requirements:
233
227
  - - ">="
@@ -352,7 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
346
  version: '0'
353
347
  requirements: []
354
348
  rubyforge_project:
355
- rubygems_version: 2.4.5.1
349
+ rubygems_version: 2.5.1
356
350
  signing_key:
357
351
  specification_version: 4
358
352
  summary: ''