ids_please 1.1.1 → 1.1.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: 26c46bd87c6161d008f9f271aa4e784e701be728
4
- data.tar.gz: f8c670dc5783dd145189c2c8b1ef0fd7cb2825e1
3
+ metadata.gz: 2563bc68989af61c07fed3ae3aa6b83f4fd3edf7
4
+ data.tar.gz: 143168487275f9279ed6ae20c3ed1179b617a178
5
5
  SHA512:
6
- metadata.gz: 7f4a8d777e9d1c8c8270e9d48a596e0bee359a53b7f78b6cce90a138b8e71260d2ce20bfda2ab7a0b192eeca364be881c5cf947bb547303da92ffee16db36789
7
- data.tar.gz: 57712f6e90931fc6489f81728e9d20dc667d58a5d2a0a624c291771f1447e2a28804dee8310c3db3bd98f352a0a68464379b0b05fb707e23ffd805d87c17cf62
6
+ metadata.gz: 5fce58da3aa1dd694d2b49cf72a5e6cad49040b3019f4cfc3a7d53c440197ce38c4f0da738e83ed7a80e231ec623d6c796e1c39bcd124805eec2d52a0c507dd9
7
+ data.tar.gz: 51029fee3695d74aac8c41c8eab85505054b30db35fcaaba71d7b1d93185434bff777142690d788d05a34983e8c82a5e19f0b4414527218deccf3b476ae1f865
@@ -11,7 +11,7 @@ class IdsPlease
11
11
 
12
12
  if query && !query['id'].empty?
13
13
  query['id'].first
14
- elsif link.path =~ /\/pub\//
14
+ elsif link.path =~ /\/in\//
15
15
  link.path.split('/')[2]
16
16
  end
17
17
  end
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.1'
25
+ VERSION = '1.1.2'
26
26
 
27
27
  attr_accessor :original, :unrecognized, :parsed
28
28
 
@@ -14,7 +14,7 @@ describe IdsPlease do
14
14
  http://livejournal-acc2.livejournal.ru
15
15
  https://www.blogger.com/blogger.g?blogID=12341234#overview/src=dashboard
16
16
  http://vk.com/vk_acc
17
- http://linkedin.com/pub/linkedin_acc
17
+ http://linkedin.com/in/xnutsive
18
18
  http://www.linkedin.com/profile/view?id=12341234&trk=nav_responsive_tab_profile
19
19
  http://Ameblo.jp/ameba_acc
20
20
  http://reddit.com/user/reddit_acc
@@ -167,7 +167,7 @@ describe IdsPlease do
167
167
  end
168
168
 
169
169
  it 'get right id from linkedin link' do
170
- expect(@recognizer.parsed[:linkedin]).to eq(['linkedin_acc', '12341234'])
170
+ expect(@recognizer.parsed[:linkedin]).to eq(['xnutsive', '12341234'])
171
171
  end
172
172
 
173
173
  it 'get right id from instagram link' do
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake