settingson 1.7.6 → 1.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -1
- data/.travis.yml +9 -3
- data/Appraisals +10 -2
- data/README.md +25 -6
- data/Rakefile +5 -2
- data/app/models/concerns/settingson/base.rb +12 -7
- data/gemfiles/4.2.gemfile +3 -3
- data/gemfiles/4.2.gemfile.lock +86 -92
- data/gemfiles/5.0.gemfile +3 -3
- data/gemfiles/5.0.gemfile.lock +96 -101
- data/gemfiles/5.1.gemfile +8 -0
- data/gemfiles/5.1.gemfile.lock +168 -0
- data/gemfiles/5.2.gemfile +8 -0
- data/gemfiles/5.2.gemfile.lock +168 -0
- data/lib/generators/settingson/settingson_generator.rb +4 -3
- data/lib/settingson/config.rb +1 -0
- data/lib/settingson/default.rb +11 -0
- data/lib/settingson/store.rb +32 -23
- data/lib/settingson/store/default.rb +25 -0
- data/lib/settingson/store/general.rb +3 -0
- data/lib/settingson/version.rb +1 -1
- data/settingson.gemspec +2 -3
- data/spec/dummy/config/environments/development.rb +2 -0
- data/spec/dummy/config/environments/test.rb +7 -2
- data/spec/dummy/config/initializers/settingson.rb +1 -0
- data/spec/models/settings_spec.rb +12 -0
- data/spec/models/settingson/defaults_spec.rb +36 -0
- data/spec/spec_helper.rb +3 -3
- metadata +14 -20
data/gemfiles/5.0.gemfile.lock
CHANGED
@@ -1,156 +1,152 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: ..
|
3
3
|
specs:
|
4
|
-
settingson (1.
|
4
|
+
settingson (1.7.10)
|
5
5
|
rails (>= 4.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (5.0.
|
11
|
-
actionpack (= 5.0.
|
12
|
-
nio4r (
|
10
|
+
actioncable (5.0.6)
|
11
|
+
actionpack (= 5.0.6)
|
12
|
+
nio4r (>= 1.2, < 3.0)
|
13
13
|
websocket-driver (~> 0.6.1)
|
14
|
-
actionmailer (5.0.
|
15
|
-
actionpack (= 5.0.
|
16
|
-
actionview (= 5.0.
|
17
|
-
activejob (= 5.0.
|
14
|
+
actionmailer (5.0.6)
|
15
|
+
actionpack (= 5.0.6)
|
16
|
+
actionview (= 5.0.6)
|
17
|
+
activejob (= 5.0.6)
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.0.
|
21
|
-
actionview (= 5.0.
|
22
|
-
activesupport (= 5.0.
|
20
|
+
actionpack (5.0.6)
|
21
|
+
actionview (= 5.0.6)
|
22
|
+
activesupport (= 5.0.6)
|
23
23
|
rack (~> 2.0)
|
24
24
|
rack-test (~> 0.6.3)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.0.
|
28
|
-
activesupport (= 5.0.
|
27
|
+
actionview (5.0.6)
|
28
|
+
activesupport (= 5.0.6)
|
29
29
|
builder (~> 3.1)
|
30
30
|
erubis (~> 2.7.0)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
33
|
-
activejob (5.0.
|
34
|
-
activesupport (= 5.0.
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.0.6)
|
34
|
+
activesupport (= 5.0.6)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.0.
|
37
|
-
activesupport (= 5.0.
|
38
|
-
activerecord (5.0.
|
39
|
-
activemodel (= 5.0.
|
40
|
-
activesupport (= 5.0.
|
36
|
+
activemodel (5.0.6)
|
37
|
+
activesupport (= 5.0.6)
|
38
|
+
activerecord (5.0.6)
|
39
|
+
activemodel (= 5.0.6)
|
40
|
+
activesupport (= 5.0.6)
|
41
41
|
arel (~> 7.0)
|
42
|
-
activesupport (5.0.
|
42
|
+
activesupport (5.0.6)
|
43
43
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
44
|
i18n (~> 0.7)
|
45
45
|
minitest (~> 5.1)
|
46
46
|
tzinfo (~> 1.1)
|
47
|
-
appraisal (2.
|
47
|
+
appraisal (2.2.0)
|
48
48
|
bundler
|
49
49
|
rake
|
50
50
|
thor (>= 0.14.0)
|
51
|
-
arel (7.1.
|
52
|
-
builder (3.2.
|
53
|
-
codeclimate-test-reporter (0.
|
54
|
-
simplecov (
|
55
|
-
concurrent-ruby (1.0.
|
56
|
-
|
57
|
-
|
51
|
+
arel (7.1.4)
|
52
|
+
builder (3.2.3)
|
53
|
+
codeclimate-test-reporter (1.0.8)
|
54
|
+
simplecov (<= 0.13)
|
55
|
+
concurrent-ruby (1.0.5)
|
56
|
+
crass (1.0.3)
|
57
|
+
database_cleaner (1.6.2)
|
58
|
+
diff-lcs (1.3)
|
58
59
|
docile (1.1.5)
|
59
60
|
erubis (2.7.0)
|
60
|
-
faker (1.
|
61
|
+
faker (1.8.4)
|
61
62
|
i18n (~> 0.5)
|
62
|
-
globalid (0.
|
63
|
-
activesupport (>= 4.
|
64
|
-
i18n (0.
|
65
|
-
|
66
|
-
|
63
|
+
globalid (0.4.1)
|
64
|
+
activesupport (>= 4.2.0)
|
65
|
+
i18n (0.9.1)
|
66
|
+
concurrent-ruby (~> 1.0)
|
67
|
+
json (2.1.0)
|
68
|
+
loofah (2.1.1)
|
69
|
+
crass (~> 1.0.2)
|
67
70
|
nokogiri (>= 1.5.9)
|
68
|
-
mail (2.
|
69
|
-
|
70
|
-
method_source (0.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
mini_portile2 (~> 2.1.0)
|
79
|
-
pkg-config (~> 1.1.7)
|
80
|
-
pkg-config (1.1.7)
|
81
|
-
rack (2.0.1)
|
71
|
+
mail (2.7.0)
|
72
|
+
mini_mime (>= 0.1.1)
|
73
|
+
method_source (0.9.0)
|
74
|
+
mini_mime (1.0.0)
|
75
|
+
mini_portile2 (2.3.0)
|
76
|
+
minitest (5.10.3)
|
77
|
+
nio4r (2.1.0)
|
78
|
+
nokogiri (1.8.1)
|
79
|
+
mini_portile2 (~> 2.3.0)
|
80
|
+
rack (2.0.3)
|
82
81
|
rack-test (0.6.3)
|
83
82
|
rack (>= 1.0)
|
84
|
-
rails (5.0.
|
85
|
-
actioncable (= 5.0.
|
86
|
-
actionmailer (= 5.0.
|
87
|
-
actionpack (= 5.0.
|
88
|
-
actionview (= 5.0.
|
89
|
-
activejob (= 5.0.
|
90
|
-
activemodel (= 5.0.
|
91
|
-
activerecord (= 5.0.
|
92
|
-
activesupport (= 5.0.
|
93
|
-
bundler (>= 1.3.0
|
94
|
-
railties (= 5.0.
|
83
|
+
rails (5.0.6)
|
84
|
+
actioncable (= 5.0.6)
|
85
|
+
actionmailer (= 5.0.6)
|
86
|
+
actionpack (= 5.0.6)
|
87
|
+
actionview (= 5.0.6)
|
88
|
+
activejob (= 5.0.6)
|
89
|
+
activemodel (= 5.0.6)
|
90
|
+
activerecord (= 5.0.6)
|
91
|
+
activesupport (= 5.0.6)
|
92
|
+
bundler (>= 1.3.0)
|
93
|
+
railties (= 5.0.6)
|
95
94
|
sprockets-rails (>= 2.0.0)
|
96
|
-
rails-dom-testing (2.0.
|
97
|
-
activesupport (>= 4.2.0
|
98
|
-
nokogiri (
|
95
|
+
rails-dom-testing (2.0.3)
|
96
|
+
activesupport (>= 4.2.0)
|
97
|
+
nokogiri (>= 1.6)
|
99
98
|
rails-dummy (0.0.4)
|
100
99
|
rails
|
101
100
|
rails-html-sanitizer (1.0.3)
|
102
101
|
loofah (~> 2.0)
|
103
|
-
railties (5.0.
|
104
|
-
actionpack (= 5.0.
|
105
|
-
activesupport (= 5.0.
|
102
|
+
railties (5.0.6)
|
103
|
+
actionpack (= 5.0.6)
|
104
|
+
activesupport (= 5.0.6)
|
106
105
|
method_source
|
107
106
|
rake (>= 0.8.7)
|
108
107
|
thor (>= 0.18.1, < 2.0)
|
109
|
-
rake (
|
110
|
-
rspec (3.
|
111
|
-
rspec-core (~> 3.
|
112
|
-
rspec-expectations (~> 3.
|
113
|
-
rspec-mocks (~> 3.
|
114
|
-
rspec-core (3.
|
115
|
-
rspec-support (~> 3.
|
116
|
-
rspec-expectations (3.
|
108
|
+
rake (12.3.0)
|
109
|
+
rspec (3.7.0)
|
110
|
+
rspec-core (~> 3.7.0)
|
111
|
+
rspec-expectations (~> 3.7.0)
|
112
|
+
rspec-mocks (~> 3.7.0)
|
113
|
+
rspec-core (3.7.0)
|
114
|
+
rspec-support (~> 3.7.0)
|
115
|
+
rspec-expectations (3.7.0)
|
117
116
|
diff-lcs (>= 1.2.0, < 2.0)
|
118
|
-
rspec-support (~> 3.
|
119
|
-
rspec-mocks (3.
|
117
|
+
rspec-support (~> 3.7.0)
|
118
|
+
rspec-mocks (3.7.0)
|
120
119
|
diff-lcs (>= 1.2.0, < 2.0)
|
121
|
-
rspec-support (~> 3.
|
122
|
-
rspec-rails (3.
|
120
|
+
rspec-support (~> 3.7.0)
|
121
|
+
rspec-rails (3.7.2)
|
123
122
|
actionpack (>= 3.0)
|
124
123
|
activesupport (>= 3.0)
|
125
124
|
railties (>= 3.0)
|
126
|
-
rspec-core (~> 3.
|
127
|
-
rspec-expectations (~> 3.
|
128
|
-
rspec-mocks (~> 3.
|
129
|
-
rspec-support (~> 3.
|
130
|
-
rspec-support (3.
|
131
|
-
simplecov (0.
|
125
|
+
rspec-core (~> 3.7.0)
|
126
|
+
rspec-expectations (~> 3.7.0)
|
127
|
+
rspec-mocks (~> 3.7.0)
|
128
|
+
rspec-support (~> 3.7.0)
|
129
|
+
rspec-support (3.7.0)
|
130
|
+
simplecov (0.13.0)
|
132
131
|
docile (~> 1.1.0)
|
133
132
|
json (>= 1.8, < 3)
|
134
133
|
simplecov-html (~> 0.10.0)
|
135
|
-
simplecov-html (0.10.
|
136
|
-
|
137
|
-
spring-commands-rspec (1.0.4)
|
138
|
-
spring (>= 0.9.1)
|
139
|
-
sprockets (3.7.0)
|
134
|
+
simplecov-html (0.10.2)
|
135
|
+
sprockets (3.7.1)
|
140
136
|
concurrent-ruby (~> 1.0)
|
141
137
|
rack (> 1, < 3)
|
142
|
-
sprockets-rails (3.2.
|
138
|
+
sprockets-rails (3.2.1)
|
143
139
|
actionpack (>= 4.0)
|
144
140
|
activesupport (>= 4.0)
|
145
141
|
sprockets (>= 3.0.0)
|
146
|
-
sqlite3 (1.3.
|
147
|
-
thor (0.
|
148
|
-
thread_safe (0.3.
|
149
|
-
tzinfo (1.2.
|
142
|
+
sqlite3 (1.3.13)
|
143
|
+
thor (0.20.0)
|
144
|
+
thread_safe (0.3.6)
|
145
|
+
tzinfo (1.2.4)
|
150
146
|
thread_safe (~> 0.1)
|
151
|
-
websocket-driver (0.6.
|
147
|
+
websocket-driver (0.6.5)
|
152
148
|
websocket-extensions (>= 0.1.0)
|
153
|
-
websocket-extensions (0.1.
|
149
|
+
websocket-extensions (0.1.3)
|
154
150
|
|
155
151
|
PLATFORMS
|
156
152
|
ruby
|
@@ -161,13 +157,12 @@ DEPENDENCIES
|
|
161
157
|
codeclimate-test-reporter
|
162
158
|
database_cleaner
|
163
159
|
faker
|
164
|
-
rails (~> 5.0
|
160
|
+
rails (~> 5.0)
|
165
161
|
rails-dummy
|
166
162
|
rspec (~> 3.5)
|
167
163
|
rspec-rails (~> 3.5)
|
168
164
|
settingson!
|
169
|
-
spring-commands-rspec
|
170
165
|
sqlite3
|
171
166
|
|
172
167
|
BUNDLED WITH
|
173
|
-
1.
|
168
|
+
1.16.6
|
@@ -0,0 +1,168 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
settingson (1.7.10)
|
5
|
+
rails (>= 4.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.1.4)
|
11
|
+
actionpack (= 5.1.4)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (~> 0.6.1)
|
14
|
+
actionmailer (5.1.4)
|
15
|
+
actionpack (= 5.1.4)
|
16
|
+
actionview (= 5.1.4)
|
17
|
+
activejob (= 5.1.4)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.1.4)
|
21
|
+
actionview (= 5.1.4)
|
22
|
+
activesupport (= 5.1.4)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (>= 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.1.4)
|
28
|
+
activesupport (= 5.1.4)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubi (~> 1.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.1.4)
|
34
|
+
activesupport (= 5.1.4)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.1.4)
|
37
|
+
activesupport (= 5.1.4)
|
38
|
+
activerecord (5.1.4)
|
39
|
+
activemodel (= 5.1.4)
|
40
|
+
activesupport (= 5.1.4)
|
41
|
+
arel (~> 8.0)
|
42
|
+
activesupport (5.1.4)
|
43
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
minitest (~> 5.1)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
appraisal (2.2.0)
|
48
|
+
bundler
|
49
|
+
rake
|
50
|
+
thor (>= 0.14.0)
|
51
|
+
arel (8.0.0)
|
52
|
+
builder (3.2.3)
|
53
|
+
codeclimate-test-reporter (1.0.8)
|
54
|
+
simplecov (<= 0.13)
|
55
|
+
concurrent-ruby (1.0.5)
|
56
|
+
crass (1.0.3)
|
57
|
+
database_cleaner (1.6.2)
|
58
|
+
diff-lcs (1.3)
|
59
|
+
docile (1.1.5)
|
60
|
+
erubi (1.7.0)
|
61
|
+
faker (1.8.4)
|
62
|
+
i18n (~> 0.5)
|
63
|
+
globalid (0.4.1)
|
64
|
+
activesupport (>= 4.2.0)
|
65
|
+
i18n (0.9.1)
|
66
|
+
concurrent-ruby (~> 1.0)
|
67
|
+
json (2.1.0)
|
68
|
+
loofah (2.1.1)
|
69
|
+
crass (~> 1.0.2)
|
70
|
+
nokogiri (>= 1.5.9)
|
71
|
+
mail (2.7.0)
|
72
|
+
mini_mime (>= 0.1.1)
|
73
|
+
method_source (0.9.0)
|
74
|
+
mini_mime (1.0.0)
|
75
|
+
mini_portile2 (2.3.0)
|
76
|
+
minitest (5.10.3)
|
77
|
+
nio4r (2.1.0)
|
78
|
+
nokogiri (1.8.1)
|
79
|
+
mini_portile2 (~> 2.3.0)
|
80
|
+
rack (2.0.3)
|
81
|
+
rack-test (0.8.2)
|
82
|
+
rack (>= 1.0, < 3)
|
83
|
+
rails (5.1.4)
|
84
|
+
actioncable (= 5.1.4)
|
85
|
+
actionmailer (= 5.1.4)
|
86
|
+
actionpack (= 5.1.4)
|
87
|
+
actionview (= 5.1.4)
|
88
|
+
activejob (= 5.1.4)
|
89
|
+
activemodel (= 5.1.4)
|
90
|
+
activerecord (= 5.1.4)
|
91
|
+
activesupport (= 5.1.4)
|
92
|
+
bundler (>= 1.3.0)
|
93
|
+
railties (= 5.1.4)
|
94
|
+
sprockets-rails (>= 2.0.0)
|
95
|
+
rails-dom-testing (2.0.3)
|
96
|
+
activesupport (>= 4.2.0)
|
97
|
+
nokogiri (>= 1.6)
|
98
|
+
rails-dummy (0.0.4)
|
99
|
+
rails
|
100
|
+
rails-html-sanitizer (1.0.3)
|
101
|
+
loofah (~> 2.0)
|
102
|
+
railties (5.1.4)
|
103
|
+
actionpack (= 5.1.4)
|
104
|
+
activesupport (= 5.1.4)
|
105
|
+
method_source
|
106
|
+
rake (>= 0.8.7)
|
107
|
+
thor (>= 0.18.1, < 2.0)
|
108
|
+
rake (12.3.0)
|
109
|
+
rspec (3.7.0)
|
110
|
+
rspec-core (~> 3.7.0)
|
111
|
+
rspec-expectations (~> 3.7.0)
|
112
|
+
rspec-mocks (~> 3.7.0)
|
113
|
+
rspec-core (3.7.0)
|
114
|
+
rspec-support (~> 3.7.0)
|
115
|
+
rspec-expectations (3.7.0)
|
116
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
117
|
+
rspec-support (~> 3.7.0)
|
118
|
+
rspec-mocks (3.7.0)
|
119
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
120
|
+
rspec-support (~> 3.7.0)
|
121
|
+
rspec-rails (3.7.2)
|
122
|
+
actionpack (>= 3.0)
|
123
|
+
activesupport (>= 3.0)
|
124
|
+
railties (>= 3.0)
|
125
|
+
rspec-core (~> 3.7.0)
|
126
|
+
rspec-expectations (~> 3.7.0)
|
127
|
+
rspec-mocks (~> 3.7.0)
|
128
|
+
rspec-support (~> 3.7.0)
|
129
|
+
rspec-support (3.7.0)
|
130
|
+
simplecov (0.13.0)
|
131
|
+
docile (~> 1.1.0)
|
132
|
+
json (>= 1.8, < 3)
|
133
|
+
simplecov-html (~> 0.10.0)
|
134
|
+
simplecov-html (0.10.2)
|
135
|
+
sprockets (3.7.1)
|
136
|
+
concurrent-ruby (~> 1.0)
|
137
|
+
rack (> 1, < 3)
|
138
|
+
sprockets-rails (3.2.1)
|
139
|
+
actionpack (>= 4.0)
|
140
|
+
activesupport (>= 4.0)
|
141
|
+
sprockets (>= 3.0.0)
|
142
|
+
sqlite3 (1.3.13)
|
143
|
+
thor (0.20.0)
|
144
|
+
thread_safe (0.3.6)
|
145
|
+
tzinfo (1.2.4)
|
146
|
+
thread_safe (~> 0.1)
|
147
|
+
websocket-driver (0.6.5)
|
148
|
+
websocket-extensions (>= 0.1.0)
|
149
|
+
websocket-extensions (0.1.3)
|
150
|
+
|
151
|
+
PLATFORMS
|
152
|
+
ruby
|
153
|
+
|
154
|
+
DEPENDENCIES
|
155
|
+
appraisal
|
156
|
+
bundler (>= 1.6)
|
157
|
+
codeclimate-test-reporter
|
158
|
+
database_cleaner
|
159
|
+
faker
|
160
|
+
rails (~> 5.1)
|
161
|
+
rails-dummy
|
162
|
+
rspec (~> 3.5)
|
163
|
+
rspec-rails (~> 3.5)
|
164
|
+
settingson!
|
165
|
+
sqlite3
|
166
|
+
|
167
|
+
BUNDLED WITH
|
168
|
+
1.16.6
|