tagurit 0.3 → 0.4
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.
- data/lib/tag_fetcher.rb +4 -3
- metadata +3 -3
data/lib/tag_fetcher.rb
CHANGED
|
@@ -91,11 +91,12 @@ class HgTagFetcher < TagFetcher
|
|
|
91
91
|
|
|
92
92
|
# if the directory doesn't exist, clone it first, otherwise pull upstream changes
|
|
93
93
|
if File.directory? local_path
|
|
94
|
-
`hg pull -u -R #{local_path}
|
|
94
|
+
`hg pull -u -R #{local_path}`
|
|
95
95
|
else
|
|
96
|
-
`hg clone #{url} #{local_path}
|
|
96
|
+
`hg clone #{url} #{local_path}`
|
|
97
|
+
# put this here since hg returns a 1 when it didn't pull anything (no changes)
|
|
98
|
+
raise TagFetchError unless $?.success?
|
|
97
99
|
end
|
|
98
|
-
raise TagFetchError unless $?.success?
|
|
99
100
|
raw_tags = `hg tags -R #{local_path}`
|
|
100
101
|
raw_tags
|
|
101
102
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tagurit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.4'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-02-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Watches multiple types of VCS repositories for new tags.
|
|
15
15
|
email: gostrc@gmail.com
|
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
41
41
|
version: '0'
|
|
42
42
|
requirements: []
|
|
43
43
|
rubyforge_project:
|
|
44
|
-
rubygems_version: 1.8.
|
|
44
|
+
rubygems_version: 1.8.15
|
|
45
45
|
signing_key:
|
|
46
46
|
specification_version: 3
|
|
47
47
|
summary: Version control system, tag watcher.
|