ohloh_scm 3.0.4 → 3.0.9

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: 330c339d0eb51ba6eda8f859590069fb7768ec34c5654ea4a477e8b0b85bb96e
4
- data.tar.gz: 4775a9393df25146e12c80b239a33f7bc71e4a162cc3410eed32fdb3355757ab
3
+ metadata.gz: 5aab82af02b5717a415eecf16247abcae42b700a0d3920a6617cce20bab84410
4
+ data.tar.gz: eaf2c05503b6c270924b48b266f0769228f48a3ed5edb2ec7aa3bd68ed69f09c
5
5
  SHA512:
6
- metadata.gz: ef36d157266049fdacafd1b183ae1d9322561b42747be24120f9c11e43a2058875c99081f96b59eb1759b0ec34a975615eac11e8395f359a44cd492851c0fbb8
7
- data.tar.gz: 58f42d7bccca3d7dba603ae742703fb21a80267dffb4ea66f2b535ee6659ef7f0ad4edab651df77da7d850847bfcfc6d972652114742067e2058b2d3dd9c0ce9
6
+ metadata.gz: 8af9883ce37e4dad216ad855cb2849f787b1c2201740c8dba0c55d9879f9e231cfb08709a9dc94d0effae447d074decc03e1cef87d622ad47ef6e6e9b68627ce
7
+ data.tar.gz: 49a2b6311f499c0e7ef32062836ca8cdf3348f98cd64e1684b94b3cdd06a4de89321090d6b08f23f4fb31addadefd978e3646ff1e74aee412c7f9c8ad8a921a5
@@ -23,7 +23,7 @@ module OhlohScm
23
23
  # rubocop:enable Metrics/MethodLength
24
24
 
25
25
  def export_tag(dest_dir, tag_name)
26
- run "cd '#{path}' && bzr export -r #{tag_name} #{dest_dir}"
26
+ run "cd '#{url}' && bzr export -r #{tag_name} #{dest_dir}"
27
27
  end
28
28
 
29
29
  def export(dest_dir, token = head_token)
@@ -27,7 +27,7 @@ module OhlohScm
27
27
 
28
28
  def clone_or_fetch(remote_scm, callback)
29
29
  callback.update(0, 1)
30
- if status.branch?(branch_name)
30
+ if status.exist? && status.branch?(branch_name)
31
31
  clean_and_checkout_branch # must be on correct branch, but we want to be careful.
32
32
  fetch_new_commits(remote_scm)
33
33
  else
@@ -43,7 +43,7 @@ module OhlohScm
43
43
  end
44
44
 
45
45
  def clone_and_create_tracking_branch(remote_scm)
46
- unless status.scm_dir_exist?
46
+ unless status.exist?
47
47
  run "rm -rf '#{url}'"
48
48
  run "git clone -q -n '#{remote_scm.url}' '#{url}'"
49
49
  end
@@ -40,6 +40,10 @@ module OhlohScm
40
40
  cat("#{git_commit(commit)}^", diff.path)
41
41
  end
42
42
 
43
+ def git_commit(commit)
44
+ run("cd #{url} && git svn find-rev r#{commit.token}").strip
45
+ end
46
+
43
47
  private
44
48
 
45
49
  def open_log_file(opts = {})
@@ -72,10 +76,6 @@ module OhlohScm
72
76
  run("cd #{url} && git show #{revision}:#{file_path.shellescape}").strip
73
77
  end
74
78
 
75
- def git_commit(commit)
76
- run("cd #{url} && git svn find-rev r#{commit.token}").strip
77
- end
78
-
79
79
  def git_svn_log_cmd
80
80
  "cd #{url} && git svn log"
81
81
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '3.0.4'
5
+ STRING = '3.0.9'
6
6
  GIT = '2.17.1'
7
7
  SVN = '1.9.7'
8
8
  CVSNT = '2.5.04'
@@ -5,6 +5,7 @@ require 'spec_helper'
5
5
  describe 'Activity' do
6
6
  describe 'log_filename' do
7
7
  it 'should return system tmp dir path' do
8
+ ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = nil
8
9
  core = get_core(:git)
9
10
  scm = OhlohScm::Activity.new(core)
10
11
  scm.log_filename.must_equal "#{Dir.tmpdir}/foobar.log"
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'byebug'
2
3
 
3
4
  describe 'Git::Scm' do
4
5
  it 'must pull git repository' do
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
4
+ version: 3.0.9
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-29 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  The OpenHub source control management library for \