copy_tuner_client 0.1.0.beta → 0.1.1.beta
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,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                MjhkNTQ2NTU0YjljNTc3NmMwNWNhYWQyOWIxYmJlZjFkYjM0YmUwZA==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                YjRmM2NiZmZmMjJmYmEzYTFhYjc2NTBiM2U1MmYwODRjZTY5ZTg3Nw==
         | 
| 7 7 | 
             
            SHA512:
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                OTcwOWJhODFkNDRjNzUzNzQ2OGNkNmJjNWZmNjBkZTg2NmE4MDBmNGY4ZWU2
         | 
| 10 | 
            +
                NzExMWM1Y2M2NTMxZTllMjBiNThhZjlhMGMzZDFhYTA1Zjk5YmNkZTE2ODZm
         | 
| 11 | 
            +
                ZTY3OTlkZDg0MjI1MjVjZTZiYzU1MjFmZmFjNDg5NDAyZjFmYWQ=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                NzIxYTYyZGJmMDc2YjI1NWQ3NDlmYTkxMDViMDViMmZiNjRlMzRmMzdkMDdm
         | 
| 14 | 
            +
                YTg5MmNjOWI3ZDA1M2U3YTY0MjUyNDljZTNlYzIyYjM5NzQyZTRhMTZiOWFh
         | 
| 15 | 
            +
                YWNkNGI2M2ZiZTE5MjY0ODAzMWU5YzhmN2M3N2RmMjM3ZGEyMjA=
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
| @@ -47,7 +47,7 @@ Xray.findTemplates = -> util.bm 'findTemplates', -> | |
| 47 47 | 
             
              # Find the <!-- XRAY END ... --> comment for each. Everything between the
         | 
| 48 48 | 
             
              # start and end comment becomes the contents of an Xray.TemplateSpecimen.
         | 
| 49 49 | 
             
              for comment in comments
         | 
| 50 | 
            -
                [_, id, path] = comment.data.match(/^XRAY START (\d+) ( | 
| 50 | 
            +
                [_, id, path, url] = comment.data.match(/^XRAY START (\d+) (\S*) (\S*)/)
         | 
| 51 51 | 
             
                $templateContents = new jQuery
         | 
| 52 52 | 
             
                el = comment.nextSibling
         | 
| 53 53 | 
             
                until !el or (el.nodeType == 8 and el.data == "XRAY END #{id}")
         | 
| @@ -61,10 +61,11 @@ Xray.findTemplates = -> util.bm 'findTemplates', -> | |
| 61 61 | 
             
                Xray.TemplateSpecimen.add $templateContents,
         | 
| 62 62 | 
             
                  name: path.split('/').slice(-1)[0]
         | 
| 63 63 | 
             
                  path: path
         | 
| 64 | 
            +
                  url: url
         | 
| 64 65 |  | 
| 65 66 | 
             
            # Open the given filesystem path by calling out to Xray's server.
         | 
| 66 | 
            -
            Xray.open = ( | 
| 67 | 
            -
               | 
| 67 | 
            +
            Xray.open = (url) ->
         | 
| 68 | 
            +
              window.open(url, null, 'width=700, height=500')
         | 
| 68 69 |  | 
| 69 70 | 
             
            # Show the Xray overlay
         | 
| 70 71 | 
             
            Xray.show = (type = null) ->
         | 
| @@ -100,6 +101,7 @@ class Xray.Specimen | |
| 100 101 | 
             
                @$contents = $(contents)
         | 
| 101 102 | 
             
                @name = info.name
         | 
| 102 103 | 
             
                @path = info.path
         | 
| 104 | 
            +
                @url = info.url
         | 
| 103 105 |  | 
| 104 106 | 
             
              remove: ->
         | 
| 105 107 | 
             
                idx = @constructor.all.indexOf(this)
         | 
| @@ -119,7 +121,7 @@ class Xray.Specimen | |
| 119 121 | 
             
                    top      : @$contents.css('top')
         | 
| 120 122 | 
             
                    left     : @$contents.css('left')
         | 
| 121 123 |  | 
| 122 | 
            -
                @$box.click => Xray.open @path
         | 
| 124 | 
            +
                @$box.click => Xray.open @url + '/blurbs/' + @path + '/edit'
         | 
| 123 125 | 
             
                @$box.append @makeLabel
         | 
| 124 126 |  | 
| 125 127 | 
             
              makeLabel: =>
         | 
| @@ -18,7 +18,7 @@ module CopyTunerClient | |
| 18 18 | 
             
                def self.augment_template(source, key)
         | 
| 19 19 | 
             
                  id = next_id
         | 
| 20 20 | 
             
                  # skim doesn't allow html comments, so use skim's comment syntax if it's skim
         | 
| 21 | 
            -
                  augmented = "<!--XRAY START #{id} #{key}-->\n<span>#{source}</span>\n<!--XRAY END #{id}-->"
         | 
| 21 | 
            +
                  augmented = "<!--XRAY START #{id} #{key} #{CopyTunerClient.configuration.project_url} -->\n<span>#{source}</span>\n<!--XRAY END #{id}-->"
         | 
| 22 22 | 
             
                  ActiveSupport::SafeBuffer === source ? ActiveSupport::SafeBuffer.new(augmented) : augmented
         | 
| 23 23 | 
             
                end
         | 
| 24 24 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: copy_tuner_client
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.1.beta
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - SonicGarden
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2014-02-17 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: i18n
         |