enumerated_field 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.soyuz.yml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.markdown +1 -0
- data/README.md +1 -1
- data/enumerated_field.gemspec +4 -4
- data/lib/enumerated_field/version.rb +1 -1
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4a95618c245ae78676eef2c2ea766fba4c7e6b37d2fed2037916faa75bb4b4c1
|
4
|
+
data.tar.gz: 811c5525444744f6ea3f93a9cb2fd2588440c01de9c449f756e60bd2b472da21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f386c191d9a3d28371a3ce7112881ec1ddab63f5204f1308f399fa183c98b02458bd1af14bb6e15e98873c2e5a779ec25e421f21f6046f9b8f65950c72af8b8
|
7
|
+
data.tar.gz: 48076ded8fe8190f5b1bad423c2504514687af77a91bf1aff713bac29dd3a738b9e1f42df7a0ca98004f3f9a50e80bb8f8ef909c86b6a8d023b764b40f11444a
|
data/.soyuz.yml
CHANGED
@@ -3,10 +3,10 @@ defaults:
|
|
3
3
|
- gem build enumerated_field.gemspec
|
4
4
|
- gem push *.gem
|
5
5
|
before_deploy_cmds:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
#- /usr/local/bin/op tag-release
|
7
|
+
#- sed -i '' -e "s/\".*/\"$(git tag | tail -1 | sed s/v//)\"/" lib/enumerated_field/version.rb
|
8
|
+
#- git add lib/enumerated_field/version.rb
|
9
|
+
#- git commit -m "Version Bump" && git push
|
10
10
|
after_deploy_cmds:
|
11
11
|
- rm *.gem
|
12
12
|
environments:
|
data/.travis.yml
CHANGED
data/CHANGELOG.markdown
CHANGED
data/README.md
CHANGED
@@ -82,7 +82,7 @@ these.
|
|
82
82
|
=> [['Pacific Crest Trail', 'pct'], ['Continental Divide Trail', 'cdt'], ['Superior Hiking Trail', 'sht']]
|
83
83
|
> Hike.trail_values # or get it from the class instead of the instance, if you like
|
84
84
|
=> [['Pacific Crest Trail', 'pct'], ['Continental Divide Trail', 'cdt'], ['Superior Hiking Trail', 'sht']]
|
85
|
-
> Hike.trail_values_for_json # or get a
|
85
|
+
> Hike.trail_values_for_json # or get a hash for injecting into JSON or wherever
|
86
86
|
=> [{:display => 'Pacific Crest Trail', :value => 'pct'}, {:display => 'Continental Divide Trail', :value => 'cdt'}, {:display => 'Superior Hiking Trail', :value => 'sht'}]
|
87
87
|
|
88
88
|
### ActiveRecord Scopes
|
data/enumerated_field.gemspec
CHANGED
@@ -28,14 +28,14 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
29
29
|
s.require_paths = ["lib"]
|
30
30
|
|
31
|
-
s.add_dependency 'activemodel', ['> 3.0.0', '<
|
32
|
-
s.add_dependency 'activesupport', ['> 3.0.0', '<
|
31
|
+
s.add_dependency 'activemodel', ['> 3.0.0', '< 6.0.0']
|
32
|
+
s.add_dependency 'activesupport', ['> 3.0.0', '< 6.0.0']
|
33
33
|
s.add_development_dependency 'test-unit'
|
34
34
|
s.add_development_dependency 'minitest', "~> 4.0"
|
35
35
|
s.add_development_dependency 'rake'
|
36
36
|
s.add_development_dependency 'bundler'
|
37
37
|
s.add_development_dependency 'turn'
|
38
|
-
s.add_development_dependency 'shoulda'
|
38
|
+
s.add_development_dependency 'shoulda'
|
39
39
|
s.add_development_dependency 'activerecord', '~> 4.0.0'
|
40
|
-
s.add_development_dependency 'sqlite3'
|
40
|
+
s.add_development_dependency 'sqlite3', '~> 1.3.9'
|
41
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumerated_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Ludwig
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 6.0.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 3.0.0
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 6.0.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: activesupport
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version: 3.0.0
|
42
42
|
- - "<"
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
44
|
+
version: 6.0.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
version: 3.0.0
|
52
52
|
- - "<"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 6.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: test-unit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: shoulda
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: activerecord
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,16 +154,16 @@ dependencies:
|
|
154
154
|
name: sqlite3
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 1.3.9
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 1.3.9
|
167
167
|
description: EnumeratedField is a library that provides some nice methods when a string
|
168
168
|
column is used like an enumeration, meaning there is a list of allowable values
|
169
169
|
for the string column.
|
@@ -210,8 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
|
-
|
214
|
-
rubygems_version: 2.2.2
|
213
|
+
rubygems_version: 3.0.3
|
215
214
|
signing_key:
|
216
215
|
specification_version: 4
|
217
216
|
summary: EnumeratedField is a library that provides some nice methods when a string
|