Sha256: 85f800acc387b9b84ba34abce6f37bcba21725a5fb1b831e5f71eedf75c5b908

Contents?: true

Size: 378 Bytes

Versions: 21

Compression:

Stored size: 378 Bytes

Contents

module TestingAdapter
  require 'dotenv'
  def setup
    Dotenv.load
    @client = Gecko::Client.new(ENV["OAUTH_ID"], ENV["OAUTH_SECRET"], {
      site:          'http://api.lvh.me:3000',
      authorize_url: 'http://go.lvh.me:3000/oauth/authorize'
    })
    @client.authorize_from_existing(ENV["ACCESS_TOKEN"], ENV["REFRESH_TOKEN"], Time.at(ENV["EXPIRES_AT"].to_i))
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 test/support/testing_adapter.rb
gecko-ruby-0.9.0 test/support/testing_adapter.rb
gecko-ruby-0.8.0 test/support/testing_adapter.rb
gecko-ruby-0.2.6 test/support/testing_adapter.rb
gecko-ruby-0.7.1 test/support/testing_adapter.rb
gecko-ruby-0.7.0 test/support/testing_adapter.rb
gecko-ruby-0.6.0 test/support/testing_adapter.rb
gecko-ruby-0.5.0 test/support/testing_adapter.rb
gecko-ruby-0.2.5 test/support/testing_adapter.rb
gecko-ruby-0.2.4 test/support/testing_adapter.rb
gecko-ruby-0.2.3 test/support/testing_adapter.rb
gecko-ruby-0.2.2 test/support/testing_adapter.rb
gecko-ruby-0.2.0 test/support/testing_adapter.rb
gecko-ruby-0.1.0 test/support/testing_adapter.rb
gecko-ruby-0.0.10 test/support/testing_adapter.rb
gecko-ruby-0.0.9 test/support/testing_adapter.rb
gecko-ruby-0.0.8 test/support/testing_adapter.rb
gecko-ruby-0.0.7 test/support/testing_adapter.rb
gecko-ruby-0.0.6 test/support/testing_adapter.rb
gecko-ruby-0.0.5 test/support/testing_adapter.rb