facebook_oauth 0.2.0 → 0.2.1
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/README.textile +13 -2
- metadata +61 -27
    
        data/README.textile
    CHANGED
    
    | @@ -80,8 +80,19 @@ In order to publish content to a user you need to have the correct permissions. | |
| 80 80 |  | 
| 81 81 | 
             
            <pre><code>client.authorize_url(:scope => 'publish_stream')</code></pre>
         | 
| 82 82 |  | 
| 83 | 
            -
            The scope is a comma-separated list of permissions.  See the "Facebook Permissions  | 
| 83 | 
            +
            The scope is a comma-separated list of permissions.  See the "Facebook Permissions Documentation":http://developers.facebook.com/docs/authentication/permissions for more information.
         | 
| 84 84 |  | 
| 85 85 | 
             
            With the correct permissions you can now post to a users wall like this:
         | 
| 86 86 |  | 
| 87 | 
            -
            <pre><code>client.me.feed(:create, :message => 'Testing writing to your wall...')</pre | 
| 87 | 
            +
            <pre><code>client.me.feed(:create, :message => 'Testing writing to your wall...')</code></pre>
         | 
| 88 | 
            +
             | 
| 89 | 
            +
            Other examples include:
         | 
| 90 | 
            +
             | 
| 91 | 
            +
            <pre><code>client.event('event_id').attending(:create) # the user is attending the event
         | 
| 92 | 
            +
            client.post('post_id').comments(:create, :message => 'my comment') # comment on a post
         | 
| 93 | 
            +
            client.user('user_id').albums(:create, :name => 'my album', :message => 'cool pictures') # create an album
         | 
| 94 | 
            +
            </code></pre>
         | 
| 95 | 
            +
             | 
| 96 | 
            +
            For a full list of supported publishing objects and parameters check out the "Facebook API Documentation":http://developers.facebook.com/docs/api under "Publishing to Facebook."
         | 
| 97 | 
            +
             | 
| 98 | 
            +
            NOTE:  I still have to implement the upload a photo method.  Also if you can think of a better syntax for the create methods let me know!
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: facebook_oauth
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
               | 
| 4 | 
            +
              hash: 21
         | 
| 5 | 
            +
              prerelease: false
         | 
| 6 | 
            +
              segments: 
         | 
| 7 | 
            +
              - 0
         | 
| 8 | 
            +
              - 2
         | 
| 9 | 
            +
              - 1
         | 
| 10 | 
            +
              version: 0.2.1
         | 
| 5 11 | 
             
            platform: ruby
         | 
| 6 12 | 
             
            authors: 
         | 
| 7 13 | 
             
            - Richard Taylor
         | 
| @@ -14,57 +20,79 @@ default_executable: | |
| 14 20 | 
             
            dependencies: 
         | 
| 15 21 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 16 22 | 
             
              name: oauth2
         | 
| 17 | 
            -
               | 
| 18 | 
            -
               | 
| 19 | 
            -
             | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              requirement: &id001 !ruby/object:Gem::Requirement 
         | 
| 25 | 
            +
                none: false
         | 
| 20 26 | 
             
                requirements: 
         | 
| 21 27 | 
             
                - - ">="
         | 
| 22 28 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 29 | 
            +
                    hash: 15
         | 
| 30 | 
            +
                    segments: 
         | 
| 31 | 
            +
                    - 0
         | 
| 32 | 
            +
                    - 0
         | 
| 33 | 
            +
                    - 8
         | 
| 23 34 | 
             
                    version: 0.0.8
         | 
| 24 | 
            -
             | 
| 35 | 
            +
              type: :runtime
         | 
| 36 | 
            +
              version_requirements: *id001
         | 
| 25 37 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 26 38 | 
             
              name: json
         | 
| 27 | 
            -
               | 
| 28 | 
            -
               | 
| 29 | 
            -
             | 
| 39 | 
            +
              prerelease: false
         | 
| 40 | 
            +
              requirement: &id002 !ruby/object:Gem::Requirement 
         | 
| 41 | 
            +
                none: false
         | 
| 30 42 | 
             
                requirements: 
         | 
| 31 43 | 
             
                - - ">="
         | 
| 32 44 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 45 | 
            +
                    hash: 1
         | 
| 46 | 
            +
                    segments: 
         | 
| 47 | 
            +
                    - 1
         | 
| 48 | 
            +
                    - 1
         | 
| 49 | 
            +
                    - 9
         | 
| 33 50 | 
             
                    version: 1.1.9
         | 
| 34 | 
            -
             | 
| 35 | 
            -
             | 
| 36 | 
            -
                    version: 1.2.4
         | 
| 37 | 
            -
                version: 
         | 
| 51 | 
            +
              type: :runtime
         | 
