culturecode_stagehand 0.12.0 → 0.12.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 +4 -4
- data/lib/stagehand/staging/commit.rb +7 -1
- data/lib/stagehand/staging/synchronizer.rb +3 -0
- data/lib/stagehand/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e520882c8b93a387eaf5be62f54f978efef01ed
|
|
4
|
+
data.tar.gz: b3f249ffbcac57b013e587f93d915c6f75515710
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d2555054b079e1278b584a9d5589f485041ac4125eaef11731461a7ec546c16468fef0ea23cdfd9993d55be8b8a19fb88f3e0dc3d1691ce58459b16b407cf50
|
|
7
|
+
data.tar.gz: 7206daab7937c07059e28226d88f582323dd171ac543ed4b739143a8439a7df2b9db8c9bfff9630a450441e47c54756d51fe8541075bc1209fec6355deb84d7f
|
|
@@ -73,7 +73,13 @@ module Stagehand
|
|
|
73
73
|
.reorder(:id => :asc)
|
|
74
74
|
.pluck(:id)
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
return if @start_id && @end_id
|
|
77
|
+
|
|
78
|
+
missing = []
|
|
79
|
+
missing << CommitEntry::START_OPERATION unless @start_id
|
|
80
|
+
missing << CommitEntry::END_OPERATION unless @end_id
|
|
81
|
+
|
|
82
|
+
raise CommitNotFound, "Couldn't find #{missing.join(', ')} entry for Commit #{start_id}"
|
|
77
83
|
end
|
|
78
84
|
|
|
79
85
|
def id
|
|
@@ -12,6 +12,7 @@ module Stagehand
|
|
|
12
12
|
def sync_now(subject_record = nil, &block)
|
|
13
13
|
raise SyncBlockRequired unless block_given?
|
|
14
14
|
|
|
15
|
+
Rails.logger.info "Syncing Now"
|
|
15
16
|
Database.transaction do
|
|
16
17
|
checklist = Checklist.new(Commit.capture(subject_record, &block).entries)
|
|
17
18
|
sync_checklist(checklist) unless checklist.requires_confirmation?
|
|
@@ -20,6 +21,7 @@ module Stagehand
|
|
|
20
21
|
|
|
21
22
|
def auto_sync(polling_delay = 5.seconds)
|
|
22
23
|
loop do
|
|
24
|
+
Rails.logger.info "Autosyncing"
|
|
23
25
|
sync(BATCH_SIZE)
|
|
24
26
|
sleep(polling_delay) if polling_delay
|
|
25
27
|
end
|
|
@@ -29,6 +31,7 @@ module Stagehand
|
|
|
29
31
|
synced_count = 0
|
|
30
32
|
deleted_count = 0
|
|
31
33
|
|
|
34
|
+
Rails.logger.info "Syncing"
|
|
32
35
|
iterate_autosyncable_entries do |entry|
|
|
33
36
|
sync_entries(entry)
|
|
34
37
|
synced_count += 1
|
data/lib/stagehand/version.rb
CHANGED
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.12.
|
|
4
|
+
version: 0.12.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:
|
|
12
|
+
date: 2017-01-10 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.
|
|
127
|
+
rubygems_version: 2.5.2
|
|
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
|