facebooker 1.0.59 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/facebooker.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{facebooker}
5
- s.version = "1.0.59"
5
+ s.version = "1.0.60"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chad Fowler", "Patrick Ewing", "Mike Mangino", "Shane Vitarana", "Corey Innis", "Mike Mangino"]
9
- s.date = %q{2010-01-15}
9
+ s.date = %q{2010-01-22}
10
10
  s.description = %q{Facebooker is a Ruby wrapper over the Facebook[http://facebook.com] {REST API}[http://wiki.developers.facebook.com/index.php/API]. Its goals are:
11
11
 
12
12
  * Idiomatic Ruby
@@ -11,8 +11,8 @@ module Facebooker
11
11
  include Model
12
12
  attr_accessor :message, :time, :status_id
13
13
  end
14
- FIELDS = [:status, :political, :pic_small, :name, :quotes, :is_app_user, :tv, :profile_update_time, :meeting_sex, :hs_info, :timezone, :relationship_status, :hometown_location, :about_me, :wall_count, :significant_other_id, :pic_big, :music, :work_history, :sex, :religion, :notes_count, :activities, :pic_square, :movies, :has_added_app, :education_history, :birthday, :birthday_date, :first_name, :meeting_for, :last_name, :interests, :current_location, :pic, :books, :affiliations, :locale, :profile_url, :proxied_email, :email_hashes, :allowed_restrictions, :pic_with_logo, :pic_big_with_logo, :pic_small_with_logo, :pic_square_with_logo, :online_presence, :verified, :profile_blurb, :username, :website, :is_blocked, :family]
15
- STANDARD_FIELDS = [:uid, :first_name, :last_name, :name, :timezone, :birthday, :sex, :affiliations, :locale, :profile_url, :proxied_email]
14
+ FIELDS = [:status, :political, :pic_small, :name, :quotes, :is_app_user, :tv, :profile_update_time, :meeting_sex, :hs_info, :timezone, :relationship_status, :hometown_location, :about_me, :wall_count, :significant_other_id, :pic_big, :music, :work_history, :sex, :religion, :notes_count, :activities, :pic_square, :movies, :has_added_app, :education_history, :birthday, :birthday_date, :first_name, :meeting_for, :last_name, :interests, :current_location, :pic, :books, :affiliations, :locale, :profile_url, :proxied_email, :email_hashes, :allowed_restrictions, :pic_with_logo, :pic_big_with_logo, :pic_small_with_logo, :pic_square_with_logo, :online_presence, :verified, :profile_blurb, :username, :website, :is_blocked, :family, :email]
15
+ STANDARD_FIELDS = [:uid, :first_name, :last_name, :name, :timezone, :birthday, :sex, :affiliations, :locale, :profile_url, :proxied_email, :email]
16
16
  populating_attr_accessor(*FIELDS)
17
17
  attr_reader :affiliations
18
18
  populating_hash_settable_accessor :current_location, Location
@@ -7,8 +7,8 @@ ActionController::Dispatcher.middleware.insert_before(
7
7
  Rack::Facebook
8
8
  )
9
9
 
10
- # ActionController::Dispatcher.middleware.insert_before(
11
- # ActionController::Base.session_store,
12
- # Rack::FacebookSession,
13
- # lambda { ActionController::Base.session_options[:key] }
14
- # )
10
+ ActionController::Dispatcher.middleware.insert_before(
11
+ ActionController::Base.session_store,
12
+ Rack::FacebookSession,
13
+ ActionController::Base.session_options[:key]
14
+ )
@@ -2,7 +2,7 @@ module Facebooker #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 59
5
+ TINY = 60
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -5,7 +5,7 @@ module Rack
5
5
 
6
6
  FACEBOOK_SESSION_KEY = 'fb_sig_session_key'
7
7
 
8
- def initialize(app, session_key = lambda { '_session_id' })
8
+ def initialize(app, session_key = '_session_id')
9
9
  @app = app
10
10
  @session_key = session_key
11
11
  end
@@ -13,8 +13,8 @@ module Rack
13
13
  def call(env)
14
14
  req = Rack::Request.new(env)
15
15
  key = req.POST[FACEBOOK_SESSION_KEY] || req.GET[FACEBOOK_SESSION_KEY]
16
- env['HTTP_COOKIE'] = [ @session_key.call, key ].join('=').freeze unless key.nil?
17
-
16
+ env['HTTP_COOKIE'] = [ @session_key, key ].join('=').freeze unless key.nil?
17
+
18
18
  @app.call(env)
19
19
  end
20
20
  end
@@ -11,7 +11,7 @@ class Rack::FacebookSessionTest < Test::Unit::TestCase
11
11
  Rack::Response.new().to_a
12
12
  end
13
13
 
14
- @facebook = Rack::FacebookSession.new(@app, lambda { '_top_sekrit' })
14
+ @facebook = Rack::FacebookSession.new(@app, '_top_sekrit')
15
15
  end
16
16
 
17
17
  def params(p)
data/test/test_helper.rb CHANGED
@@ -13,7 +13,7 @@ rescue LoadError
13
13
  # multi rails not installed, test against newest supported version of Rails
14
14
  gem 'rails', '2.3.5'
15
15
  end
16
- require 'activesupport'
16
+ require 'active_support'
17
17
  require 'flexmock/test_unit'
18
18
  require 'mocha'
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebooker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.59
4
+ version: 1.0.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Fowler
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-01-15 00:00:00 -05:00
17
+ date: 2010-01-22 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency