ohloh_scm 2.2.2 → 2.2.3

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
  SHA1:
3
- metadata.gz: 2b905e86f0b8e9598c4b4ec3f184e22c9bc18c1a
4
- data.tar.gz: 1903d32c5ac29bc20d4badec6096c386ddc7a804
3
+ metadata.gz: 01aee4685daafad8c1d67aaf29980d436e8a9f90
4
+ data.tar.gz: 5b4e1b06ab670dec334adcda280ec20964f2bbe8
5
5
  SHA512:
6
- metadata.gz: 2c78570aeb2edf097b73cdaf4d2813d80faedc8bae28d42b20a90e72db4ad8282d2278d9ac104abce32436ef6d145e68f16933b8f0c229fbfab828a9b6242b88
7
- data.tar.gz: 196ef3b94c076ae20c7ccda58d80aaede36f6b818642c94ad94870f0f7df46b1bf6de5d9ce0aeec950087f7c9c48d950295726543058a9aab5e41b7fdecb5281
6
+ metadata.gz: 641c9907527a60ddcbbcc34451a3f8088a242d9c67a2766cad1f6deae4a6db40ad25e9382aae50f70879e26be14feb7c0c34b7ce9192323115fc7f9c0cdbe592
7
+ data.tar.gz: 2e018d289cced44e09b5ffc5773d0a689968087cee77414a6f375f8a9ae104ea332c53c0d9ac7f809e97ab98c71f4c3a103eac2a6043eb1672efe27e5f907402
data/.ruby-version CHANGED
@@ -1 +1,2 @@
1
- 2.0.0
1
+ 2.0.0-p648
2
+
@@ -1,6 +1,7 @@
1
1
  module OhlohScm::Adapters
2
2
  class AbstractAdapter
3
3
  attr_accessor :url, :branch_name, :username, :password, :errors, :public_urls_only
4
+ attr_writer :temp_folder
4
5
 
5
6
  def initialize(params={})
6
7
  params.each { |k,v| send(k.to_s + '=', v) if respond_to?(k.to_s + '=') }
@@ -19,6 +20,9 @@ module OhlohScm::Adapters
19
20
  File.expand_path('../../../../bin/string_encoder', __FILE__)
20
21
  end
21
22
 
23
+ def temp_folder
24
+ @temp_folder || '/tmp'
25
+ end
22
26
  end
23
27
  end
24
28
 
@@ -86,7 +86,7 @@ module OhlohScm::Adapters
86
86
  end
87
87
 
88
88
  def log_filename
89
- File.join('/tmp', (self.url).gsub(/\W/,'') + '.log')
89
+ File.join(temp_folder, (self.url).gsub(/\W/,'') + '.log')
90
90
  end
91
91
 
92
92
  # Uses xmllog command for output to be used by BzrXmlParser.
@@ -82,7 +82,7 @@ module OhlohScm::Adapters
82
82
  end
83
83
 
84
84
  def rlog_filename
85
- File.join('/tmp', (self.url + self.module_name.to_s + self.branch_name.to_s).gsub(/\W/,'') + '.rlog')
85
+ File.join(temp_folder, (self.url + self.module_name.to_s + self.branch_name.to_s).gsub(/\W/,'') + '.rlog')
86
86
  end
87
87
 
88
88
  # Converts a CVS time string to a Ruby Time object
@@ -108,7 +108,7 @@ module OhlohScm::Adapters
108
108
  end
109
109
 
110
110
  def log_filename
111
- File.join('/tmp', (self.url).gsub(/\W/,'') + '.log')
111
+ File.join(temp_folder, (self.url).gsub(/\W/,'') + '.log')
112
112
  end
113
113
 
114
114
  def rev_list_command(opts={})
@@ -86,7 +86,7 @@ module OhlohScm::Adapters
86
86
  end
87
87
 
88
88
  def log_filename
89
- File.join('/tmp', (self.url).gsub(/\W/,'') + '.log')
89
+ File.join(temp_folder, (self.url).gsub(/\W/,'') + '.log')
90
90
  end
91
91
 
92
92
  private
@@ -163,7 +163,7 @@ module OhlohScm::Adapters
163
163
  end
164
164
 
165
165
  def log_filename
166
- File.join('/tmp', (self.url).gsub(/\W/,'') + '.log')
166
+ File.join(temp_folder, (self.url).gsub(/\W/,'') + '.log')
167
167
  end
168
168
 
169
169
  # Returns one commit with the exact revision number provided
@@ -1,5 +1,5 @@
1
1
  module OhlohScm
2
2
  module Version
3
- STRING = '2.2.2'
3
+ STRING = '2.2.3'
4
4
  end
5
5
  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: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlackDuck Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-13 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn
@@ -602,7 +602,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
602
602
  version: '0'
603
603
  requirements: []
604
604
  rubyforge_project:
605
- rubygems_version: 2.4.8
605
+ rubygems_version: 2.0.14.1
606
606
  signing_key:
607
607
  specification_version: 4
608
608
  summary: Source Control Management