url_tokenizer 1.4.1 → 1.4.2

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: 0b38bbceef67b8c85d17c007c5694c43290534b7
4
- data.tar.gz: 06c17c6224676ce7a1cb7c357a73ed33dac7c10d
3
+ metadata.gz: ce71b791043ba196b8bab578a4eadafe383af62d
4
+ data.tar.gz: 4b4e349346adc59a2c15623c1de0ac2e52c472af
5
5
  SHA512:
6
- metadata.gz: 5152866ea91f8191994f1dae2a59e207cb4686453b9883d49a79f96d801ae606f23726480feefcedb93f5217bf5aa2336efef72a860d5bb692740cd01d8c3788
7
- data.tar.gz: f5650009ba475483a5c1f9438fa71198428e6506308b79cc412136a637a34d1dc61c4f9701ff37eef07d52429b6b5fcb00c9b760a6efe8bb417d3ba193dd303a
6
+ metadata.gz: 5330592516c1d0da639877fba4983d39832d639caa65e084dca1d2d2441e0e39f65626fddba752d4978007bbfa53d65410aa9372367eba912b2456802aa8d5a8
7
+ data.tar.gz: b2a1e8d5279e1c21090fbe5fbfbde022224f14b05f2de04d12400a1db457ab4d16c882c5e77ac1e986579e2d0d637b5af7b76e509d809416c2a408d0af2df72d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
@@ -22,7 +22,7 @@ module UrlTokenizer
22
22
 
23
23
  def string_to_tokenize(uri)
24
24
  query = parse_query_string(uri)
25
- return query['chname'] if query.include?('chname')
25
+ return uri.path[0..-(File.extname(uri.path).length + 1)] if query.key?('pub')
26
26
 
27
27
  File.dirname(uri.path)
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Paramonov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-15 00:00:00.000000000 Z
11
+ date: 2017-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facets
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.4.5
171
+ rubygems_version: 2.6.10
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Tokenize url by variety of providers.