purgatory 6.0.2 → 6.0.3

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
  SHA256:
3
- metadata.gz: ec4ff54491b9cf42aec51289751468068f725b26c23afd64c1746a8ba13c4307
4
- data.tar.gz: 1b37daf95411e0954068510e291404b7aa3fd7575872e7a99890e51e2326d9a0
3
+ metadata.gz: 2af3c60d4f7b1c69ed124e020216752e1078b24eafeea8af633ec91ab25c1a14
4
+ data.tar.gz: f731d8381bc1430a47999a0dfbef2acba055620c0410cebd92a1585495a027d6
5
5
  SHA512:
6
- metadata.gz: 49297777b6cb45633974769cebb4c01474915ae1d318e63b04de5007b6e4a7964be405402bfe2b05130f900e9612a18692940787c2005fdaea74364f7915a276
7
- data.tar.gz: f16f71f7977734e2ebd065d978f0ad0e7c7a07bfb4a0fb935588acd44cd005518828cc550482add7047399de2edc4d6448745f0523acd5a257bc89af12c6ad53
6
+ metadata.gz: 7e42df9ba9269376d816c414c4dce1f7f115ab66598d2bf98965d4d8c53098f636819def2be40cc394cbe7a4efd995746206a3256f21e6c4ac40e9d0840143a1
7
+ data.tar.gz: c6b61df8ad74d59bc3d86e2e8d64634f406edaa81c7c91d809316f45096361f101400f4518aded25fae3b5a220d015a683a2b77ad8aa288bad7dfeece02b2dfb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.0.2
1
+ 6.0.3
@@ -16,7 +16,7 @@ class Purgatory < ActiveRecord::Base
16
16
  def self.pending
17
17
  where(approved_at: nil)
18
18
  end
19
-
19
+
20
20
  def self.approved
21
21
  where ["approved_at IS NOT NULL"]
22
22
  end
@@ -51,6 +51,7 @@ class Purgatory < ActiveRecord::Base
51
51
  unless approved?
52
52
  success = soul_with_changes.save
53
53
  if performable_method.present? && success
54
+ performable_method[:kwargs] ||= {}
54
55
  success = soul.send(performable_method[:method], *performable_method[:args], **performable_method[:kwargs])
55
56
  end
56
57
 
data/purgatory.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "purgatory"
6
- s.version = "6.0.2"
6
+ s.version = "6.0.3"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purgatory
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.2
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elan Dubrofsky