ohm-contrib 0.0.36 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Ohm
2
2
  module Contrib
3
- VERSION = '0.0.36'
3
+ VERSION = '0.0.37'
4
4
  end
5
5
 
6
6
  autoload :Boundaries, "ohm/contrib/boundaries"
@@ -181,13 +181,13 @@ module Ohm
181
181
  existing = !new?
182
182
 
183
183
  if valid?
184
- execute_callback(:before, :save)
184
+ execute_callback(:before, :save)
185
185
  execute_callback(:before, :update) if existing
186
186
  end
187
187
 
188
188
  super.tap do |is_saved|
189
189
  if is_saved
190
- execute_callback(:after, :save)
190
+ execute_callback(:after, :save)
191
191
  execute_callback(:after, :update) if existing
192
192
  end
193
193
  end
@@ -18,7 +18,7 @@ class Post < Ohm::Model
18
18
 
19
19
  before :delete, :do_before_delete
20
20
  after :delete, :do_after_delete
21
-
21
+
22
22
  before :update, :do_before_update
23
23
  after :update, :do_after_update
24
24
 
@@ -157,3 +157,4 @@ test "type is array" do
157
157
 
158
158
  assert post.addresses.type == Array
159
159
  end
160
+
@@ -40,3 +40,4 @@ test "type is String" do
40
40
  post = Post.new(:content => "FooBar")
41
41
  assert String == post.content.type
42
42
  end
43
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 36
9
- version: 0.0.36
8
+ - 37
9
+ version: 0.0.37
10
10
  platform: ruby
11
11
  authors:
12
12
  - Cyril David
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-12 00:00:00 +08:00
17
+ date: 2010-10-04 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -82,7 +82,7 @@ dependencies:
82
82
  version: "0"
83
83
  type: :development
84
84
  version_requirements: *id005
85
- description:
85
+ description: Includes a couple of core functions such as callbacks, timestamping, typecasting and lots of generic validation routines.
86
86
  email: cyx.ucron@gmail.com
87
87
  executables: []
88
88
 
@@ -164,6 +164,6 @@ rubyforge_project: ohm-contrib
164
164
  rubygems_version: 1.3.7
165
165
  signing_key:
166
166
  specification_version: 2
167
- summary: A collection of decoupled drop-in modules for Ohm
167
+ summary: A collection of decoupled drop-in modules for Ohm.
168
168
  test_files: []
169
169