acts_as_defaultable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -17,39 +17,37 @@ GIT
17
17
  PATH
18
18
  remote: .
19
19
  specs:
20
- acts_as_defaultable (0.0.1)
21
- rails (~> 3.2.0.rc1)
20
+ acts_as_defaultable (0.0.2)
21
+ rails (~> 3.2.0.rc2)
22
22
 
23
23
  GEM
24
24
  remote: http://rubygems.org/
25
25
  specs:
26
- actionmailer (3.2.0.rc1)
27
- actionpack (= 3.2.0.rc1)
26
+ actionmailer (3.2.0.rc2)
27
+ actionpack (= 3.2.0.rc2)
28
28
  mail (~> 2.3.0)
29
- actionpack (3.2.0.rc1)
30
- activemodel (= 3.2.0.rc1)
31
- activesupport (= 3.2.0.rc1)
29
+ actionpack (3.2.0.rc2)
30
+ activemodel (= 3.2.0.rc2)
31
+ activesupport (= 3.2.0.rc2)
32
32
  builder (~> 3.0.0)
33
33
  erubis (~> 2.7.0)
34
- i18n (~> 0.6)
35
34
  journey (~> 1.0.0.rc1)
36
- rack (~> 1.3.5)
35
+ rack (~> 1.4.0)
37
36
  rack-cache (~> 1.1)
38
37
  rack-test (~> 0.6.1)
39
38
  sprockets (~> 2.1.2)
40
- activemodel (3.2.0.rc1)
41
- activesupport (= 3.2.0.rc1)
39
+ activemodel (3.2.0.rc2)
40
+ activesupport (= 3.2.0.rc2)
42
41
  builder (~> 3.0.0)
43
- i18n (~> 0.6)
44
- activerecord (3.2.0.rc1)
45
- activemodel (= 3.2.0.rc1)
46
- activesupport (= 3.2.0.rc1)
42
+ activerecord (3.2.0.rc2)
43
+ activemodel (= 3.2.0.rc2)
44
+ activesupport (= 3.2.0.rc2)
47
45
  arel (~> 3.0.0.rc1)
48
46
  tzinfo (~> 0.3.29)
49
- activeresource (3.2.0.rc1)
50
- activemodel (= 3.2.0.rc1)
51
- activesupport (= 3.2.0.rc1)
52
- activesupport (3.2.0.rc1)
47
+ activeresource (3.2.0.rc2)
48
+ activemodel (= 3.2.0.rc2)
49
+ activesupport (= 3.2.0.rc2)
50
+ activesupport (3.2.0.rc2)
53
51
  i18n (~> 0.6)
54
52
  multi_json (~> 1.0)
55
53
  arel (3.0.0.rc1)
@@ -74,7 +72,7 @@ GEM
74
72
  railties (>= 3.2.0.beta, < 5.0)
75
73
  thor (~> 0.14)
76
74
  json (1.6.4)
77
- libnotify (0.7.0)
75
+ libnotify (0.7.1)
78
76
  mail (2.3.0)
79
77
  i18n (>= 0.4.0)
80
78
  mime-types (~> 1.16)
@@ -83,24 +81,24 @@ GEM
83
81
  multi_json (1.0.4)
84
82
  mysql2 (0.3.11)
85
83
  polyglot (0.3.3)
86
- rack (1.3.6)
84
+ rack (1.4.0)
87
85
  rack-cache (1.1)
88
86
  rack (>= 0.4)
89
87
  rack-ssl (1.3.2)
90
88
  rack
91
89
  rack-test (0.6.1)
92
90
  rack (>= 1.0)
93
- rails (3.2.0.rc1)
94
- actionmailer (= 3.2.0.rc1)
95
- actionpack (= 3.2.0.rc1)
96
- activerecord (= 3.2.0.rc1)
97
- activeresource (= 3.2.0.rc1)
98
- activesupport (= 3.2.0.rc1)
91
+ rails (3.2.0.rc2)
92
+ actionmailer (= 3.2.0.rc2)
93
+ actionpack (= 3.2.0.rc2)
94
+ activerecord (= 3.2.0.rc2)
95
+ activeresource (= 3.2.0.rc2)
96
+ activesupport (= 3.2.0.rc2)
99
97
  bundler (~> 1.0)
100
- railties (= 3.2.0.rc1)
101
- railties (3.2.0.rc1)
102
- actionpack (= 3.2.0.rc1)
103
- activesupport (= 3.2.0.rc1)
98
+ railties (= 3.2.0.rc2)
99
+ railties (3.2.0.rc2)
100
+ actionpack (= 3.2.0.rc2)
101
+ activesupport (= 3.2.0.rc2)
104
102
  rack-ssl (~> 1.3.2)
105
103
  rake (>= 0.8.7)
106
104
  rdoc (~> 3.4)
data/README.rdoc CHANGED
@@ -6,6 +6,14 @@ This 'acts_as' extension provides the capability for having a default object. Th
6
6
  specified needs to have a default column defined as an integer, string or boolean on the mapped
7
7
  database table.
8
8
 
9
+ == Install
10
+
11
+ In your Gemfile
12
+
13
+ gem 'acts_as_defaultable'
14
+
15
+ Currently is tested on rails3.2.0.rc1, ruby 1.9.3 and mysql
16
+
9
17
  == Example
10
18
 
11
19
  class Country < ActiveRecord::Base
@@ -27,3 +35,4 @@ The option to acts_as_defaultable is the +column+ of the Model that defines defa
27
35
  This column can be a string, a boolean or an integer with default positive values 'on', true, 1
28
36
  and default negative values 'off', false, 0 respectively.
29
37
 
38
+
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ['lib']
21
21
  #s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
22
22
 
23
- s.add_dependency "rails", "~> 3.2.0.rc1"
23
+ s.add_dependency "rails", "~> 3.2.0.rc2"
24
24
 
25
25
  s.add_development_dependency "mysql2"
26
26
  s.add_development_dependency 'factory_girl_rails'
@@ -1,3 +1,3 @@
1
1
  module ActsAsDefaultable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_defaultable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,18 +13,18 @@ date: 2012-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &20379900 !ruby/object:Gem::Requirement
16
+ requirement: &77989910 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.0.rc1
21
+ version: 3.2.0.rc2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20379900
24
+ version_requirements: *77989910
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mysql2
27
- requirement: &20378580 !ruby/object:Gem::Requirement
27
+ requirement: &78017310 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *20378580
35
+ version_requirements: *78017310
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: factory_girl_rails
38
- requirement: &20377300 !ruby/object:Gem::Requirement
38
+ requirement: &78015890 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *20377300
46
+ version_requirements: *78015890
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: spork
49
- requirement: &20392860 !ruby/object:Gem::Requirement
49
+ requirement: &78013400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.9.0.rc9
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *20392860
57
+ version_requirements: *78013400
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rb-fsevent
60
- requirement: &20391940 !ruby/object:Gem::Requirement
60
+ requirement: &78011620 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *20391940
68
+ version_requirements: *78011620
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
- requirement: &20390400 !ruby/object:Gem::Requirement
71
+ requirement: &78044680 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *20390400
79
+ version_requirements: *78044680
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: libnotify
82
- requirement: &20388840 !ruby/object:Gem::Requirement
82
+ requirement: &78042620 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *20388840
90
+ version_requirements: *78042620
91
91
  description: This 'acts_as' extension provides the capability for having a default
92
92
  object. The class that has this specified needs to have a default column defined
93
93
  as an integer, string or boolean on the mapped database table
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -2181701582938648428
176
+ hash: 925179279
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements:
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  segments:
184
184
  - 0
185
- hash: -2181701582938648428
185
+ hash: 925179279
186
186
  requirements: []
187
187
  rubyforge_project:
188
188
  rubygems_version: 1.8.10