power_enum 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- checksums.yaml.gz.sig +1 -0
- data.tar.gz.sig +0 -0
- data/README.markdown +28 -2
- data/lib/power_enum/reflection.rb +2 -2
- metadata +5 -20
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
ZjcwMzlkY2EyNzFmMzAwYjc4ZTEwNDdjMWMwMWI4NjE0MDQzMjBjYg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
OTZiODFjYTg2NjkzZWU1OTUzZTA1NTMxN2U5YWVmMjEzM2Q4ODc2Mg==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
OTk1NTY2ZTViZTdjZDljZjIzZDA0ZTc2NDlkZGJhMzMyMWIyOGVmMDgyNDdj
|
|
10
|
+
NDVmZTUwYmFjMzI1ZGUwYzY1NjcyZDg2ZTA2ZjA3NzZhNjUyOWE4N2IzZDAx
|
|
11
|
+
MDE2NTA5ZjZiZDNiZGE4MzdmM2Q2MmMwYWYyODMwOTJjMmI3YWY=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
OGY4ZGE4ZTQ5OGIxYzE0YjJjMzA5MTAxNTIxZjI2ZWM3MjNjYjE5ZTM3MWRl
|
|
14
|
+
YjE3MjgzOGFjZGI2NmY1NWUxZjRmMTFkNTM3NzVjNzc2MGZmYTYyZWU2MzJk
|
|
15
|
+
Y2ZiYzNlNjBlYmQwMGE2Y2M5ODk1ZTVlY2VlMDhjNjZlMDljNjc=
|
checksums.yaml.gz.sig
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
���
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.markdown
CHANGED
|
@@ -50,6 +50,27 @@ See "How to use it" below for more information.
|
|
|
50
50
|
|
|
51
51
|
## Installation
|
|
52
52
|
|
|
53
|
+
### READ THIS FIRST
|
|
54
|
+
|
|
55
|
+
Starting with version 1.1.0, the gem is signed. The public key is available
|
|
56
|
+
here: https://github.com/albertosaurus/power_enum (look for gem-public\_cert.pem). Hence, if
|
|
57
|
+
you can get an error like the following if you're installing in `HighSecurity` mode.
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
ERROR: While executing gem ... (RuntimeError)
|
|
61
|
+
Couldn't verify data signature: Untrusted Signing Chain Root: cert = 'cert name', error = 'path "/your_gem_home/.gem/trust/cert-blah.pem" does not exist'
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
If this happens, you need to add the PowerEnum public cert to your gem cert
|
|
65
|
+
store. Download the certificate (gem-public\_cert.pem) and run the following.
|
|
66
|
+
|
|
67
|
+
gem cert -a gem-public_cert.pem
|
|
68
|
+
|
|
69
|
+
More information is available at http://docs.rubygems.org/read/chapter/21
|
|
70
|
+
which I strongly urge you to read.
|
|
71
|
+
|
|
72
|
+
#### Using Bundler
|
|
73
|
+
|
|
53
74
|
Add the gem to your Gemfile
|
|
54
75
|
|
|
55
76
|
gem 'power_enum'
|
|
@@ -58,8 +79,13 @@ then run
|
|
|
58
79
|
|
|
59
80
|
bundle install
|
|
60
81
|
|
|
61
|
-
|
|
62
|
-
|
|
82
|
+
#### Manual Installation
|
|
83
|
+
|
|
84
|
+
gem install power_enum
|
|
85
|
+
|
|
86
|
+
If you want to verify the gem signature, use the `HighSecurity` installation option.
|
|
87
|
+
|
|
88
|
+
gem install power_enum -P HighSecurity
|
|
63
89
|
|
|
64
90
|
## Gem Contents
|
|
65
91
|
|
|
@@ -96,9 +96,9 @@ module PowerEnum::Reflection
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Normally defined on AR::AssociationReflection::MacroReflection.
|
|
99
|
-
#
|
|
99
|
+
# Realistically, this is a belongs-to relationship.
|
|
100
100
|
def belongs_to?
|
|
101
|
-
|
|
101
|
+
true
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
end
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: power_enum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.3.1
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Trevor Squires
|
|
@@ -40,12 +39,11 @@ cert_chain:
|
|
|
40
39
|
amZaYUtWM2wwYTFkR2wyUVNMa2pScFFaRDFiRCtVSDdnT3F5N1piZGNzUkJM
|
|
41
40
|
NEg3VTV6VQpibEtkZEg2dXhDckRTTTdLYWJrelNPVmYKLS0tLS1FTkQgQ0VS
|
|
42
41
|
VElGSUNBVEUtLS0tLQo=
|
|
43
|
-
date: 2013-04-
|
|
42
|
+
date: 2013-04-13 00:00:00.000000000 Z
|
|
44
43
|
dependencies:
|
|
45
44
|
- !ruby/object:Gem::Dependency
|
|
46
45
|
name: rails
|
|
47
46
|
requirement: !ruby/object:Gem::Requirement
|
|
48
|
-
none: false
|
|
49
47
|
requirements:
|
|
50
48
|
- - ~>
|
|
51
49
|
- !ruby/object:Gem::Version
|
|
@@ -53,7 +51,6 @@ dependencies:
|
|
|
53
51
|
type: :runtime
|
|
54
52
|
prerelease: false
|
|
55
53
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
|
-
none: false
|
|
57
54
|
requirements:
|
|
58
55
|
- - ~>
|
|
59
56
|
- !ruby/object:Gem::Version
|
|
@@ -61,7 +58,6 @@ dependencies:
|
|
|
61
58
|
- !ruby/object:Gem::Dependency
|
|
62
59
|
name: jeweler
|
|
63
60
|
requirement: !ruby/object:Gem::Requirement
|
|
64
|
-
none: false
|
|
65
61
|
requirements:
|
|
66
62
|
- - ! '>='
|
|
67
63
|
- !ruby/object:Gem::Version
|
|
@@ -69,7 +65,6 @@ dependencies:
|
|
|
69
65
|
type: :development
|
|
70
66
|
prerelease: false
|
|
71
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
|
-
none: false
|
|
73
68
|
requirements:
|
|
74
69
|
- - ! '>='
|
|
75
70
|
- !ruby/object:Gem::Version
|
|
@@ -77,7 +72,6 @@ dependencies:
|
|
|
77
72
|
- !ruby/object:Gem::Dependency
|
|
78
73
|
name: rspec
|
|
79
74
|
requirement: !ruby/object:Gem::Requirement
|
|
80
|
-
none: false
|
|
81
75
|
requirements:
|
|
82
76
|
- - ! '>='
|
|
83
77
|
- !ruby/object:Gem::Version
|
|
@@ -85,7 +79,6 @@ dependencies:
|
|
|
85
79
|
type: :development
|
|
86
80
|
prerelease: false
|
|
87
81
|
version_requirements: !ruby/object:Gem::Requirement
|
|
88
|
-
none: false
|
|
89
82
|
requirements:
|
|
90
83
|
- - ! '>='
|
|
91
84
|
- !ruby/object:Gem::Version
|
|
@@ -93,7 +86,6 @@ dependencies:
|
|
|
93
86
|
- !ruby/object:Gem::Dependency
|
|
94
87
|
name: sqlite3
|
|
95
88
|
requirement: !ruby/object:Gem::Requirement
|
|
96
|
-
none: false
|
|
97
89
|
requirements:
|
|
98
90
|
- - ! '>='
|
|
99
91
|
- !ruby/object:Gem::Version
|
|
@@ -101,7 +93,6 @@ dependencies:
|
|
|
101
93
|
type: :development
|
|
102
94
|
prerelease: false
|
|
103
95
|
version_requirements: !ruby/object:Gem::Requirement
|
|
104
|
-
none: false
|
|
105
96
|
requirements:
|
|
106
97
|
- - ! '>='
|
|
107
98
|
- !ruby/object:Gem::Version
|
|
@@ -109,7 +100,6 @@ dependencies:
|
|
|
109
100
|
- !ruby/object:Gem::Dependency
|
|
110
101
|
name: genspec
|
|
111
102
|
requirement: !ruby/object:Gem::Requirement
|
|
112
|
-
none: false
|
|
113
103
|
requirements:
|
|
114
104
|
- - ! '>='
|
|
115
105
|
- !ruby/object:Gem::Version
|
|
@@ -117,7 +107,6 @@ dependencies:
|
|
|
117
107
|
type: :development
|
|
118
108
|
prerelease: false
|
|
119
109
|
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
-
none: false
|
|
121
110
|
requirements:
|
|
122
111
|
- - ! '>='
|
|
123
112
|
- !ruby/object:Gem::Version
|
|
@@ -161,30 +150,26 @@ files:
|
|
|
161
150
|
- README.markdown
|
|
162
151
|
homepage: http://github.com/albertosaurus/power_enum
|
|
163
152
|
licenses: []
|
|
153
|
+
metadata: {}
|
|
164
154
|
post_install_message:
|
|
165
155
|
rdoc_options: []
|
|
166
156
|
require_paths:
|
|
167
157
|
- lib
|
|
168
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
|
-
none: false
|
|
170
159
|
requirements:
|
|
171
160
|
- - ! '>='
|
|
172
161
|
- !ruby/object:Gem::Version
|
|
173
162
|
version: '0'
|
|
174
|
-
segments:
|
|
175
|
-
- 0
|
|
176
|
-
hash: -4424001978737406036
|
|
177
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
|
-
none: false
|
|
179
164
|
requirements:
|
|
180
165
|
- - ! '>='
|
|
181
166
|
- !ruby/object:Gem::Version
|
|
182
167
|
version: '0'
|
|
183
168
|
requirements: []
|
|
184
169
|
rubyforge_project:
|
|
185
|
-
rubygems_version:
|
|
170
|
+
rubygems_version: 2.0.3
|
|
186
171
|
signing_key:
|
|
187
|
-
specification_version:
|
|
172
|
+
specification_version: 4
|
|
188
173
|
summary: Allows you to treat instances of your ActiveRecord models as though they
|
|
189
174
|
were an enumeration of values
|
|
190
175
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|