xcurl 1.0.8 → 1.0.10

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 +7 -0
  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: 6db538ae75b6f2038a6e73b2a46fe2574cf93056ca022075f704a479af1b885d
4
- data.tar.gz: a2ca6ae2b4a9a57c2572001311ab8e69dff7b74e52b4aec475c23893cd6db058
3
+ metadata.gz: 8401e6c12d458031a65994b3d1702a38c27c4a6d6faeb706c7fbba71b86ec8a3
4
+ data.tar.gz: c3a1f31fed1328d5ddabd64c90338ca95040325e5f1590d00bd3bab7ce0ca610
5
5
  SHA512:
6
- metadata.gz: 706f6e2b5dc70e76713fc185f2352d72342982fc977bf73fa498ab39fd416c9c3abc4897d1bb429a5df4fc0c43c59119693ca993c6e300217e9de85185876585
7
- data.tar.gz: 0d1f09b3f28435c0a3d627f2d8816bd01326422f2487c42c3850b62926e9e3bfa746536c136a628c9ebd8b161ac024c6f7a8aab4ae7c7a32c0e4fd22efff70b4
6
+ metadata.gz: bd60c94d0f237538a7fd6eab01b77d0a368c5f2752bc2deca04a44e2abc9f8b943bc010d05f68190a7f9ac5aebfe575ec382ac7de71d68907c129263cd47ef83
7
+ data.tar.gz: 2649c741bb92aa9abe63e52a68f6cb143caabf7132178bff19c7adef6744850fd358b5a35ca28edd624d8756d9f6b17b2d8e220827e78db0cfce7536bad5ccaf
data/lib/xcurl.rb CHANGED
@@ -7,6 +7,8 @@ require_relative './log'
7
7
 
8
8
  class Xcurl
9
9
  def self.start(session_id = nil)
10
+ puts "// loading '#{session_id}'" if session_id
11
+
10
12
  log = Log.new
11
13
  session = load_session(session_id || 'untitled')
12
14
 
@@ -24,6 +26,11 @@ class Xcurl
24
26
 
25
27
  session = save_session(new_id, session)
26
28
 
29
+ when /load /
30
+ id = cmd.scan(/load (.*)/).flatten.first
31
+
32
+ session = load_session(id)
33
+
27
34
  when 'show'
28
35
  log.show_current_session(session)
29
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.8'
5
+ spec.version = '1.0.10'
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.8
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S Aguiar