ohloh_scm 2.2.4 → 2.2.5
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 +4 -4
- data/.ruby-version +1 -1
- data/lib/ohloh_scm/adapters/hg_adapter.rb +10 -5
- data/lib/ohloh_scm/version.rb +1 -1
- data/test/unit/hg_commits_test.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df5cc203b5d29667c6f041959df7ba932f82fba1
|
|
4
|
+
data.tar.gz: 9b4643d89f39958280aa84f486731fd56aa627c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 989bc31746648a102be3a0b9de9de40ebe001f4dabd82d9b5e610e0add07b985ce616fff4c50b306b0850cda4e5bc4db0297c7bbe4ca8aa8a31d917a25365bb8
|
|
7
|
+
data.tar.gz: 539352674705155b0031ef8b99cc95b75c3f5c88d8f7631c21226b0663e4c5ba92b4d1d4707fc1785ffbe31d48f1fda1283b6e7a4edcc41cf1cbdbe8df522730
|
data/.ruby-version
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
2.0.0-
|
|
1
|
+
2.0.0-p648
|
|
2
2
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
module OhlohScm::Adapters
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
class HgAdapter < AbstractAdapter
|
|
3
|
+
def english_name
|
|
4
|
+
"Mercurial"
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
def branch_name=(branch_name)
|
|
8
|
+
branch_name = nil if branch_name.to_s.empty?
|
|
9
|
+
super
|
|
10
|
+
end
|
|
11
|
+
end
|
|
7
12
|
end
|
|
8
13
|
|
|
9
14
|
require_relative 'hg/validation'
|
data/lib/ohloh_scm/version.rb
CHANGED
|
@@ -11,6 +11,16 @@ module OhlohScm::Adapters
|
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
def test_commit_count_with_empty_branch
|
|
15
|
+
with_hg_repository('hg', '') do |hg|
|
|
16
|
+
assert_equal nil, hg.branch_name
|
|
17
|
+
assert_equal 5, hg.commit_count
|
|
18
|
+
assert_equal 3, hg.commit_count(:after => 'b14fa4692f949940bd1e28da6fb4617de2615484')
|
|
19
|
+
assert_equal 0, hg.commit_count(:after => '655f04cf6ad708ab58c7b941672dce09dd369a18')
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
|
|
14
24
|
def test_commit_tokens
|
|
15
25
|
with_hg_repository('hg') do |hg|
|
|
16
26
|
assert_equal ['01101d8ef3cea7da9ac6e9a226d645f4418f05c9',
|
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.2.
|
|
4
|
+
version: 2.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BlackDuck Software
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: posix-spawn
|