activerecord_enum 0.1.0 → 0.1.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/.gitignore CHANGED
@@ -1,5 +1,5 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
3
+ Gemfile*.lock
4
4
  pkg/*
5
5
  spec/database.yml
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
1
5
  before_script:
2
6
  - "mysql -e 'create database activerecord_enum_test;' >/dev/null"
3
7
  - "cp spec/{.travis.,}database.yml"
4
- env:
5
- - DB=mysql
8
+ script: ./spec/all_rails
data/README.markdown CHANGED
@@ -10,6 +10,10 @@ To run the tests for all supported database adapters:
10
10
 
11
11
  rake spec:all
12
12
 
13
+ To run the tests for all adapters and all versions of ActiveRecord:
14
+
15
+ ./spec/all_rails
16
+
13
17
  To run the tests for just one adapter:
14
18
 
15
19
  DB=mysql rake spec
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "activerecord_enum"
16
16
 
17
- s.add_dependency "activerecord", "~> 3.2.3"
17
+ s.add_dependency "activerecord", "~> 3.0"
18
18
  s.add_development_dependency "rake"
19
19
  s.add_development_dependency "bundler"
20
20
  s.add_development_dependency "mysql2", "~> 0.3.11"
@@ -1,3 +1,3 @@
1
1
  module ActiverecordEnum
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+ gemspec :path => ".."
3
+ gem "mysql2", "~> 0.2.0"
4
+ gem "activerecord", "~> 3.0.9"
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+ gemspec :path => ".."
3
+ gem "mysql2", "~> 0.3.11"
4
+ gem "activerecord", "~> 3.1.0"
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+ gemspec :path => ".."
3
+ gem "mysql2", "~> 0.3.11"
4
+ gem "activerecord", "~> 3.1.0"
data/spec/all_rails ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ #TODO: turn this into a rake task
4
+ for f in spec/Gemfile.rails_[0-9]_[0-9]; do
5
+ bundle install --gemfile "$f" &&
6
+ bundle exec rake spec:all || exit $?
7
+ done
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_enum
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ian Young
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-05 00:00:00 Z
18
+ date: 2012-04-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement
@@ -23,12 +23,11 @@ dependencies:
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- hash: 9
26
+ hash: 7
27
27
  segments:
28
28
  - 3
29
- - 2
30
- - 3
31
- version: 3.2.3
29
+ - 0
30
+ version: "3.0"
32
31
  version_requirements: *id001
33
32
  name: activerecord
34
33
  prerelease: false
@@ -129,6 +128,10 @@ files:
129
128
  - lib/activerecord_enum.rb
130
129
  - lib/activerecord_enum/version.rb
131
130
  - spec/.travis.database.yml
131
+ - spec/Gemfile.rails_3_0
132
+ - spec/Gemfile.rails_3_1
133
+ - spec/Gemfile.rails_3_2
134
+ - spec/all_rails
132
135
  - spec/database.yml.tmpl
133
136
  - spec/enum_spec.rb
134
137
  - spec/schema/enum_new.rb
@@ -171,6 +174,10 @@ signing_key:
171
174
  specification_version: 3
172
175
  summary: Enum data types for ActiveRecord
173
176
  test_files:
177
+ - spec/Gemfile.rails_3_0
178
+ - spec/Gemfile.rails_3_1
179
+ - spec/Gemfile.rails_3_2
180
+ - spec/all_rails
174
181
  - spec/database.yml.tmpl
175
182
  - spec/enum_spec.rb
176
183
  - spec/schema/enum_new.rb