url_tokenizer 1.0.0 → 1.1.0

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
  SHA1:
3
- metadata.gz: 5fdd3a419c739b8840bd1c1ea41b18b7e1a5e19e
4
- data.tar.gz: febfe493f75ce87261502adc4c30f03ac306e209
3
+ metadata.gz: ac14664d78f52e2456f5a3a9a1119045fdd3ea3d
4
+ data.tar.gz: 0a23f72c0fffe23f1df75752cbcc11cba2e341a3
5
5
  SHA512:
6
- metadata.gz: 260223b738f2c64e795f841f1c699a9c9ca364f63bf6c30b5bb8697581341f60ceef617a5c401f9dfedc18917098774d1d74aa150104d7f6e8d045471ebe6185
7
- data.tar.gz: 75cb41236638de862a9f5f631df8bb480a8999219569adafb17c9e20eca1bd42103670bdee99b15ca3313a8d428c66482e8fc52776f6bbf59db5d05e25c19152
6
+ metadata.gz: 678fbf55bb2d2eea02a799ca2fb12c090f0d5b94367db64217f34387ab6caa84e71f92b1a02c2b15fd9f8420bd657211ccb2e8ae28542cf0b48fd012b619d00d
7
+ data.tar.gz: 3626aa3f6d16ce8e5098196e44c98deb8b488e7b9f605c9becb96dd7f3b16cf39ea4ad69818b33c7afd89d7030197295446c48ca019a6934e4cc3036a92bbc4c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -6,6 +6,7 @@ require_relative 'provider'
6
6
  module UrlTokenizer
7
7
  class CDN77 < Provider
8
8
  def call(input_url, **options)
9
+ options = global_options.merge options
9
10
  uri = URI.parse input_url
10
11
  path = uri.path
11
12
  return if path.empty? || path == '/'
@@ -9,6 +9,7 @@ module UrlTokenizer
9
9
  PARAMS = %i[e h p cf cd]
10
10
 
11
11
  def call(input_url, **options)
12
+ options = global_options.merge options
12
13
  uri = URI.parse input_url
13
14
  folder = File.dirname input_url
14
15
 
@@ -1,8 +1,8 @@
1
1
  module UrlTokenizer
2
2
  class Provider
3
- def initialize(key, **provider_options)
3
+ def initialize(key, **global_options)
4
4
  @key = key
5
- @provider_options = provider_options
5
+ @global_options = global_options
6
6
  end
7
7
 
8
8
  def call(input_url, **options)
@@ -10,6 +10,6 @@ module UrlTokenizer
10
10
  end
11
11
 
12
12
  private
13
- attr_reader :key, :provider_options
13
+ attr_reader :key, :global_options
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Paramonov