setting_accessors 0.0.12 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/lib/setting_accessors/setting_scaffold.rb +1 -1
- data/lib/setting_accessors/version.rb +1 -1
- data/setting_accessors.gemspec +3 -1
- metadata +14 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7caea2d742244efa6ea948761eab7f021f84496f
|
4
|
+
data.tar.gz: 7926544739e71442d9ef609edc56261a027e1f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3994281b120a84ae882f203c14e45a6cc71ef08ba5a8e4206c17088018a8d8349e8dfda5938b2269aaca2a4efbc06377390893f39bb98b1a798cebed5617bfe9
|
7
|
+
data.tar.gz: 21a739c4597006df8cf6b6d86ed959824501cd4fb3e83d015bbd43f51cd83f93a3b9f1316a8794ffaff793d5440c5d5a250dd3ee5d585578a2692d24e5a1dc8a
|
data/.travis.yml
CHANGED
@@ -159,7 +159,7 @@ module SettingAccessors::SettingScaffold
|
|
159
159
|
def validation_errors(name, value, assignable = nil)
|
160
160
|
s = self.new(:name => name, :value => value, :assignable => assignable)
|
161
161
|
s.valid?
|
162
|
-
s.errors
|
162
|
+
s.errors[:value] || []
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
data/setting_accessors.gemspec
CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
+
spec.required_ruby_version = ['>= 2.2.2', '< 3']
|
23
|
+
|
22
24
|
spec.add_development_dependency "bundler", "~> 1.6"
|
23
25
|
spec.add_development_dependency "rake", "~> 10.4"
|
24
26
|
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
@@ -26,5 +28,5 @@ Gem::Specification.new do |spec|
|
|
26
28
|
spec.add_development_dependency 'minitest', '~> 5.5'
|
27
29
|
spec.add_development_dependency 'byebug', '~> 3.5'
|
28
30
|
|
29
|
-
spec.add_dependency 'rails', '
|
31
|
+
spec.add_dependency 'rails', ['>= 4.1', '< 5.1']
|
30
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: setting_accessors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Exner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,16 +98,22 @@ dependencies:
|
|
98
98
|
name: rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '4.1'
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '5.1'
|
104
107
|
type: :runtime
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
|
-
- - "
|
111
|
+
- - ">="
|
109
112
|
- !ruby/object:Gem::Version
|
110
113
|
version: '4.1'
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '5.1'
|
111
117
|
description: |-
|
112
118
|
Adds a global key-value-store to Rails applications and allows adding typed columns
|
113
119
|
to model classes without having to change the database layout.
|
@@ -207,7 +213,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
213
|
requirements:
|
208
214
|
- - ">="
|
209
215
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
216
|
+
version: 2.2.2
|
217
|
+
- - "<"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '3'
|
211
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
221
|
requirements:
|
213
222
|
- - ">="
|