ohloh_scm 3.0.4 → 3.0.5

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: b11f981c7254d3f740cc89cf98c8214622f5eb971a191a71fb8eea4c01b5c434
4
+ data.tar.gz: 10729adb8d48eb1e19daaba54f70bf8f13679f023875b9d001d12f470f5cee99
5
5
  SHA512:
6
- metadata.gz: ef36d157266049fdacafd1b183ae1d9322561b42747be24120f9c11e43a2058875c99081f96b59eb1759b0ec34a975615eac11e8395f359a44cd492851c0fbb8
7
- data.tar.gz: 58f42d7bccca3d7dba603ae742703fb21a80267dffb4ea66f2b535ee6659ef7f0ad4edab651df77da7d850847bfcfc6d972652114742067e2058b2d3dd9c0ce9
6
+ metadata.gz: fcbac1368d1c58e7aa8a18473c1893d5438025c31e7caff8da4621b63c3f02272d5ac3742a4851ed89aa199351cfb4390638aa0387639030a1002417dd39c6da
7
+ data.tar.gz: 1cbc4944d0b7345d5613f4a1f9d4bfd61287513f87d808bc2a03eef901d902dcdddcc8ae8103db60b7236e8760af307e0bf8de8b4dbb2435668ff032e6b2fbf6
@@ -58,8 +58,8 @@ module OhlohScm
58
58
  run "cd '#{url}' && git clean -f -d -x"
59
59
  return unless status.branch?(branch_name)
60
60
 
61
+ run "cd '#{url}' && git reset --hard HEAD"
61
62
  run "cd '#{url}' && git checkout #{branch_name} --"
62
- run "cd '#{url}' && git reset --hard heads/#{branch_name} --"
63
63
  end
64
64
 
65
65
  def create_tracking_branch(branch_name)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '3.0.4'
5
+ STRING = '3.0.5'
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
@@ -26,6 +27,7 @@ describe 'Git::Scm' do
26
27
  remote_master_branch_sha = `cd #{dest_dir} && git rev-parse origin/master`
27
28
  master_branch_sha = `cd #{dest_dir} && git rev-parse master`
28
29
  test_branch_sha = `cd #{dest_dir} && git rev-parse test`
30
+ byebug
29
31
 
30
32
  master_branch_sha.wont_equal test_branch_sha
31
33
  master_branch_sha.must_equal remote_master_branch_sha
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.5
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: 2019-08-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  The OpenHub source control management library for \