has_enumeration 0.2.2 → 0.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.
- data/Gemfile +5 -5
- data/HISTORY.txt +19 -0
- data/README.txt +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/features/support/env.rb +1 -1
- data/lib/has_enumeration/class_methods.rb +2 -3
- metadata +7 -6
data/Gemfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
if ENV['AR_VERSION'] == '2.3'
|
4
|
-
gem 'activerecord', '2.3.8'
|
4
|
+
gem 'activerecord', '~> 2.3.8'
|
5
5
|
else
|
6
|
-
gem 'activerecord', '
|
6
|
+
gem 'activerecord', '~> 3.0.0.rc2'
|
7
7
|
end
|
8
8
|
|
9
|
-
gem 'rspec', '
|
10
|
-
gem 'cucumber', '
|
9
|
+
gem 'rspec', '~> 2.0.0.beta.19'
|
10
|
+
gem 'cucumber', '~> 0.8.5'
|
11
11
|
|
12
12
|
platforms :ruby do
|
13
13
|
gem 'sqlite3-ruby', :require => 'sqlite3'
|
@@ -15,5 +15,5 @@ end
|
|
15
15
|
|
16
16
|
platforms :jruby do
|
17
17
|
gem 'jdbc-sqlite3'
|
18
|
-
gem 'activerecord-jdbcsqlite3-adapter', '
|
18
|
+
gem 'activerecord-jdbcsqlite3-adapter', '~> 0.9.7'
|
19
19
|
end
|
data/HISTORY.txt
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Version 0.3.1:
|
2
|
+
- Re-release of 0.3.0 to pick up missed files
|
3
|
+
|
4
|
+
Version 0.3.0:
|
5
|
+
- Support for Rails 3.0.0.rc2
|
6
|
+
- NOTE: no longer compatible with Rails 3.0.0.rc
|
7
|
+
|
8
|
+
Version 0.2.2:
|
9
|
+
- Cosmetic change: simply gemfile description
|
10
|
+
|
11
|
+
Version 0.2.1:
|
12
|
+
- Support for JRuby 1.5.1
|
13
|
+
- Support for ActiveRecord 2.3.8
|
14
|
+
|
15
|
+
Version 0.2.0:
|
16
|
+
- Support for Arel predicates
|
17
|
+
|
18
|
+
Version 0.1.0:
|
19
|
+
- Initial release
|
data/README.txt
CHANGED
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ in the database. Predicates are provided for each symbol in the enumeration
|
|
15
15
|
and the symbols may be used in finder methods. When using ActiveRecord 3,
|
16
16
|
the symbols may also be used when interacting with the underlying Arel attribute
|
17
17
|
for the enumeration. has_enumeration has been tested with Ruby 1.8.7,
|
18
|
-
Ruby 1.9.2, JRuby 1.5.1, ActiveRecord 2.3.8, and ActiveRecord 3.0.0.
|
18
|
+
Ruby 1.9.2, JRuby 1.5.1, ActiveRecord 2.3.8, and ActiveRecord 3.0.0.rc2.
|
19
19
|
EOF
|
20
20
|
gemspec.email = "greg@rujubu.com"
|
21
21
|
gemspec.homepage = "http://github.com/gregspurrier/has_enumeration"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.1
|
data/features/support/env.rb
CHANGED
@@ -86,10 +86,9 @@ module HasEnumeration
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
Arel::Attribute::
|
89
|
+
Arel::Attribute::PREDICATES.each do |method_name|
|
90
90
|
# Preserve the arity of the method we are overriding
|
91
|
-
arity = Arel::Attribute
|
92
|
-
instance_method(method_name).arity
|
91
|
+
arity = Arel::Attribute.instance_method(method_name).arity
|
93
92
|
case arity
|
94
93
|
when 1
|
95
94
|
define_method method_name do |arg|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_enumeration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Greg Spurrier
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-28 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -27,7 +27,7 @@ description: |
|
|
27
27
|
and the symbols may be used in finder methods. When using ActiveRecord 3,
|
28
28
|
the symbols may also be used when interacting with the underlying Arel attribute
|
29
29
|
for the enumeration. has_enumeration has been tested with Ruby 1.8.7,
|
30
|
-
Ruby 1.9.2, JRuby 1.5.1, ActiveRecord 2.3.8, and ActiveRecord 3.0.0.
|
30
|
+
Ruby 1.9.2, JRuby 1.5.1, ActiveRecord 2.3.8, and ActiveRecord 3.0.0.rc2.
|
31
31
|
|
32
32
|
email: greg@rujubu.com
|
33
33
|
executables: []
|
@@ -40,6 +40,7 @@ extra_rdoc_files:
|
|
40
40
|
- TODO
|
41
41
|
files:
|
42
42
|
- Gemfile
|
43
|
+
- HISTORY.txt
|
43
44
|
- LICENSE.txt
|
44
45
|
- README.txt
|
45
46
|
- Rakefile
|