spritely 0.2.3 → 0.2.4
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: afdb0ce6c5a3d4ee39e589c275a08792d19451ac
         | 
| 4 | 
            +
              data.tar.gz: e0a57c9e6b613413a0b8a722217fc5a8831c3859
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f258b1330dd8cf6c4c1923dd09d75ac0c3ac406268a956f42b31c610d2d64993c56372d7adf5832e16950766df495d999f8af2efffd3ac687c89afa0d2ed7a9d
         | 
| 7 | 
            +
              data.tar.gz: fcb594854102456fa9aca4b28cca288af2c6aec98e84ce3b93111b079a9b377fd60feda1150f345da00a0f7f168a426608e6370fa177bdf99a63983319898642
         | 
    
        data/lib/spritely/collection.rb
    CHANGED
    
    | @@ -58,7 +58,7 @@ module Spritely | |
| 58 58 | 
             
                private
         | 
| 59 59 |  | 
| 60 60 | 
             
                def image_sets
         | 
| 61 | 
            -
                  @image_sets ||= files.collect { |file| ImageSet.new(file, options[File.basename(file, ".png")]) } | 
| 61 | 
            +
                  @image_sets ||= files.collect { |file| ImageSet.new(file, options[File.basename(file, ".png")]) }
         | 
| 62 62 | 
             
                end
         | 
| 63 63 |  | 
| 64 64 | 
             
                def heights
         | 
    
        data/lib/spritely/sprite_map.rb
    CHANGED
    
    
    
        data/lib/spritely/version.rb
    CHANGED
    
    
| Binary file | 
| @@ -8,7 +8,7 @@ describe 'Stylesheet generation', :integration do | |
| 8 8 | 
             
                it { should include(<<-CSS.strip_heredoc
         | 
| 9 9 | 
             
                  body {
         | 
| 10 10 | 
             
                    background-image: url(/assets/sprites/application.png);
         | 
| 11 | 
            -
                    background-position: 0  | 
| 11 | 
            +
                    background-position: 0 0;
         | 
| 12 12 | 
             
                  }
         | 
| 13 13 | 
             
                CSS
         | 
| 14 14 | 
             
                ) }
         | 
| @@ -18,7 +18,7 @@ describe 'Stylesheet generation', :integration do | |
| 18 18 | 
             
                it { should include(<<-CSS.strip_heredoc
         | 
| 19 19 | 
             
                  #mario {
         | 
| 20 20 | 
             
                    background-image: url(/assets/sprites/application.png);
         | 
| 21 | 
            -
                    background-position: -150px - | 
| 21 | 
            +
                    background-position: -150px -806px;
         | 
| 22 22 | 
             
                    width: 200px;
         | 
| 23 23 | 
             
                    height: 214px;
         | 
| 24 24 | 
             
                  }
         | 
| @@ -13,7 +13,7 @@ describe Spritely::Collection do | |
| 13 13 |  | 
| 14 14 | 
             
              its(:files) { should eq(['file-1.png', 'file-2.png']) }
         | 
| 15 15 | 
             
              its(:options) { should eq({'file-1' => {repeat: true}}) }
         | 
| 16 | 
            -
              its(:images) { should eq([2, 3 | 
| 16 | 
            +
              its(:images) { should eq([1, 2, 3]) }
         | 
| 17 17 | 
             
              its(:height) { should eq(110) }
         | 
| 18 18 |  | 
| 19 19 | 
             
              describe '.create' do
         | 
| @@ -81,10 +81,10 @@ describe Spritely::Collection do | |
| 81 81 |  | 
| 82 82 | 
             
              describe '#position!' do
         | 
| 83 83 | 
             
                it 'should call out to each image set in turn' do
         | 
| 84 | 
            -
                  expect( | 
| 85 | 
            -
                  expect(second_set).to receive(:position_in!).with(100)
         | 
| 86 | 
            -
                  expect(first_set).to receive(:top=).with(100)
         | 
| 84 | 
            +
                  expect(first_set).to receive(:top=).with(0)
         | 
| 87 85 | 
             
                  expect(first_set).to receive(:position_in!).with(100)
         | 
| 86 | 
            +
                  expect(second_set).to receive(:top=).with(10)
         | 
| 87 | 
            +
                  expect(second_set).to receive(:position_in!).with(100)
         | 
| 88 88 | 
             
                  subject.position!
         | 
| 89 89 | 
             
                end
         | 
| 90 90 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: spritely
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Alex Robbin
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014-06- | 
| 11 | 
            +
            date: 2014-06-13 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: chunky_png
         |