bundle-diff 1.2.1 → 1.2.2

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: 4185582f2b2e1593681194c3ebf988e5974da10bb9f4eb06243558bfc3649297
4
- data.tar.gz: 84db5812e629e27d098fe5391b71802782ac14ca2588601cc40de73a76173a3f
3
+ metadata.gz: b93f18c4e3bd1b48f80fe132fceed9bd1ebd68ece90ce7d2ea85887186bb31a1
4
+ data.tar.gz: 9d048cbc9595c38ac6b6a821c845e95869ba5641b1550ad7c3eadd29e31f09f4
5
5
  SHA512:
6
- metadata.gz: 32566534d69eeb25617e1f884de8bcd881bc92c971a6affaf8eee5d28a52fcd44e04386ac9afa56ba54c58a6745e70c60993e24bb116589bb3d462aeb4cbd7d6
7
- data.tar.gz: f8f4a19f6a789e66c4cea12402d1a976dd0da48364d513cdc886eb41404dbe6d72e97f12784a1932edf8905f9c9fe54c912d1d6cd0535a40e2ed8d841bb59393
6
+ metadata.gz: 54828f54dbf3db526438929fd3fe7b38465034b156d5b2f72b6902db98a02885e3b4c5bef4a989f4847138deb916afae350af9a780de99a20aca051195760751
7
+ data.tar.gz: 9b0f1adbf7577d077825e11f2c394abebd47e5aa4e05766b5412838ac41f2e2c31f9aa0c03e9b47649c2456a9c0e3210172609075d8e08a1ffe192eaafeee21a
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.2.2
2
+
3
+ * Fix for Ruby 2.3 and Ruby 2.4
4
+
5
+
1
6
  # 1.2.1
2
7
 
3
8
  * Fix bug introduced by 1.2.0 changes
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bundle-diff'
3
- s.version = '1.2.1'
3
+ s.version = '1.2.2'
4
4
  s.license = 'GPL-3.0'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Tim Craft']
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2019 TIMCRAFT
1
+ # Copyright (c) 2019-2020 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
@@ -63,8 +63,18 @@ class Bundler::Diff::Tool
63
63
 
64
64
  private
65
65
 
66
+ if Pathname.instance_methods.include?(:glob) # Ruby 2.5+
67
+ def glob(pathname)
68
+ pathname.glob('**/*')
69
+ end
70
+ else
71
+ def glob(pathname)
72
+ Dir.glob(File.join(pathname.to_s, '**', '*')).map { |path| Pathname(path) }
73
+ end
74
+ end
75
+
66
76
  def file_list(dir_path)
67
- dir_path.glob('**/*').select(&:file?).map { |path|
77
+ glob(dir_path).select(&:file?).map { |path|
68
78
  path.relative_path_from(dir_path)
69
79
  }.reject { |path| path.to_s.start_with?('ext/') }
70
80
  end
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: 1.2.2
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: 2020-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -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
@@ -65,8 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
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.1.2
69
+ signing_key:
70
70
  specification_version: 4
71
71
  summary: See description
72
72
  test_files: []