geppetto 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/geppetto CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
+
5
+ require 'rubygems'
3
6
  require 'geppetto'
4
7
  require 'geppetto/cli'
5
8
 
@@ -18,6 +21,7 @@ dev: &defaults
18
21
  secret: <-- YOUR APP SECRET -->
19
22
  # http://developers.facebook.com/docs/authentication/permissions/
20
23
  default_permissions: [read_stream, offline_access, publish_stream, friends_hometown, friends_location]
24
+ app_url: <-- YOUR APP URL LOCATION FOR OAUTH -->
21
25
  qa:
22
26
  app_id: <-- YOUR APP ID -->
23
27
  secret: <-- YOUR APP SECRET -->
data/lib/geppetto/cli.rb CHANGED
@@ -198,6 +198,9 @@ module Geppetto
198
198
  max_key_width = hash.keys.collect{|key| key.size}.max
199
199
  format_string = "%#{max_key_width}s: %s"
200
200
  hash.each{|key,value| say format(format_string, key, value)}
201
+ if hash.has_key?('access_token')
202
+ say format(format_string, 'app_login', "#{Settings[options.env]['app_url']}?access_token=#{hash['access_token']}&expires_in=0")
203
+ end
201
204
  say "-" * 80
202
205
  end
203
206
 
@@ -1,3 +1,3 @@
1
1
  module Geppetto
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.3'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geppetto
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Georges Auberger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-26 00:00:00 -07:00
18
+ date: 2011-04-01 00:00:00 -07:00
19
19
  default_executable: geppetto
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency