recurl 0.1.0 → 0.1.1

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: 8848c42ca60b085111810bf3c54c5d2a1106d00f1b09e4b78ec470a04ddd3911
4
- data.tar.gz: 30a110782d26cec341ade8b8c3fd37d5e19852be64ba41de75b06d34a2333bd0
3
+ metadata.gz: c2713f7171979bda64219f660f099002d15bc65eed3ef68ee880a35d98b5bb96
4
+ data.tar.gz: c70a3a21de592e26e89e412cd44692739fc350b3862eadcdc9f44671b1f5d708
5
5
  SHA512:
6
- metadata.gz: 102cf5cc38680209c0051462a8f32c48ad6fe6acb5e51f9e949010edab5aac61e0f724acc6a44c04a41212010f13ad434c59633036adcfe13396df59be042d53
7
- data.tar.gz: ef92f072148bf7e3d8b9e7401858cf5d480c8cea67bcfca675f54e6c7f44a58c1bc2261b3148ea045ea4c221783497880c1bc91a24c75c6f45af790abba99a79
6
+ metadata.gz: b06200e6d4ed11bf87b74f7675c8a0d29b51ae54fedb902cf8170c9b901b89d573e4b1af3a7f2816a5ab87eb3cdcd5cd3e22ece900135477af1993ecdb572dbb
7
+ data.tar.gz: '039459313de44314afd9e81b706c1c9e3855a7ab21ab380615b3a1d3c7b0681011e95057831e0b2607a77613164869c2340727f7a167ef65b40c55ecc41c1927'
@@ -20,6 +20,7 @@ module Recurl
20
20
 
21
21
  def log
22
22
  logger.info "curl #{http_method} #{headers} #{params} #{url}"
23
+ ::Rack::Request.new(env).body.rewind
23
24
  end
24
25
 
25
26
  def headers
@@ -4,7 +4,8 @@ module Recurl
4
4
  # Load middleware when use Rails
5
5
  class Railtie < ::Rails::Railtie
6
6
  initializer 'recurl.middleware' do |app|
7
- app.middleware.use(Recurl::Rack::Middleware)
7
+ app.middleware.insert_before(ActionDispatch::Static,
8
+ Recurl::Rack::Middleware)
8
9
  end
9
10
  end
10
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Recurl
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-12 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler