update_repo 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/update_repo/cmd_config.rb +1 -1
- data/lib/update_repo/git_control.rb +5 -1
- data/lib/update_repo/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: 2567ba563f38d079c5d3f5c3326a846cf31a065c
|
4
|
+
data.tar.gz: 9e9f8e147636cf71d284ad222082d4c29b0e0036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 170a810f3077912d772b24a34cc3d4cfff098aa22269a1d44c743fe0ee12efb78e7be98ee3266973dc748195c0918cfa6868b7d186f02988fff037414a9e2192
|
7
|
+
data.tar.gz: 82fa267117270ebfa92e84f6cfb6085442e9576d81365268c10ef425ad9462280389bc2df6424bb011507c09297fb8c9f0fe87ab65fb30f29f1037184b65dfaf
|
data/.travis.yml
CHANGED
@@ -101,7 +101,7 @@ module UpdateRepo
|
|
101
101
|
# rubocop:disable Metrics/LineLength
|
102
102
|
def set_options
|
103
103
|
Trollop.options do
|
104
|
-
version "update_repo version #{VERSION} (C)
|
104
|
+
version "update_repo version #{VERSION} (C)2017 G. Ramsay\n"
|
105
105
|
banner <<-EOS
|
106
106
|
|
107
107
|
Keep multiple local Git-Cloned Repositories up to date with one command.
|
@@ -80,9 +80,13 @@ module UpdateRepo
|
|
80
80
|
update_fail_matrix(line)
|
81
81
|
else
|
82
82
|
print_log ' ' * 3, line.cyan
|
83
|
-
@status[:updated] = true if line =~ /^Updating\s[0-9a-f]{
|
83
|
+
@status[:updated] = true if line =~ /^Updating\s[0-9a-f]{6,}\.\.[0-9a-f]{6,}/
|
84
84
|
@status[:unchanged] = true if line =~ /^Already up-to-date./
|
85
85
|
end
|
86
|
+
# need to adjust metrics if both updated and unchanged are true
|
87
|
+
# this happens in rare cases when both the regex are matched. In future,
|
88
|
+
# the regex needs to be made more robust
|
89
|
+
status[:unchanged] = false if (@status[:updated] && status[:unchanged])
|
86
90
|
end
|
87
91
|
# rubocop:enable Metrics/LineLength
|
88
92
|
end
|
data/lib/update_repo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: update_repo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Ramsay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -340,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
340
340
|
version: '0'
|
341
341
|
requirements: []
|
342
342
|
rubyforge_project:
|
343
|
-
rubygems_version: 2.6.
|
343
|
+
rubygems_version: 2.6.12
|
344
344
|
signing_key:
|
345
345
|
specification_version: 4
|
346
346
|
summary: A Simple Gem to keep multiple locally-cloned Git Repositories up to date
|