phraseapp_updater 2.0.5 → 2.0.6
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/bin/synchronize_phraseapp.sh +8 -0
- data/lib/phraseapp_updater/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e74f3bf7f3ffcb08b72dc6daf7aecb474ceeac2a97ee39050d3ec1319f1406
|
4
|
+
data.tar.gz: c03e16ce0823c0f183a518813098b6287217923aae53276c7567d2627b84165b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a4e72d05dd43ce5a7f52b190b38eb996bc01e23a75bd53113d2eead8fc6ebd8f6fc72633e966228a6545ac199f5150be6acfc7588870e179dfb633793728032
|
7
|
+
data.tar.gz: c70d493a8ee12ca69a97e91e8ad54ed16754c2a696ca2e347e0886b66508b9e5c1acba9ffa0d58f0f60d41e63e287f6dbf420b3ae046575f99e6a1fde283e017
|
@@ -25,6 +25,14 @@ git fetch "${REMOTE}"
|
|
25
25
|
|
26
26
|
current_branch=$(git rev-parse "${REMOTE}/${BRANCH}")
|
27
27
|
|
28
|
+
# If there's a local checkout of that branch, for safety's sake make sure that
|
29
|
+
# it's up to date with the remote one.
|
30
|
+
local_branch=$(git rev-parse "${BRANCH}")
|
31
|
+
if [ "$local_branch" ] && [ "$current_branch" != "$local_branch" ]; then
|
32
|
+
echo "Error: local branch '${BRANCH}' exists but does not match '${REMOTE}/${BRANCH}'." >&2
|
33
|
+
exit 1
|
34
|
+
fi
|
35
|
+
|
28
36
|
# First, fetch the current contents of PhraseApp's staged ("verified") state.
|
29
37
|
current_phraseapp_path=$(make_temporary_directory)
|
30
38
|
common_ancestor=$(phraseapp_updater download "${current_phraseapp_path}" \
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phraseapp_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Griffin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|