ids_please 1.1.2 → 1.1.3

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: 2563bc68989af61c07fed3ae3aa6b83f4fd3edf7
4
- data.tar.gz: 143168487275f9279ed6ae20c3ed1179b617a178
3
+ metadata.gz: e5eca1145eebcc3de34629dfb04d82a733c1a737
4
+ data.tar.gz: 36b3e6f8320c943ede668c906c4b08aeeb5b10c0
5
5
  SHA512:
6
- metadata.gz: 5fce58da3aa1dd694d2b49cf72a5e6cad49040b3019f4cfc3a7d53c440197ce38c4f0da738e83ed7a80e231ec623d6c796e1c39bcd124805eec2d52a0c507dd9
7
- data.tar.gz: 51029fee3695d74aac8c41c8eab85505054b30db35fcaaba71d7b1d93185434bff777142690d788d05a34983e8c82a5e19f0b4414527218deccf3b476ae1f865
6
+ metadata.gz: e8894284b0833ef54e1e2b66da26938955329afb3457b11aab9768ed11ecb080eda0ff99053fdcf3d4bd720b7441ca7822198c41ab149ff8c008b064d2382622
7
+ data.tar.gz: 01a9e20f8ac53f8e776e17f04b7fb86bc713b38cf54aad8a0ae378e70e724878461bdea12f25cc302d395a6c3a646ace44dffbc03089898375680b14b0e6458a
@@ -11,8 +11,8 @@ class IdsPlease
11
11
  private
12
12
 
13
13
  def parse_link(link)
14
- if link.path =~ /id|club/
15
- id = link.path.sub(/\A\/id|\A\/club/, '')
14
+ if link.path =~ /id|club|public/
15
+ id = link.path.sub(/\A\/id|\A\/club|\A\/public/, '')
16
16
  id.split(/[\/\?#]/).first
17
17
  else
18
18
  link.path.split('/')[1]
data/lib/ids_please.rb CHANGED
@@ -22,7 +22,7 @@ require_relative 'ids_please/moikrug'
22
22
 
23
23
  class IdsPlease
24
24
 
25
- VERSION = '1.1.2'
25
+ VERSION = '1.1.3'
26
26
 
27
27
  attr_accessor :original, :unrecognized, :parsed
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ids_please
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-15 00:00:00.000000000 Z
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake