ohloh_scm 3.0.9 → 3.0.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
  SHA256:
3
- metadata.gz: 5aab82af02b5717a415eecf16247abcae42b700a0d3920a6617cce20bab84410
4
- data.tar.gz: eaf2c05503b6c270924b48b266f0769228f48a3ed5edb2ec7aa3bd68ed69f09c
3
+ metadata.gz: 916431fb0c2dc54193b858fe60a21e9231a1a39c425a351ea81c4d525ab1ecab
4
+ data.tar.gz: d63c471089147438d8c674b934893106954a5666a01b00dcba89a6480e5fb334
5
5
  SHA512:
6
- metadata.gz: 8af9883ce37e4dad216ad855cb2849f787b1c2201740c8dba0c55d9879f9e231cfb08709a9dc94d0effae447d074decc03e1cef87d622ad47ef6e6e9b68627ce
7
- data.tar.gz: 49a2b6311f499c0e7ef32062836ca8cdf3348f98cd64e1684b94b3cdd06a4de89321090d6b08f23f4fb31addadefd978e3646ff1e74aee412c7f9c8ad8a921a5
6
+ metadata.gz: e3fe22f644dbf5827384a0991208e8d6863271ea316399efc51b1da6e65c23181e2e108065b897c9fb25d390f754dcd21a20ebc860b7bda5d15671e293ca8b29
7
+ data.tar.gz: abd36a5cbe1e95488d90b32221ed056656f9962bc9c839151128234f9524f76131d14f5d50b180044397dc46900c328a598d18fecf85a63ef4be6b73dfd41b8b
data/Gemfile CHANGED
@@ -11,5 +11,4 @@ group :development do
11
11
  gem 'rubocop', '~> 0.67'
12
12
  gem 'rubocop-performance'
13
13
  gem 'simplecov'
14
- gem 'rspec'
15
14
  end
@@ -3,7 +3,6 @@ GEM
3
3
  specs:
4
4
  ast (2.4.0)
5
5
  byebug (11.0.1)
6
- diff-lcs (1.3)
7
6
  docile (1.3.1)
8
7
  jaro_winkler (1.5.2)
9
8
  json (2.2.0)
@@ -20,19 +19,6 @@ GEM
20
19
  psych (3.1.0)
21
20
  rainbow (3.0.0)
22
21
  rake (12.3.2)
23
- rspec (3.8.0)
24
- rspec-core (~> 3.8.0)
25
- rspec-expectations (~> 3.8.0)
26
- rspec-mocks (~> 3.8.0)
27
- rspec-core (3.8.2)
28
- rspec-support (~> 3.8.0)
29
- rspec-expectations (3.8.4)
30
- diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.8.0)
32
- rspec-mocks (3.8.1)
33
- diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.8.0)
35
- rspec-support (3.8.2)
36
22
  rubocop (0.67.2)
37
23
  jaro_winkler (~> 1.5.1)
38
24
  parallel (~> 1.10)
@@ -60,7 +46,6 @@ DEPENDENCIES
60
46
  mocha
61
47
  nokogiri
62
48
  rake
63
- rspec
64
49
  rubocop (~> 0.67)
65
50
  rubocop-performance
66
51
  simplecov
@@ -3,10 +3,16 @@
3
3
  module OhlohScm
4
4
  module Git
5
5
  class Validation < OhlohScm::Validation
6
+ def validate
7
+ super
8
+ @errors << [:branch_name, 'Invalid Branch Name.'] if scm.branch_name.to_s.empty?
9
+ end
10
+
6
11
  private
7
12
 
8
13
  def validate_server_connection
9
- msg = "The server did not respond to the 'git-ls-remote' command. Is the URL correct?"
14
+ msg = "The server did not respond to the 'git-ls-remote' command."
15
+ msg << ' Are the URL and Branch fields correct?'
10
16
  @errors << [:failed, msg] unless status.exist?
11
17
  end
12
18
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '3.0.9'
5
+ STRING = '3.0.10'
6
6
  GIT = '2.17.1'
7
7
  SVN = '1.9.7'
8
8
  CVSNT = '2.5.04'
@@ -1,5 +1,4 @@
1
1
  require 'spec_helper'
2
- require 'byebug'
3
2
 
4
3
  describe 'Git::Scm' do
5
4
  it 'must pull git repository' do
@@ -7,6 +7,10 @@ describe 'Git::Validation' do
7
7
  core.errors.must_be :empty?
8
8
  end
9
9
 
10
+ it 'must have errors for no branch_name' do
11
+ get_core(:git, branch_name: '').validation.send(:branch_name_errors).wont_be :empty?
12
+ end
13
+
10
14
  it 'must have errors for invalid branch_name' do
11
15
  get_core(:git, branch_name: 'x' * 81).validation.send(:branch_name_errors).wont_be :empty?
12
16
  get_core(:git, branch_name: 'foo@bar').validation.send(:branch_name_errors).wont_be :empty?
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: 3.0.9
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenHub Team at Synopsys
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-01 00:00:00.000000000 Z
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  The OpenHub source control management library for \
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.0.2
193
+ rubygems_version: 3.0.3
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Source Control Management