ohloh_scm 4.0.4 → 4.0.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/lib/ohloh_scm/cvs/validation.rb +2 -2
- data/lib/ohloh_scm/validation.rb +2 -2
- data/lib/ohloh_scm/version.rb +1 -1
- data/security.md +30 -0
- data/spec/ohloh_scm/cvs/validation_spec.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9173a903d32cdd9d100594a9077f7528d473a8cb9c7f1dcf7172745184f2f2f0
|
4
|
+
data.tar.gz: d6b967d7648cb2bdbc5c594d8c119c8f533d945b3b608aaef87bd2f4b8c67322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904efa77cf2a35d8de044afc5c8fb16f9266465e8d4fdf04ef403ccc093983a16fb76b0a40791f6033c4e767c2c598df0c79dfcb15f33e29e6fee4d00a3f9a6d
|
7
|
+
data.tar.gz: cd232f7a7bff3c4384160e04952cddf0ac54680d34c4e84ad44bc7874be6cec4d42d5007a8d41513a1e54afb1c3a1b9be8b32b021e76308b2a3992a8712ea7b4
|
@@ -17,8 +17,8 @@ module OhlohScm
|
|
17
17
|
def branch_name_errors
|
18
18
|
if scm.branch_name.to_s.empty?
|
19
19
|
[:branch_name, "The branch name can't be blank."]
|
20
|
-
elsif scm.branch_name.length >
|
21
|
-
[:branch_name, 'The branch name must not be longer than
|
20
|
+
elsif scm.branch_name.length > 200
|
21
|
+
[:branch_name, 'The branch name must not be longer than 200 characters.']
|
22
22
|
elsif !scm.branch_name.match?(/^[\w\-\+\.\/\ ]+$/)
|
23
23
|
[:branch_name, "The branch name may contain only letters,
|
24
24
|
numbers, spaces, and the special characters '_', '-', '+', '/', and '.'"]
|
data/lib/ohloh_scm/validation.rb
CHANGED
@@ -37,8 +37,8 @@ module OhlohScm
|
|
37
37
|
def url_errors
|
38
38
|
error = if scm.url.nil? || scm.url.empty?
|
39
39
|
"The URL can't be blank."
|
40
|
-
elsif scm.url.length >
|
41
|
-
'The URL must not be longer than
|
40
|
+
elsif scm.url.length > 200
|
41
|
+
'The URL must not be longer than 200 characters.'
|
42
42
|
elsif !scm.url.match?(public_url_regex)
|
43
43
|
'The URL does not appear to be a valid server connection string.'
|
44
44
|
end
|
data/lib/ohloh_scm/version.rb
CHANGED
data/security.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
## Security
|
2
|
+
The Black Duck Vulnerability Disclosure Process is executed by the Product Security Incident Response Team (PSIRT). The Black Duck process is based on well-known industry standards, such as NIST-SP-800-61, ISO 29147, and ISO 30111.
|
3
|
+
|
4
|
+
The Black Duck PSIRT coordinates the response and, if necessary, disclosure of security incidents related to Black Duck products and associated software. Black Duck PSIRT's primary objective is to minimize the risks associated with security incidents in a timely, secure, and responsible manner.
|
5
|
+
|
6
|
+
Black Duck will investigate all reports for Black Duck products/platforms that are currently supported; accepted reports will be prioritized based on severity and other environmental factors.
|
7
|
+
|
8
|
+
If you believe you have found a security vulnerability in any repository that meets Black duck's definition of a security vulnerability, please report it to us as described below.
|
9
|
+
|
10
|
+
## Reporting Security Issues
|
11
|
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
12
|
+
|
13
|
+
Instead, please report them to the Black Duck PSIRT team through email psirt@blackduck.com.
|
14
|
+
|
15
|
+
Contact Black Duck within 24 hours if you encounter any end user data. Do not view, alter, save, store, transfer, or otherwise access the data, and immediately purge any local information upon reporting the vulnerability to Black Duck.
|
16
|
+
|
17
|
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
18
|
+
|
19
|
+
- Affected Product/Platform and Version
|
20
|
+
- Technical description of the issue
|
21
|
+
- Detailed steps to reproduce and/or sample code used to exploit the vulnerability
|
22
|
+
- Contact information and optional name for acknowledgments
|
23
|
+
- Proposed disclosure plans
|
24
|
+
This information will help us triage your report more quickly.
|
25
|
+
|
26
|
+
## Preferred Languages
|
27
|
+
We prefer all communications to be in English.
|
28
|
+
|
29
|
+
## Policy
|
30
|
+
Black Duck follows the principle of [Coordinated Vulnerability Disclosure.](https://www.blackduck.com/company/legal/vulnerability-disclosure-policy.html)
|
@@ -12,7 +12,7 @@ describe 'Cvs::Validation' do
|
|
12
12
|
|
13
13
|
it 'must have errors for invalid branch_name' do
|
14
14
|
get_core(:cvs, branch_name: 'x' * 81).validation.send(:branch_name_errors).must_be_nil
|
15
|
-
get_core(:cvs, branch_name: 'x' *
|
15
|
+
get_core(:cvs, branch_name: 'x' * 201).validation.send(:branch_name_errors).wont_be :empty?
|
16
16
|
get_core(:cvs, branch_name: 'foo@bar').validation.send(:branch_name_errors).wont_be :empty?
|
17
17
|
end
|
18
18
|
|
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: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenHub Team at Synopsys
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The OpenHub source control management library for \
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/ohloh_scm/validation.rb
|
98
98
|
- lib/ohloh_scm/version.rb
|
99
99
|
- ohloh_scm.gemspec
|
100
|
+
- security.md
|
100
101
|
- spec/.rubocop.yml
|
101
102
|
- spec/benchmarks/hg_bzr_bash_vs_py_api.rb
|
102
103
|
- spec/benchmarks/process_spawn_benchmark.rb
|
@@ -192,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
193
|
- !ruby/object:Gem::Version
|
193
194
|
version: '0'
|
194
195
|
requirements: []
|
195
|
-
rubygems_version: 3.0.
|
196
|
-
signing_key:
|
196
|
+
rubygems_version: 3.0.9
|
197
|
+
signing_key:
|
197
198
|
specification_version: 4
|
198
199
|
summary: Source Control Management
|
199
200
|
test_files:
|