facebook_js 0.0.1 → 0.0.2
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.
- checksums.yaml +8 -8
- data/README.md +46 -4
- data/app/helpers/facebook_js_helper.rb +5 -2
- data/app/views/facebook_js_helper/_facebook.html.erb +63 -0
- data/lib/facebook_js/version.rb +1 -1
- data/test/dummy/log/test.log +244 -0
- metadata +2 -3
- data/MIT-LICENSE +0 -20
    
        checksums.yaml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                NTkyMWFhYjkzZDVlYjMyMDc0N2NmNDk4Y2YyZmIwZGQ0YTcyZjAwYw==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                MThjMTExZmJlNDQxNTkyZGRiZTY2ZjA5NzIxY2I5YzE0ODRhZGU4Yw==
         | 
| 7 7 | 
             
            !binary "U0hBNTEy":
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                ZDcwYmRlNmY0MTU4NWI4NzE5MjY3MjY3YTUxYjM1ZjM2NWIxOWJlNWFmN2M3
         | 
| 10 | 
            +
                MDRhNGZmOTgxYjY2MzZjMjk4ZjhlNGE2NzQ3NjRmOTRmMWI0MTExNmJmOWJj
         | 
| 11 | 
            +
                Y2YyMzViZDcxY2IyYjUwZTY1NjllMTk4MTY0YjRhYzJkMTZkNTE=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                MTY1NjMxYzJmMjMwNTZhYzEyNTY5Y2U4M2QyNWFiYWUwNmE0OWMyOTVlNWYw
         | 
| 14 | 
            +
                NTRiYjQxZGE2NDNmNjIzMTRmMWM2OTlmMDc2MDI2NzkwYzdlZjNiZTUyZWI1
         | 
| 15 | 
            +
                Yjk3ZWFlYWU1MWZlOGE1MGE3NDE3ZDgyOGI3MDc3YWY3MmM1ZGE=
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,6 +1,47 @@ | |
| 1 1 | 
             
            # facebook_js
         | 
| 2 2 |  | 
| 3 | 
            -
            `facebook_js` is just a way for me to not have to deal with integrating [Facebook Javascript SDK][1] again by manually copy-paste all the necessary code.  It also adds the  | 
| 3 | 
            +
            `facebook_js` is just a way for me to not have to deal with integrating [Facebook Javascript SDK][1] again by manually copy-paste all the necessary code.  It also adds the required `channel.html` link to the app with proper caching headers.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            From this:
         | 
| 6 | 
            +
             | 
| 7 | 
            +
                <div id="fb-root"></div>
         | 
| 8 | 
            +
                <script>
         | 
| 9 | 
            +
                  window.fbAsyncInit = function() {
         | 
| 10 | 
            +
                    // init the FB JS SDK
         | 
| 11 | 
            +
                    FB.init({
         | 
| 12 | 
            +
                      appId      : 'YOUR_APP_ID', // App ID from the App Dashboard
         | 
| 13 | 
            +
                      channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File for x-domain communication
         | 
| 14 | 
            +
                      status     : true, // check the login status upon init?
         | 
| 15 | 
            +
                      cookie     : true, // set sessions cookies to allow your server to access the session?
         | 
| 16 | 
            +
                      xfbml      : true  // parse XFBML tags on this page?
         | 
| 17 | 
            +
                    });
         | 
| 18 | 
            +
                
         | 
| 19 | 
            +
                    // Additional initialization code such as adding Event Listeners goes here
         | 
| 20 | 
            +
                
         | 
| 21 | 
            +
                  };
         | 
| 22 | 
            +
                
         | 
| 23 | 
            +
                  // Load the SDK's source Asynchronously
         | 
| 24 | 
            +
                  // Note that the debug version is being actively developed and might 
         | 
| 25 | 
            +
                  // contain some type checks that are overly strict. 
         | 
| 26 | 
            +
                  // Please report such bugs using the bugs tool.
         | 
| 27 | 
            +
                  (function(d, debug){
         | 
| 28 | 
            +
                     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
         | 
| 29 | 
            +
                     if (d.getElementById(id)) {return;}
         | 
| 30 | 
            +
                     js = d.createElement('script'); js.id = id; js.async = true;
         | 
| 31 | 
            +
                     js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
         | 
| 32 | 
            +
                     ref.parentNode.insertBefore(js, ref);
         | 
| 33 | 
            +
                   }(document, /*debug*/ false));
         | 
| 34 | 
            +
                </script>
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            To this:
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                = facebook_js
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            ## Turbolinks Support
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            To use `facebook_js` with [turbolinks][3], you should insert `facebook_js` within the `<head>` section.
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                = facebook_js turbolink: true
         | 
| 4 45 |  | 
| 5 46 | 
             
            ## Installation
         | 
| 6 47 |  | 
| @@ -16,7 +57,7 @@ First, you have to create a file named `facebook_js.rb` under your `config/initi | |
| 16 57 | 
             
                FacebookJs.status = true # check the login status upon init? (optional)
         | 
| 17 58 | 
             
                FacebookJs.cookie = true # set sessions cookies to allow your server to access the session? (optional)
         | 
| 18 59 | 
             
                FacebookJs.xfbml = true # parse XFBML tags on this page? (optional)
         | 
| 19 | 
            -
                FacebookJs.debug =  | 
| 60 | 
            +
                FacebookJs.debug = !Rails.env.production? # to start the FB JS script in debug mode (optional)
         | 
| 20 61 |  | 
| 21 62 | 
             
            Check out the list of available locales on Facebook [here][2].
         | 
| 22 63 |  | 
| @@ -30,11 +71,12 @@ If you want to have additional initialization code, just do this: | |
| 30 71 |  | 
| 31 72 | 
             
                = facebook_js do
         | 
| 32 73 | 
             
                  // javascript
         | 
| 33 | 
            -
                   | 
| 74 | 
            +
                  alert('Hello, world!!!');
         | 
| 34 75 |  | 
| 35 76 | 
             
            ##License
         | 
| 36 77 |  | 
| 37 78 | 
             
            MIT License. See LICENSE for details.
         | 
| 38 79 |  | 
| 39 80 | 
             
            [1]: https://developers.facebook.com/docs/reference/javascript/
         | 
| 40 | 
            -
            [2]: https://www.facebook.com/translations/FacebookLocales.xml
         | 
| 81 | 
            +
            [2]: https://www.facebook.com/translations/FacebookLocales.xml
         | 
| 82 | 
            +
            [3]: https://github.com/rails/turbolinks/
         | 
| @@ -1,5 +1,7 @@ | |
| 1 1 | 
             
            module FacebookJsHelper
         | 
| 2 | 
            -
              def facebook_js(&block)
         | 
| 2 | 
            +
              def facebook_js(opts={}, &block)
         | 
| 3 | 
            +
                turbolink = opts[:turbolink] ? opts[:turbolink] : false
         | 
| 4 | 
            +
             | 
| 3 5 | 
             
                if block_given?
         | 
| 4 6 | 
             
                  block = capture(&block)
         | 
| 5 7 | 
             
                else
         | 
| @@ -14,7 +16,8 @@ module FacebookJsHelper | |
| 14 16 | 
             
                  xfbml: FacebookJs.xfbml,
         | 
| 15 17 | 
             
                  debug: FacebookJs.debug,
         | 
| 16 18 | 
             
                  locale: FacebookJs.locale,
         | 
| 17 | 
            -
                  block: block
         | 
| 19 | 
            +
                  block: block,
         | 
| 20 | 
            +
                  turbolink: turbolink
         | 
| 18 21 | 
             
                }
         | 
| 19 22 | 
             
              end
         | 
| 20 23 | 
             
            end
         | 
| @@ -1,3 +1,4 @@ | |
| 1 | 
            +
            <% unless turbolink %>
         | 
| 1 2 | 
             
            <div id="fb-root"></div>
         | 
| 2 3 | 
             
            <script>
         | 
| 3 4 | 
             
              window.fbAsyncInit = function() {
         | 
| @@ -21,3 +22,65 @@ | |
| 21 22 | 
             
                ref.parentNode.insertBefore(js, ref);
         | 
| 22 23 | 
             
              }(document, <%= debug %>));
         | 
| 23 24 | 
             
            </script>
         | 
| 25 | 
            +
            <% else %>
         | 
| 26 | 
            +
            <script>
         | 
| 27 | 
            +
              (function() {
         | 
| 28 | 
            +
                var bindFacebookEvents, fb_events_bound, fb_root, initializeFacebookSDK, loadFacebookSDK, restoreFacebookRoot, saveFacebookRoot;
         | 
| 29 | 
            +
             | 
| 30 | 
            +
                fb_root = null;
         | 
| 31 | 
            +
                fb_events_bound = false;
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                $(function() {
         | 
| 34 | 
            +
                  loadFacebookSDK();
         | 
| 35 | 
            +
                  if (!fb_events_bound) {
         | 
| 36 | 
            +
                    bindFacebookEvents();
         | 
| 37 | 
            +
                  }
         | 
| 38 | 
            +
                });
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                bindFacebookEvents = function() {
         | 
| 41 | 
            +
                  $(document).on('page:fetch', saveFacebookRoot).on('page:change', restoreFacebookRoot);
         | 
| 42 | 
            +
                  <% if xfbml %>
         | 
| 43 | 
            +
                  $(document).on('page:load', function() {
         | 
| 44 | 
            +
                    typeof(FB) !== "undefined" && FB !== null ? FB.XFBML.parse() : void 0;
         | 
| 45 | 
            +
                  });
         | 
| 46 | 
            +
                  <% end %>
         | 
| 47 | 
            +
                  fb_events_bound = true;
         | 
| 48 | 
            +
                };
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                saveFacebookRoot = function() {
         | 
| 51 | 
            +
                  return fb_root = $('#fb-root').detach();
         | 
| 52 | 
            +
                };
         | 
| 53 | 
            +
             | 
| 54 | 
            +
                restoreFacebookRoot = function() {
         | 
| 55 | 
            +
                  if ($('#fb-root').length > 0) {
         | 
| 56 | 
            +
                    $('#fb-root').replaceWith(fb_root);
         | 
| 57 | 
            +
                  } else {
         | 
| 58 | 
            +
                    $('body').append(fb_root);
         | 
| 59 | 
            +
                  }
         | 
| 60 | 
            +
                };
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                loadFacebookSDK = function() {
         | 
| 63 | 
            +
                  window.fbAsyncInit = initializeFacebookSDK;
         | 
| 64 | 
            +
                  <% if debug %>
         | 
| 65 | 
            +
                  $.getScript("//connect.facebook.net/<%= locale %>/all/debug.js");
         | 
| 66 | 
            +
                  <% else %>
         | 
| 67 | 
            +
                  $.getScript("//connect.facebook.net/<%= locale %>/all.js");
         | 
| 68 | 
            +
                  <% end %>
         | 
| 69 | 
            +
                };
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                initializeFacebookSDK = function() {
         | 
| 72 | 
            +
                  FB.init({
         | 
| 73 | 
            +
                    appId      : '<%= app_id %>',
         | 
| 74 | 
            +
                    channelUrl : '//<%= domain %>/channel.html',
         | 
| 75 | 
            +
                    status     : <%= status %>,
         | 
| 76 | 
            +
                    cookie     : <%= cookie %>,
         | 
| 77 | 
            +
                    xfbml      : <%= xfbml %>
         | 
| 78 | 
            +
                  });
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                  <% if block %>
         | 
| 81 | 
            +
                    <%= block %>
         | 
| 82 | 
            +
                  <% end %>
         | 
| 83 | 
            +
                };
         | 
| 84 | 
            +
              }).call(this);
         | 
| 85 | 
            +
            </script>
         | 
| 86 | 
            +
            <% end %>
         | 
    
        data/lib/facebook_js/version.rb
    CHANGED
    
    
    
        data/test/dummy/log/test.log
    CHANGED
    
    | @@ -1496,3 +1496,247 @@ Started GET "/channel.html" for 127.0.0.1 at 2013-03-17 21:29:30 -0700 | |
| 1496 1496 | 
             
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1497 1497 | 
             
            ------------------------------------------------------------
         | 
| 1498 1498 | 
             
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-17 21:29:30 -0700
         | 
| 1499 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1500 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_block
         | 
| 1501 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1502 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (41.2ms)
         | 
| 1503 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1504 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_cookie
         | 
| 1505 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1506 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.2ms)
         | 
| 1507 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1508 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_debug
         | 
| 1509 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1510 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.0ms)
         | 
| 1511 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1512 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_locale
         | 
| 1513 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1514 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.0ms)
         | 
| 1515 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1516 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_status
         | 
| 1517 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1518 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.1ms)
         | 
| 1519 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1520 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_xfbml
         | 
| 1521 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1522 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.2ms)
         | 
| 1523 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1524 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_default_content
         | 
| 1525 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1526 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.5ms)
         | 
| 1527 | 
            +
            --------------------------
         | 
| 1528 | 
            +
            FacebookJsTest: test_truth
         | 
| 1529 | 
            +
            --------------------------
         | 
| 1530 | 
            +
            -----------------------------------------------------------------
         | 
| 1531 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_content
         | 
| 1532 | 
            +
            -----------------------------------------------------------------
         | 
| 1533 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:52:33 -0700
         | 
| 1534 | 
            +
            -----------------------------------------------------------------
         | 
| 1535 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_headers
         | 
| 1536 | 
            +
            -----------------------------------------------------------------
         | 
| 1537 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:52:33 -0700
         | 
| 1538 | 
            +
            ------------------------------------------------------------
         | 
| 1539 | 
            +
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1540 | 
            +
            ------------------------------------------------------------
         | 
| 1541 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:52:33 -0700
         | 
| 1542 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1543 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_block
         | 
| 1544 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1545 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (46.2ms)
         | 
| 1546 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1547 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_cookie
         | 
| 1548 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1549 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.1ms)
         | 
| 1550 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1551 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_debug
         | 
| 1552 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1553 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.2ms)
         | 
| 1554 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1555 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_locale
         | 
| 1556 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1557 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.0ms)
         | 
| 1558 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1559 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_status
         | 
| 1560 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1561 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.1ms)
         | 
| 1562 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1563 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_xfbml
         | 
| 1564 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1565 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.7ms)
         | 
| 1566 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1567 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_default_content
         | 
| 1568 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1569 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (7.1ms)
         | 
| 1570 | 
            +
            --------------------------
         | 
| 1571 | 
            +
            FacebookJsTest: test_truth
         | 
| 1572 | 
            +
            --------------------------
         | 
| 1573 | 
            +
            -----------------------------------------------------------------
         | 
| 1574 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_content
         | 
| 1575 | 
            +
            -----------------------------------------------------------------
         | 
| 1576 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:52:56 -0700
         | 
| 1577 | 
            +
            -----------------------------------------------------------------
         | 
| 1578 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_headers
         | 
| 1579 | 
            +
            -----------------------------------------------------------------
         | 
| 1580 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:52:56 -0700
         | 
| 1581 | 
            +
            ------------------------------------------------------------
         | 
| 1582 | 
            +
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1583 | 
            +
            ------------------------------------------------------------
         | 
| 1584 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:52:56 -0700
         | 
| 1585 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1586 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_block
         | 
| 1587 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1588 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1589 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_cookie
         | 
| 1590 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1591 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1592 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_debug
         | 
| 1593 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1594 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1595 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_locale
         | 
| 1596 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1597 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1598 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_status
         | 
| 1599 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1600 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1601 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_xfbml
         | 
| 1602 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1603 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1604 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_default_content
         | 
| 1605 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1606 | 
            +
            --------------------------
         | 
| 1607 | 
            +
            FacebookJsTest: test_truth
         | 
| 1608 | 
            +
            --------------------------
         | 
| 1609 | 
            +
            -----------------------------------------------------------------
         | 
| 1610 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_content
         | 
| 1611 | 
            +
            -----------------------------------------------------------------
         | 
| 1612 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:53:29 -0700
         | 
| 1613 | 
            +
            -----------------------------------------------------------------
         | 
| 1614 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_headers
         | 
| 1615 | 
            +
            -----------------------------------------------------------------
         | 
| 1616 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:53:29 -0700
         | 
| 1617 | 
            +
            ------------------------------------------------------------
         | 
| 1618 | 
            +
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1619 | 
            +
            ------------------------------------------------------------
         | 
| 1620 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:53:29 -0700
         | 
| 1621 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1622 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_block
         | 
| 1623 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1624 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (1.1ms)
         | 
| 1625 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1626 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_cookie
         | 
| 1627 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1628 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1629 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1630 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_debug
         | 
| 1631 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1632 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1633 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1634 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_locale
         | 
| 1635 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1636 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1637 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1638 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_status
         | 
| 1639 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1640 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1641 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1642 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_xfbml
         | 
| 1643 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1644 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1645 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1646 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_default_content
         | 
| 1647 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1648 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1649 | 
            +
            --------------------------
         | 
| 1650 | 
            +
            FacebookJsTest: test_truth
         | 
| 1651 | 
            +
            --------------------------
         | 
| 1652 | 
            +
            -----------------------------------------------------------------
         | 
| 1653 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_content
         | 
| 1654 | 
            +
            -----------------------------------------------------------------
         | 
| 1655 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:53:45 -0700
         | 
| 1656 | 
            +
            -----------------------------------------------------------------
         | 
| 1657 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_headers
         | 
| 1658 | 
            +
            -----------------------------------------------------------------
         | 
| 1659 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:53:45 -0700
         | 
| 1660 | 
            +
            ------------------------------------------------------------
         | 
| 1661 | 
            +
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1662 | 
            +
            ------------------------------------------------------------
         | 
| 1663 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 22:53:45 -0700
         | 
| 1664 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1665 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_block
         | 
| 1666 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1667 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1668 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_cookie
         | 
| 1669 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1670 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1671 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_debug
         | 
| 1672 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1673 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1674 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_locale
         | 
| 1675 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1676 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1677 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_status
         | 
| 1678 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1679 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1680 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_xfbml
         | 
| 1681 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1682 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1683 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_default_content
         | 
| 1684 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1685 | 
            +
            --------------------------
         | 
| 1686 | 
            +
            FacebookJsTest: test_truth
         | 
| 1687 | 
            +
            --------------------------
         | 
| 1688 | 
            +
            -----------------------------------------------------------------
         | 
| 1689 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_content
         | 
| 1690 | 
            +
            -----------------------------------------------------------------
         | 
| 1691 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 23:09:07 -0700
         | 
| 1692 | 
            +
            -----------------------------------------------------------------
         | 
| 1693 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_headers
         | 
| 1694 | 
            +
            -----------------------------------------------------------------
         | 
| 1695 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 23:09:07 -0700
         | 
| 1696 | 
            +
            ------------------------------------------------------------
         | 
| 1697 | 
            +
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1698 | 
            +
            ------------------------------------------------------------
         | 
| 1699 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 23:09:07 -0700
         | 
| 1700 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1701 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_block
         | 
| 1702 | 
            +
            ----------------------------------------------------------------------------------
         | 
| 1703 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (1.2ms)
         | 
| 1704 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1705 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_cookie
         | 
| 1706 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1707 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1708 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1709 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_debug
         | 
| 1710 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1711 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1712 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1713 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_locale
         | 
| 1714 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1715 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1716 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1717 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_status
         | 
| 1718 | 
            +
            ------------------------------------------------------------------------------------------
         | 
| 1719 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1720 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1721 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_content_with_proper_xfbml
         | 
| 1722 | 
            +
            -----------------------------------------------------------------------------------------
         | 
| 1723 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1724 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1725 | 
            +
            FacebookJsHelperTest: test_facebook_js_should_render_the_proper_default_content
         | 
| 1726 | 
            +
            -------------------------------------------------------------------------------
         | 
| 1727 | 
            +
              Rendered /Users/siong1987/Projects/facebook_js/app/views/facebook_js_helper/_facebook.html.erb (0.1ms)
         | 
| 1728 | 
            +
            --------------------------
         | 
| 1729 | 
            +
            FacebookJsTest: test_truth
         | 
| 1730 | 
            +
            --------------------------
         | 
| 1731 | 
            +
            -----------------------------------------------------------------
         | 
| 1732 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_content
         | 
| 1733 | 
            +
            -----------------------------------------------------------------
         | 
| 1734 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 23:09:53 -0700
         | 
| 1735 | 
            +
            -----------------------------------------------------------------
         | 
| 1736 | 
            +
            NavigationTest: test_/channel.html_should_have_the_proper_headers
         | 
| 1737 | 
            +
            -----------------------------------------------------------------
         | 
| 1738 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 23:09:53 -0700
         | 
| 1739 | 
            +
            ------------------------------------------------------------
         | 
| 1740 | 
            +
            NavigationTest: test_/channel.html_should_show_proper_locale
         | 
| 1741 | 
            +
            ------------------------------------------------------------
         | 
| 1742 | 
            +
            Started GET "/channel.html" for 127.0.0.1 at 2013-03-19 23:09:53 -0700
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: facebook_js
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Teng Siong Ong
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2013-03- | 
| 11 | 
            +
            date: 2013-03-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         | 
| @@ -37,7 +37,6 @@ files: | |
| 37 37 | 
             
            - lib/facebook_js/engine.rb
         | 
| 38 38 | 
             
            - lib/facebook_js/version.rb
         | 
| 39 39 | 
             
            - lib/facebook_js.rb
         | 
| 40 | 
            -
            - MIT-LICENSE
         | 
| 41 40 | 
             
            - Rakefile
         | 
| 42 41 | 
             
            - README.md
         | 
| 43 42 | 
             
            - test/dummy/app/assets/javascripts/application.js
         | 
    
        data/MIT-LICENSE
    DELETED
    
    | @@ -1,20 +0,0 @@ | |
| 1 | 
            -
            Copyright 2013 YOURNAME
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            -
            a copy of this software and associated documentation files (the
         | 
| 5 | 
            -
            "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            -
            without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            -
            distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            -
            permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            -
            the following conditions:
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            The above copyright notice and this permission notice shall be
         | 
| 12 | 
            -
            included in all copies or substantial portions of the Software.
         | 
| 13 | 
            -
             | 
| 14 | 
            -
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            -
            EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            -
            MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            -
            NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            -
            LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            -
            OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            -
            WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         |