meducation_sdk 1.5.4 → 1.5.5
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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a6e343c43721ce0479ee1887db2e39a8dd4f3fb2
         | 
| 4 | 
            +
              data.tar.gz: 58e46682ea58c80837c73811234dbb3b403eb608
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 552bc6f39ffc04e61834c9742d93c92bdd4d63284049dfed39d1b719e01d70b7fd46dd1232e90b55b1611af6fa829683954f104277fe0d13baecc3296d8697b2
         | 
| 7 | 
            +
              data.tar.gz: 2edfd6203765b8acf5233b5849b6d5490b1649aca0d21bd8c997063ad20891f3757780e56a7749c739dc94f64ed3935554b435a160d8bdb9140823899da1cc18
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/lib/meducation_sdk.rb
    CHANGED
    
    
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            module MeducationSDK
         | 
| 2 | 
            -
              class  | 
| 3 | 
            -
                self.path = "/ | 
| 2 | 
            +
              class BoardFollow < Resource
         | 
| 3 | 
            +
                self.path = "/board_follows"
         | 
| 4 4 |  | 
| 5 5 | 
             
                def board
         | 
| 6 6 | 
             
                  @board ||= Board.find(board_id)
         | 
| @@ -12,7 +12,7 @@ module MeducationSDK | |
| 12 12 |  | 
| 13 13 | 
             
              end
         | 
| 14 14 |  | 
| 15 | 
            -
              class  | 
| 15 | 
            +
              class BoardFollowMock < BoardFollow
         | 
| 16 16 | 
             
                extend Loquor::ResourceMock
         | 
| 17 17 |  | 
| 18 18 | 
             
                self.attributes = {
         | 
| @@ -2,19 +2,19 @@ require_relative '../test_helper' | |
| 2 2 | 
             
            require_relative '../resource_test'
         | 
| 3 3 |  | 
| 4 4 | 
             
            module MeducationSDK
         | 
| 5 | 
            -
              class  | 
| 6 | 
            -
                test_resource( | 
| 5 | 
            +
              class BoardFollowTest < ResourceTest
         | 
| 6 | 
            +
                test_resource(BoardFollow, '/board_follows')
         | 
| 7 7 |  | 
| 8 8 | 
             
                def test_user_calls_sdk
         | 
| 9 | 
            -
                   | 
| 9 | 
            +
                  follow = BoardFollow.new(user_id: 2)
         | 
| 10 10 | 
             
                  MeducationSDK::User.expects(:find).with(2)
         | 
| 11 | 
            -
                   | 
| 11 | 
            +
                  follow.user
         | 
| 12 12 | 
             
                end
         | 
| 13 13 |  | 
| 14 14 | 
             
                def test_board_calls_sdk
         | 
| 15 | 
            -
                   | 
| 15 | 
            +
                  follow = BoardFollow.new(board_id: 2)
         | 
| 16 16 | 
             
                  MeducationSDK::Board.expects(:find).with(2)
         | 
| 17 | 
            -
                   | 
| 17 | 
            +
                  follow.board
         | 
| 18 18 | 
             
                end
         | 
| 19 19 |  | 
| 20 20 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: meducation_sdk
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.5. | 
| 4 | 
            +
              version: 1.5.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jeremy Walker
         | 
| @@ -143,7 +143,7 @@ files: | |
| 143 143 | 
             
            - lib/meducation_sdk/resources/blog_post.rb
         | 
| 144 144 | 
             
            - lib/meducation_sdk/resources/blogger.rb
         | 
| 145 145 | 
             
            - lib/meducation_sdk/resources/board.rb
         | 
| 146 | 
            -
            - lib/meducation_sdk/resources/ | 
| 146 | 
            +
            - lib/meducation_sdk/resources/board_follow.rb
         | 
| 147 147 | 
             
            - lib/meducation_sdk/resources/board_item.rb
         | 
| 148 148 | 
             
            - lib/meducation_sdk/resources/collection.rb
         | 
| 149 149 | 
             
            - lib/meducation_sdk/resources/collection_section.rb
         | 
| @@ -196,7 +196,7 @@ files: | |
| 196 196 | 
             
            - test/resources/badges/respected_author_badge_test.rb
         | 
| 197 197 | 
             
            - test/resources/blog_post_test.rb
         | 
| 198 198 | 
             
            - test/resources/blogger_test.rb
         | 
| 199 | 
            -
            - test/resources/ | 
| 199 | 
            +
            - test/resources/board_follows_test.rb
         | 
| 200 200 | 
             
            - test/resources/board_items_test.rb
         | 
| 201 201 | 
             
            - test/resources/board_test.rb
         | 
| 202 202 | 
             
            - test/resources/collection_section_test.rb
         | 
| @@ -274,7 +274,7 @@ test_files: | |
| 274 274 | 
             
            - test/resources/badges/respected_author_badge_test.rb
         | 
| 275 275 | 
             
            - test/resources/blog_post_test.rb
         | 
| 276 276 | 
             
            - test/resources/blogger_test.rb
         | 
| 277 | 
            -
            - test/resources/ | 
| 277 | 
            +
            - test/resources/board_follows_test.rb
         | 
| 278 278 | 
             
            - test/resources/board_items_test.rb
         | 
| 279 279 | 
             
            - test/resources/board_test.rb
         | 
| 280 280 | 
             
            - test/resources/collection_section_test.rb
         |