canvas_link_migrator 1.0.14 → 1.0.15
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 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 36b5ebb39673be4a7105bc459809c1faa333899c9d709d665cabd00f4242401d
         | 
| 4 | 
            +
              data.tar.gz: 6702833e94aa9a7fd3bb3265199c2b7caf269e30fd0c82b5c15028d810d44c14
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e8a5d21a3c0a74e5805163d724e42c64a0db4a6d2b18f85f637e401f6ca09089aab287e8afb88b22150cd7eadf90e51a1ba3e78d9bb7892968bbf57055554bfe
         | 
| 7 | 
            +
              data.tar.gz: 1fd447f0548f8c84a2fdea0a6a791679eea31c6f4dede5502d4191dcf96b994d4072b303a6ba713151bc03aaddefe6ad003e556ffd4ce39880f8ce792a216522
         | 
| @@ -57,6 +57,17 @@ describe CanvasLinkMigrator::LinkResolver do | |
| 57 57 | 
             
                  expect(link[:new_value]).to eq("/courses/2/files/6?verifier=u6")
         | 
| 58 58 | 
             
                end
         | 
| 59 59 |  | 
| 60 | 
            +
                it "does not leave a trailing slash on the url with a `canvas_` query param" do
         | 
| 61 | 
            +
                  link = {
         | 
| 62 | 
            +
                    link_type: :file,
         | 
| 63 | 
            +
                    migration_id: "F",
         | 
| 64 | 
            +
                    rel_path: "subfolder/with a space/test.png?canvas_=1&canvas_qs_wrap=1" }
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                  resolver.resolve_link!(link)
         | 
| 67 | 
            +
             | 
| 68 | 
            +
                  expect(link[:new_value]).to eq("/courses/2/files/6?verifier=u6&wrap=1")
         | 
| 69 | 
            +
                end
         | 
| 70 | 
            +
             | 
| 60 71 | 
             
                it "converts attachment urls" do
         | 
| 61 72 | 
             
                  link = { link_type: :object, type: "attachments", migration_id: "E", query: "?foo=bar" }
         | 
| 62 73 | 
             
                  resolver.resolve_link!(link)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: canvas_link_migrator
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.15
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Mysti Lilla
         | 
| @@ -11,7 +11,7 @@ authors: | |
| 11 11 | 
             
            autorequire: 
         | 
| 12 12 | 
             
            bindir: bin
         | 
| 13 13 | 
             
            cert_chain: []
         | 
| 14 | 
            -
            date: 2024- | 
| 14 | 
            +
            date: 2024-10-24 00:00:00.000000000 Z
         | 
| 15 15 | 
             
            dependencies:
         | 
| 16 16 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 17 17 | 
             
              name: activesupport
         |