xcurl 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +38 -0
  3. data/bin/xcurl +6 -0
  4. data/lib/xcurl.rb +9 -4
  5. data/xcurl.gemspec +4 -2
  6. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a57943ff6bb6b7c2e30153f0eae24942ae48f1ac77331ae364dfbd65b49bd296
4
- data.tar.gz: 510d08bb03927706be7c071a196e9dc9df6f6f7e1df4497145c7b05be5ae53dc
3
+ metadata.gz: 1aec94036cce1c06170dc1648796310860b50bb7678cdc28ee471864ebf18b71
4
+ data.tar.gz: 13187f13a867c736a389a6f8a3d7fccd93237508d9798eaf6aab0dba6f45dfec
5
5
  SHA512:
6
- metadata.gz: b0da9a2e8e3a3bed0bc6cb74bc7bbe2c1258290a32c481e23ac751930508513e2eb883bd14e08df0617366f12fd5ec7ae5a31178cdc6605e61d5d46380a1f978
7
- data.tar.gz: d2f921d8b3d84031cadc3f1eeafa9e0238847f0ac8b9ff1a2785d558bb50450af88edf497874545796999aaaf4deee4cc17349a867c83366ed98274a279a0a0d
6
+ metadata.gz: fe8e4c8d433d6a75848c005a22d898998f5447c04706bcfd54dfdfc5fd306805df44975eda8eda0a5760444f6730af3d7371dcb6708de1cd29d1b170e6c589fe
7
+ data.tar.gz: 78cb66bc6d62def43f5fb40451d9948aab5afabc3daa34276a4bd3c584c749b511b344b776f9578ce8208841deb026ccdbbaed3c9c08fc231398fa653ac8edc0
data/Gemfile.lock ADDED
@@ -0,0 +1,38 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ xcurl (1.0.0)
5
+ pastel (~> 0.8)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.5.0)
11
+ pastel (0.8.0)
12
+ tty-color (~> 0.5)
13
+ rake (13.0.6)
14
+ rspec (3.12.0)
15
+ rspec-core (~> 3.12.0)
16
+ rspec-expectations (~> 3.12.0)
17
+ rspec-mocks (~> 3.12.0)
18
+ rspec-core (3.12.2)
19
+ rspec-support (~> 3.12.0)
20
+ rspec-expectations (3.12.3)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.12.0)
23
+ rspec-mocks (3.12.5)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.12.0)
26
+ rspec-support (3.12.0)
27
+ tty-color (0.6.0)
28
+
29
+ PLATFORMS
30
+ x86_64-linux
31
+
32
+ DEPENDENCIES
33
+ rake (~> 13.0)
34
+ rspec (~> 3.0)
35
+ xcurl!
36
+
37
+ BUNDLED WITH
38
+ 2.4.13
data/bin/xcurl ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "xcurl"
5
+
6
+ Xcurl.start(ARGV[0])
data/lib/xcurl.rb CHANGED
@@ -1,8 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "xcurl/version"
3
+ class Xcurl
4
+ def start(session)
5
+ while true
4
6
 
5
- module Xcurl
6
- class Error < StandardError; end
7
- # Your code goes here...
7
+ print "> "
8
+ cmd = gets.chomp
9
+
10
+ break if cmd == 'q'
11
+ end
12
+ end
8
13
  end
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.0'
5
+ spec.version = '1.0.1'
6
6
  spec.authors = ["Andrew S Aguiar"]
7
7
  spec.email = ["andrewaguiar6@gmail.com"]
8
8
  spec.summary = "Convenient wrapper for curl"
@@ -17,8 +17,10 @@ Gem::Specification.new do |spec|
17
17
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|gem)/}) }
18
18
  end
19
19
 
20
+ puts spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
+
20
22
  spec.bindir = 'bin'
21
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
+ spec.executables = 'xcurl'
22
24
  spec.require_paths = ['lib']
23
25
 
24
26
  spec.add_dependency 'pastel', '~> 0.8'
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S Aguiar
@@ -28,7 +28,7 @@ description: Convenient wrapper for curl
28
28
  email:
29
29
  - andrewaguiar6@gmail.com
30
30
  executables:
31
- - setup
31
+ - xcurl
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
@@ -36,10 +36,12 @@ files:
36
36
  - ".rspec"
37
37
  - CODE_OF_CONDUCT.md
38
38
  - Gemfile
39
+ - Gemfile.lock
39
40
  - LICENSE.txt
40
41
  - README.md
41
42
  - Rakefile
42
43
  - bin/setup
44
+ - bin/xcurl
43
45
  - generate-gem
44
46
  - lib/xcurl.rb
45
47
  - xcurl.gemspec