ohloh_scm 3.0.8 → 3.0.13

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: 4be961ff2b2412be0a604c15aa62c7613c2ae39385bc838f6b3a9f3d80cbc842
4
- data.tar.gz: 983e8edda72ad8548e356e50a0f98ff571a05772e64ce07ff885a78c35fa876b
3
+ metadata.gz: bf0cce0039d7ed0c71c841edf71fed33eb962093d88c149dd6c75a29b8f05425
4
+ data.tar.gz: 900243a6614515e950e68cc8e2bfdbe790fa9651113d50bbb8a06b1d7ee76bae
5
5
  SHA512:
6
- metadata.gz: 464518385dc11ba24761750ac400272f433cb629a368b3c35b22a6def29553051ed2baf3166ac9fc3b1b1e63a92a1de7f4dc5a93f3bb5af4d9fd192d45f9af28
7
- data.tar.gz: a7bb48f42be86fd01981a3b3d089f27160c7217d9aeb707e82f1e98aaa79d9cebfee9b944e04c41dc0bd981bbb428637b05a563fa5940f8d7df129563d498db0
6
+ metadata.gz: b3cd4508600d221c9b3456f054e5845392d23e2483609d560afc3eeb137b16a786164d92df3a935b0fd5939f318f6f48844f84a32b247ac3ab094dec2abb7715
7
+ data.tar.gz: c4649e65d09e9639876344ab6e9ed89ba81396809a80fa26278b0488ec43c81fcc4d44db093fdeceed9a42cfbd9b2360e2bb1db3861691881088fe7b47a80651
@@ -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)
@@ -43,7 +43,7 @@ module OhlohScm
43
43
  end
44
44
 
45
45
  def clone_and_create_tracking_branch(remote_scm)
46
- unless status.exist?
46
+ unless status.scm_dir_exist? || status.exist?
47
47
  run "rm -rf '#{url}'"
48
48
  run "git clone -q -n '#{remote_scm.url}' '#{url}'"
49
49
  end
@@ -73,7 +73,8 @@ module OhlohScm
73
73
 
74
74
  def cat(revision, file_path)
75
75
  file_path = file_path.to_s
76
- run("cd #{url} && git show #{revision}:#{file_path.shellescape}").strip
76
+ run("cd #{url} && git show #{revision}:#{file_path.shellescape} | #{string_encoder_path}")
77
+ .strip
77
78
  end
78
79
 
79
80
  def git_svn_log_cmd
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '3.0.8'
5
+ STRING = '3.0.13'
6
6
  GIT = '2.17.1'
7
7
  SVN = '1.9.7'
8
8
  CVSNT = '2.5.04'
@@ -60,7 +60,7 @@ describe 'GitSvn::Activity' do
60
60
 
61
61
  it 'cat_file_with_invalid_filename' do
62
62
  with_git_svn_repository('git_svn') do |git_svn|
63
- -> { git_svn.activity.cat_file(commit_1, OhlohScm::Diff.new(path: 'invalid')) }.must_raise(RuntimeError)
63
+ assert git_svn.activity.cat_file(commit_1, OhlohScm::Diff.new(path: 'invalid')).must_be_empty
64
64
  end
65
65
  end
66
66
 
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.8
4
+ version: 3.0.13
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-10-30 00:00:00.000000000 Z
11
+ date: 2021-04-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  The OpenHub source control management library for \