gem-wrappers 1.3.1 → 1.3.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
  SHA1:
3
- data.tar.gz: bb71f62bd6e935bc54f7a3fd2e703e6522ff41c7
4
- metadata.gz: 51b55bfc707350a6b074211143247938fb80f101
3
+ data.tar.gz: 8760f42ee3404a92db5666a4c13f651ea101ba65
4
+ metadata.gz: 3042f776a429469c017f523557261b0a453c6204
5
5
  SHA512:
6
- data.tar.gz: 3190a60f96a8a23daf0343efc1740b485b1621274a5429843c48d71197bb1c2d21bf658b0c6caf86a976100db3124aed429b94af024d574077e7878d573a731c
7
- metadata.gz: 1f6092a77020ce56255bf9f2504bcb8e0a291a85fbcc4df4e49cd2bded3486b84b20526b2b7f2c7336839942e0fcfc7678a3527b4f2ecbc5970c51bcece7062d
6
+ data.tar.gz: c90e21bcd1906252f3948f79691ecf9298eebbb6a28f620fa67b66e3b603a626d2e9635619d8389bf3c921e0651c898ae904077a6c2aa95b91c0863ebf26b7d8
7
+ metadata.gz: 5c32a9e16c6d3622151b46ef54fbbd0bc8e7553644e2961f32b8828322dfc4381dd6f39e79c05187defca3d4f07c533067dcea19a6e09d281d5396b455229cd1
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  before_install:
3
3
  - "if [[ $TRAVIS_RUBY_VERSION == 1.8.7 ]] ; then rvm rubygems latest-2.1 ; fi"
4
+ - "if [[ $TRAVIS_RUBY_VERSION == 1.9.3 ]] ; then gem update bundler ; fi"
4
5
  rvm:
5
6
  - jruby
6
7
  - ruby-head
data/Changelog.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2
4
+ date: 2017-09-10
5
+
6
+ - Avoid nested chdir warnings #11
7
+
3
8
  ## 1.3.1
4
9
  date: 2017-08-24
5
10
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2014 Michal Papis
1
+ Copyright (c) 2013-2014,2017 Michal Papis
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/lib/gem-wrappers.rb CHANGED
@@ -43,9 +43,11 @@ module GemWrappers
43
43
  private
44
44
 
45
45
  def self.ruby_executables
46
- Dir.chdir(RbConfig::CONFIG["bindir"]) {
47
- Dir["*"].select{ |file| File.executable?(file) }
48
- }
46
+ bindir = RbConfig::CONFIG["bindir"].sub(/\/+\z/, '')
47
+ Dir.entries(bindir).select do |file|
48
+ path = "#{bindir}/#{file}"
49
+ !File.directory?(path) && File.executable?(path)
50
+ end
49
51
  end
50
52
 
51
53
  end
@@ -1,3 +1,3 @@
1
1
  module GemWrappers
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -75,7 +75,7 @@ EXPECTED
75
75
  Dir.chdir(File.dirname(@file.path)) do
76
76
  subject.options[:args] = [File.basename(@file.path)]
77
77
  subject.execute
78
- @fake_installer.executables.must_equal([@file.path])
78
+ @fake_installer.executables.must_equal([Pathname.new(@file.path).realpath.to_s])
79
79
  end
80
80
  end
81
81
  end
@@ -17,7 +17,7 @@ describe GemWrappers::Specification do
17
17
  end
18
18
 
19
19
  it "does not find imaginary gems" do
20
- GemWrappers::Specification.find("imaginary-gem").must_equal(nil)
20
+ GemWrappers::Specification.find("imaginary-gem").must_be_nil
21
21
  end
22
22
 
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-wrappers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2017-08-24 00:00:00 Z
12
+ date: 2017-09-10 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake