Sha256: 63a15f46f4bf917fdd89c81cb27a16894379c37fb0eed5628fca635e2ee179ee

Contents?: true

Size: 587 Bytes

Versions: 15

Compression:

Stored size: 587 Bytes

Contents

# see https://www.firebase.com/docs/ios/guide/login/github.html for more info
# (that's where this code came from)
class Firebase
  def self.github_token=(value)
    @github_token = value
  end
  def self.github_token
    @github_token
  end
  def self.open_github_session(options={}, &block)
    self.new.open_github_session(options={}, &block)
  end

  def open_github_session(options={}, &block)
    ref = self
    token = options[:token] || Firebase.github_token
    raise "token is required in #{__method__}" unless token
    firebase_ref.login_to_github('github', token)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motion-firebase-4.0.0 lib/firebase/firebase_github_helper.rb
motion-firebase-3.2.1 lib/firebase/firebase_github_helper.rb
motion-firebase-3.3.0 lib/firebase/firebase_github_helper.rb
motion-firebase-3.2.0 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.8 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.6 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.5 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.4 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.3 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.2 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.1 lib/firebase/firebase_github_helper.rb
motion-firebase-3.1.0 lib/firebase/firebase_github_helper.rb
motion-firebase-3.0.2 lib/firebase/firebase_github_helper.rb
motion-firebase-3.0.1 lib/firebase/firebase_github_helper.rb
motion-firebase-3.0.0 lib/firebase/firebase_github_helper.rb