ethon 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2FhY2MzYTUzMTllNTk2ZTY4YWY4Y2ViOTA4OTg4ZTgxMTNhNzE2Mg==
4
+ N2ZhYTYzYzNiNDAwMzdkYzk5YTcxYzEyMmNkZTI1ODliMGM4ZTViZg==
5
5
  data.tar.gz: !binary |-
6
- OTI4MGQyMWFiZmVlOTRkY2FlODFmZWVlMDIyMmMwYWZmNWI0NmE1Zg==
6
+ YzYwYmM2OTAzM2UyOTQ5YjMzNTRkNTc3NDE5ZjdiMTNmMGY3MmYxZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDU2OTVmMmNlNjhhMjg3OTEzOWVkZjMyODBjMWMxYjg1NTI0OWIzZTA2ODBh
10
- MjA4MjQ1NzQyMWY5MzJhNmRkYzQzNjdhNWJiNWMyZTk2NzcxZTU4ZDI1Mjdj
11
- ZGZjYzYxMWU2ZWE0YzBiM2NkODVjNGQzYjFhMDQ1YThhMzYyMDY=
9
+ ZDJmYzExYjM4N2NkODQxMWE2YTMzNjAyNjg0MzFlMDFiZDI1ZDFiYzFlMWU2
10
+ ZDU5ZjM5YTNlZDk4NTJkYTMxNzYwMzgwZDY1MWFkOTA1Y2FhNDJhZmVlMzVm
11
+ NGMwODBlOTE0YjUyNjhjMTdiMDdmNDM2M2E5ZDQxNDdlOWMwOTc=
12
12
  data.tar.gz: !binary |-
13
- ZDcyNmY0MWZjYWMzNmM2Njk0Nzk1YTE4ZjY0ZDhjOWZlMzI1NzVhYTFkOGE1
14
- OGU0Mzc1ODc0OGQzNTEwNzNmYWEwNGU1MmFjZGQ4ZDNhZTMxOTIxYzMxMjc3
15
- MmZiYWIwMzU0NWJiN2ExNjhjMDhlNjMwZDM2NDBhZmI3ZDRjNzI=
13
+ YmVkMmY3NjFkZTY0YTUzOWYyZGU2YjRlMjgwNDk4ZDkzMjk0MzI0ZTYxNWRh
14
+ MDU3ZDliMGQ0ZTAwYTg0YmQ0NGVjNTJmZjM2YzNmZDg0MGY3NWU3MzMzYjdi
15
+ YTIxMmQxMmI0OGY0N2ExYzAyOWY4YTU0YThmYWY0MWZlYmUzZWI=
@@ -2,7 +2,13 @@
2
2
 
3
3
  ## Master
4
4
 
5
- [Full Changelog](https://github.com/typhoeus/ethon/compare/v0.5.12...master)
5
+ [Full Changelog](https://github.com/typhoeus/ethon/compare/v0.6.0...master)
6
+
7
+ ## 0.6.0
8
+
9
+ [Full Changelog](https://github.com/typhoeus/ethon/compare/v0.5.12...v0.6.0)
10
+
11
+ The changelog entries are coming soon!
6
12
 
7
13
  Bugfixes:
8
14
 
@@ -247,9 +247,9 @@ module Ethon
247
247
  def reset
248
248
  @url = nil
249
249
  @hash = nil
250
- @mirror = nil
251
250
  @on_complete = nil
252
251
  @procs = nil
252
+ @mirror = nil
253
253
  Curl.easy_reset(handle)
254
254
  set_callbacks
255
255
  end
@@ -21,8 +21,8 @@ module Ethon
21
21
  # @return [ Integer ] The return code.
22
22
  def perform
23
23
  @return_code = Curl.easy_perform(handle)
24
- complete
25
24
  Ethon.logger.debug { "ETHON: performed #{self.log_inspect}" }
25
+ complete
26
26
  @return_code
27
27
  end
28
28
 
@@ -1,5 +1,5 @@
1
1
  module Ethon
2
2
 
3
3
  # Ethon version.
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
@@ -50,6 +50,16 @@ describe Ethon::Easy::Operations do
50
50
  easy.perform
51
51
  end
52
52
 
53
+ it "logs" do
54
+ Ethon.logger.should_receive(:debug)
55
+ easy.perform
56
+ end
57
+
58
+ it "doesn't log after completing because completing could reset" do
59
+ easy.on_complete{ Ethon.logger.should_receive(:debug).never }
60
+ easy.perform
61
+ end
62
+
53
63
  context "when url" do
54
64
  let(:url) { "http://localhost:3001/" }
55
65
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hans Hasselberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-11 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi