xcurl 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xcurl.rb +8 -3
  3. data/xcurl.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1930a12933baeaf30e46f94d87040cbf33e549dbdb21f3c9be3ae849a0f24a6
4
- data.tar.gz: f0f433f7941a2c0552384b37ab24f55783441db7327e109253bd403db1d7bb53
3
+ metadata.gz: 51c16433d41b618dd392ee5c5947abe0ff49f1e4ae85d2be57fb01397e796be5
4
+ data.tar.gz: 1e8b22f003337513720186006f6bf48f15d177f2d8857d91b198e52d3777bc48
5
5
  SHA512:
6
- metadata.gz: 8d4b8dac3dcab83863ecfc938a578545dab0c2e4feeebc9cf68d8d2cf4c0034030a0a549a41bbbc8eacb824e8e9824d91087cfc3fb4b27697b7c19c67e104122
7
- data.tar.gz: be21b926a4b0c183392f7169fa5f953f9da3089ae088146f76db2f683dcc0b45c75240ab63d387c02f7a7083d4c512b4c9068c4525c826ec42d23f98ea6df435
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.each do |part|
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "xcurl"
5
- spec.version = '1.0.6'
5
+ spec.version = '1.0.7'
6
6
  spec.authors = ["Andrew S Aguiar"]
7
7
  spec.email = ["andrewaguiar6@gmail.com"]
8
8
  spec.summary = "Convenient wrapper for curl"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcurl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S Aguiar