kentouzu 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b39f53d72a27a2ab22bc2d2ac95627e62ca349c5
4
- data.tar.gz: 075eee3f632a1a30b30b7ba06f4d36e9ba4da7f9
3
+ metadata.gz: f8497b534f88aab37b4b5333fd0963917a13d230
4
+ data.tar.gz: 66b8dee87e0d73594013b23483d2cb5dbd0ab83e
5
5
  SHA512:
6
- metadata.gz: b1c4405b4bf4d4997fd1ec9195ea3ef9bc7df25e30e3ef7f7501cfa92646a5d107a8dda00a12c92bf789c648c6d45a1076d8b0e67dddb7af1b2015cc2ca07336
7
- data.tar.gz: fce154503e796c800a21b5186fac0deab7d89b2f8a357696d745258314bbe2493b95d57126b641f417b79ff12d5c8db82d125efec580bdb10d4b4c71b0a25664
6
+ metadata.gz: dd3560dfcd564ce3c5ade631cd95846d27caa52b8322bbd721025cde016bf09077146b21d86cd4ac0cf8385fdc3a98b36370d7bab670a143ac434e23a57b9082
7
+ data.tar.gz: 1c81fa5183278095342dd804f29416d4c6ba88677316a49a0e3695036d999fb7f642f9844fce9e436449a32a3436fe39daa9005fa28f8e8145e70d82cf7b0d6f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.1
2
+
3
+ * Added `@draft` instance variable inside `safe_draft` so it's available for callbacks.
4
+
1
5
  ## v0.2.0
2
6
 
3
7
  * Breaking changes to the way objects are serialized and deserialized.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kentouzu (0.2.0)
4
+ kentouzu (0.2.1)
5
5
  activerecord (>= 3.0)
6
6
  railties (>= 3.0)
7
7
 
@@ -232,10 +232,10 @@ module Kentouzu
232
232
  :object => self.as_json(include: self.class.reflect_on_all_associations(:has_many).map { |a| a.name }.reject { |a| a == :drafts }).to_yaml
233
233
  }
234
234
 
235
- draft = Draft.new(merge_metadata(data))
235
+ @draft = Draft.new(merge_metadata(data))
236
236
 
237
237
  run_callbacks :draft_save do
238
- draft.save
238
+ @draft.save
239
239
  end
240
240
  end
241
241
 
@@ -1,3 +1,3 @@
1
1
  module Kentouzu
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kentouzu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Eshbaugh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties