purgatory 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTk3MmQ1NzAxNGRmOThjMWE1NTI4MTFjNjAyMDIyMjlkYWFlMmY0Mg==
4
+ YWJlNzE4NGQyODkzYzM5NzRlZWY3NjUzMTRkODNkNDQ2Y2ExZTVlNQ==
5
5
  data.tar.gz: !binary |-
6
- NDA2Mjc0NzNjYTI5NWEzOWFkY2VjOTQ1YWZhNjZkMzM2MmJhZDdkOA==
6
+ M2NmMmQ4ZTY2MDIxZTBlOTczMTgwZTM0ODA0ZmMwODAwNjUwMTRhMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjhjZTRmZGRlMjU5ZDA4OTc4NWU2MzgxMDE4NjcwOWE2ZTcwODM0ZDQ2OTcw
10
- NWM1ZWRkZWVjZDc4MGRiODQ3MjE2NmYzNTU1YzhjODhhNTk2MTdhYjdhNmVk
11
- MzI2ZDc2ZjMyYjlmYTI3ZWEyYTk1NzBmZTVjNTlkMjg3MzY3YmY=
9
+ ZTkyMGYyYTE4ZDE4OGZjMTE4OTc2ZDFhYjIzYTA4ZTI5MmI4YzlkMzhjMjNm
10
+ MTQ2MWQ2YzlkZGIxZmJmMGM1OGIzNmVhNTYyYTZiNTI4ZGRlOWFjNGY1Y2Rm
11
+ ZjE2Y2RlMjIyYzY0Y2MwMjE4ZWNmZGY0NTU4MGIxOTVlYTUyOTk=
12
12
  data.tar.gz: !binary |-
13
- Nzc1MTUzZDRhYjUxMDYwMGQ4MmM2OTE0OTdiMzJhODA4ODkzYzhhNTRjNjI3
14
- N2MxNTJkMzllZDRjNzkzNzc5MGM2MzAxMWNjMGZlOTJkOTc1NmY0NDkzMDFm
15
- YjAwMjYxZjdiMDIwOTg2ODk1NDMyMjcwZWQ0M2E1MDIyMzUyYTg=
13
+ ZDI2OGZlOTRkYTdjYWZmMDcxODNjYjE2MjYwYjg1ZmMwMmQ3NGVkYmE1MGEw
14
+ NGIwZTdiNjliZTA2YjZhNzg5MTcxZjY4YWUzNzVkZWU3ODBkZGJjNmE1NGNk
15
+ MTI3OGIwZDMzN2RlYWNmMTUxN2M0YjFiYjIwY2RkNzJmMmUwNTI=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.1
@@ -45,11 +45,11 @@ class Purgatory < ActiveRecord::Base
45
45
 
46
46
  def approve!(approver = nil)
47
47
  return false if approved?
48
- if performable_method.present?
49
- success = soul.send(performable_method[:method], *performable_method[:args])
50
- else
51
- success = soul_with_changes.save
48
+ success = soul_with_changes.save
49
+ if performable_method.present? && success
50
+ success = soul.send(performable_method[:method],*performable_method[:args])
52
51
  end
52
+
53
53
  if success
54
54
  self.approver = approver
55
55
  self.approved_at = Time.now
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: purgatory 3.1.0 ruby lib
5
+ # stub: purgatory 3.1.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "purgatory"
9
- s.version = "3.1.0"
9
+ s.version = "3.1.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Elan Dubrofsky"]
14
- s.date = "2017-08-17"
14
+ s.date = "2017-08-21"
15
15
  s.description = "Put your model changes in purgatory and allow them to remain lost souls until they are approved"
16
16
  s.email = "elan.dubrofsky@gmail.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purgatory
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elan Dubrofsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-17 00:00:00.000000000 Z
11
+ date: 2017-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc