ruby-llenv 0.0.2 → 0.0.3

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.
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.3 (2012-11-25)
2
+
3
+ * Dir.exists? -> File.directory? for ruby 1.8.7
4
+
1
5
  ## 0.0.2 (2012-11-25)
2
6
 
3
7
  * add dependance of gem
data/lib/llenv/cli.rb CHANGED
@@ -47,8 +47,8 @@ private ######################################################################
47
47
  def check_homedir!
48
48
  home = options[:home] || File.expand_path("~/.llenv")
49
49
  llhome = File.join(home, @llenv)
50
- Dir.mkdir(home) unless Dir.exists?(home)
51
- Dir.mkdir(llhome) unless Dir.exists?(llhome)
50
+ Dir.mkdir(home) unless File.directory?(home)
51
+ Dir.mkdir(llhome) unless File.directory?(llhome)
52
52
  @llhome = llhome
53
53
  end
54
54
 
@@ -56,7 +56,7 @@ private ######################################################################
56
56
  declare_dirs = []
57
57
  declare_dirs << File.join(options[:declare], @llenv) if options[:declare]
58
58
  declare_dirs << File.expand_path("../../../declare/#{@llenv}", __FILE__)
59
- dir = declare_dirs.detect { |d| Dir.exists?(d) } or error("Declare of '#{@llenv}' does not exist.")
59
+ dir = declare_dirs.detect { |d| File.directory?(d) } or error("Declare of '#{@llenv}' does not exist.")
60
60
  @declare = LLenv::Declare.new(dir, @llhome)
61
61
  end
62
62
 
data/lib/llenv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LLenv
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-llenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: