dagger 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dagger.rb +1 -2
- data/lib/dagger/version.rb +1 -1
- data/spec/persistent_spec.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7001f9f21c0adb0ff7d27a307bd28934229c4dc9
|
4
|
+
data.tar.gz: 4a51b1dacd01ddad0570f93e3255fa28dcccea0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f95c6b8ca528061ba9ce150457d9d60808965f65f67b704e759e964b8c98df789df48fdb9e272fd2ebc52d42b023538566804e6296a95fa26ce0f6787d4f0c3e
|
7
|
+
data.tar.gz: d266954e4321d11af50608ad8bb055ed030d4e17d60667b6ebfbd2f291e8f8af483a62fd4260849e174ac00e4119df7f7d4f3e3c2d423404c9a81e1b732aeb31
|
data/lib/dagger.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# Dagger.
|
2
1
|
require 'dagger/version'
|
3
2
|
require 'dagger/response'
|
4
3
|
require 'dagger/parsers'
|
@@ -160,7 +159,7 @@ module Dagger
|
|
160
159
|
|
161
160
|
def open(uri, opts = {}, &block)
|
162
161
|
client = Client.init(uri, opts)
|
163
|
-
client.
|
162
|
+
client.open(&block) if block_given?
|
164
163
|
client
|
165
164
|
end
|
166
165
|
|
data/lib/dagger/version.rb
CHANGED
data/spec/persistent_spec.rb
CHANGED
@@ -8,8 +8,7 @@ describe 'Persistent mode' do
|
|
8
8
|
it 'works' do
|
9
9
|
fake_client = double('Client')
|
10
10
|
expect(Dagger::Client).to receive(:new).once.and_return(fake_client)
|
11
|
-
|
12
|
-
expect(fake_client).to receive(:start).once #.and_return(fake_resp)
|
11
|
+
expect(fake_client).to receive(:open).once #.and_return(fake_resp)
|
13
12
|
|
14
13
|
obj = Dagger.open('https://www.google.com') do
|
15
14
|
get('/search?q=dagger+http+client')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|