| 52 | 
            +
              version_requirements: *id002
         | 
| 38 53 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 39 54 | 
             
              name: mime-types
         | 
| 40 | 
            -
               | 
| 41 | 
            -
               | 
| 42 | 
            -
             | 
| 55 | 
            +
              prerelease: false
         | 
| 56 | 
            +
              requirement: &id003 !ruby/object:Gem::Requirement 
         | 
| 57 | 
            +
                none: false
         | 
| 43 58 | 
             
                requirements: 
         | 
| 44 59 | 
             
                - - ">="
         | 
| 45 60 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 61 | 
            +
                    hash: 47
         | 
| 62 | 
            +
                    segments: 
         | 
| 63 | 
            +
                    - 1
         | 
| 64 | 
            +
                    - 16
         | 
| 46 65 | 
             
                    version: "1.16"
         | 
| 47 | 
            -
             | 
| 66 | 
            +
              type: :runtime
         | 
| 67 | 
            +
              version_requirements: *id003
         | 
| 48 68 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 49 69 | 
             
              name: shoulda
         | 
| 50 | 
            -
               | 
| 51 | 
            -
               | 
| 52 | 
            -
             | 
| 70 | 
            +
              prerelease: false
         | 
| 71 | 
            +
              requirement: &id004 !ruby/object:Gem::Requirement 
         | 
| 72 | 
            +
                none: false
         | 
| 53 73 | 
             
                requirements: 
         | 
| 54 74 | 
             
                - - ">="
         | 
| 55 75 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 76 | 
            +
                    hash: 3
         | 
| 77 | 
            +
                    segments: 
         | 
| 78 | 
            +
                    - 0
         | 
| 56 79 | 
             
                    version: "0"
         | 
| 57 | 
            -
             | 
| 80 | 
            +
              type: :development
         | 
| 81 | 
            +
              version_requirements: *id004
         | 
| 58 82 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 59 83 | 
             
              name: mocha
         | 
| 60 | 
            -
               | 
| 61 | 
            -
               | 
| 62 | 
            -
             | 
| 84 | 
            +
              prerelease: false
         | 
| 85 | 
            +
              requirement: &id005 !ruby/object:Gem::Requirement 
         | 
| 86 | 
            +
                none: false
         | 
| 63 87 | 
             
                requirements: 
         | 
| 64 88 | 
             
                - - ">="
         | 
| 65 89 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 90 | 
            +
                    hash: 3
         | 
| 91 | 
            +
                    segments: 
         | 
| 92 | 
            +
                    - 0
         | 
| 66 93 | 
             
                    version: "0"
         | 
| 67 | 
            -
             | 
| 94 | 
            +
              type: :development
         | 
| 95 | 
            +
              version_requirements: *id005
         | 
| 68 96 | 
             
            description: facebook_oauth is a Ruby client library for the Facebook OAuth Graph API
         | 
| 69 97 | 
             
            email: moomerman@gmail.com
         | 
| 70 98 | 
             
            executables: []
         | 
| @@ -90,21 +118,27 @@ rdoc_options: | |
| 90 118 | 
             
            require_paths: 
         | 
| 91 119 | 
             
            - lib
         | 
| 92 120 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         | 
| 121 | 
            +
              none: false
         | 
| 93 122 | 
             
              requirements: 
         | 
| 94 123 | 
             
              - - ">="
         | 
| 95 124 | 
             
                - !ruby/object:Gem::Version 
         | 
| 125 | 
            +
                  hash: 3
         | 
| 126 | 
            +
                  segments: 
         | 
| 127 | 
            +
                  - 0
         | 
| 96 128 | 
             
                  version: "0"
         | 
| 97 | 
            -
              version: 
         | 
| 98 129 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement 
         | 
| 130 | 
            +
              none: false
         | 
| 99 131 | 
             
              requirements: 
         | 
| 100 132 | 
             
              - - ">="
         | 
| 101 133 | 
             
                - !ruby/object:Gem::Version 
         | 
| 134 | 
            +
                  hash: 3
         | 
| 135 | 
            +
                  segments: 
         | 
| 136 | 
            +
                  - 0
         | 
| 102 137 | 
             
                  version: "0"
         | 
| 103 | 
            -
              version: 
         | 
| 104 138 | 
             
            requirements: []
         | 
| 105 139 |  | 
| 106 140 | 
             
            rubyforge_project: facebook_oauth
         | 
| 107 | 
            -
            rubygems_version: 1.3. | 
| 141 | 
            +
            rubygems_version: 1.3.7
         | 
| 108 142 | 
             
            signing_key: 
         | 
| 109 143 | 
             
            specification_version: 2
         | 
| 110 144 | 
             
            summary: facebook_oauth is a Ruby client library for the Facebook OAuth Graph API
         |