ohloh_scm 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb6ebfb6e6f3ee258e4e3c5042c3673e3ed94101e3c84f9cdfd751373a4b0ea6
4
- data.tar.gz: dd605cfd3fca5d5c0720358e71027cf3add2f4bbf4f0eebb6627d4da9efa7bd3
3
+ metadata.gz: 330c339d0eb51ba6eda8f859590069fb7768ec34c5654ea4a477e8b0b85bb96e
4
+ data.tar.gz: 4775a9393df25146e12c80b239a33f7bc71e4a162cc3410eed32fdb3355757ab
5
5
  SHA512:
6
- metadata.gz: 9dcfb8c8757ecd79290c483682ab1fbaf349f4a71f54fe26a78e954cbde66584145e90eb762d45d06f8cf1b9179d11e962012a6370dbea714350d390203cb4ff
7
- data.tar.gz: 712a961eec10b7346b92b4dc851be4b2bfaf1b99c6eeeee23030cb3d99cd7bc147ca1a1d13dfa29160fcbd1632d8efcf00e9cdfc60a1298ea4bb0eafa365ae34
6
+ metadata.gz: ef36d157266049fdacafd1b183ae1d9322561b42747be24120f9c11e43a2058875c99081f96b59eb1759b0ec34a975615eac11e8395f359a44cd492851c0fbb8
7
+ data.tar.gz: 58f42d7bccca3d7dba603ae742703fb21a80267dffb4ea66f2b535ee6659ef7f0ad4edab651df77da7d850847bfcfc6d972652114742067e2058b2d3dd9c0ce9
@@ -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, :temp_dir
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
- tmp_dir = temp_dir || Dir.tmpdir
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
@@ -18,9 +18,5 @@ module OhlohScm
18
18
  @status = OhlohScm.const_get(scm_class_name)::Status.new(self)
19
19
  @validation = OhlohScm.const_get(scm_class_name)::Validation.new(self)
20
20
  end
21
-
22
- def temp_dir=(tmp_dir)
23
- @scm.temp_dir = tmp_dir
24
- end
25
21
  end
26
22
  end
@@ -3,7 +3,7 @@
3
3
  module OhlohScm
4
4
  module GitSvn
5
5
  class Activity < OhlohScm::Activity
6
- def_delegators :scm, :url, :temp_dir
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
- tmp_dir = temp_dir || '/tmp'
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)
@@ -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, :temp_dir
9
+ attr_accessor :branch_name
10
10
 
11
11
  def initialize(core:, url:, branch_name: nil, username: nil, password: nil)
12
12
  @core = core
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '3.0.3'
5
+ STRING = '3.0.4'
6
6
  GIT = '2.17.1'
7
7
  SVN = '1.9.7'
8
8
  CVSNT = '2.5.04'
@@ -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.3
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-24 00:00:00.000000000 Z
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 \