ohloh_scm 2.2.9 → 2.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2283aa98709a068c1e3b9e26e1c4593f8b4685d
4
- data.tar.gz: dfeb05fcad4886f5fd7b139575cf902b21422262
3
+ metadata.gz: 8b63ee9c188601b24b7c0efa88291f46a381d4a5
4
+ data.tar.gz: b69c20ca9fd2b9e4a35afb5bdf49765585a4ed50
5
5
  SHA512:
6
- metadata.gz: 6fb3171ea34d0fa84c14217c83ae709874d7e3136dd7b4e31fae61430c599c2d995a31aca41b91f3e4dc39f580943ee38a9c5af82a4cac4f3a0c35c7f5c52710
7
- data.tar.gz: 43f4e85185e98fba279ff8c8791fd5a8261c5ff89ed29b14c8f85b0bfacc31e604341120f036e9a4f829a7dbd289c668eb7afbdd613f991dbc4097a720803018
6
+ metadata.gz: 9b6b5356a9ec4c94fc672196d1d2489bf10d6578b91a74c644de1810d285d665c9572389151556200f5c0b7575a61217ed4a41293b1bd56c9001bc767a140505
7
+ data.tar.gz: 78b12a417ebf86d97ef8951c60f7bfaf65f25455f9325595cfab5b2a8a53518671606917602599bfead6600198eeb10d06bd41a626e52038650806a1a03e151c
data/.travis.yml CHANGED
@@ -8,5 +8,6 @@ install:
8
8
  - sh .install_multiple_scms.sh
9
9
  - sh .install_dependencies.sh
10
10
  - gem install posix-spawn
11
+ - gem install nokogiri -v 1.6.8
11
12
  before_script:
12
13
  - cd $TRAVIS_BUILD_DIR
@@ -1,4 +1,5 @@
1
1
  require 'open-uri'
2
+ require 'nokogiri'
2
3
 
3
4
  module OhlohScm::Adapters
4
5
  class SvnAdapter < AbstractAdapter
@@ -144,12 +145,13 @@ module OhlohScm::Adapters
144
145
  # http://svn.apache.org/repos/asf/maven/plugin-testing/trunk
145
146
  # all have the same root value(https://svn.apache.org/repos/asf)
146
147
  def tags
147
- tag_strings = `svn ls -v #{ base_path}/tags`.split(/\n/)
148
- tag_strings.map do |tag_string|
149
- date_string = tag_string.split(' ').values_at(-4, -3, -2).join(' ')
150
- folder_and_rev = tag_string.split(' ').values_at(-1, 0).map { |v| v.chomp('/') }
151
- folder_and_rev << Time.parse(date_string)
152
- end.drop(1)
148
+ doc = Nokogiri::XML(`svn ls --xml #{ base_path}/tags`)
149
+ doc.xpath('//lists/list/entry').map do |entry|
150
+ tag_name = entry.xpath('name').text
151
+ revision = entry.xpath('commit').attr('revision').text
152
+ date_string = Time.parse(entry.xpath("commit/date").text)
153
+ [tag_name, revision, date_string]
154
+ end
153
155
  end
154
156
 
155
157
  class << self
@@ -1,5 +1,5 @@
1
1
  module OhlohScm
2
2
  module Version
3
- STRING = '2.2.9'
3
+ STRING = '2.2.10'
4
4
  end
5
5
  end
data/ohloh_scm.gemspec CHANGED
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = %w(lib)
19
19
 
20
20
  gem.add_runtime_dependency 'posix-spawn', '~> 0.3'
21
+ gem.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.8'
21
22
  end
metadata CHANGED
@@ -1,29 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohloh_scm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9
4
+ version: 2.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlackDuck Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ - - '>='
35
+ - !ruby/object:Gem::Version
36
+ version: 1.6.8
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '1.6'
44
+ - - '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.6.8
27
47
  description: The Ohloh source control management library for interacting with Git,
28
48
  SVN, CVS, Hg and Bzr repositories.
29
49
  email:
@@ -34,12 +54,12 @@ executables:
34
54
  extensions: []
35
55
  extra_rdoc_files: []
36
56
  files:
37
- - ".gitignore"
38
- - ".ruby-version"
39
- - ".travis.yml"
40
- - ".travis/.install_dependencies.sh"
41
- - ".travis/.install_multiple_scms.sh"
42
- - ".travis/.travis_ssh_setup.sh"
57
+ - .gitignore
58
+ - .ruby-version
59
+ - .travis.yml
60
+ - .travis/.install_dependencies.sh
61
+ - .travis/.install_multiple_scms.sh
62
+ - .travis/.travis_ssh_setup.sh
43
63
  - COPYING
44
64
  - README.md
45
65
  - Rakefile
@@ -592,12 +612,12 @@ require_paths:
592
612
  - lib
593
613
  required_ruby_version: !ruby/object:Gem::Requirement
594
614
  requirements:
595
- - - ">="
615
+ - - '>='
596
616
  - !ruby/object:Gem::Version
597
617
  version: '0'
598
618
  required_rubygems_version: !ruby/object:Gem::Requirement
599
619
  requirements:
600
- - - ">="
620
+ - - '>='
601
621
  - !ruby/object:Gem::Version
602
622
  version: '0'
603
623
  requirements: []