peanut 0.2 → 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/README.rdoc CHANGED
@@ -19,4 +19,4 @@ gem install peanut
19
19
 
20
20
  == Requirements
21
21
 
22
- Peanut should function on Linux, BSD (assuming you run X), or Mac OS X. There are currently a few bugs on some Linux systems I've tested. xclip seems to hang, although it actually functions. I'm working on that!
22
+ Peanut should function on Linux, BSD (assuming you run X), or Mac OS X. On Linux, it is assumed that xclip is installed.
@@ -9,7 +9,7 @@ module Peanut
9
9
  "pbcopy"
10
10
  end
11
11
 
12
- system("echo -n #{string} | #{cmd}")
12
+ `echo '#{string}' | tr -d "\n" | #{cmd}`
13
13
  end
14
14
 
15
15
  def paste
@@ -40,7 +40,7 @@ module Peanut
40
40
  def get(key)
41
41
  if val = store[key]
42
42
  Clipboard.copy(val)
43
- Peanut::output "Copied '#{val}' to the clipboard!"
43
+ Peanut::output "Copied #{key} to the clipboard!"
44
44
  else
45
45
  Peanut::output "No value stored with key '#{key}'"
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module Peanut
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
data/peanut.gemspec CHANGED
File without changes
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peanut
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - the_gastropod
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-21 00:00:00 -05:00
18
+ date: 2011-02-05 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency