api_header_optimizer 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 +4 -4
- data/README.md +1 -1
- data/lib/api_header_optimizer/version.rb +1 -1
- data/lib/api_header_optimizer.rb +4 -2
- 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: e08e6943ab506fcbb3a6291b5029aeae8b6e492289c69e381b1dd3e4c2b0736b
|
4
|
+
data.tar.gz: d98223a148a2f61d8b5b33d046acafe35e24a7f0b4f6f48ac11348b331820c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b24e481b9b05036c70a187df5d7d2697308251c111a2d2bcd5db8eeec7e98ef14daf0767142c8de7cd6f5efe2958b43b7dc10e87c4be190a08e7ef1195a76e86
|
7
|
+
data.tar.gz: 3da59497ec38a9046a750a1648926e784fe4639ed5a17ec9ca7c528a0fd7dbc896f8db12f6b0ba23a99c718e1bea4c7b7eedb3c80232be4d4114eb2e72e73c77
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
13
13
|
## Usage
|
14
14
|
|
15
15
|
This gem allows to extract the headers required in httparty requests.
|
16
|
-
|
16
|
+
If you have some issue with rails c, you can install or update the gem 'globalid'
|
17
17
|
## Development
|
18
18
|
|
19
19
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/api_header_optimizer.rb
CHANGED
@@ -6,6 +6,8 @@ require_relative "api_header_optimizer/optimizer"
|
|
6
6
|
require_relative "api_header_optimizer/tester"
|
7
7
|
|
8
8
|
module ApiHeaderOptimizer
|
9
|
-
|
10
|
-
|
9
|
+
def self.optimize(address_url, headers)
|
10
|
+
optimizer = Optimizer.new(address_url, headers)
|
11
|
+
optimizer.optimize
|
12
|
+
end
|
11
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_header_optimizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziya Gökalp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|