bundle-diff 1.2.1 → 2.0.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: 4185582f2b2e1593681194c3ebf988e5974da10bb9f4eb06243558bfc3649297
4
- data.tar.gz: 84db5812e629e27d098fe5391b71802782ac14ca2588601cc40de73a76173a3f
3
+ metadata.gz: b09c7445e1ef55db65f070b4c99fcc9aa1e8c0bd6d4571da2edb1eeb473d3b3f
4
+ data.tar.gz: 29106fd34b53909b41d8a9e2419cae0c8453ebe99605827d557d791cbb0bdc76
5
5
  SHA512:
6
- metadata.gz: 32566534d69eeb25617e1f884de8bcd881bc92c971a6affaf8eee5d28a52fcd44e04386ac9afa56ba54c58a6745e70c60993e24bb116589bb3d462aeb4cbd7d6
7
- data.tar.gz: f8f4a19f6a789e66c4cea12402d1a976dd0da48364d513cdc886eb41404dbe6d72e97f12784a1932edf8905f9c9fe54c912d1d6cd0535a40e2ed8d841bb59393
6
+ metadata.gz: 74bcf27d8ca455f0033650dcbe2285d06171c71959189a1eb8387aafd7e344d973c19ccb1a3d457c1ba34facf70c5b833dfc5137784b4d23a1bf0fb63cd8e911
7
+ data.tar.gz: e252edcc68e479b3f8b2c371b20f9685e36e97c87b39fb9be67f77e2f94c1e9d52ec897c3694513c495084fa92c8b683dc730d57e0397bd57f3721cbb17acb77
data/CHANGES.md CHANGED
@@ -1,3 +1,17 @@
1
+ # 2.0.0
2
+
3
+ * **Required ruby version is now 3.0.0**
4
+
5
+ * Changed diff labels to include gem directory names
6
+
7
+ * Fixed diff labels for /dev/null
8
+
9
+
10
+ # 1.2.2
11
+
12
+ * Fix for Ruby 2.3 and Ruby 2.4
13
+
14
+
1
15
  # 1.2.1
2
16
 
3
17
  * Fix bug introduced by 1.2.0 changes
data/README.md CHANGED
@@ -13,3 +13,8 @@ Bundler plugin for showing diffs of bundled gems against latest versions.
13
13
  $ bundle diff GEMNAME
14
14
 
15
15
  Tip: use `bundle outdated` to list installed gems with with newer versions available.
16
+
17
+ You can also specify the version of the gem to diff against:
18
+
19
+ $ bundle diff GEMNAME --version 1.2.3
20
+
data/bundle-diff.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bundle-diff'
3
- s.version = '1.2.1'
3
+ s.version = '2.0.0'
4
4
  s.license = 'GPL-3.0'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Tim Craft']
7
- s.email = ['mail@timcraft.com']
7
+ s.email = ['email@timcraft.com']
8
8
  s.homepage = 'https://github.com/readysteady/bundle-diff'
9
9
  s.description = 'Bundler plugin for showing diffs of bundled gems against latest versions'
10
10
  s.summary = 'See description'
11
11
  s.files = Dir.glob('lib/**/*.rb') + %w[CHANGES.md LICENSE.txt README.md bundle-diff.gemspec]
12
- s.required_ruby_version = '>= 2.3.0'
12
+ s.required_ruby_version = '>= 3.0.0'
13
13
  s.add_dependency('bundler', '>= 1.0', '< 3.0')
14
14
  s.require_path = 'lib'
15
15
  s.executables = ['bundler-diff']
@@ -31,26 +31,28 @@ class Bundler::Diff::Tool
31
31
  end
32
32
 
33
33
  def diff(a_path, b_path)
34
- null = '/dev/null'
35
-
36
34
  command = ['diff -u']
37
35
 
38
36
  command_for_output = ['diff']
39
37
 
40
38
  if a_path
41
- command.concat [a_dir.join(a_path), '--label', Pathname('a').join(a_path)]
42
- command_for_output << a_output_dir.join(a_path)
39
+ a_label = a_output_dir.join(a_path)
40
+
41
+ command.concat [a_dir.join(a_path), '--label', a_label]
42
+ command_for_output << a_label
43
43
  else
44
- command << null
45
- command_for_output << null
44
+ command.concat ['/dev/null', '--label', '/dev/null']
45
+ command_for_output << '/dev/null'
46
46
  end
47
47
 
48
48
  if b_path
49
- command.concat [b_dir.join(b_path), '--label', Pathname('b').join(b_path)]
50
- command_for_output << b_output_dir.join(b_path)
49
+ b_label = b_output_dir.join(b_path)
50
+
51
+ command.concat [b_dir.join(b_path), '--label', b_label]
52
+ command_for_output << b_label
51
53
  else
52
- command << null
53
- command_for_output << null
54
+ command << ['/dev/null', '--label', '/dev/null']
55
+ command_for_output << '/dev/null'
54
56
  end
55
57
 
56
58
  output = `#{command.join(' ')}`
@@ -64,8 +66,7 @@ class Bundler::Diff::Tool
64
66
  private
65
67
 
66
68
  def file_list(dir_path)
67
- dir_path.glob('**/*').select(&:file?).map { |path|
68
- path.relative_path_from(dir_path)
69
- }.reject { |path| path.to_s.start_with?('ext/') }
69
+ paths = dir_path.glob('**/*').select(&:file?).map { |path| path.relative_path_from(dir_path) }
70
+ paths.reject { |path| path.to_s.start_with?('ext/') }
70
71
  end
71
72
  end
data/lib/bundler/diff.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2019 TIMCRAFT
1
+ # Copyright (c) 2019-2025 TIMCRAFT
2
2
  #
3
3
  # This program is free software: you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Craft
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-08 00:00:00.000000000 Z
11
+ date: 2025-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.0'
33
33
  description: Bundler plugin for showing diffs of bundled gems against latest versions
34
34
  email:
35
- - mail@timcraft.com
35
+ - email@timcraft.com
36
36
  executables:
37
37
  - bundler-diff
38
38
  extensions: []
@@ -50,7 +50,7 @@ homepage: https://github.com/readysteady/bundle-diff
50
50
  licenses:
51
51
  - GPL-3.0
52
52
  metadata: {}
53
- post_install_message:
53
+ post_install_message:
54
54
  rdoc_options: []
55
55
  require_paths:
56
56
  - lib
@@ -58,15 +58,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.3.0
61
+ version: 3.0.0
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.0.3
69
- signing_key:
68
+ rubygems_version: 3.5.22
69
+ signing_key:
70
70
  specification_version: 4
71
71
  summary: See description
72
72
  test_files: []