diff --git a/History.txt b/History.txt index e0e0414..9d8bcaf 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,8 @@ +=== 0.1.1 / 2009-09-25 + +* add rubyforge info to README +* Fixes bug in add command that wouldn't allow you to add - GH-13 + === 0.1.0 / 2009-09-24 * removed jruby support for the time being (lack of win32ole is a problem) diff --git a/README.rdoc b/README.rdoc index c9194bc..8e0738f 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,6 +1,7 @@ = pik http://github.com/vertiginous/pik +http://rubyforge.org/projects/pik/ Gordon Thiesfeld diff --git a/lib/pik.rb b/lib/pik.rb index 8a05fe0..f11e7be 100644 --- a/lib/pik.rb +++ b/lib/pik.rb @@ -1,5 +1,5 @@ module Pik - VERSION = '0.1.0' + VERSION = '0.1.1' end diff --git a/lib/pik/commands/add_command.rb b/lib/pik/commands/add_command.rb index 2f35406..de4a79b 100644 --- a/lib/pik/commands/add_command.rb +++ b/lib/pik/commands/add_command.rb @@ -23,6 +23,7 @@ def add(path) version = get_version(path) path = path.expand_path.to_ruby puts "Adding: #{version}'\n Located at: #{path}\n" + @config[version] = {} @config[version][:path] = path end else diff --git a/lib/pik/config_file.rb b/lib/pik/config_file.rb index 4fe0c12..b2ebf3d 100644 --- a/lib/pik/config_file.rb +++ b/lib/pik/config_file.rb @@ -6,7 +6,7 @@ class ConfigFile < Hash def initialize @file = File.join(PIK_HOME, 'config.yml') - super{|h,k| h[k] = Hash.new } + super if File.exists? @file self.update( YAML.load( File.read( @file ) ) ) end