auto_build 0.4.0 → 0.4.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/README.md CHANGED
@@ -87,6 +87,8 @@ existing values.
87
87
 
88
88
  Notes
89
89
  ----
90
+ * **Watch out for fields with `reject_if`**. Since the AutoBuild callback will be added as an
91
+ `after_initialize` hook this might overwrite the validations done in `reject_if`.
90
92
  * The option `:append => true` is equivalent to `:count => 5`.
91
93
  * You **cannot** pass the `:append` and `:count` options to the same association.
92
94
  * None of the operations will overwrite existing objects.
@@ -17,7 +17,7 @@ module AutoBuild
17
17
  end
18
18
 
19
19
  def code
20
- "self.#{association_name} ||= build_#{association_name}"
20
+ "self.build_#{association_name}"
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module AutoBuild
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-16 00:00:00.000000000 Z
12
+ date: 2011-12-22 00:00:00.000000000 -05:00
13
+ default_executable:
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
16
- requirement: &70179119875860 !ruby/object:Gem::Requirement
17
+ requirement: &2168926060 !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ~>
@@ -21,10 +22,10 @@ dependencies:
21
22
  version: 3.1.3
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: *70179119875860
25
+ version_requirements: *2168926060
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: sqlite3
27
- requirement: &70179119875200 !ruby/object:Gem::Requirement
28
+ requirement: &2168925640 !ruby/object:Gem::Requirement
28
29
  none: false
29
30
  requirements:
30
31
  - - ! '>='
@@ -32,7 +33,7 @@ dependencies:
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70179119875200
36
+ version_requirements: *2168925640
36
37
  description: Automatically initialize associations in Rails models
37
38
  email:
38
39
  - federico.builes@gmail.com
@@ -108,6 +109,7 @@ files:
108
109
  - test/dummy/test/unit/project_test.rb
109
110
  - test/dummy/test/unit/user_test.rb
110
111
  - test/test_helper.rb
112
+ has_rdoc: true
111
113
  homepage: https://github.com/febuiles/auto_build
112
114
  licenses: []
113
115
  post_install_message:
@@ -120,15 +122,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
122
  - - ! '>='
121
123
  - !ruby/object:Gem::Version
122
124
  version: '0'
125
+ segments:
126
+ - 0
127
+ hash: -942506209396493694
123
128
  required_rubygems_version: !ruby/object:Gem::Requirement
124
129
  none: false
125
130
  requirements:
126
131
  - - ! '>='
127
132
  - !ruby/object:Gem::Version
128
133
  version: '0'
134
+ segments:
135
+ - 0
136
+ hash: -942506209396493694
129
137
  requirements: []
130
138
  rubyforge_project:
131
- rubygems_version: 1.8.10
139
+ rubygems_version: 1.6.2
132
140
  signing_key:
133
141
  specification_version: 3
134
142
  summary: Automatically initialize associations in Rails models