ohloh_scm 3.0.1 → 3.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f4cbf7d314828522ff7a9b64256e889f2f109c7048d751c7d54d707ea085a96
|
4
|
+
data.tar.gz: aae75e139e32baa7a7eb2fff86a4f11d8a85edc65da8ee03519b6bcc752a2ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eeef15c64ca8f7eb7f0e6953dc30433854b72412a29ccb9a9bf42d136cddca3d8d900fea3cf4f48bbb13cd4b3cdf031b8ecf1fe111372650b7662687f7232c1
|
7
|
+
data.tar.gz: dcdb7fbbb147a63dc16d7106ab23a404ccad769f24ca96f5e91f110e776b5f368e8b50b00155dca07d2d2040c2f6009b2fbd6404d0874c5e8fc67ac8efc1d65a
|
data/lib/ohloh_scm/status.rb
CHANGED
data/lib/ohloh_scm/validation.rb
CHANGED
data/lib/ohloh_scm/version.rb
CHANGED
@@ -7,9 +7,10 @@ describe 'Bzr::Scm' do
|
|
7
7
|
with_bzr_repository('bzr') do |src|
|
8
8
|
tmpdir do |dest_dir|
|
9
9
|
core = OhlohScm::Factory.get_core(scm_type: :bzr, url: dest_dir)
|
10
|
-
refute core.status.
|
10
|
+
refute core.status.scm_dir_exist?
|
11
11
|
|
12
12
|
core.scm.pull(src.scm, TestCallback.new)
|
13
|
+
assert core.status.scm_dir_exist?
|
13
14
|
assert core.status.exist?
|
14
15
|
end
|
15
16
|
end
|
@@ -5,9 +5,10 @@ describe 'Git::Scm' do
|
|
5
5
|
with_git_repository('git') do |src_core|
|
6
6
|
tmpdir do |dest_dir|
|
7
7
|
core = OhlohScm::Factory.get_core(scm_type: :git, url: dest_dir)
|
8
|
-
refute core.status.
|
8
|
+
refute core.status.scm_dir_exist?
|
9
9
|
|
10
10
|
core.scm.pull(src_core.scm, TestCallback.new)
|
11
|
+
assert core.status.scm_dir_exist?
|
11
12
|
assert core.status.exist?
|
12
13
|
end
|
13
14
|
end
|
@@ -19,7 +20,7 @@ describe 'Git::Scm' do
|
|
19
20
|
with_git_repository('git_with_multiple_branch', 'test') do |src_core|
|
20
21
|
tmpdir do |dest_dir|
|
21
22
|
core = OhlohScm::Factory.get_core(scm_type: :git, url: dest_dir, branch_name: 'test')
|
22
|
-
refute core.status.
|
23
|
+
refute core.status.scm_dir_exist?
|
23
24
|
core.scm.pull(src_core.scm, TestCallback.new)
|
24
25
|
|
25
26
|
remote_master_branch_sha = `cd #{dest_dir} && git rev-parse origin/master`
|
@@ -36,8 +37,9 @@ describe 'Git::Scm' do
|
|
36
37
|
with_cvs_repository('cvs', 'simple') do |src_core|
|
37
38
|
tmpdir do |dest_dir|
|
38
39
|
core = OhlohScm::Factory.get_core(scm_type: :git, url: dest_dir)
|
39
|
-
refute core.status.
|
40
|
+
refute core.status.scm_dir_exist?
|
40
41
|
core.scm.pull(src_core.scm, TestCallback.new)
|
42
|
+
assert core.status.scm_dir_exist?
|
41
43
|
assert core.status.exist?
|
42
44
|
|
43
45
|
dest_commits = core.activity.commits
|
@@ -1,12 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'Git::Validation' do
|
4
|
-
it 'must handle non existent remote source' do
|
5
|
-
core = OhlohScm::Factory.get_core(scm_type: :git, url: 'https://github.com/Person/foobar')
|
6
|
-
core.validate
|
7
|
-
core.errors.wont_be :empty?
|
8
|
-
end
|
9
|
-
|
10
4
|
it 'wont have errors for valid url' do
|
11
5
|
core = OhlohScm::Factory.get_core(scm_type: :git, url: 'https://github.com/ruby/ruby')
|
12
6
|
core.validation.send(:validate_attributes)
|
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.2
|
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: 2019-07-
|
11
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The OpenHub source control management library for \
|