bundler-diff 0.5.0 → 0.6.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: aa495cccf95f5c21f03fa11fac02dd9f682205d9892fc53a6c4b72a3fcca066d
4
- data.tar.gz: ddd43a9b67597a11167d9eee5d32b19c6e96cd4d9f2c096d250d3fa5ba292082
3
+ metadata.gz: a88498658a9dae44c8001f4dc66c1f3a2374a7472167482538882fbb17c61662
4
+ data.tar.gz: 0e1fc9243626a5cc8d19d5bb461f69c732aca9ce269ad13d56b15d07c206e455
5
5
  SHA512:
6
- metadata.gz: 91b003ca66c18d8c78d28145349b8e20817912a52703da2f2698f731c4b05d8ed5fc75de3c668e43b5c98f720d26338df1b81b2829519ce2f10bacfc0b5a81cf
7
- data.tar.gz: 130a7bf297aa2d21b847f2058d53e9d89776cd469674f15cdbefc1e2bd868e2c866412f679fee3a9dc7effb596a520f3298b59f209be128cff959f2385cba00e
6
+ metadata.gz: f563d366fe3db4f0d5f1c006909a0b9fa735f30fe0722015e9abcc5c73e08e1b92a26ab4474760e7cbd47cf17c184f39993a3b89d44b96fd80f1983f8d248fde
7
+ data.tar.gz: 283fd6db6b5ccb94859a592430c6d9a830305a4a8add1f8bb205a7ba58bc44b97ca8f016b4134a8ffb5274effdd4b3eb770ae937eea4d402de6b8f40c2b570f5
data/bundler-diff.gemspec CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
+ spec.add_dependency 'bundler', '~> 1.14'
25
26
  spec.add_dependency 'gems_comparator'
26
27
  spec.add_dependency 'parallel'
27
28
 
28
- spec.add_development_dependency 'bundler', '~> 1.14'
29
29
  spec.add_development_dependency 'rake', '~> 10.0'
30
30
  spec.add_development_dependency 'rspec', '~> 3.0'
31
31
  spec.add_development_dependency 'rubocop', '0.56.0'
@@ -1,8 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'bundler'
3
4
  require 'gems_comparator'
4
5
  require 'json'
5
6
  require 'optparse'
7
+ require 'pathname'
6
8
 
7
9
  module BundlerDiff
8
10
  class CLI
@@ -33,18 +35,18 @@ module BundlerDiff
33
35
 
34
36
  private
35
37
 
36
- def file_name
37
- @file_name ||= File.exist?('gems.locked') ? 'gems.locked' : 'Gemfile.lock'
38
+ def file_path
39
+ @file_path ||= Bundler.default_lockfile.relative_path_from(Pathname.pwd)
38
40
  end
39
41
 
40
42
  def before_lockfile
41
- `git show #{commit}:#{file_name}`.tap do
43
+ `git show #{commit}:#{file_path}`.tap do
42
44
  raise unless $?.success? # rubocop:disable Style/SpecialGlobalVars
43
45
  end
44
46
  end
45
47
 
46
48
  def after_lockfile
47
- File.read(file_name)
49
+ File.read(file_path)
48
50
  end
49
51
 
50
52
  def parse_options!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BundlerDiff
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sinsoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-20 00:00:00.000000000 Z
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: gems_comparator
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.14'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.14'
27
27
  - !ruby/object:Gem::Dependency
28
- name: parallel
28
+ name: gems_comparator
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bundler
42
+ name: parallel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.14'
48
- type: :development
47
+ version: '0'
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.14'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.7.7
146
+ rubygems_version: 2.7.6
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A gem support your "bundle update"