xcurl 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcurl.rb +17 -2
- data/xcurl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85e5ee6c52e96591715ee115f4dc86cec6993d8c5a740f69c979d6dfd0be8195
|
4
|
+
data.tar.gz: cb1c1d7d691934dff486f98d51dd3cc4a5812b14400525e15308473b7c97ad32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49515da7f35c849b1208d785b9a4c283581d8e70d252b96494c0dbf5f500f8268b57155267d7015c08f09a41dfc8d9e6985a98372bbe341de8f4038d18bbe4f6
|
7
|
+
data.tar.gz: 55a16278c32a8efa0d91c0d4fb571a7fc3f5291deb41943b04a0c82db7fd8b817be96c576a94f780fed96122aee06111adcf7ed3f9c33f1a23e640554ac2f808
|
data/lib/xcurl.rb
CHANGED
@@ -2,12 +2,27 @@
|
|
2
2
|
|
3
3
|
class Xcurl
|
4
4
|
def self.start(session)
|
5
|
+
current_session = session || 'anon'
|
6
|
+
parts = []
|
7
|
+
|
5
8
|
while true
|
9
|
+
print "[#{current_session}] "
|
6
10
|
|
7
|
-
print "> "
|
8
11
|
cmd = gets.chomp
|
9
12
|
|
10
|
-
|
13
|
+
case cmd
|
14
|
+
when 'quit'
|
15
|
+
break
|
16
|
+
|
17
|
+
when /init /
|
18
|
+
current_session = cmd.scan(/init (.*)/).flatten.first
|
19
|
+
|
20
|
+
when /add /
|
21
|
+
parts << cmd.scan(/add (.*)/).flatten.first
|
22
|
+
|
23
|
+
when /curl /
|
24
|
+
puts "#{curl} #{parts.join(' ')}"
|
25
|
+
end
|
11
26
|
end
|
12
27
|
end
|
13
28
|
end
|
data/xcurl.gemspec
CHANGED