Permalink
Browse files

initial version

  • Loading branch information...
0 parents commit 002c01220b5ebd7f49f356d0d1962c3dc9398e41 @kristianmandrup committed Apr 3, 2012
@@ -0,0 +1,5 @@
+lib/**/*.rb
+bin/*
+-
+features/**/*.feature
+LICENSE.txt
@@ -0,0 +1,49 @@
+# rcov generated
+coverage
+coverage.data
+
+# rdoc generated
+rdoc
+
+# yard generated
+doc
+.yardoc
+
+# bundler
+.bundle
+
+# jeweler generated
+pkg
+
+# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
+#
+# * Create a file at ~/.gitignore
+# * Include files you want ignored
+# * Run: git config --global core.excludesfile ~/.gitignore
+#
+# After doing this, these files will be ignored in all your git projects,
+# saving you from having to 'pollute' every project you touch with them
+#
+# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
+#
+# For MacOS:
+#
+.DS_Store
+
+# For TextMate
+*.tmproj
+tmtags
+
+# For emacs:
+#*~
+#\#*
+#.\#*
+
+# For vim:
+*.swp
+
+# For redcar:
+.redcar
+
+# For rubinius:
+#*.rbc
1 .rspec
@@ -0,0 +1 @@
+--color
@@ -0,0 +1,49 @@
+<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
+
+<head prefix="og: http://ogp.me/ns# og_recipebox: http://ogp.me/ns/apps/YOUR_NAMESPACEx#">
+ <meta property="fb:app_id" content="YOUR_APP_ID" />
+ <meta property="og:type" content="YOUR_NAMESPACE:recipe" />
+ <meta property="og:title" content="Oreo Stuffed Cookies" />
+ <meta property="og:image" content="http://YOUR_URL/cookie.jpg" />
+ <meta property="og:description" content="The Turducken of Cookies" />
+ <meta property="og:url" content="http://YOUR_URL/cookie.html">
+
+ <script type="text/javascript">
+ function postCook()
+ {
+ FB.api('/me/YOUR_NAMESPACE:cook&recipe=http://YOUR_URL/cookie.html','post', function(response) {
+ if (!response || response.error) {
+ alert('Error occured');
+ } else {
+ alert('Post was successful! Action ID: ' + response.id);
+ }
+ });
+ }
+ </script>
+</head>
+
+<body>
+ <div id="fb-root"></div>
+ <script src="http://connect.facebook.net/en_US/all.js"></script>
+ <script>
+ FB.init({
+ appId:'YOUR_APP_ID', cookie:true,
+ status:true, xfbml:true, oauth:true
+ });
+ </script>
+ <fb:add-to-timeline></fb:add-to-timeline>>
+ <h3>
+ <font size="30" face="verdana" color="grey">Stuffed Cookies
+ </font>
+ </h3>
+ <p>
+ <img title="Oreo Stuffed Cookies" src="http://YOUR_URL/cookie.jpg" width="550"/><br />
+ </p>
+
+ <form>
+ <input type="button" value="Cook" onclick="postCook()" />
+ </form>
+
+ <fb:activity actions="YOUR_NAMESPACE:cook"></fb:activity>
+ </body>
+</html>
11 Gemfile
@@ -0,0 +1,11 @@
+source :rubygems
+
+# Add dependencies to develop your gem here.
+# Include everything needed to run rake, tests, features, etc.
+group :development do
+ gem "rspec", ">= 2.8.0"
+ gem "rdoc", ">= 3.12"
+ gem "bundler", ">= 1.1.0"
+ gem "jeweler", ">= 1.8.3"
+ gem "simplecov", ">= 0"
+end
@@ -0,0 +1,37 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ git (1.2.5)
+ jeweler (1.8.3)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rdoc
+ json (1.6.6)
+ multi_json (1.2.0)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.9.0)
+ rspec-core (~> 2.9.0)
+ rspec-expectations (~> 2.9.0)
+ rspec-mocks (~> 2.9.0)
+ rspec-core (2.9.0)
+ rspec-expectations (2.9.0)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.9.0)
+ simplecov (0.6.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (>= 1.1.0)
+ jeweler (>= 1.8.3)
+ rdoc (>= 3.12)
+ rspec (>= 2.8.0)
+ simplecov
@@ -0,0 +1,20 @@
+Copyright (c) 2012 Kristian Mandrup
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Oops, something went wrong.

0 comments on commit 002c012

Please sign in to comment.