ohloh_scm 3.0.9 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -15
- data/lib/ohloh_scm/git/validation.rb +7 -1
- data/lib/ohloh_scm/version.rb +1 -1
- data/spec/ohloh_scm/git/scm_spec.rb +0 -1
- data/spec/ohloh_scm/git/validation_spec.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 916431fb0c2dc54193b858fe60a21e9231a1a39c425a351ea81c4d525ab1ecab
|
4
|
+
data.tar.gz: d63c471089147438d8c674b934893106954a5666a01b00dcba89a6480e5fb334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3fe22f644dbf5827384a0991208e8d6863271ea316399efc51b1da6e65c23181e2e108065b897c9fb25d390f754dcd21a20ebc860b7bda5d15671e293ca8b29
|
7
|
+
data.tar.gz: abd36a5cbe1e95488d90b32221ed056656f9962bc9c839151128234f9524f76131d14f5d50b180044397dc46900c328a598d18fecf85a63ef4be6b73dfd41b8b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -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.
|
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
|
|
data/lib/ohloh_scm/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
193
|
+
rubygems_version: 3.0.3
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: Source Control Management
|