ids_please 2.2.1 → 2.2.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: 728f2add26771adaaedbb2afb42fa59126e19a10
4
- data.tar.gz: 56285e208b28c26303362a8070b3e538eecac37a
3
+ metadata.gz: 62a9cb49b628181835beea63508837da69571f48
4
+ data.tar.gz: eae92513b9f7749a4f6f07a10e8b35280843540b
5
5
  SHA512:
6
- metadata.gz: a26e536a30e7461fd9396df7d1db9806affb1c9212fdc4850eb853588a706b705c2b16c5f012cff8c7d04be30e88408ffbcea8f28967109d1ef7f81c1995eaec
7
- data.tar.gz: d051a8a184798fc5d080f65db17bc78ce265e6030748923c3a6e6f0599154342ec1ec1de626ddb077c934c086015ea59d8d0b7d68c626c53113f26306e70a75d
6
+ metadata.gz: 29a0fc45f8bee0e7354375ab0809e9dfd53880103fdc47237a0dff0e38dc6ffbac4c78059b700dbd8d117fe2e6313c9145a1cc892f4930974b7dcde3d6546fe3
7
+ data.tar.gz: 2e7ea250e199c969a39d8fd7dc1691bf499dbf5bd72639eb6ea4120e7634dd1eb8e44fb582909648df4d0ae91a2863e2150477fc7cd6b0fcf959edc0675a971c
@@ -1,10 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
5
4
  - 2.1.0
6
5
  - 2.1.1
7
- - jruby-19mode # JRuby in 1.9 mode
8
6
  - rbx
9
7
  matrix:
10
8
  allow_failures:
@@ -30,7 +30,7 @@ class IdsPlease
30
30
  private
31
31
 
32
32
  def find_network_id
33
- find_by_regex(/"user":{.+"id":"(\d+)"/)
33
+ find_by_regex(/"id":"(\d+)","biography"/)
34
34
  rescue => e
35
35
  record_error __method__, e.message
36
36
  return nil
@@ -54,21 +54,21 @@ class IdsPlease
54
54
  end
55
55
 
56
56
  def find_username
57
- find_by_regex(/"user":{"username":"([^"]+)"/).gsub('\\', '')
57
+ find_by_regex(/"user":{"username":"([^"]+)"/).to_s.gsub('\\', '')
58
58
  rescue => e
59
59
  record_error __method__, e.message
60
60
  return nil
61
61
  end
62
62
 
63
63
  def find_bio
64
- CGI.unescapeHTML(find_by_regex(/"biography":"([^"]+)"/)).strip
64
+ CGI.unescapeHTML(find_by_regex(/"biography":"([^"]+)"/).to_s).strip
65
65
  rescue => e
66
66
  record_error __method__, e.message
67
67
  return nil
68
68
  end
69
69
 
70
70
  def find_website
71
- CGI.unescapeHTML(find_by_regex(/"user":{.+"external_url":"([^"]+)"/).gsub('\\', '')).strip
71
+ CGI.unescapeHTML(find_by_regex(/"user":{.+"external_url":"([^"]+)"/).to_s.gsub('\\', '')).strip
72
72
  rescue => e
73
73
  record_error __method__, e.message
74
74
  return nil
@@ -1,5 +1,5 @@
1
1
  class IdsPlease
2
2
 
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'
4
4
 
5
5
  end
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: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.4.5.1
112
+ rubygems_version: 2.5.1
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Helps to get ids or screen names from links to social network accounts