disqussion 0.0.2 → 0.0.3
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/Gemfile.lock +3 -3
 - data/HISTORY.mkd +9 -0
 - data/README.mkd +4 -2
 - data/lib/disqussion/client/forums.rb +38 -1
 - data/lib/disqussion/client/users.rb +69 -17
 - data/lib/disqussion/version.rb +1 -1
 - data/spec/disqussion/client/forums_spec.rb +30 -8
 - data/spec/disqussion/client/posts_spec.rb +8 -0
 - data/spec/disqussion/client/threads_spec.rb +20 -0
 - data/spec/disqussion/client/users_spec.rb +68 -3
 - data/spec/fixtures/forums/create.json +1 -1
 - data/spec/fixtures/forums/details.json +1 -1
 - data/spec/fixtures/forums/listMostLikedUsers.json +510 -0
 - data/spec/fixtures/forums/listThreads.json +25 -25
 - data/spec/fixtures/forums/listUsers.json +490 -0
 - data/spec/fixtures/threads/create.json +1 -1
 - data/spec/fixtures/threads/details.json +1 -1
 - data/spec/fixtures/threads/list.json +25 -25
 - data/spec/fixtures/threads/listMostLiked.json +25 -25
 - data/spec/fixtures/users/details.json +1 -1
 - data/spec/fixtures/users/listActiveForums.json +32 -0
 - data/spec/fixtures/users/listForums.json +41 -0
 - data/spec/fixtures/users/listPosts.json +55 -0
 - data/spec/fixtures/users/unfollow.json +4 -0
 - metadata +13 -1
 
| 
         @@ -0,0 +1,32 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "cursor": {
         
     | 
| 
      
 3 
     | 
    
         
            +
                "prev": null, 
         
     | 
| 
      
 4 
     | 
    
         
            +
                "hasNext": false, 
         
     | 
| 
      
 5 
     | 
    
         
            +
                "next": "794542:0:0", 
         
     | 
| 
      
 6 
     | 
    
         
            +
                "hasPrev": false, 
         
     | 
| 
      
 7 
     | 
    
         
            +
                "total": null, 
         
     | 
| 
      
 8 
     | 
    
         
            +
                "id": "794542:0:0", 
         
     | 
| 
      
 9 
     | 
    
         
            +
                "more": false
         
     | 
| 
      
 10 
     | 
    
         
            +
              }, 
         
     | 
| 
      
 11 
     | 
    
         
            +
              "code": 0, 
         
     | 
| 
      
 12 
     | 
    
         
            +
              "response": [
         
     | 
| 
      
 13 
     | 
    
         
            +
                {
         
     | 
| 
      
 14 
     | 
    
         
            +
                  "id": "yvanrodic", 
         
     | 
| 
      
 15 
     | 
    
         
            +
                  "name": "Yvan Rodic", 
         
     | 
| 
      
 16 
     | 
    
         
            +
                  "founder": "1234", 
         
     | 
| 
      
 17 
     | 
    
         
            +
                  "favicon": {
         
     | 
| 
      
 18 
     | 
    
         
            +
                    "permalink": "http://disqus.com/api/forums/favicons/yvanrodic.jpg", 
         
     | 
| 
      
 19 
     | 
    
         
            +
                    "cache": "http://mediacdn.disqus.com/1305667412/images/favicon-default.png"
         
     | 
| 
      
 20 
     | 
    
         
            +
                  }
         
     | 
| 
      
 21 
     | 
    
         
            +
                }, 
         
     | 
| 
      
 22 
     | 
    
         
            +
                {
         
     | 
| 
      
 23 
     | 
    
         
            +
                  "id": "atestforum", 
         
     | 
| 
      
 24 
     | 
    
         
            +
                  "name": "the88", 
         
     | 
| 
      
 25 
     | 
    
         
            +
                  "founder": "1234", 
         
     | 
| 
      
 26 
     | 
    
         
            +
                  "favicon": {
         
     | 
| 
      
 27 
     | 
    
         
            +
                    "permalink": "http://disqus.com/api/forums/favicons/atestforum.jpg", 
         
     | 
| 
      
 28 
     | 
    
         
            +
                    "cache": "http://mediacdn.disqus.com/1305667412/images/favicon-default.png"
         
     | 
| 
      
 29 
     | 
    
         
            +
                  }
         
     | 
| 
      
 30 
     | 
    
         
            +
                }
         
     | 
| 
      
 31 
     | 
    
         
            +
              ]
         
     | 
