ohloh_scm 3.0.3 → 3.0.4
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/activity.rb +2 -3
- data/lib/ohloh_scm/core.rb +0 -4
- data/lib/ohloh_scm/git_svn/activity.rb +2 -3
- data/lib/ohloh_scm/scm.rb +1 -1
- data/lib/ohloh_scm/version.rb +1 -1
- data/spec/ohloh_scm/activity_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330c339d0eb51ba6eda8f859590069fb7768ec34c5654ea4a477e8b0b85bb96e
|
4
|
+
data.tar.gz: 4775a9393df25146e12c80b239a33f7bc71e4a162cc3410eed32fdb3355757ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef36d157266049fdacafd1b183ae1d9322561b42747be24120f9c11e43a2058875c99081f96b59eb1759b0ec34a975615eac11e8395f359a44cd492851c0fbb8
|
7
|
+
data.tar.gz: 58f42d7bccca3d7dba603ae742703fb21a80267dffb4ea66f2b535ee6659ef7f0ad4edab651df77da7d850847bfcfc6d972652114742067e2058b2d3dd9c0ce9
|
data/lib/ohloh_scm/activity.rb
CHANGED
@@ -5,15 +5,14 @@ module OhlohScm
|
|
5
5
|
include OhlohScm::System
|
6
6
|
extend Forwardable
|
7
7
|
def_delegators :@core, :scm, :status
|
8
|
-
def_delegators :scm, :url
|
8
|
+
def_delegators :scm, :url
|
9
9
|
|
10
10
|
def initialize(core)
|
11
11
|
@core = core
|
12
12
|
end
|
13
13
|
|
14
14
|
def log_filename
|
15
|
-
|
16
|
-
File.join(tmp_dir, url.gsub(/\W/, '') + '.log')
|
15
|
+
File.join(temp_folder, url.gsub(/\W/, '') + '.log')
|
17
16
|
end
|
18
17
|
|
19
18
|
def tags; end
|
data/lib/ohloh_scm/core.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module OhlohScm
|
4
4
|
module GitSvn
|
5
5
|
class Activity < OhlohScm::Activity
|
6
|
-
def_delegators :scm, :url
|
6
|
+
def_delegators :scm, :url
|
7
7
|
|
8
8
|
def commit_count(opts = {})
|
9
9
|
cmd = "#{after_revision(opts)} | grep -E -e '^r[0-9]+.*lines$' | wc -l"
|
@@ -49,8 +49,7 @@ module OhlohScm
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def log_filename
|
52
|
-
|
53
|
-
File.join(tmp_dir, url.gsub(/\W/, '') + '.log')
|
52
|
+
File.join(temp_folder, url.gsub(/\W/, '') + '.log')
|
54
53
|
end
|
55
54
|
|
56
55
|
def after_revision(opts)
|
data/lib/ohloh_scm/scm.rb
CHANGED
@@ -6,7 +6,7 @@ module OhlohScm
|
|
6
6
|
extend Forwardable
|
7
7
|
def_delegators :@core, :status, :activity
|
8
8
|
attr_reader :url, :username, :password
|
9
|
-
attr_accessor :branch_name
|
9
|
+
attr_accessor :branch_name
|
10
10
|
|
11
11
|
def initialize(core:, url:, branch_name: nil, username: nil, password: nil)
|
12
12
|
@core = core
|
data/lib/ohloh_scm/version.rb
CHANGED
@@ -11,10 +11,11 @@ describe 'Activity' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should return temp folder path' do
|
14
|
+
ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = '/test'
|
14
15
|
core = get_core(:git)
|
15
|
-
core.temp_dir = '/test'
|
16
16
|
scm = OhlohScm::Activity.new(core)
|
17
17
|
scm.log_filename.must_equal '/test/foobar.log'
|
18
|
+
ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = ''
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
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.4
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The OpenHub source control management library for \
|