griffin-interceptors 0.1.6 → 0.1.7

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
- SHA1:
3
- metadata.gz: 58f96feed784d22af88a27a642d4da316988f244
4
- data.tar.gz: ae39cc0f1be3aace6ed5bd701535064abb5f16ee
2
+ SHA256:
3
+ metadata.gz: d657d90a299aac795764ad2ec4a113e3ecf1569d77d3d263e5613bddf78d96ea
4
+ data.tar.gz: c73db1b2082492007780224b5761048f3b958730029c192b29c4a5f53e61d2f9
5
5
  SHA512:
6
- metadata.gz: df533bab1821031978249296e6b5468860fcd9475235a7332e234dab7b686589daa446abd15274069b010173852a1f725f2b4cc116077bf7fa5baf7d843675c2
7
- data.tar.gz: 6ca9a228c84ef463d4540f5d1e86e36f2b0d8c1c8df7c1a22b494500dfd12155f9e5da9d56d24087ad66a4b93596b1c0aad9a8339f652812686527f2eebd2308
6
+ metadata.gz: c2e8c52dc58fdc421b6b21d32186b023fc58eca8c28b36487d2132a75bb10ee20e2f5d88cbeab4968f3300a621d90bb086a6cbc4f18ebf2ecc4eb3d93aa23630
7
+ data.tar.gz: 2c2091370bffb51e5d8d375abc6eef1e8d81a81412487943ac90636cbe84a9f82ce8bc0e36e1bcfda3281b9e600e0227b0a5bf0637dd7b40f281478b8d071c20
@@ -2,8 +2,8 @@
2
2
 
3
3
  require 'griffin/interceptors/server/payload_interceptor'
4
4
 
5
- # Check actionpack exists to use ActionDispatch::Http::ParameterFilter
6
- gem 'actionpack'
5
+ # Check actionpack exists to use ActionDispatch::Http::ParameterFilter if needed
6
+ gem 'actionpack' unless defined?(ActiveSupport::ParameterFilter)
7
7
 
8
8
  module Griffin
9
9
  module Interceptors
@@ -19,7 +19,13 @@ module Griffin
19
19
  end
20
20
  end
21
21
 
22
- @parameter_filter = ActionDispatch::Http::ParameterFilter.new(@filters)
22
+ # ActionDispatch::Http::ParameterFilter is deprecated and will be removed from Rails 6.1.
23
+ parameter_filter_klass = if defined?(ActiveSupport::ParameterFilter)
24
+ ActiveSupport::ParameterFilter
25
+ else
26
+ ActionDispatch::Http::ParameterFilter
27
+ end
28
+ @parameter_filter = parameter_filter_klass.new(@filters)
23
29
  end
24
30
 
25
31
  def server_streamer(call: nil, **)
@@ -1,5 +1,5 @@
1
1
  module Griffin
2
2
  module Interceptors
3
- VERSION = '0.1.6'.freeze
3
+ VERSION = '0.1.7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: griffin-interceptors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuta Iwama
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-08 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: get_process_mem
@@ -148,8 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.6.14.1
151
+ rubygems_version: 3.0.3
153
152
  signing_key:
154
153
  specification_version: 4
155
154
  summary: A collection of interceptors for griffin