| 
      
 32 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -0,0 +1,41 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "cursor": {
         
     | 
| 
      
 3 
     | 
    
         
            +
                "prev": null, 
         
     | 
| 
      
 4 
     | 
    
         
            +
                "hasNext": false, 
         
     | 
| 
      
 5 
     | 
    
         
            +
                "next": "794542:0:0", 
         
     | 
| 
      
 6 
     | 
    
         
            +
                "hasPrev": false, 
         
     | 
| 
      
 7 
     | 
    
         
            +
                "total": null, 
         
     | 
| 
      
 8 
     | 
    
         
            +
                "id": "794542:0:0", 
         
     | 
| 
      
 9 
     | 
    
         
            +
                "more": false
         
     | 
| 
      
 10 
     | 
    
         
            +
              }, 
         
     | 
| 
      
 11 
     | 
    
         
            +
              "code": 0, 
         
     | 
| 
      
 12 
     | 
    
         
            +
              "response": [
         
     | 
| 
      
 13 
     | 
    
         
            +
                {
         
     | 
| 
      
 14 
     | 
    
         
            +
                  "id": "the88", 
         
     | 
| 
      
 15 
     | 
    
         
            +
                  "name": "The 88", 
         
     | 
| 
      
 16 
     | 
    
         
            +
                  "founder": "1234", 
         
     | 
| 
      
 17 
     | 
    
         
            +
                  "favicon": {
         
     | 
| 
      
 18 
     | 
    
         
            +
                    "permalink": "http://disqus.com/api/forums/favicons/the88.jpg", 
         
     | 
| 
      
 19 
     | 
    
         
            +
                    "cache": "http://mediacdn.disqus.com/1305667412/images/favicon-default.png"
         
     | 
| 
      
 20 
     | 
    
         
            +
                  }
         
     | 
| 
      
 21 
     | 
    
         
            +
                }, 
         
     | 
| 
      
 22 
     | 
    
         
            +
                {
         
     | 
| 
      
 23 
     | 
    
         
            +
                  "id": "yvanrodic", 
         
     | 
| 
      
 24 
     | 
    
         
            +
                  "name": "Yvan Rodic", 
         
     | 
| 
      
 25 
     | 
    
         
            +
                  "founder": "1234", 
         
     | 
| 
      
 26 
     | 
    
         
            +
                  "favicon": {
         
     | 
| 
      
 27 
     | 
    
         
            +
                    "permalink": "http://disqus.com/api/forums/favicons/yvanrodic.jpg", 
         
     | 
| 
      
 28 
     | 
    
         
            +
                    "cache": "http://mediacdn.disqus.com/1305667412/images/favicon-default.png"
         
     | 
| 
      
 29 
     | 
    
         
            +
                  }
         
     | 
| 
      
 30 
     | 
    
         
            +
                }, 
         
     | 
| 
      
 31 
     | 
    
         
            +
                {
         
     | 
| 
      
 32 
     | 
    
         
            +
                  "id": "atestforum", 
         
     | 
| 
      
 33 
     | 
    
         
            +
                  "name": "the88", 
         
     | 
| 
      
 34 
     | 
    
         
            +
                  "founder": "1234", 
         
     | 
| 
      
 35 
     | 
    
         
            +
                  "favicon": {
         
     | 
| 
      
 36 
     | 
    
         
            +
                    "permalink": "http://disqus.com/api/forums/favicons/atestforum.jpg", 
         
     | 
| 
      
 37 
     | 
    
         
            +
                    "cache": "http://mediacdn.disqus.com/1305667412/images/favicon-default.png"
         
     | 
| 
      
 38 
     | 
    
         
            +
                  }
         
     | 
| 
      
 39 
     | 
    
         
            +
                }
         
     | 
| 
      
 40 
     | 
    
         
            +
              ]
         
     | 
| 
      
 41 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -0,0 +1,55 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "cursor": {
         
     | 
| 
      
 3 
     | 
    
         
            +
                "prev": null, 
         
     | 
| 
      
 4 
     | 
    
         
            +
                "hasNext": false, 
         
     | 
| 
      
 5 
     | 
    
         
            +
                "next": "1303800218834840:1:0", 
         
     | 
| 
      
 6 
     | 
    
         
            +
                "hasPrev": false, 
         
     | 
| 
      
 7 
     | 
    
         
            +
                "total": null, 
         
     | 
| 
      
 8 
     | 
    
         
            +
                "id": "1303800218834840:1:0", 
         
     | 
| 
      
 9 
     | 
    
         
            +
                "more": false
         
     | 
| 
      
 10 
     | 
    
         
            +
              }, 
         
     | 
| 
      
 11 
     | 
    
         
            +
              "code": 0, 
         
     | 
| 
      
 12 
     | 
    
         
            +
              "response": [
         
     | 
| 
      
 13 
     | 
    
         
            +
                {
         
     | 
| 
      
 14 
     | 
    
         
            +
                  "isJuliaFlagged": true, 
         
     | 
| 
      
 15 
     | 
    
         
            +
                  "isFlagged": false, 
         
     | 
| 
      
 16 
     | 
    
         
            +
                  "forum": "yvanrodic", 
         
     | 
| 
      
 17 
     | 
    
         
            +
                  "parent": null, 
         
     | 
| 
      
 18 
     | 
    
         
            +
                  "author": {
         
     | 
| 
      
 19 
     | 
    
         
            +
                    "username": "google-9538b2827dc7c95eaac156af309352c8", 
         
     | 
| 
      
 20 
     | 
    
         
            +
                    "about": "", 
         
     | 
| 
      
 21 
     | 
    
         
            +
                    "remote": {
         
     | 
| 
      
 22 
     | 
    
         
            +
                      "domain": "google", 
         
     | 
| 
      
 23 
     | 
    
         
            +
                      "identifier": "9538b2827dc7c95eaac156af309352c8"
         
     | 
| 
      
 24 
     | 
    
         
            +
                    }, 
         
     | 
| 
      
 25 
     | 
    
         
            +
                    "name": "Yejin Baek", 
         
     | 
| 
      
 26 
     | 
    
         
            +
                    "url": "http://profiles.google.com/baekyejin", 
         
     | 
| 
      
 27 
     | 
    
         
            +
                    "isFollowing": false, 
         
     | 
| 
      
 28 
     | 
    
         
            +
                    "isFollowedBy": false, 
         
     | 
| 
      
 29 
     | 
    
         
            +
                    "profileUrl": "http://disqus.com/google-9538b2827dc7c95eaac156af309352c8/", 
         
     | 
| 
      
 30 
     | 
    
         
            +
                    "emailHash": "9538b2827dc7c95eaac156af309352c8", 
         
     | 
| 
      
 31 
     | 
    
         
            +
                    "avatar": {
         
     | 
| 
      
 32 
     | 
    
         
            +
                      "permalink": "http://disqus.com/api/users/avatars/google-9538b2827dc7c95eaac156af309352c8.jpg", 
         
     | 
| 
      
 33 
     | 
    
         
            +
                      "cache": "http://mediacdn.disqus.com/1305667412/images/noavatar92.png"
         
     | 
| 
      
 34 
     | 
    
         
            +
                    }, 
         
     | 
| 
      
 35 
     | 
    
         
            +
                    "id": "9570778", 
         
     | 
| 
      
 36 
     | 
    
         
            +
                    "isAnonymous": false, 
         
     | 
| 
      
 37 
     | 
    
         
            +
                    "email": "baekyejin@gmail.com"
         
     | 
| 
      
 38 
     | 
    
         
            +
                  }, 
         
     | 
| 
      
 39 
     | 
    
         
            +
                  "media": [], 
         
     | 
| 
      
 40 
     | 
    
         
            +
                  "isApproved": true, 
         
     | 
| 
      
 41 
     | 
    
         
            +
                  "dislikes": 0, 
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "raw_message": "good pictures  :)", 
         
     | 
| 
      
 43 
     | 
    
         
            +
                  "isSpam": false, 
         
     | 
| 
      
 44 
     | 
    
         
            +
                  "thread": "288449201", 
         
     | 
| 
      
 45 
     | 
    
         
            +
                  "points": 1, 
         
     | 
| 
      
 46 
     | 
    
         
            +
                  "createdAt": "2011-04-26T06:43:38", 
         
     | 
| 
      
 47 
     | 
    
         
            +
                  "message": "good pictures  :)", 
         
     | 
| 
      
 48 
     | 
    
         
            +
                  "isHighlighted": false, 
         
     | 
| 
      
 49 
     | 
    
         
            +
                  "ipAddress": "211.41.223.20", 
         
     | 
| 
      
 50 
     | 
    
         
            +
                  "id": "191921097", 
         
     | 
| 
      
 51 
     | 
    
         
            +
                  "isDeleted": false, 
         
     | 
| 
      
 52 
     | 
    
         
            +
                  "likes": 1
         
     | 
| 
      
 53 
     | 
    
         
            +
                }
         
     | 
| 
      
 54 
     | 
    
         
            +
              ]
         
     | 
| 
      
 55 
     | 
    
         
            +
            }
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            name: disqussion
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
4 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       5 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 5 
     | 
    
         
            +
              version: 0.0.3
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors: 
         
     | 
| 
       8 
8 
     | 
    
         
             
            - "J\xC3\xA9r\xC3\xA9my Van de Wyngaert"
         
     | 
| 
         @@ -239,8 +239,10 @@ files: 
     | 
|
| 
       239 
239 
     | 
    
         
             
            - spec/fixtures/forums/create.json
         
     | 
| 
       240 
240 
     | 
    
         
             
            - spec/fixtures/forums/details.json
         
     | 
| 
       241 
241 
     | 
    
         
             
            - spec/fixtures/forums/listCategories.json
         
     | 
| 
      
 242 
     | 
    
         
            +
            - spec/fixtures/forums/listMostLikedUsers.json
         
     | 
| 
       242 
243 
     | 
    
         
             
            - spec/fixtures/forums/listPosts.json
         
     | 
| 
       243 
244 
     | 
    
         
             
            - spec/fixtures/forums/listThreads.json
         
     | 
| 
      
 245 
     | 
    
         
            +
            - spec/fixtures/forums/listUsers.json
         
     | 
| 
       244 
246 
     | 
    
         
             
            - spec/fixtures/posts/approve.json
         
     | 
| 
       245 
247 
     | 
    
         
             
            - spec/fixtures/posts/create.json
         
     | 
| 
       246 
248 
     | 
    
         
             
            - spec/fixtures/posts/details.json
         
     | 
| 
         @@ -269,6 +271,10 @@ files: 
     | 
|
| 
       269 
271 
     | 
    
         
             
            - spec/fixtures/trends/listTreads.json
         
     | 
| 
       270 
272 
     | 
    
         
             
            - spec/fixtures/users/details.json
         
     | 
| 
       271 
273 
     | 
    
         
             
            - spec/fixtures/users/follow.json
         
     | 
| 
      
 274 
     | 
    
         
            +
            - spec/fixtures/users/listActiveForums.json
         
     | 
| 
      
 275 
     | 
    
         
            +
            - spec/fixtures/users/listForums.json
         
     | 
| 
      
 276 
     | 
    
         
            +
            - spec/fixtures/users/listPosts.json
         
     | 
| 
      
 277 
     | 
    
         
            +
            - spec/fixtures/users/unfollow.json
         
     | 
| 
       272 
278 
     | 
    
         
             
            - spec/helper.rb
         
     | 
| 
       273 
279 
     | 
    
         
             
            has_rdoc: true
         
     | 
| 
       274 
280 
     | 
    
         
             
            homepage: https://github.com/jeremyvdw/disqussion
         
     | 
| 
         @@ -315,8 +321,10 @@ test_files: 
     | 
|
| 
       315 
321 
     | 
    
         
             
            - spec/fixtures/forums/create.json
         
     | 
| 
       316 
322 
     | 
    
         
             
            - spec/fixtures/forums/details.json
         
     | 
| 
       317 
323 
     | 
    
         
             
            - spec/fixtures/forums/listCategories.json
         
     | 
| 
      
 324 
     | 
    
         
            +
            - spec/fixtures/forums/listMostLikedUsers.json
         
     | 
| 
       318 
325 
     | 
    
         
             
            - spec/fixtures/forums/listPosts.json
         
     | 
| 
       319 
326 
     | 
    
         
             
            - spec/fixtures/forums/listThreads.json
         
     | 
| 
      
 327 
     | 
    
         
            +
            - spec/fixtures/forums/listUsers.json
         
     | 
| 
       320 
328 
     | 
    
         
             
            - spec/fixtures/posts/approve.json
         
     | 
| 
       321 
329 
     | 
    
         
             
            - spec/fixtures/posts/create.json
         
     | 
| 
       322 
330 
     | 
    
         
             
            - spec/fixtures/posts/details.json
         
     | 
| 
         @@ -345,4 +353,8 @@ test_files: 
     | 
|
| 
       345 
353 
     | 
    
         
             
            - spec/fixtures/trends/listTreads.json
         
     | 
| 
       346 
354 
     | 
    
         
             
            - spec/fixtures/users/details.json
         
     | 
| 
       347 
355 
     | 
    
         
             
            - spec/fixtures/users/follow.json
         
     | 
| 
      
 356 
     | 
    
         
            +
            - spec/fixtures/users/listActiveForums.json
         
     | 
| 
      
 357 
     | 
    
         
            +
            - spec/fixtures/users/listForums.json
         
     | 
| 
      
 358 
     | 
    
         
            +
            - spec/fixtures/users/listPosts.json
         
     | 
| 
      
 359 
     | 
    
         
            +
            - spec/fixtures/users/unfollow.json
         
     | 
| 
       348 
360 
     | 
    
         
             
            - spec/helper.rb
         
     |