bundler-leak 0.0.0 → 0.1.0

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: e17cc5a1ed1313ff1c9437de04bb0e6260bbd0fbbcc10e3fcb45cf35592711a5
4
- data.tar.gz: deacc033e4adb240497dcf08c58bbc7e983b026dd74e0f4e92a9d62a4f95de61
3
+ metadata.gz: e8c500b9cff644ec4d39ec693c7695c90632ee13e71a6e089918dfc96975de23
4
+ data.tar.gz: 92b10475517b8f8dda0faf6e208a27d0a53f0d3d4a5e0c9b38fa57ae67ead53a
5
5
  SHA512:
6
- metadata.gz: 6e010b417c843de78d25cfe070a6ec505de7f847cd9e04e7d0d3fe4c64e728239de985dbf3a94191d9d1ad2033eeee4c076dba4fb10952f539e75d7b94e3b16c
7
- data.tar.gz: 10372be95ec0da1a11925cc85760483a0bf26d12f481720a678f2a9ceccee717af93ffca8e38626166caf698c38d5baee69dd3c9241138cdee80d9fde71d9af0
6
+ metadata.gz: '0500328327647524b1a814ff99cc28e1cf2732425ff49d86ac717702a8364f4eac0c1b613f657b0baac9ecb495b1834ac0e6f0708b58162af383ce73b49f5075'
7
+ data.tar.gz: c8f80a5bbcc340245d57af38294e733714bd794b2532bbb57cfccc22c69ac564eb0bd90edd4df3ad2df6e2c98cd9b6311af40e2274d8299ad8ded222c75701ad
@@ -93,16 +93,15 @@ module Bundler
93
93
  # @note
94
94
  # Requires network access.
95
95
  #
96
- # @since 0.3.0
97
- #
98
96
  def self.update!(options={})
99
97
  raise "Invalid option(s)" unless (options.keys - [:quiet]).empty?
100
98
  if File.directory?(USER_PATH)
101
99
  if File.directory?(File.join(USER_PATH, ".git"))
102
100
  Dir.chdir(USER_PATH) do
103
- command = %w(git pull)
101
+ command = %w(git fetch --all)
102
+ command = %w(git reset --hard origin/master)
104
103
  command << '--quiet' if options[:quiet]
105
- command << 'origin' << 'master'
104
+
106
105
  system *command
107
106
  end
108
107
  end
@@ -19,6 +19,6 @@
19
19
  module Bundler
20
20
  module Plumber
21
21
  # bundler-leak version
22
- VERSION = '0.0.0'
22
+ VERSION = '0.1.0'
23
23
  end
24
24
  end
data/spec/spec_helper.rb CHANGED
@@ -32,7 +32,7 @@ module Helpers
32
32
  def expect_update_to_update_repo!
33
33
  expect(Bundler::Plumber::Database).
34
34
  to receive(:system).
35
- with('git', 'pull', 'origin', 'master').
35
+ with('git', 'reset', '--hard', 'origin/master').
36
36
  and_call_original
37
37
  end
38
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-leak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ombulabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-26 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor