kentouzu 0.2.1 → 0.2.2

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: f8497b534f88aab37b4b5333fd0963917a13d230
4
- data.tar.gz: 66b8dee87e0d73594013b23483d2cb5dbd0ab83e
3
+ metadata.gz: aa85713258a206beb46ed4132dc5a226c7d99565
4
+ data.tar.gz: 828bdaf162a632ae6a42e6b0e81dc1632dd318ec
5
5
  SHA512:
6
- metadata.gz: dd3560dfcd564ce3c5ade631cd95846d27caa52b8322bbd721025cde016bf09077146b21d86cd4ac0cf8385fdc3a98b36370d7bab670a143ac434e23a57b9082
7
- data.tar.gz: 1c81fa5183278095342dd804f29416d4c6ba88677316a49a0e3695036d999fb7f642f9844fce9e436449a32a3436fe39daa9005fa28f8e8145e70d82cf7b0d6f
6
+ metadata.gz: 69c54b8e8cf754e94e50af1243d242279af7b602e4d27da6d6a9a8f707210f256c44a372d12bfb0da58824da37d4c1f8fd9a3abb00633b7a94a1e370e6115eef
7
+ data.tar.gz: 4c5b4be34ecec674ea639dab6b44c166ed0adec813f70b299d4bf753f9be940ab6046e274c0a5ad40a67bba3c37966d9cfb8e7f3200595e143133de924c097a3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.2
2
+
3
+ * Turns out `save` can take arguments.
4
+
1
5
  ## v0.2.1
2
6
 
3
7
  * Added `@draft` instance variable inside `safe_draft` so it's available for callbacks.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kentouzu (0.2.1)
4
+ kentouzu (0.2.2)
5
5
  activerecord (>= 3.0)
6
6
  railties (>= 3.0)
7
7
 
@@ -137,7 +137,7 @@ module Kentouzu
137
137
  def self.included(base)
138
138
  default_save = base.instance_method(:save)
139
139
 
140
- base.send :define_method, :save do
140
+ base.send :define_method, :save do |*|
141
141
  if switched_on? && save_draft?
142
142
  save_draft
143
143
  else
@@ -147,7 +147,7 @@ module Kentouzu
147
147
 
148
148
  default_save_with_bang = base.instance_method(:save!)
149
149
 
150
- base.send :define_method, :save! do
150
+ base.send :define_method, :save! do |*|
151
151
  if switched_on? && save_draft?
152
152
  save_draft
153
153
  else
@@ -1,3 +1,3 @@
1
1
  module Kentouzu
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kentouzu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Eshbaugh