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 +4 -4
- data/bundler-diff.gemspec +1 -1
- data/lib/bundler_diff/cli.rb +6 -4
- data/lib/bundler_diff/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a88498658a9dae44c8001f4dc66c1f3a2374a7472167482538882fbb17c61662
|
4
|
+
data.tar.gz: 0e1fc9243626a5cc8d19d5bb461f69c732aca9ce269ad13d56b15d07c206e455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/bundler_diff/cli.rb
CHANGED
@@ -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
|
37
|
-
@
|
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}:#{
|
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(
|
49
|
+
File.read(file_path)
|
48
50
|
end
|
49
51
|
|
50
52
|
def parse_options!
|
data/lib/bundler_diff/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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: '
|
26
|
+
version: '1.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
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:
|
42
|
+
name: parallel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
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: '
|
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.
|
146
|
+
rubygems_version: 2.7.6
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A gem support your "bundle update"
|