culturecode_stagehand 0.11.0 → 0.11.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 631cfae3a83514e2678436cf359e33af77f49234
4
- data.tar.gz: 40ad332a8e324c076e8cbff79d678657db0d58a6
3
+ metadata.gz: 24e3b40120cfab02ac8bce3d4516942a7fb9c3b5
4
+ data.tar.gz: 43c21541d06a5026b988e428169638992a33ace3
5
5
  SHA512:
6
- metadata.gz: a52cace12d2485973e0443c2a44eee10a4c2df86f4c429b1db29ea3b8a7f2b9fb7830e325594016ea2e6851b95d2f54c37094dc85d2d750e91d896190015a66b
7
- data.tar.gz: 05c33366d9c63aecce718f89a442bef8119b895f1bdd42066d81f738a46e7d0d89a6d6011125c398adff0e9c04737d8a4f21e836f5378ca48ed048c6cf9ec358
6
+ metadata.gz: b7ffb9b0682a49e40c57a7e52b522e559512036ee578cc7a8a9b01121580e1ca16f5ab74e489d94ffcfb26409ad8cc2ba6192dcecd7266d17a08347a2e5f62ad
7
+ data.tar.gz: dd987ebb5c3f9df98b88c21443dee227ddf99d96ad476b051a07715a1e8b0e69a5cecbb24cafa3b90a574864fce7f336c214c61662ad7031ba9a53fdef01f9d4
@@ -137,7 +137,7 @@ module Stagehand
137
137
  associated = self.class.associated_records(related)
138
138
  associated_related = self.class.related_entries(associated)
139
139
 
140
- related + associated_related
140
+ (related + associated_related).uniq
141
141
  end
142
142
  end
143
143
 
@@ -49,7 +49,9 @@ module Stagehand
49
49
  end_operation = CommitEntry.end_operations.create(:session => start_operation.session)
50
50
 
51
51
  scope = CommitEntry.where(:id => start_operation.id..end_operation.id, :session => start_operation.session)
52
- scope = scope.where('table_name NOT IN (?) OR table_name IS NULL', except) if except.present?
52
+ if except.present? && Array(except).collect(&:to_s).exclude?(start_operation.table_name)
53
+ scope = scope.where('table_name NOT IN (?) OR table_name IS NULL', except)
54
+ end
53
55
  scope.update_all(:commit_id => start_operation.id)
54
56
 
55
57
  return new(start_operation.id)
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
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.11.0
4
+ version: 0.11.1
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-11-14 00:00:00.000000000 Z
12
+ date: 2016-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.5.1
127
+ rubygems_version: 2.6.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Simplify the management of a sandbox database that can sync content to a