ohloh_scm 2.3.1 → 2.3.2
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 -0
- data/lib/ohloh_scm/adapters/svn_chain/chain.rb +1 -1
- data/lib/ohloh_scm/parsers/git_styled_parser.rb +6 -0
- data/lib/ohloh_scm/version.rb +1 -1
- data/log/.gitignore +0 -0
- data/ohloh_scm.gemspec +1 -0
- data/test/data/helloworld.log +9 -0
- data/test/unit/git_log_parser_test.rb +1 -4
- metadata +36 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c873b524463be1c3642bf50aca333e6d6529d1ae
|
4
|
+
data.tar.gz: 3cad06de5d7429b3e79b92dec0e22a95f395bd89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0eb711b227afe777b36fcc039c5e21123cff9b900c0777d8e135e2d5e441db1aa03bd9c6d6ec32527a046e54c8650a899d50f3e33c2a494b4a53b24765c3290
|
7
|
+
data.tar.gz: 78f2a00f77ca3c297351b5af2a918c79b548c93b66bb893f6e3790fb5a2e804a77565d9c6480cc2990882696d243e36e01037faa91fe41848a6fd6ecc1284318
|
data/.travis.yml
CHANGED
@@ -79,7 +79,7 @@ module OhlohScm::Adapters
|
|
79
79
|
# Returns the first commit with a revision number greater than the provided revision number
|
80
80
|
def next_revision_xml(after=0)
|
81
81
|
return "<?xml?>" if after.to_i >= head_token
|
82
|
-
run "svn log --trust-server-cert --non-interactive --verbose --xml --stop-on-copy -r #{after.to_i+1}:#{final_token || 'HEAD'} --limit 1 #{opt_auth} '#{SvnAdapter.uri_encode(File.join(self.root, self.branch_name))}@#{final_token || 'HEAD'}' | #{ string_encoder }"
|
82
|
+
run "svn log --trust-server-cert --non-interactive --verbose --xml --stop-on-copy -r #{after.to_i+1}:#{final_token || 'HEAD'} --limit 1 #{opt_auth} '#{SvnAdapter.uri_encode(File.join(self.root, self.branch_name.to_s))}@#{final_token || 'HEAD'}' | #{ string_encoder }"
|
83
83
|
end
|
84
84
|
|
85
85
|
# If the passed diff represents the wholesale movement of the entire
|
@@ -71,6 +71,12 @@ module OhlohScm::Parsers
|
|
71
71
|
# Submodules have a file mode of '160000', which indicates a "gitlink"
|
72
72
|
# We ignore submodules completely.
|
73
73
|
e.diffs << OhlohScm::Diff.new( :action => $5, :path => $6, :sha1 => $4, :parent_sha1 => $3 ) unless $1=='160000' || $2=='160000'
|
74
|
+
elsif line =~ /:([0-9]+) ([0-9]+) ([a-z0-9]+) ([a-z0-9]+) (R[0-9]+)\t"?(.+[^"])"?$/
|
75
|
+
old_path, new_path = $6.split("\t")
|
76
|
+
unless $1=='160000' || $2=='160000'
|
77
|
+
e.diffs << OhlohScm::Diff.new( :action => 'D', :path => old_path, :sha1 => NULL_SHA1, :parent_sha1 => $3 )
|
78
|
+
e.diffs << OhlohScm::Diff.new( :action => 'A', :path => new_path, :sha1 => $4, :parent_sha1 => NULL_SHA1 )
|
79
|
+
end
|
74
80
|
end
|
75
81
|
|
76
82
|
else
|
data/lib/ohloh_scm/version.rb
CHANGED
data/log/.gitignore
CHANGED
File without changes
|
data/ohloh_scm.gemspec
CHANGED
data/test/data/helloworld.log
CHANGED
@@ -30,3 +30,12 @@ __END_COMMENT__
|
|
30
30
|
:000000 100644 0000000000000000000000000000000000000000 f0547ce063095e66be74618bc410989df226d2d2 A README
|
31
31
|
:100644 100644 4c734ad53b272c9b3d719f214372ac497ff6c068 f6adcae4447809b651c787c078d255b2b4e963c5 M helloworld.c
|
32
32
|
:100644 100644 d8263ee9860594d2806b0dfd1bfd17528b0ba2a4 e440e5c842586965a7fb77deda2eca68612b1f53 M ohloh_token
|
33
|
+
__BEGIN_COMMIT__
|
34
|
+
Commit: a66c35d4224a9f425d1163651b9e0fb1b4b64b9f
|
35
|
+
Author: robin
|
36
|
+
Date: Sun, 11 Jun 2006 11:50:17 +0200
|
37
|
+
__BEGIN_COMMENT__
|
38
|
+
rename ohloh_token to ohloh_tokens
|
39
|
+
<unknown>
|
40
|
+
__END_COMMENT__
|
41
|
+
:100644 100644 82dde552eb88ca764d728319284b92b7639e8057 82dde552eb88ca764d728319284b92b7639e8057 R100 ohloh_token ohloh_tokens
|
@@ -14,7 +14,7 @@ module OhlohScm::Parsers
|
|
14
14
|
end
|
15
15
|
|
16
16
|
assert commits
|
17
|
-
assert_equal
|
17
|
+
assert_equal 4, commits.size
|
18
18
|
|
19
19
|
commits.each do |commit|
|
20
20
|
# puts commit.inspect
|
@@ -28,9 +28,6 @@ module OhlohScm::Parsers
|
|
28
28
|
commit.diffs.each do |d|
|
29
29
|
assert_equal 40, d.sha1.length
|
30
30
|
assert_equal 40, d.parent_sha1.length
|
31
|
-
# 00000000.... is ok for our parent's sha1 (if we have no parent), but not for us!
|
32
|
-
assert_not_equal "0000000000000000000000000000000000000000", d.sha1
|
33
|
-
|
34
31
|
assert d.path.length > 0
|
35
32
|
assert d.action =~ /[ACDMRTUXB]/
|
36
33
|
end
|
metadata
CHANGED
@@ -1,49 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohloh_scm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
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-
|
11
|
+
date: 2017-12-28 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
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.6'
|
34
|
-
- -
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 1.6.8
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - ~>
|
41
|
+
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '1.6'
|
44
|
-
- -
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 1.6.8
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: test-unit
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.2'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.2.7
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.2'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 3.2.7
|
47
67
|
description: The Ohloh source control management library for interacting with Git,
|
48
68
|
SVN, CVS, Hg and Bzr repositories.
|
49
69
|
email:
|
@@ -54,12 +74,12 @@ executables:
|
|
54
74
|
extensions: []
|
55
75
|
extra_rdoc_files: []
|
56
76
|
files:
|
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
|
77
|
+
- ".gitignore"
|
78
|
+
- ".ruby-version"
|
79
|
+
- ".travis.yml"
|
80
|
+
- ".travis/.install_dependencies.sh"
|
81
|
+
- ".travis/.install_multiple_scms.sh"
|
82
|
+
- ".travis/.travis_ssh_setup.sh"
|
63
83
|
- COPYING
|
64
84
|
- README.md
|
65
85
|
- Rakefile
|
@@ -600,12 +620,12 @@ require_paths:
|
|
600
620
|
- lib
|
601
621
|
required_ruby_version: !ruby/object:Gem::Requirement
|
602
622
|
requirements:
|
603
|
-
- -
|
623
|
+
- - ">="
|
604
624
|
- !ruby/object:Gem::Version
|
605
625
|
version: '0'
|
606
626
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
607
627
|
requirements:
|
608
|
-
- -
|
628
|
+
- - ">="
|
609
629
|
- !ruby/object:Gem::Version
|
610
630
|
version: '0'
|
611
631
|
requirements: []
|