ids_please 1.0.3 → 1.0.4

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: 97a211f18ddb17567b78304664710923dc26b2ec
4
- data.tar.gz: b4634b22f652c619e1a44a7742e257d8cc446561
3
+ metadata.gz: b150b28348511e43fc3c4837d365e3e8c2cc4557
4
+ data.tar.gz: b344f737d79576cba3e40630bb1a6ca94337339f
5
5
  SHA512:
6
- metadata.gz: 6f9760856b7202fd99abb68b315b2b81c3675d42e320034ddb02216924d383f0132370cabc7df536ca7798899c042bf5561d57199c87c669922b26ad006cf374
7
- data.tar.gz: ac7cb51fc7086062251539758cbf440305a50c961b3f7432f94c7ee928b40e7df74264eaa6dd05192c69aa82d44ba5f97db685d7c3724ce5a5bb908c2da9210e
6
+ metadata.gz: c1b66fd4ccbd81608922f35b40b567562dda844d0bfc00b386f7a461f6e70e82a6bd2ad0d93a34d210607c2fa2d037f9b57cb1cc941987e8d271fee7316323cf
7
+ data.tar.gz: 3319b17b71d9de2fac1a6ff2fa554f637a0cfb89888fb0394b4995734c6141a12f0bdfb0e49535795c59f8ad9cc20aadaba0ca5587da1fe538a60ca863fddbb6
@@ -14,7 +14,7 @@ class IdsPlease
14
14
  private
15
15
 
16
16
  def self.parse_link(link)
17
- if matched = link.path.match(/\/\+(\w+)/)
17
+ if matched = link.path.match(/\/(\+\w+)/)
18
18
  matched[1]
19
19
  elsif matched = link.path.match(/\/(\d{2,})/)
20
20
  matched[1]
@@ -4,7 +4,7 @@ class IdsPlease
4
4
  MASK = /youtu\.be|youtube/i
5
5
 
6
6
  def self.parse_link(link)
7
- if link.path =~ /channels/
7
+ if link.path =~ /channels|user/
8
8
  link.path.split('/')[2]
9
9
  else
10
10
  link.path.split('/')[1]
data/lib/ids_please.rb CHANGED
@@ -14,7 +14,7 @@ require_relative 'ids_please/odnoklassniki'
14
14
 
15
15
  class IdsPlease
16
16
 
17
- VERSION = '1.0.3'
17
+ VERSION = '1.0.4'
18
18
 
19
19
  attr_accessor :original, :recognized, :unrecognized, :parsed
20
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ids_please
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: byebug
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Helps to get ids or screen names from links to social network accounts
@@ -59,7 +59,7 @@ extensions: []
59
59
  extra_rdoc_files:
60
60
  - LICENSE
61
61
  files:
62
- - ".gitignore"
62
+ - .gitignore
63
63
  - Gemfile
64
64
  - LICENSE
65
65
  - README.md
@@ -85,22 +85,22 @@ licenses:
85
85
  metadata: {}
86
86
  post_install_message:
87
87
  rdoc_options:
88
- - "--charset=UTF-8"
88
+ - --charset=UTF-8
89
89
  require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ">="
98
+ - - '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.2.2
103
+ rubygems_version: 2.0.14
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Helps to get ids or screen names from links to social network accounts