pit 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/ChangeLog +2 -0
  2. data/Rakefile +1 -1
  3. data/lib/pit.rb +1 -1
  4. data/test/pit_test.rb +2 -0
  5. metadata +1 -1
data/ChangeLog CHANGED
@@ -7,4 +7,6 @@
7
7
  "username" => "default value",
8
8
  "password" => "default value"
9
9
  })
10
+ * Release 0.0.3:
11
+ * Fix Pig.get with :require returning value
10
12
 
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ DESCRIPTION = "pit: account management tool"
17
17
  RUBYFORGE_PROJECT = "lowreal"
18
18
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
19
19
  BIN_FILES = %w( pit )
20
- VERS = "0.0.2"
20
+ VERS = "0.0.3"
21
21
 
22
22
 
23
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
data/lib/pit.rb CHANGED
@@ -28,7 +28,7 @@ module Pit
28
28
  config = self.load
29
29
  config[name] = result
30
30
  @@profile.open("w") {|f| YAML.dump(config, f) }
31
- nil
31
+ config[name]
32
32
  end
33
33
 
34
34
  def self.get(name, opts={})
@@ -38,6 +38,8 @@ class PitTest < Test::Unit::TestCase
38
38
  Pit.set("test", :data => {"username"=>"foo","password"=>"bar"})
39
39
  assert_equal "foo", Pit.get("test")["username"]
40
40
  assert_equal "bar", Pit.get("test")["password"]
41
+
42
+ assert_equal "foo", Pit.set("test", :data => {"username"=>"foo","password"=>"bar"})["username"]
41
43
  end
42
44
 
43
45
  def test_switch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - cho45