api_proxy 0.2.4 → 0.2.5
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 +4 -4
- data/Gemfile.lock +10 -6
- data/lib/api_proxy/response_builder.rb +6 -2
- data/lib/api_proxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c32f2d58d0e0e128d0ff34bb2250c741fb77cf5028587b9abe0583b7a472a08
|
|
4
|
+
data.tar.gz: 18c053218cf582063e7a5634709a685a45080350c6ed3fa48c0ad18670ab8da1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce82c50310a34c1b8c6b4d38a820ee1b8b2ae2169bc966d8502cc0f0ab1f682414166ea3563bdd6eccae2d3a87a035117fba95cd1b51005d88cee8d4d17cf678
|
|
7
|
+
data.tar.gz: f96fe352f2f490babe0ef7bedcf0d859942d9c551c2f34af5305e8e6b95627bf95f4e785c4b120561eea7ec96094e1a22decf0b9b1da9da8652e36c7f2011d61
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
api_proxy (0.2.
|
|
4
|
+
api_proxy (0.2.5)
|
|
5
5
|
activesupport (>= 4.0)
|
|
6
6
|
api_signature (~> 0.1.2)
|
|
7
7
|
httparty (>= 0.15)
|
|
@@ -9,14 +9,14 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (5.2.
|
|
12
|
+
activesupport (5.2.2)
|
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
14
|
i18n (>= 0.7, < 2)
|
|
15
15
|
minitest (~> 5.1)
|
|
16
16
|
tzinfo (~> 1.1)
|
|
17
17
|
addressable (2.5.2)
|
|
18
18
|
public_suffix (>= 2.0.2, < 4.0)
|
|
19
|
-
api_signature (0.1.
|
|
19
|
+
api_signature (0.1.4)
|
|
20
20
|
activesupport (>= 4.0)
|
|
21
21
|
rack (>= 1.6)
|
|
22
22
|
ast (2.4.0)
|
|
@@ -58,9 +58,10 @@ GEM
|
|
|
58
58
|
guard-compat (~> 1.1)
|
|
59
59
|
rspec (>= 2.99.0, < 4.0)
|
|
60
60
|
hashdiff (0.3.7)
|
|
61
|
-
httparty (0.16.
|
|
61
|
+
httparty (0.16.4)
|
|
62
|
+
mime-types (~> 3.0)
|
|
62
63
|
multi_xml (>= 0.5.2)
|
|
63
|
-
i18n (1.
|
|
64
|
+
i18n (1.5.3)
|
|
64
65
|
concurrent-ruby (~> 1.0)
|
|
65
66
|
ice_nine (0.11.2)
|
|
66
67
|
iniparse (1.4.4)
|
|
@@ -72,6 +73,9 @@ GEM
|
|
|
72
73
|
ruby_dep (~> 1.2)
|
|
73
74
|
lumberjack (1.0.13)
|
|
74
75
|
method_source (0.9.0)
|
|
76
|
+
mime-types (3.2.2)
|
|
77
|
+
mime-types-data (~> 3.2015)
|
|
78
|
+
mime-types-data (3.2018.0812)
|
|
75
79
|
minitest (5.11.3)
|
|
76
80
|
multi_xml (0.6.0)
|
|
77
81
|
nenv (0.3.0)
|
|
@@ -89,7 +93,7 @@ GEM
|
|
|
89
93
|
coderay (~> 1.1.0)
|
|
90
94
|
method_source (~> 0.9.0)
|
|
91
95
|
public_suffix (3.0.2)
|
|
92
|
-
rack (2.0.
|
|
96
|
+
rack (2.0.6)
|
|
93
97
|
rainbow (3.0.0)
|
|
94
98
|
rake (10.5.0)
|
|
95
99
|
rb-fsevent (0.10.3)
|
|
@@ -29,7 +29,7 @@ module ApiProxy
|
|
|
29
29
|
private
|
|
30
30
|
|
|
31
31
|
def request
|
|
32
|
-
@request ||= Rack::Request.new(
|
|
32
|
+
@request ||= Rack::Request.new(env)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def result
|
|
@@ -46,7 +46,11 @@ module ApiProxy
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def filtered_params
|
|
49
|
-
|
|
49
|
+
params.reject { |key, _value| config.reject_params.include?(key.to_s) }
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def params
|
|
53
|
+
@params ||= (env['action_dispatch.request.request_parameters'].presence || request.params)
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
def headers
|
data/lib/api_proxy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: api_proxy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Malinovskiy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|