xcurl 1.0.6 → 1.0.7
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 +8 -3
- 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: 51c16433d41b618dd392ee5c5947abe0ff49f1e4ae85d2be57fb01397e796be5
|
4
|
+
data.tar.gz: 1e8b22f003337513720186006f6bf48f15d177f2d8857d91b198e52d3777bc48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2964a90ef8a8bfe770a0f67f12f7e47b01d246618078e283c5c7b1132907213733498a1fc41b92c0e89f2263d28b209e12e5b8cf06711164eea0c9eb27a3ee3e
|
7
|
+
data.tar.gz: 6e55675649b012750edd9dd7f325e266bf4c9e5b8f40da2f0d3e2244192ecb84235d26ae2d2721919f354c771eb7bf280572caadeb307054e9115152aefcb277
|
data/lib/xcurl.rb
CHANGED
@@ -21,11 +21,16 @@ class Xcurl
|
|
21
21
|
when /init /
|
22
22
|
current_session = cmd.scan(/init (.*)/).flatten.first
|
23
23
|
|
24
|
-
when ''
|
25
|
-
parts.
|
26
|
-
puts pastel.green("'#{pastel.bold(part)}'")
|
24
|
+
when 'show'
|
25
|
+
parts.each_with_index do |part, index|
|
26
|
+
puts "#{pastel.blue(index)} - #{pastel.green("'#{pastel.bold(part)}'")}"
|
27
27
|
end
|
28
28
|
|
29
|
+
when /delete /
|
30
|
+
index_part = cmd.scan(/delete (.*)/).flatten.first.to_i
|
31
|
+
|
32
|
+
parts.delete_at(index_part)
|
33
|
+
|
29
34
|
when /add /
|
30
35
|
part = cmd.scan(/add (.*)/).flatten.first
|
31
36
|
|
data/xcurl.gemspec
CHANGED