gli 2.13.3 → 2.13.4

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
  SHA1:
3
- metadata.gz: bbf6367c06fcaf096c1ba22d33d398bff9e3e9e6
4
- data.tar.gz: d762d428d2c191b899508f5dd638194cf89b0c14
3
+ metadata.gz: 72425f3996eedb08a03af7c55d8fa50dc358659d
4
+ data.tar.gz: 41634461e71b54e34f156f59e85c02fab64e6410
5
5
  SHA512:
6
- metadata.gz: e5bb0ff0818e637796e2eccd9d9553e387dff7f144bee93ba7b44b1007a0289bd54e917ff50a158b5619e201cf0f2e9a72fc978bd79f8857157db9f209c384c9
7
- data.tar.gz: eb5368dcf5ab2261d62bf2630dcdc303c592eca19efb41c4a63642e9dfec6f79679e6b3f0755313a99a786001ff1a03487ea84b914d315266eb48d21fc89ed64
6
+ metadata.gz: b3c97518e3500e9853f2d5240c08db8655b0c771b1de9f1e453478ce3cefa16612a2aef458febde8246cdabcfda409db43f8a5770113e80841c22f82666ed24b
7
+ data.tar.gz: 55df85338820f8b1ebb2d33e98009346641c382b34be7494de9688a90450702a910258fcbbd8a111bb444619db67e9754a62a001d50428113bc66e0ad21f9421
@@ -13,6 +13,6 @@ end
13
13
 
14
14
 
15
15
  Given /^the file "(.*?)" doesn't exist$/ do |filename|
16
- FileUtils.rm filename if File.exists?(filename)
16
+ FileUtils.rm filename if File.exist?(filename)
17
17
  end
18
18
 
@@ -30,7 +30,7 @@ end
30
30
  After do |scenario|
31
31
  ENV['RUBYLIB'] = ''
32
32
  todo_app_dir = File.join(TMP_PATH,'todo')
33
- if File.exists? todo_app_dir
33
+ if File.exist? todo_app_dir
34
34
  FileUtils.rm_rf(todo_app_dir)
35
35
  end
36
36
  ENV['PATH'] = @original_path.join(File::PATH_SEPARATOR)
@@ -30,7 +30,7 @@ module GLI
30
30
  # # loads *.rb files from the user's home dir - great and an extension/plugin mechanism
31
31
  # commands_from File.join(ENV["HOME"],".my_app","plugins")
32
32
  def commands_from(path)
33
- if Pathname.new(path).absolute? and File.exists?(path)
33
+ if Pathname.new(path).absolute? and File.exist?(path)
34
34
  load_commands(path)
35
35
  else
36
36
  $LOAD_PATH.each do |load_path|
@@ -317,7 +317,7 @@ module GLI
317
317
  private
318
318
 
319
319
  def load_commands(path)
320
- if File.exists? path
320
+ if File.exist? path
321
321
  Dir.entries(path).sort.each do |entry|
322
322
  file = File.join(path,entry)
323
323
  if file =~ /\.rb$/
@@ -43,7 +43,7 @@ module GLI
43
43
  #
44
44
  # +command+:: The command, as a String, to check for, without any path information.
45
45
  def self.command_exists?(command)
46
- ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.exists? File.join(dir, command) }
46
+ ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.exist? File.join(dir, command) }
47
47
  end
48
48
 
49
49
  def command_exists?(command)
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.13.3'
3
+ VERSION = '2.13.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.3
4
+ version: 2.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Copeland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake