octokit 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -147,7 +147,7 @@ module Octokit
147
147
  # => false
148
148
  def organization_member?(org, user, options = {})
149
149
  result = boolean_from_response(:get, "orgs/#{org}/members/#{user}", options)
150
- if last_response.status == 302
150
+ if !result && last_response && last_response.status == 302
151
151
  boolean_from_response :get, last_response.headers['Location']
152
152
  else
153
153
  result
@@ -2,6 +2,6 @@ module Octokit
2
2
 
3
3
  # Current version
4
4
  # @return [String]
5
- VERSION = "2.1.0".freeze
5
+ VERSION = "2.1.1".freeze
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: