facebooker-lite 1.0.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/.autotest +15 -0
  2. data/CHANGELOG.rdoc +24 -0
  3. data/COPYING.rdoc +19 -0
  4. data/Manifest.txt +114 -0
  5. data/README.rdoc +120 -0
  6. data/Rakefile +94 -0
  7. data/TODO.rdoc +4 -0
  8. data/facebooker.gemspec +42 -0
  9. data/generators/xd_receiver/templates/xd_receiver.html +10 -0
  10. data/generators/xd_receiver/templates/xd_receiver_ssl.html +10 -0
  11. data/generators/xd_receiver/xd_receiver_generator.rb +10 -0
  12. data/init.rb +25 -0
  13. data/install.rb +12 -0
  14. data/lib/facebooker.rb +261 -0
  15. data/lib/facebooker/adapters/adapter_base.rb +91 -0
  16. data/lib/facebooker/adapters/bebo_adapter.rb +77 -0
  17. data/lib/facebooker/adapters/facebook_adapter.rb +60 -0
  18. data/lib/facebooker/admin.rb +42 -0
  19. data/lib/facebooker/application.rb +37 -0
  20. data/lib/facebooker/attachment.rb +51 -0
  21. data/lib/facebooker/batch_request.rb +45 -0
  22. data/lib/facebooker/data.rb +57 -0
  23. data/lib/facebooker/feed.rb +78 -0
  24. data/lib/facebooker/logging.rb +44 -0
  25. data/lib/facebooker/mobile.rb +20 -0
  26. data/lib/facebooker/mock/service.rb +50 -0
  27. data/lib/facebooker/mock/session.rb +18 -0
  28. data/lib/facebooker/model.rb +139 -0
  29. data/lib/facebooker/models/affiliation.rb +10 -0
  30. data/lib/facebooker/models/album.rb +11 -0
  31. data/lib/facebooker/models/applicationproperties.rb +39 -0
  32. data/lib/facebooker/models/applicationrestrictions.rb +10 -0
  33. data/lib/facebooker/models/comment.rb +9 -0
  34. data/lib/facebooker/models/cookie.rb +10 -0
  35. data/lib/facebooker/models/education_info.rb +11 -0
  36. data/lib/facebooker/models/event.rb +28 -0
  37. data/lib/facebooker/models/family_relative_info.rb +7 -0
  38. data/lib/facebooker/models/friend_list.rb +16 -0
  39. data/lib/facebooker/models/group.rb +36 -0
  40. data/lib/facebooker/models/info_item.rb +10 -0
  41. data/lib/facebooker/models/info_section.rb +10 -0
  42. data/lib/facebooker/models/location.rb +8 -0
  43. data/lib/facebooker/models/message_thread.rb +89 -0
  44. data/lib/facebooker/models/notifications.rb +17 -0
  45. data/lib/facebooker/models/page.rb +46 -0
  46. data/lib/facebooker/models/photo.rb +19 -0
  47. data/lib/facebooker/models/tag.rb +12 -0
  48. data/lib/facebooker/models/user.rb +751 -0
  49. data/lib/facebooker/models/video.rb +9 -0
  50. data/lib/facebooker/models/work_info.rb +10 -0
  51. data/lib/facebooker/parser.rb +970 -0
  52. data/lib/facebooker/rails/backwards_compatible_param_checks.rb +31 -0
  53. data/lib/facebooker/rails/controller.rb +353 -0
  54. data/lib/facebooker/rails/extensions/action_controller.rb +47 -0
  55. data/lib/facebooker/rails/extensions/rack_setup.rb +16 -0
  56. data/lib/facebooker/rails/extensions/routing.rb +15 -0
  57. data/lib/facebooker/rails/facebook_pretty_errors.rb +22 -0
  58. data/lib/facebooker/rails/facebook_request_fix.rb +28 -0
  59. data/lib/facebooker/rails/facebook_request_fix_2-3.rb +31 -0
  60. data/lib/facebooker/rails/facebook_session_handling.rb +68 -0
  61. data/lib/facebooker/rails/facebook_url_rewriting.rb +60 -0
  62. data/lib/facebooker/rails/helpers/fb_connect.rb +75 -0
  63. data/lib/facebooker/rails/integration_session.rb +38 -0
  64. data/lib/facebooker/rails/profile_publisher_extensions.rb +42 -0
  65. data/lib/facebooker/rails/publisher.rb +608 -0
  66. data/lib/facebooker/rails/routing.rb +49 -0
  67. data/lib/facebooker/rails/test_helpers.rb +68 -0
  68. data/lib/facebooker/rails/utilities.rb +22 -0
  69. data/lib/facebooker/server_cache.rb +24 -0
  70. data/lib/facebooker/service.rb +103 -0
  71. data/lib/facebooker/service/base_service.rb +19 -0
  72. data/lib/facebooker/service/curl_service.rb +44 -0
  73. data/lib/facebooker/service/net_http_service.rb +12 -0
  74. data/lib/facebooker/service/typhoeus_multi_service.rb +27 -0
  75. data/lib/facebooker/service/typhoeus_service.rb +17 -0
  76. data/lib/facebooker/session.rb +786 -0
  77. data/lib/facebooker/stream_post.rb +19 -0
  78. data/lib/facebooker/version.rb +9 -0
  79. data/lib/net/http_multipart_post.rb +123 -0
  80. data/lib/rack/facebook.rb +89 -0
  81. data/lib/rack/facebook_session.rb +21 -0
  82. data/lib/tasks/facebooker.rake +19 -0
  83. data/lib/tasks/facebooker.rb +2 -0
  84. data/lib/tasks/tunnel.rake +46 -0
  85. data/rails/init.rb +1 -0
  86. data/setup.rb +1585 -0
  87. data/templates/layout.erb +24 -0
  88. data/test/facebooker/adapters_test.rb +191 -0
  89. data/test/facebooker/admin_test.rb +102 -0
  90. data/test/facebooker/application_test.rb +110 -0
  91. data/test/facebooker/attachment_test.rb +72 -0
  92. data/test/facebooker/batch_request_test.rb +83 -0
  93. data/test/facebooker/data_test.rb +86 -0
  94. data/test/facebooker/logging_test.rb +43 -0
  95. data/test/facebooker/mobile_test.rb +45 -0
  96. data/test/facebooker/model_test.rb +133 -0
  97. data/test/facebooker/models/event_test.rb +15 -0
  98. data/test/facebooker/models/page_test.rb +56 -0
  99. data/test/facebooker/models/photo_test.rb +16 -0
  100. data/test/facebooker/models/user_test.rb +1074 -0
  101. data/test/facebooker/rails/facebook_request_fix_2-3_test.rb +25 -0
  102. data/test/facebooker/rails/facebook_url_rewriting_test.rb +76 -0
  103. data/test/facebooker/rails/integration_session_test.rb +13 -0
  104. data/test/facebooker/rails/publisher_test.rb +538 -0
  105. data/test/facebooker/rails_integration_test.rb +1543 -0
  106. data/test/facebooker/server_cache_test.rb +44 -0
  107. data/test/facebooker/service_test.rb +58 -0
  108. data/test/facebooker/session_test.rb +883 -0
  109. data/test/facebooker_test.rb +1263 -0
  110. data/test/fixtures/multipart_post_body_with_only_parameters.txt +33 -0
  111. data/test/fixtures/multipart_post_body_with_single_file.txt +38 -0
  112. data/test/fixtures/multipart_post_body_with_single_file_that_has_nil_key.txt +38 -0
  113. data/test/net/http_multipart_post_test.rb +52 -0
  114. data/test/rack/facebook_session_test.rb +34 -0
  115. data/test/rack/facebook_test.rb +73 -0
  116. data/test/rails_test_helper.rb +36 -0
  117. data/test/test_helper.rb +74 -0
  118. metadata +278 -0
@@ -0,0 +1,15 @@
1
+ Autotest.add_hook(:initialize) do |at|
2
+ at.clear_mappings
3
+ at.find_directories = %w(lib test)
4
+
5
+ at.add_exception("test/test_helper.rb")
6
+ at.add_exception("test/rails_test_helper.rb")
7
+
8
+ at.add_mapping(/^lib\/.*\.rb$/) do |file, _|
9
+ at.files_matching(/^test\/.*_test\.rb$/)
10
+ end
11
+
12
+ at.add_mapping(/^test\/.*_test\.rb$/) do |file, _|
13
+ file
14
+ end
15
+ end
@@ -0,0 +1,24 @@
1
+ === HEAD
2
+
3
+ * New Features
4
+
5
+ * Facebooker::User#publish_to for publishing to a Wall or News Stream
6
+ * Optionally parses with Nokogiri. Just require 'nokogiri' in your app.
7
+
8
+ === 1.0.13 / 2009-02-26
9
+
10
+ * Modified fql_query to return results as Hashes as a last resort [Alan Larkin]
11
+ * fixed typo in set app properties parser [Andrew Grim, shane]
12
+ * Removed actor_id param from templatized feed [shane]
13
+ * Added admin.get_allocation [shane]
14
+ * Added data.get_cookies and data.set_cookie [shane]
15
+ * Added admin.get_app_properties and admin.set_app_properties [shane]
16
+
17
+ === 0.9.9 / 2008-09-08
18
+
19
+ * Re-package as gem after reworking for new API
20
+
21
+
22
+ === 0.9.5 / 2008-02-13
23
+
24
+ * Next release of documentation
@@ -0,0 +1,19 @@
1
+ #
2
+ # Copyright (c) 2007 Chad Fowler <chad@infoether.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ # this software and associated documentation files (the "Software"), to deal in the
6
+ # Software without restriction, including without limitation the rights to use,
7
+ # copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8
+ # Software, and to permit persons to whom the Software is furnished to do so,
9
+ # subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,114 @@
1
+ .autotest
2
+ CHANGELOG.rdoc
3
+ COPYING.rdoc
4
+ Manifest.txt
5
+ README.rdoc
6
+ Rakefile
7
+ TODO.rdoc
8
+ facebooker.gemspec
9
+ generators/xd_receiver/templates/xd_receiver_ssl.html
10
+ generators/xd_receiver/templates/xd_receiver.html
11
+ generators/xd_receiver/xd_receiver_generator.rb
12
+ init.rb
13
+ install.rb
14
+ lib/facebooker.rb
15
+ lib/facebooker/adapters/adapter_base.rb
16
+ lib/facebooker/adapters/bebo_adapter.rb
17
+ lib/facebooker/adapters/facebook_adapter.rb
18
+ lib/facebooker/attachment.rb
19
+ lib/facebooker/admin.rb
20
+ lib/facebooker/application.rb
21
+ lib/facebooker/batch_request.rb
22
+ lib/facebooker/data.rb
23
+ lib/facebooker/feed.rb
24
+ lib/facebooker/logging.rb
25
+ lib/facebooker/mobile.rb
26
+ lib/facebooker/mock/service.rb
27
+ lib/facebooker/mock/session.rb
28
+ lib/facebooker/model.rb
29
+ lib/facebooker/models/affiliation.rb
30
+ lib/facebooker/models/album.rb
31
+ lib/facebooker/models/applicationproperties.rb
32
+ lib/facebooker/models/applicationrestrictions.rb
33
+ lib/facebooker/models/cookie.rb
34
+ lib/facebooker/models/comment.rb
35
+ lib/facebooker/models/education_info.rb
36
+ lib/facebooker/models/event.rb
37
+ lib/facebooker/models/family_relative_info.rb
38
+ lib/facebooker/models/friend_list.rb
39
+ lib/facebooker/models/group.rb
40
+ lib/facebooker/models/info_item.rb
41
+ lib/facebooker/models/info_section.rb
42
+ lib/facebooker/models/location.rb
43
+ lib/facebooker/models/notifications.rb
44
+ lib/facebooker/models/page.rb
45
+ lib/facebooker/models/photo.rb
46
+ lib/facebooker/models/tag.rb
47
+ lib/facebooker/models/user.rb
48
+ lib/facebooker/models/video.rb
49
+ lib/facebooker/models/work_info.rb
50
+ lib/facebooker/models/message_thread.rb
51
+ lib/facebooker/parser.rb
52
+ lib/facebooker/rails/backwards_compatible_param_checks.rb
53
+ lib/facebooker/rails/controller.rb
54
+ lib/facebooker/rails/extensions/action_controller.rb
55
+ lib/facebooker/rails/extensions/rack_setup.rb
56
+ lib/facebooker/rails/extensions/routing.rb
57
+ lib/facebooker/rails/facebook_pretty_errors.rb
58
+ lib/facebooker/rails/facebook_request_fix.rb
59
+ lib/facebooker/rails/facebook_request_fix_2-3.rb
60
+ lib/facebooker/rails/facebook_session_handling.rb
61
+ lib/facebooker/rails/facebook_url_rewriting.rb
62
+ lib/facebooker/rails/helpers/fb_connect.rb
63
+ lib/facebooker/rails/integration_session.rb
64
+ lib/facebooker/rails/profile_publisher_extensions.rb
65
+ lib/facebooker/rails/publisher.rb
66
+ lib/facebooker/rails/routing.rb
67
+ lib/facebooker/rails/test_helpers.rb
68
+ lib/facebooker/rails/utilities.rb
69
+ lib/facebooker/server_cache.rb
70
+ lib/facebooker/service.rb
71
+ lib/facebooker/service/base_service.rb
72
+ lib/facebooker/service/curl_service.rb
73
+ lib/facebooker/service/net_http_service.rb
74
+ lib/facebooker/service/typhoeus_service.rb
75
+ lib/facebooker/service/typhoeus_multi_service.rb
76
+ lib/facebooker/session.rb
77
+ lib/facebooker/stream_post.rb
78
+ lib/facebooker/version.rb
79
+ lib/net/http_multipart_post.rb
80
+ lib/rack/facebook.rb
81
+ lib/rack/facebook_session.rb
82
+ lib/tasks/facebooker.rake
83
+ lib/tasks/facebooker.rb
84
+ lib/tasks/tunnel.rake
85
+ rails/init.rb
86
+ setup.rb
87
+ templates/layout.erb
88
+ test/facebooker/adapters_test.rb
89
+ test/facebooker/admin_test.rb
90
+ test/facebooker/application_test.rb
91
+ test/facebooker/attachment_test.rb
92
+ test/facebooker/batch_request_test.rb
93
+ test/facebooker/data_test.rb
94
+ test/facebooker/logging_test.rb
95
+ test/facebooker/mobile_test.rb
96
+ test/facebooker/model_test.rb
97
+ test/facebooker/models/event_test.rb
98
+ test/facebooker/models/page_test.rb
99
+ test/facebooker/models/photo_test.rb
100
+ test/facebooker/models/user_test.rb
101
+ test/facebooker/rails/publisher_test.rb
102
+ test/facebooker/rails_integration_test.rb
103
+ test/facebooker/rails/facebook_request_fix_2-3_test.rb
104
+ test/facebooker/server_cache_test.rb
105
+ test/facebooker/session_test.rb
106
+ test/facebooker_test.rb
107
+ test/fixtures/multipart_post_body_with_only_parameters.txt
108
+ test/fixtures/multipart_post_body_with_single_file.txt
109
+ test/fixtures/multipart_post_body_with_single_file_that_has_nil_key.txt
110
+ test/net/http_multipart_post_test.rb
111
+ test/rack/facebook_test.rb
112
+ test/rack/facebook_session_test.rb
113
+ test/rails_test_helper.rb
114
+ test/test_helper.rb
@@ -0,0 +1,120 @@
1
+ = Facebooker
2
+
3
+ * http://facebooker.rubyforge.org
4
+
5
+ == DESCRIPTION:
6
+
7
+ Facebooker is a Ruby wrapper over the Facebook[http://facebook.com] {REST API}[http://wiki.developers.facebook.com/index.php/API]. Its goals are:
8
+
9
+ * Idiomatic Ruby
10
+ * No dependencies outside of the Ruby standard library (This is true with Rails 2.1. Previous Rails versions require the JSON gem)
11
+ * Concrete classes and methods modeling the Facebook data, so it's easy for a Rubyist to understand what's available
12
+ * Well tested
13
+
14
+ This is a lite version with most view/helper stuff removed.
15
+
16
+ == FEATURES/PROBLEMS:
17
+
18
+ * Idiomatic Ruby
19
+ * No dependencies outside of the Ruby standard library
20
+ * Concrete classes and methods modeling the Facebook data, so it's easy for a Rubyist to understand what's available
21
+ * Well tested
22
+
23
+ == SYNOPSIS:
24
+
25
+ View David Clements' {excellent tutorial}[http://apps.facebook.com/facebooker_tutorial] at {http://apps.facebook.com/facebooker_tutorial/}[http://apps.facebook.com/facebooker_tutorial] or check out {Developing Facebook Platform Applications with Rails}[http://www.pragprog.com/titles/mmfacer].
26
+ {Join the Mailing List}:[groups.google.com/group/facebooker]
27
+
28
+ == REQUIREMENTS:
29
+
30
+ None
31
+
32
+ == INSTALL:
33
+
34
+ === Non Rails
35
+
36
+ The best way is:
37
+
38
+ gem install facebooker
39
+
40
+ If, for some reason, you can't/won't use RubyGems, you can do:
41
+
42
+ (sudo) ruby setup.rb
43
+
44
+ === Rails
45
+
46
+ Facebooker can be installed as a Rails plugin by:
47
+
48
+ script/plugin install git://github.com/mmangino/facebooker.git
49
+
50
+ If you don't have git, the plugin can be downloaded from http://github.com/mmangino/facebooker/tarball/master
51
+
52
+ === Using Gem in Rails
53
+
54
+ The rake task would not be added automatically, so to use it in rails you would have to add the following towards the end of your Rakefile:
55
+
56
+ require 'tasks/facebooker'
57
+
58
+ Once the plugin is installed, you will need to configure your Facebook app in config/facebooker.yml.
59
+
60
+ Your application users will need to have added the application in facebook to access all of facebooker's features. You enforce this by adding
61
+
62
+ ensure_application_is_installed_by_facebook_user
63
+
64
+ to your application controller.
65
+
66
+ To prevent a violation of Facebook Terms of Service while reducing log bloat, you should also add
67
+
68
+ filter_parameter_logging :fb_sig_friends
69
+
70
+ to your application controller.
71
+
72
+ == using MemCache session
73
+
74
+ Facebook uses some non alphanum characters in the session identifier which interfere with memcache stored sessions. If you want to use MemCache for storing sessions, you can override the valid session id method on memcache by placing the following code in an initializer:
75
+
76
+ # add - as an okay key
77
+ class CGI
78
+ class Session
79
+ class MemCacheStore
80
+ def check_id(id) #:nodoc:#
81
+ /[^0-9a-zA-Z\-\._]+/ =~ id.to_s ? false : true
82
+ end
83
+ end
84
+ end
85
+ end
86
+
87
+ == Other versions
88
+
89
+ A facebooker port for Sinatra is available at http://github.com/jsmestad/frankie/tree/master
90
+
91
+ == LICENSE:
92
+
93
+ (The MIT License)
94
+
95
+ Copyright (c) 2008-2009:
96
+
97
+ * Chad Fowler
98
+ * Patrick Ewing
99
+ * Mike Mangino
100
+ * Shane Vitarana
101
+ * Corey Innis
102
+
103
+ Permission is hereby granted, free of charge, to any person obtaining
104
+ a copy of this software and associated documentation files (the
105
+ 'Software'), to deal in the Software without restriction, including
106
+ without limitation the rights to use, copy, modify, merge, publish,
107
+ distribute, sublicense, and/or sell copies of the Software, and to
108
+ permit persons to whom the Software is furnished to do so, subject to
109
+ the following conditions:
110
+
111
+ The above copyright notice and this permission notice shall be
112
+ included in all copies or substantial portions of the Software.
113
+
114
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
115
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
116
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
117
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
118
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
119
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
120
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,94 @@
1
+ # -*- ruby -*-
2
+ #
3
+ require 'rubygems'
4
+ require 'hoe'
5
+ begin
6
+ require 'load_multi_rails_rake_tasks'
7
+ rescue LoadError
8
+ $stderr.puts "Install the multi_rails gem to run tests against multiple versions of Rails"
9
+ end
10
+
11
+ require 'lib/facebooker/version'
12
+
13
+ HOE = Hoe.spec('facebooker-lite') do
14
+ self.version = Facebooker::VERSION::STRING
15
+ self.rubyforge_name = 'facebooker-lite'
16
+ developer 'Chad Fowler', 'chad@chadfowlwer.com'
17
+ developer 'Patrick Ewing', ''
18
+ developer 'Mike Mangino', ''
19
+ developer 'Shane Vitarana', ''
20
+ developer 'Corey Innis', ''
21
+ developer 'Mike Mangino', 'mmangino@elevatedrails.com'
22
+
23
+ self.readme_file = 'README.rdoc'
24
+ self.history_file = 'CHANGELOG.rdoc'
25
+ self.remote_rdoc_dir = '' # Release to root
26
+ self.test_globs = ['test/**/*_test.rb']
27
+ extra_deps << ['json_pure', '>= 1.0.0']
28
+ self.extra_rdoc_files = FileList['*.rdoc']
29
+ end
30
+
31
+ begin
32
+ require 'rcov/rcovtask'
33
+
34
+ namespace :test do
35
+ namespace :coverage do
36
+ desc "Delete aggregate coverage data."
37
+ task(:clean) { rm_f "coverage.data" }
38
+ end
39
+ desc 'Aggregate code coverage for unit, functional and integration tests'
40
+ Rcov::RcovTask.new(:coverage) do |t|
41
+ t.libs << "test"
42
+ t.test_files = FileList["test/**/*_test.rb"]
43
+ t.output_dir = "coverage/"
44
+ t.verbose = true
45
+ t.rcov_opts = ['--exclude', 'test,/usr/lib/ruby,/Library/Ruby,/System/Library', '--sort', 'coverage']
46
+ end
47
+ end
48
+ rescue LoadError
49
+ $stderr.puts "Install the rcov gem to enable test coverage analysis"
50
+ end
51
+
52
+ namespace :gem do
53
+ task :spec do
54
+ File.open("#{HOE.name}.gemspec", 'w') do |f|
55
+ f.write(HOE.spec.to_ruby)
56
+ end
57
+ end
58
+
59
+ namespace :spec do
60
+ task :dev do
61
+ File.open("#{HOE.name}.gemspec", 'w') do |f|
62
+ HOE.spec.version = "#{HOE.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
63
+ f.write(HOE.spec.to_ruby)
64
+ end
65
+ end
66
+ end
67
+ end
68
+
69
+ # vim: syntax=Ruby
70
+ #
71
+ #
72
+ # require File.dirname(__FILE__) + '/vendor/gardener/lib/gardener'
73
+ #
74
+ # require 'facebooker'
75
+ #
76
+ # namespace :doc do
77
+ # task :readme do
78
+ # puts "Readme"
79
+ # end
80
+ # end
81
+ #
82
+ # Gardener.configure do
83
+ # gem_spec do |spec|
84
+ # spec.name = 'facebooker'
85
+ # spec.version = Gem::Version.new(Facebooker::VERSION::STRING)
86
+ # spec.summary = "Pure, idiomatic Ruby wrapper for the Facebook REST API."
87
+ # spec.email = 'chad@infoether.com'
88
+ # spec.author = ['Chad Fowler', 'Patrick Ewing','Mike Mangino','Shane Vitarana']
89
+ # spec.extra_rdoc_files = %w(COPYING)
90
+ # spec.rdoc_options = ['--title', "Gardener",
91
+ # '--main', 'README',
92
+ # '--line-numbers', '--inline-source']
93
+ # end
94
+ # end
@@ -0,0 +1,4 @@
1
+ [ ] Document session handling. Come up with different cases and paths for the flow and create tests for each
2
+ [ ] Verify that sessions are used only where required. Raise exceptions on User methods that require a session when none is available
3
+ [ ] Refactor setup / Adapter loading code
4
+
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{facebooker}
5
+ s.version = "1.0.67"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Chad Fowler", "Patrick Ewing", "Mike Mangino", "Shane Vitarana", "Corey Innis", "Mike Mangino"]
9
+ s.date = %q{2010-03-30}
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
+
12
+ * Idiomatic Ruby
13
+ * No dependencies outside of the Ruby standard library (This is true with Rails 2.1. Previous Rails versions require the JSON gem)
14
+ * Concrete classes and methods modeling the Facebook data, so it's easy for a Rubyist to understand what's available
15
+ * Well tested}
16
+ s.email = ["chad@chadfowlwer.com", "", "", "", "", "mmangino@elevatedrails.com"]
17
+ s.extra_rdoc_files = ["Manifest.txt", "CHANGELOG.rdoc", "COPYING.rdoc", "README.rdoc", "TODO.rdoc"]
18
+ s.files = [".autotest", "CHANGELOG.rdoc", "COPYING.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "TODO.rdoc", "examples/desktop_login.rb", "facebooker.gemspec", "generators/facebook/facebook_generator.rb", "generators/facebook/templates/config/facebooker.yml", "generators/facebook/templates/public/javascripts/facebooker.js", "generators/facebook_controller/USAGE", "generators/facebook_controller/facebook_controller_generator.rb", "generators/facebook_controller/templates/controller.rb", "generators/facebook_controller/templates/functional_test.rb", "generators/facebook_controller/templates/helper.rb", "generators/facebook_controller/templates/view.fbml.erb", "generators/facebook_controller/templates/view.html.erb", "generators/facebook_publisher/facebook_publisher_generator.rb", "generators/facebook_publisher/templates/create_facebook_templates.rb", "generators/facebook_publisher/templates/publisher.rb", "generators/facebook_scaffold/USAGE", "generators/facebook_scaffold/facebook_scaffold_generator.rb", "generators/facebook_scaffold/templates/controller.rb", "generators/facebook_scaffold/templates/facebook_style.css", "generators/facebook_scaffold/templates/functional_test.rb", "generators/facebook_scaffold/templates/helper.rb", "generators/facebook_scaffold/templates/layout.fbml.erb", "generators/facebook_scaffold/templates/layout.html.erb", "generators/facebook_scaffold/templates/style.css", "generators/facebook_scaffold/templates/view_edit.fbml.erb", "generators/facebook_scaffold/templates/view_edit.html.erb", "generators/facebook_scaffold/templates/view_index.fbml.erb", "generators/facebook_scaffold/templates/view_index.html.erb", "generators/facebook_scaffold/templates/view_new.fbml.erb", "generators/facebook_scaffold/templates/view_new.html.erb", "generators/facebook_scaffold/templates/view_show.fbml.erb", "generators/facebook_scaffold/templates/view_show.html.erb", "generators/publisher/publisher_generator.rb", "generators/xd_receiver/templates/xd_receiver_ssl.html", "generators/xd_receiver/templates/xd_receiver.html", "generators/xd_receiver/xd_receiver_generator.rb", "init.rb", "install.rb", "lib/facebooker.rb", "lib/facebooker/adapters/adapter_base.rb", "lib/facebooker/adapters/bebo_adapter.rb", "lib/facebooker/adapters/facebook_adapter.rb", "lib/facebooker/attachment.rb", "lib/facebooker/admin.rb", "lib/facebooker/application.rb", "lib/facebooker/batch_request.rb", "lib/facebooker/data.rb", "lib/facebooker/feed.rb", "lib/facebooker/logging.rb", "lib/facebooker/mobile.rb", "lib/facebooker/mock/service.rb", "lib/facebooker/mock/session.rb", "lib/facebooker/model.rb", "lib/facebooker/models/affiliation.rb", "lib/facebooker/models/album.rb", "lib/facebooker/models/applicationproperties.rb", "lib/facebooker/models/applicationrestrictions.rb", "lib/facebooker/models/cookie.rb", "lib/facebooker/models/comment.rb", "lib/facebooker/models/education_info.rb", "lib/facebooker/models/event.rb", "lib/facebooker/models/family_relative_info.rb", "lib/facebooker/models/friend_list.rb", "lib/facebooker/models/group.rb", "lib/facebooker/models/info_item.rb", "lib/facebooker/models/info_section.rb", "lib/facebooker/models/location.rb", "lib/facebooker/models/notifications.rb", "lib/facebooker/models/page.rb", "lib/facebooker/models/photo.rb", "lib/facebooker/models/tag.rb", "lib/facebooker/models/user.rb", "lib/facebooker/models/video.rb", "lib/facebooker/models/work_info.rb", "lib/facebooker/models/message_thread.rb", "lib/facebooker/parser.rb", "lib/facebooker/rails/backwards_compatible_param_checks.rb", "lib/facebooker/rails/controller.rb", "lib/facebooker/rails/cucumber.rb", "lib/facebooker/rails/cucumber/world.rb", "lib/facebooker/rails/extensions/action_controller.rb", "lib/facebooker/rails/extensions/rack_setup.rb", "lib/facebooker/rails/extensions/routing.rb", "lib/facebooker/rails/facebook_form_builder.rb", "lib/facebooker/rails/facebook_pretty_errors.rb", "lib/facebooker/rails/facebook_request_fix.rb", "lib/facebooker/rails/facebook_request_fix_2-3.rb", "lib/facebooker/rails/facebook_session_handling.rb", "lib/facebooker/rails/facebook_url_helper.rb", "lib/facebooker/rails/facebook_url_rewriting.rb", "lib/facebooker/rails/helpers.rb", "lib/facebooker/rails/helpers/fb_connect.rb", "lib/facebooker/rails/helpers/stream_publish.rb", "lib/facebooker/rails/integration_session.rb", "lib/facebooker/rails/profile_publisher_extensions.rb", "lib/facebooker/rails/publisher.rb", "lib/facebooker/rails/routing.rb", "lib/facebooker/rails/test_helpers.rb", "lib/facebooker/rails/utilities.rb", "lib/facebooker/server_cache.rb", "lib/facebooker/service.rb", "lib/facebooker/service/base_service.rb", "lib/facebooker/service/curl_service.rb", "lib/facebooker/service/net_http_service.rb", "lib/facebooker/service/typhoeus_service.rb", "lib/facebooker/service/typhoeus_multi_service.rb", "lib/facebooker/session.rb", "lib/facebooker/stream_post.rb", "lib/facebooker/version.rb", "lib/net/http_multipart_post.rb", "lib/rack/facebook.rb", "lib/rack/facebook_session.rb", "lib/tasks/facebooker.rake", "lib/tasks/facebooker.rb", "lib/tasks/tunnel.rake", "rails/init.rb", "setup.rb", "templates/layout.erb", "test/facebooker/adapters_test.rb", "test/facebooker/admin_test.rb", "test/facebooker/application_test.rb", "test/facebooker/attachment_test.rb", "test/facebooker/batch_request_test.rb", "test/facebooker/data_test.rb", "test/facebooker/logging_test.rb", "test/facebooker/mobile_test.rb", "test/facebooker/model_test.rb", "test/facebooker/models/event_test.rb", "test/facebooker/models/page_test.rb", "test/facebooker/models/photo_test.rb", "test/facebooker/models/user_test.rb", "test/facebooker/rails/publisher_test.rb", "test/facebooker/rails_integration_test.rb", "test/facebooker/rails/facebook_request_fix_2-3_test.rb", "test/facebooker/server_cache_test.rb", "test/facebooker/session_test.rb", "test/facebooker_test.rb", "test/fixtures/multipart_post_body_with_only_parameters.txt", "test/fixtures/multipart_post_body_with_single_file.txt", "test/fixtures/multipart_post_body_with_single_file_that_has_nil_key.txt", "test/net/http_multipart_post_test.rb", "test/rack/facebook_test.rb", "test/rack/facebook_session_test.rb", "test/rails_test_helper.rb", "test/test_helper.rb", "test/facebooker/rails/facebook_url_rewriting_test.rb", "test/facebooker/rails/integration_session_test.rb", "test/facebooker/service_test.rb"]
19
+ s.homepage = %q{http://facebooker.rubyforge.org}
20
+ s.rdoc_options = ["--main", "README.rdoc"]
21
+ s.require_paths = ["lib"]
22
+ s.rubyforge_project = %q{facebooker}
23
+ s.rubygems_version = %q{1.3.5}
24
+ s.summary = %q{Facebooker is a Ruby wrapper over the Facebook[http://facebook.com] {REST API}[http://wiki.developers.facebook.com/index.php/API]}
25
+ s.test_files = ["test/facebooker/adapters_test.rb", "test/facebooker/admin_test.rb", "test/facebooker/application_test.rb", "test/facebooker/attachment_test.rb", "test/facebooker/batch_request_test.rb", "test/facebooker/data_test.rb", "test/facebooker/logging_test.rb", "test/facebooker/mobile_test.rb", "test/facebooker/model_test.rb", "test/facebooker/models/event_test.rb", "test/facebooker/models/page_test.rb", "test/facebooker/models/photo_test.rb", "test/facebooker/models/user_test.rb", "test/facebooker/rails/facebook_request_fix_2-3_test.rb", "test/facebooker/rails/facebook_url_rewriting_test.rb", "test/facebooker/rails/integration_session_test.rb", "test/facebooker/rails/publisher_test.rb", "test/facebooker/rails_integration_test.rb", "test/facebooker/server_cache_test.rb", "test/facebooker/service_test.rb", "test/facebooker/session_test.rb", "test/facebooker_test.rb", "test/net/http_multipart_post_test.rb", "test/rack/facebook_session_test.rb", "test/rack/facebook_test.rb"]
26
+
27
+ if s.respond_to? :specification_version then
28
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
29
+ s.specification_version = 3
30
+
31
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
32
+ s.add_runtime_dependency(%q<json_pure>, [">= 1.0.0"])
33
+ s.add_development_dependency(%q<hoe>, [">= 2.4.0"])
34
+ else
35
+ s.add_dependency(%q<json_pure>, [">= 1.0.0"])
36
+ s.add_dependency(%q<hoe>, [">= 2.4.0"])
37
+ end
38
+ else
39
+ s.add_dependency(%q<json_pure>, [">= 1.0.0"])
40
+ s.add_dependency(%q<hoe>, [">= 2.4.0"])
41
+ end
42
+ end
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" >
4
+ <head>
5
+ <title>Cross-Domain Receiver Page</title>
6
+ </head>
7
+ <body>
8
+ <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script>
9
+ </body>
10
+ </html>