purgatory 2.11.0 → 2.12.0

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
- MzFlYWQ5NmZjZjM0OWE4NjI4YmRiYzliZmFkZmEzZDU5NWU0MDQzOA==
4
+ NjFjNzJjZmMxNTdmMTRiMDAyMTQ4MjZhNGI0ZmU2NTc1ODFhNjIyMA==
5
5
  data.tar.gz: !binary |-
6
- OWU2ZDA4MzM2NjJkMjlhNjUzODY5MDdmNzVhNTcyMjc0OGUzNTBiYg==
6
+ ODY3ZTc3Y2VmMmI0ZGNlMzdjYzlkNjhiNGY5YTM2MmFiNDEzN2IxZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmVlYWQxZTc3NDMyNGIyOGQ1ZWJhMjY5ZGI1ZTYzZTIzODFjYzNiYTkzZjEz
10
- MzQxMzQ0MTZjZDhkZmFmZDUwYWY3NTNiYmQxYTJhYWRkZDM2YWYzOGQwNWZj
11
- ZjUxYzg1OWRiMWY3ODkxZDU5OTQ3NWUzYzQ3MjBkMTkyZWIwZDQ=
9
+ NDMxMjJhMDZiYzA5N2JlN2FiOTBjZDBmN2I2YTA5ODY4YjU5NWIzM2FjM2Q2
10
+ YWFjMjZjNGZkMGQwNjE2ODQ1ZWVmOTRiY2MzOWZlN2NhNTk5NTRkZGFmMjg2
11
+ NGY3NTZjOWM3M2M1YzI0YzcxZDE5NzQ5MzQ0NTk3Y2IwY2E3YjQ=
12
12
  data.tar.gz: !binary |-
13
- ZDU3OTZiOTc2MTRjMTc0YjRjNGY4ZDk3YjhlODdlOGU1NzMwZTFiNmZmOGQw
14
- ODVhM2Q3OTFiNGY5Zjc5NTY1MGVmMzczYWQ5Y2M0NTk2OGVkNzdiYzlmMjQw
15
- MWQ5YThmYmI4YjQxZGJmYWQ4NmRlY2I0MzgyZDRmNGMxOTY4ZDM=
13
+ NGM5NGIxYzc4MTI4YTNlNWY4YWZlYzU5NWU4ZmU0YzI3MjQyNGE4NGM1NWE5
14
+ NzIzYWZmYTk4MmJjMTI1ZjY2MTk5NGI5NmY4YWU4NDlhOGU5OGJlM2Q5ZWM5
15
+ ZjNiMWFiODY4MjA4OTMxNzJhY2QxZTdhMjBjOThhMDJhNTU2MTg=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.11.0
1
+ 2.12.0
@@ -47,6 +47,7 @@ class Purgatory < ActiveRecord::Base
47
47
  if soul_with_changes.save
48
48
  self.approver = approver
49
49
  self.approved_at = Time.now
50
+ self.soul_id = soul.id
50
51
  save
51
52
  return true
52
53
  end
data/purgatory.gemspec CHANGED
@@ -2,11 +2,11 @@
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 2.11.0 ruby lib
5
+ # stub: purgatory 2.12.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "purgatory"
9
- s.version = "2.11.0"
9
+ s.version = "2.12.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Elan Dubrofsky"]
@@ -277,6 +277,12 @@ describe Purgatory do
277
277
  Purgatory.approved.count.should == 1
278
278
  Purgatory.approved.first.should == @purgatory
279
279
  end
280
+
281
+ it "should store the id of the newly created object so the purgatory can be accessed through the object" do
282
+ widget = Widget.first
283
+ widget.purgatories.count.should == 1
284
+ widget.purgatories.first.should == @purgatory
285
+ end
280
286
 
281
287
  it "should fail if you try to approve again" do
282
288
  @purgatory.approve!(user2).should be_false
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: 2.11.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elan Dubrofsky