ghuls-lib 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ghuls/lib.rb +4 -2
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 102093dcd4885364ae980211bb0b7d130f1998db
4
- data.tar.gz: d974374badf3cd48272ed08e1aedf8eb8dbe3ac5
3
+ metadata.gz: 25fe69545a80b592c5a8e44ca7bfb0daa13add31
4
+ data.tar.gz: 4d5011fddd274dedc9d3b62ea6a501fecac831b7
5
5
  SHA512:
6
- metadata.gz: 864033d4bd82052ce0507d2ba25aaa4d9ef8f79d48cd5864b7df7a5fc8674c79717b091e8b200c9dfa44a3cfb56227b33de56dedca30423a67302326b49c5621
7
- data.tar.gz: 3ee61f6e3f7f015ec0d590e08d19c91112ea1be9ea045b296ffc55f295776d85fbd5ae22731027c036b56785763f083164b02b37d82b5e2e1b1a1035a4be169d
6
+ metadata.gz: 3bb066e85ee7dee9e17df9b417965b6b2da7d12bbbb83f17919a9947f4e03739fbec498191c42bd6b6589fb0cd5954e32cef78fe97ab4edf4ae54300704de265
7
+ data.tar.gz: 166b10a99f213a31a262edd41e2a4df7e5a5aa6fad9bb9fb2464cd0e2a2a699fda381eeb88709a923878ee44f1fd7a459428ab89a2e9a0f8a39c49f8f9b9337c
data/lib/ghuls/lib.rb CHANGED
@@ -242,7 +242,9 @@ module GHULS
242
242
  '&type=Users&ref=searchresults').read
243
243
  continue = false
244
244
  until continue
245
- userid = rand(source[/Showing (.*?) available users/, 1].to_i_separated)
245
+ # Really, GitHub? and not '?
246
+ max = source[/We['’]ve found (.*?) users/] || source[/Showing (.*?) available users/]
247
+ userid = rand(max.to_i_separated)
246
248
  user = get_user_and_check(userid, github)
247
249
  continue = true if user != false && !get_user_langs(user, github).empty?
248
250
  end
@@ -283,4 +285,4 @@ module GHULS
283
285
  }
284
286
  end
285
287
  end
286
- end
288
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghuls-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-15 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 4.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
26
+ version: 4.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: string-utility
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.6.1
33
+ version: 2.7.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.6.1
40
+ version: 2.7.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: net-http-persistent
43
43
  requirement: !ruby/object:Gem::Requirement