culturecode_stagehand 0.6.3 → 0.6.4

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: b90fc1739bab1a8ae915609503c36e47680f327b
4
- data.tar.gz: 0b3e9406355c73ff862ddda8cedca4236ba5a400
3
+ metadata.gz: d24adbab46ccf8204862fa0a2966e846ec00d97e
4
+ data.tar.gz: 393978759a86781a275bc6feae2d6b75a44e8437
5
5
  SHA512:
6
- metadata.gz: 15288da2a03708c1f713814bded0a5082745eaa7b3194d53f922529269e4be93e9f6041aa60cc5a2434ec090bc1e2ba252f046957b1a4b9051cecfa91d1e5b3f
7
- data.tar.gz: 3da119c4808029e075551ab01d189e652efe5b50fa81bac9f2cbed8c07ed3f2af7bf587240b87840b392165c928cc7c9f0792d89809db08033a5b0f451bd0ddd
6
+ metadata.gz: bb7215db80f3c5ea2e55db80c2560921b71ea828220dee1996f5cf93282d78a62ef0bfc2a60f3abd0086147470007446cc3a7d1d1ca19dd462e67c5339ad3f3e
7
+ data.tar.gz: 925308067dade6b0a08715186bd62f052c2c713de6151f6c692900d982d81497809ea8b613ad29ff860e7dee96186e24c9c2fcc40c74b0443c3ac6df4bd8a71f
@@ -149,11 +149,16 @@ module Stagehand
149
149
  entry.start_operation? && entry.matches?(@subject)
150
150
  end.collect(&:id)
151
151
 
152
- # Don't need to confirm entries that were part of a commits kicked off by the staging record
153
- entries = affected_entries.reject {|entry| staging_record_start_operation_ids.include?(entry.commit_id) }
152
+ entries = affected_entries
153
+
154
+ # Don't need to confirm entries that match the checklist subject
155
+ entries.reject! {|entry| entry.matches?(@subject) }
156
+
157
+ # Don't need to confirm entries that are part of a commits whose subject is the checklist subject
158
+ entries.reject! {|entry| staging_record_start_operation_ids.include?(entry.commit_id) }
154
159
 
155
160
  # Don't need to confirm entries that were not part of a commit
156
- entries = entries.select(&:commit_id)
161
+ entries.select!(&:commit_id)
157
162
 
158
163
  entries = self.class.compact_entries(entries)
159
164
  entries = filter_entries(entries)
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode_stagehand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-18 00:00:00.000000000 Z
12
+ date: 2016-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails