fabrication 2.6.0 → 2.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,14 +13,14 @@ class Fabrication::Generator::Base
13
13
  build_instance
14
14
  end
15
15
  execute_callbacks(callbacks[:after_build])
16
- execute_callbacks(callbacks[:before_validation])
17
- validate_instance
18
- execute_callbacks(callbacks[:after_validation])
19
16
  __instance
20
17
  end
21
18
 
22
19
  def create(attributes=[], callbacks=[])
23
20
  build(attributes, callbacks)
21
+ execute_callbacks(callbacks[:before_validation])
22
+ validate_instance
23
+ execute_callbacks(callbacks[:after_validation])
24
24
  execute_callbacks(callbacks[:before_save])
25
25
  execute_callbacks(callbacks[:before_create])
26
26
  persist
@@ -13,7 +13,6 @@ class Fabrication::Schematic::Evaluator < BasicObject
13
13
  end
14
14
 
15
15
  def after_build(&block)
16
- ::Kernel.puts "DEPRECATION WARNING: after_build callbacks will be removed in fabrication 2.7"
17
16
  @_definition.callbacks[:after_build] ||= []
18
17
  @_definition.callbacks[:after_build] << block
19
18
  end
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '2.6.0'
2
+ VERSION = '2.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabrication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord