async-http-faraday 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d167212f7b791a530da392a052068d2642156f8062251169739ff1bef0a5d374
4
- data.tar.gz: 8b8bcaa9d413b6f675966bae48d513b4eb3978ea94cca42e00249ff4f7789ebc
3
+ metadata.gz: 543e11733a663d5fd57986ff137c0133331b4f762b559c319ce1177dbc8e31e4
4
+ data.tar.gz: fe09ce734a351803655f1f0a425eba6fa984bd54d07a6b6a3143aff46e9efa74
5
5
  SHA512:
6
- metadata.gz: 2d33b185f9aa3b54a7df0d9371010f98f71bf5aac6852abf911a833fda842ec191d06ab8fb4658e035303a6fa1ed1c9c593441033420d36878533ed1d93f6ced
7
- data.tar.gz: c2e224e91b79058e5636e93ead6a47c972e1e6519c0fb4b84ba1cfcb7996c7645ad1afbd3aa180b15e3b81ae32146c000b0bbc86f4998e0963508a07fb236d6a
6
+ metadata.gz: d9fffa1b0acebcb1afbb5f94038f341ea40f52fb8241f4fcd64b33ca8109e0008b02bf33101ec9e1cd5914b5395fdf21dce4df5837c4aff72fca75144b9fa12f
7
+ data.tar.gz: ad7db9fe88686d2f5b229b77387be280751744046bff62f87580cb6e6ac21d1633e0e69ccc73ad1da4fbea6cc8ecdaa194f6c37fded6652874542a9cbee0200b
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/README.md CHANGED
@@ -50,6 +50,14 @@ Async::Reactor.run do
50
50
  end
51
51
  ```
52
52
 
53
+ ### Default
54
+
55
+ To make this the default adaptor:
56
+
57
+ ```ruby
58
+ require 'async/http/faraday/default'
59
+ ```
60
+
53
61
  ## Contributing
54
62
 
55
63
  1. Fork it
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
4
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
22
+
23
+ require_relative 'adapter'
24
+
25
+ ::Faraday.default_adapter = :async_http
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -21,7 +23,7 @@
21
23
  module Async
22
24
  module HTTP
23
25
  module Faraday
24
- VERSION = "0.8.1"
26
+ VERSION = "0.9.0"
25
27
  end
26
28
  end
27
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http-faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-09 00:00:00.000000000 Z
11
+ date: 2020-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http
@@ -126,6 +126,7 @@ files:
126
126
  - lib/async/http/faraday.rb
127
127
  - lib/async/http/faraday/adapter.rb
128
128
  - lib/async/http/faraday/agent.rb
129
+ - lib/async/http/faraday/default.rb
129
130
  - lib/async/http/faraday/version.rb
130
131
  homepage: https://github.com/socketry/async-http
131
132
  licenses: []