git_hub_bub 1.0.0 → 1.0.1

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
- SHA1:
3
- metadata.gz: 518d845dbf010b33a1546a348be457d3a4e723f9
4
- data.tar.gz: a85619661ec24c4db8c4aa0195a3bf4854476de4
2
+ SHA256:
3
+ metadata.gz: b99f20d88fb45334555be481192824a663b56834c77bdd8f66bb79172b129455
4
+ data.tar.gz: aa099a50aa5e657d2377c8d151d811e99720d41e4678097b9973b0d4a847d8c5
5
5
  SHA512:
6
- metadata.gz: 6b1f5dc7564d79e64185e3cbc630d46dfd36629ed1c8bcf8f2bac89a08c72a1fdfc36a0d604a640c701ecfe2c38dbfdc60b139d87c333ebce93549e12c805606
7
- data.tar.gz: 2f95ab080a40d436bc80fcafeb4b93e336544643b28ebce4eb66b5a69d3e75af45bdcd64d09a53679152e4d083c103024e7f17a8ca99c8cfbae969ed4b4eb4d5
6
+ metadata.gz: ef2dbcabddf20e7cf6a9edef66d388203611afe876ff4fdc304e35de2af5a9e19189d773da365d4e9405a375353408accfd57038599c6df96421af48310f59fe
7
+ data.tar.gz: '0428e888f112051cab2d5d952305f39a747d662e43b2b4fe4ed43a7d5635f46aaad4b72a5b84f9f39c24969bacbc38c75f919f5936b10608b68f46f7ca7d0498'
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # GitHubBub
2
2
 
3
3
  [![Build Status](https://travis-ci.org/schneems/git_hub_bub.svg?branch=master)](https://travis-ci.org/schneems/git_hub_bub)
4
+ [![Help Contribute to Open Source](https://www.codetriage.com/schneems/git_hub_bub/badges/users.svg)](https://www.codetriage.com/schneems/git_hub_bub)
4
5
 
5
6
  A low level GitHub client that makes the disgusting issue of header based url pagination simple.
6
7
 
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## 1.0.1
6
+
7
+ - Fix callbacks triggered from `valid_token?` now report that the request was made with a token.
8
+
5
9
  ## 1.0.0
6
10
 
7
11
  - Exceptions no longer raised on non 200 responses [#2]
@@ -119,7 +119,7 @@ module GitHubBub
119
119
  elsif options[:query] && token = options[:query].delete(:token)
120
120
  token
121
121
  else
122
- nil
122
+ skip_token?
123
123
  end
124
124
  end
125
125
  alias :token? :token
@@ -1,3 +1,3 @@
1
1
  module GitHubBub
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -14,8 +14,15 @@ class ValidTokenTest < Test::Unit::TestCase
14
14
 
15
15
  GitHubBub::Request.any_instance.expects(:token).never
16
16
 
17
+ GitHubBub::Request.set_before_callback do |request|
18
+ if request.token?
19
+ # Should be true for this call
20
+ else
21
+ raise "nope"
22
+ end
23
+ end
24
+
17
25
  GitHubBub.valid_token?(token)
18
26
  assert_requested stub_get
19
27
  end
20
-
21
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_hub_bub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rrrretry
@@ -185,8 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.6.13
188
+ rubygems_version: 3.0.3
190
189
  signing_key:
191
190
  specification_version: 4
192
191
  summary: git_hub_bub makes github requests