ohloh_scm 2.4.12 → 2.4.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6feed4b2be6dbf7ba82431220ac84573ad4bfdd0
4
- data.tar.gz: 39773546b2de738cbbedb165584c92b480b607f8
2
+ SHA256:
3
+ metadata.gz: 1d88622baff3da5dc3c9c32779fde280c92e100364850d12ff860b96312c43e5
4
+ data.tar.gz: 4771dba5abb0198695c225dbb04e3cbfaea770080f4fdcb1e0fdd96ee8ebff29
5
5
  SHA512:
6
- metadata.gz: cb4b2f0ea263a810747df95b8652554d02fc68844fa026c95b1f9b73058c9865addc430de726baad2d0f37825aa096707ce09235547749a671e417c07de9b6ea
7
- data.tar.gz: b1c7d8fec31f58aee75dc5053bac6e846c91dd87e10ec0ebd25e43e425782d8e72ae3627057afb8ae94283cb9fa20dcd861c0080538e46b7b6afcbcd0d79673e
6
+ metadata.gz: 490955e079aebc75b12904930dbcab0822fa2371f46becafb1817f8879992d874988689166600a0e47fc0ad5f4b9276246681d616bdda7f6833dc13fd69d1f9f
7
+ data.tar.gz: 193c2beef5869cbf7388bddf1a028aa68f4d6a30a3cddfe4e4a8ca31f376077c9fb84b00ebdb1f2d264736bd439454f7ea3d8a2de697d902c862ffa2330b8337
@@ -46,7 +46,12 @@ module OhlohScm::Adapters
46
46
  def tags
47
47
  tag_strings = run("cd '#{url}' && bzr tags").split(/\n/)
48
48
  tag_strings.map do |tag_string|
49
- tag_name, rev = tag_string.split(/\s+/)
49
+ parse_tag_names_and_revision = tag_string.split(/\s+/)
50
+ if parse_tag_names_and_revision.size > 1
51
+ tag_name, rev = parse_tag_names_and_revision[0..-2].join(' '), parse_tag_names_and_revision.last
52
+ else
53
+ tag_name, rev = parse_tag_names_and_revision.first, nil
54
+ end
50
55
  next if rev == '?' || tag_name == '....'
51
56
  time_string = run("cd '#{ url }' && bzr log -r #{ rev } | grep 'timestamp:' | sed 's/timestamp://'")
52
57
  [tag_name, rev, Time.parse(time_string)]
@@ -1,5 +1,5 @@
1
1
  module OhlohScm
2
2
  module Version
3
- STRING = '2.4.12'
3
+ STRING = '2.4.13'
4
4
  end
5
5
  end
@@ -1 +1 @@
1
- d6:v1.0.047:obnox@samba.org-20090204002540-gmana8tk5f9gboq96:v2.0.048:test@example.com-20111222183733-y91if5npo3pe8ifse
1
+ d7:v 3.0.047:obnox@samba.org-20090204002422-5ylnq8l4713eqfy06:v1.0.047:obnox@samba.org-20090204002540-gmana8tk5f9gboq96:v2.0.048:test@example.com-20111222183733-y91if5npo3pe8ifse
@@ -38,8 +38,10 @@ module OhlohScm::Adapters
38
38
  with_bzr_repository('bzr') do |bzr|
39
39
  time_1 = Time.parse('2009-02-04 00:25:40 +0000')
40
40
  time_2 = Time.parse('2011-12-22 18:37:33 +0000')
41
+ time_3 = Time.parse('2009-02-04 00:24:22 +0000')
42
+
41
43
  monkey_patch_run_method_to_match_tag_patterns
42
- assert_equal [['v1.0.0', '5', time_1], ['v2.0.0','7', time_2]], bzr.tags
44
+ assert_equal [['v1.0.0', '5', time_1], ['v2.0.0', '7', time_2], ['v 3.0.0', '2', time_3]], bzr.tags
43
45
  end
44
46
  end
45
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohloh_scm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.12
4
+ version: 2.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlackDuck Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-05 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn
@@ -646,7 +646,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
646
646
  version: '0'
647
647
  requirements: []
648
648
  rubyforge_project:
649
- rubygems_version: 2.4.5.1
649
+ rubygems_version: 2.7.6
650
650
  signing_key:
651
651
  specification_version: 4
652
652
  summary: Source Control Management