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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b97eb0b9a2eca8956b285777447469840f688bfdf861b01d16de01456ba4104
4
- data.tar.gz: 2401266c155e0f60f815f96e507fff86b969374af5d33292b253a1b8ed886949
3
+ metadata.gz: e08e6943ab506fcbb3a6291b5029aeae8b6e492289c69e381b1dd3e4c2b0736b
4
+ data.tar.gz: d98223a148a2f61d8b5b33d046acafe35e24a7f0b4f6f48ac11348b331820c27
5
5
  SHA512:
6
- metadata.gz: 075d21858be1267b3c6f5f628b617945cc7ce2d8396ab91a2743f6e83bc97f29ccb38eb04ff04423b666b91f60b9f02049d08988102bf160141add52ec3e61bd
7
- data.tar.gz: 0fcdb7d46f331bb596466b4b75835e33ad4dc9d0d45aca32465960410ee95582fd1f8b0faf91a53c3387ae842d07fff74b5cf89b45ad851d68e605b5879bbb88
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiHeaderOptimizer
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -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
- class Error < StandardError; end
10
- # Your code goes here...
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2024-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http