has_enumeration 0.2.2 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
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', '>= 3.0.0.rc'
6
+ gem 'activerecord', '~> 3.0.0.rc2'
7
7
  end
8
8
 
9
- gem 'rspec', '>= 2.0.0.beta.19'
10
- gem 'cucumber', '>= 0.8.5'
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', '>= 0.9.7'
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
@@ -44,4 +44,4 @@ has_enumeration has been tested with all combinations for the following:
44
44
  - JRuby 1.5.1
45
45
  ActiveRecord:
46
46
  - 2.3.8
47
- - 3.0.0.rc
47
+ - 3.0.0.rc2
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.rc.
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.2.2
1
+ 0.3.1
@@ -1,6 +1,6 @@
1
1
  $LOAD_PATH << File.expand_path('../../../lib', __FILE__)
2
2
 
3
- ENV['AR_VERSION'] ||= '3_0'
3
+ ENV['AR_VERSION'] ||= '3.0'
4
4
 
5
5
  require 'rubygems'
6
6
  require 'bundler/setup'
@@ -86,10 +86,9 @@ module HasEnumeration
86
86
  end
87
87
  end
88
88
 
89
- Arel::Attribute::Predications.instance_methods.each do |method_name|
89
+ Arel::Attribute::PREDICATES.each do |method_name|
90
90
  # Preserve the arity of the method we are overriding
91
- arity = Arel::Attribute::Predications.
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 2
10
- version: 0.2.2
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 00:00:00 -07:00
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.rc.
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