diff options
author | Valery Sizov <valery@gitlab.com> | 2016-12-15 14:19:28 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-12-15 14:19:28 +0200 |
commit | 26628fb91a89bbe4998633eec00d2bd76cfb95c0 (patch) | |
tree | 561248da78a0d12ca64f528c94d5ee16d88cdb94 /lib/bitbucket/connection.rb | |
parent | 076cdd204459496d7cdd14b86838c2c2c7875cd4 (diff) | |
download | gitlab-ce-26628fb91a89bbe4998633eec00d2bd76cfb95c0.tar.gz |
BB importer: Fixed bug with putting expired token to a project.clone_url
Diffstat (limited to 'lib/bitbucket/connection.rb')
-rw-r--r-- | lib/bitbucket/connection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/connection.rb b/lib/bitbucket/connection.rb index c150a20761e..7e55cf4deab 100644 --- a/lib/bitbucket/connection.rb +++ b/lib/bitbucket/connection.rb @@ -4,6 +4,8 @@ module Bitbucket DEFAULT_BASE_URI = 'https://api.bitbucket.org/' DEFAULT_QUERY = {} + attr_reader :expires_at, :expires_in, :refresh_token, :token + def initialize(options = {}) @api_version = options.fetch(:api_version, DEFAULT_API_VERSION) @base_uri = options.fetch(:base_uri, DEFAULT_BASE_URI) @@ -38,8 +40,6 @@ module Bitbucket private - attr_reader :expires_at, :expires_in, :refresh_token, :token - def client @client ||= OAuth2::Client.new(provider.app_id, provider.app_secret, options) end |