ohloh_scm 2.2.4 → 2.2.5

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
2
  SHA1:
3
- metadata.gz: fe066288b332c9dd10ec78dd83a5939c6e7d33ae
4
- data.tar.gz: 943728f5598a66f587ec1f1d62da2ac5880170df
3
+ metadata.gz: df5cc203b5d29667c6f041959df7ba932f82fba1
4
+ data.tar.gz: 9b4643d89f39958280aa84f486731fd56aa627c3
5
5
  SHA512:
6
- metadata.gz: bbfd34de0a9ba9a7d4b2d2d3500bbc1d92fc2f17e895c081ffa717287d0ad3f947990956233210f5b88ef477e62eb76e9aaf5833b7d345a149644083f4992aca
7
- data.tar.gz: 01cc2c61d974a275a0a0f819cd2dd0cc0372bac4d7da063274a57048c596524b5080a4693e22a70ceb38ab41d88b0823bdb1ef5d8dfea7fd771bd55863719c9f
6
+ metadata.gz: 989bc31746648a102be3a0b9de9de40ebe001f4dabd82d9b5e610e0add07b985ce616fff4c50b306b0850cda4e5bc4db0297c7bbe4ca8aa8a31d917a25365bb8
7
+ data.tar.gz: 539352674705155b0031ef8b99cc95b75c3f5c88d8f7631c21226b0663e4c5ba92b4d1d4707fc1785ffbe31d48f1fda1283b6e7a4edcc41cf1cbdbe8df522730
data/.ruby-version CHANGED
@@ -1,2 +1,2 @@
1
- 2.0.0-p645
1
+ 2.0.0-p648
2
2
 
@@ -1,9 +1,14 @@
1
1
  module OhlohScm::Adapters
2
- class HgAdapter < AbstractAdapter
3
- def english_name
4
- "Mercurial"
5
- end
6
- end
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'
@@ -1,5 +1,5 @@
1
1
  module OhlohScm
2
2
  module Version
3
- STRING = '2.2.4'
3
+ STRING = '2.2.5'
4
4
  end
5
5
  end
@@ -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
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-27 00:00:00.000000000 Z
11
+ date: 2016-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn