copypaste 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/bin/rcopy +1 -1
- data/bin/rcut +1 -1
- data/bin/rpaste +1 -1
- data/lib/copypaste.rb +9 -5
- metadata +1 -1
data/README
CHANGED
data/bin/rcopy
CHANGED
data/bin/rcut
CHANGED
data/bin/rpaste
CHANGED
data/lib/copypaste.rb
CHANGED
@@ -6,7 +6,7 @@ require 'fileutils'
|
|
6
6
|
|
7
7
|
class CopyPasteError < StandardError; end
|
8
8
|
class CopyPaste
|
9
|
-
VERSION = "0.9"
|
9
|
+
VERSION = "0.9.1"
|
10
10
|
CONFIGURATION = "#{ENV['HOME']}/.copypaste"
|
11
11
|
|
12
12
|
class << self
|
@@ -23,10 +23,14 @@ class CopyPaste
|
|
23
23
|
server.get("copypaste-#{queue}")
|
24
24
|
end
|
25
25
|
|
26
|
-
def setup
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
def setup(value)
|
27
|
+
if value.to_s.empty?
|
28
|
+
print "What is your starling server address (127.0.0.1:22122): "
|
29
|
+
$stdout.flush
|
30
|
+
server = gets.strip
|
31
|
+
else
|
32
|
+
server = value
|
33
|
+
end
|
30
34
|
|
31
35
|
if server.empty?
|
32
36
|
server = "127.0.0.1:22122"
|