fuselage 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib cockpit]))
1
+ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib fuselage]))
2
2
 
3
3
  include Fuselage
4
4
 
data/examples/simple.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib cockpit]))
1
+ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib fuselage]))
2
2
 
3
3
  include Fuselage
4
4
 
data/lib/fuselage/user.rb CHANGED
@@ -8,9 +8,9 @@ module Fuselage
8
8
  :private_gist_count, :collaborators, :plan,
9
9
  :owned_private_repo_count, :total_private_repo_count
10
10
 
11
- #TODO Send scopes
11
+
12
12
  def self.get_access_token(client_id, client_secret, code)
13
- responce = Api.api.post('https://github.com/login/oauth/access_token', {:client_id => client_id, :client_secret => client_secret, :code => code})
13
+ responce = Api.api.post("https://github.com/login/oauth/access_token?client_id=#{client_id}&client_secret=#{client_secret}&code=#{code}")
14
14
  if responce.body != 'error=bad_verification_code'
15
15
  access_token = responce.body.match(/\Aaccess_token=(\S+)&/)[1] rescue nil
16
16
  return access_token
@@ -1,3 +1,3 @@
1
1
  module Fuselage
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fuselage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Corey Collins
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-20 00:00:00 Z
13
+ date: 2011-07-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec