jpeg 0.3.2 → 0.3.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/.travis.yml +0 -3
- data/{README.rdoc → README.md} +21 -15
- data/VERSION +1 -1
- data/jpeg.gemspec +4 -5
- metadata +5 -6
- data/Gemfile.lock +0 -34
    
        data/.travis.yml
    CHANGED
    
    
    
        data/{README.rdoc → README.md}
    RENAMED
    
    | @@ -1,26 +1,31 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
            jpeg
         | 
| 2 | 
            +
            ====
         | 
| 2 3 | 
             
            A libjpeg wrapper for ruby
         | 
| 3 | 
            -
             | 
| 4 | 
            +
            Install
         | 
| 5 | 
            +
            -------
         | 
| 4 6 | 
             
             gem install jpeg
         | 
| 5 7 |  | 
| 6 8 | 
             
            or
         | 
| 7 9 | 
             
             echo 'gem "jpeg"' >> Gemfile
         | 
| 8 10 | 
             
             bundle install
         | 
| 9 11 |  | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 12 | 
            +
            Usage
         | 
| 13 | 
            +
            -----
         | 
| 14 | 
            +
                jpeg = Jpeg.open('path/to/file')
         | 
| 15 | 
            +
                jpeg.size # => [1920, 1080]
         | 
| 16 | 
            +
                jpeg.width # => 1920
         | 
| 17 | 
            +
                jpeg.height # => 1080
         | 
| 18 | 
            +
                jpeg.color_info # => :rgb or :gray
         | 
| 19 | 
            +
                jpeg.rgb? # => true
         | 
| 20 | 
            +
                jpeg.gray? # => false
         | 
| 18 21 |  | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 22 | 
            +
            What can do
         | 
| 23 | 
            +
            -----------
         | 
| 24 | 
            +
            * get size
         | 
| 25 | 
            +
            * get color_info
         | 
| 22 26 |  | 
| 23 | 
            -
             | 
| 27 | 
            +
            Contributing to jpeg
         | 
| 28 | 
            +
            --------------------
         | 
| 24 29 |  | 
| 25 30 | 
             
            * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
         | 
| 26 31 | 
             
            * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
         | 
| @@ -30,7 +35,8 @@ or | |
| 30 35 | 
             
            * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
         | 
| 31 36 | 
             
            * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
         | 
| 32 37 |  | 
| 33 | 
            -
             | 
| 38 | 
            +
            Copyright
         | 
| 39 | 
            +
            ---------
         | 
| 34 40 |  | 
| 35 41 | 
             
            Copyright (c) 2012 masarakki. See LICENSE.txt for
         | 
| 36 42 | 
             
            further details.
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.3. | 
| 1 | 
            +
            0.3.3
         | 
    
        data/jpeg.gemspec
    CHANGED
    
    | @@ -5,26 +5,25 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = "jpeg"
         | 
| 8 | 
            -
              s.version = "0.3. | 
| 8 | 
            +
              s.version = "0.3.3"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["masarakki"]
         | 
| 12 | 
            -
              s.date = "2012- | 
| 12 | 
            +
              s.date = "2012-06-28"
         | 
| 13 13 | 
             
              s.description = "libjpeg wrapper for ruby"
         | 
| 14 14 | 
             
              s.email = "masaki@hisme.net"
         | 
| 15 15 | 
             
              s.extensions = ["ext/jpeg/extconf.rb"]
         | 
| 16 16 | 
             
              s.extra_rdoc_files = [
         | 
| 17 17 | 
             
                "LICENSE.txt",
         | 
| 18 | 
            -
                "README. | 
| 18 | 
            +
                "README.md"
         | 
| 19 19 | 
             
              ]
         | 
| 20 20 | 
             
              s.files = [
         | 
| 21 21 | 
             
                ".document",
         | 
| 22 22 | 
             
                ".rspec",
         | 
| 23 23 | 
             
                ".travis.yml",
         | 
| 24 24 | 
             
                "Gemfile",
         | 
| 25 | 
            -
                "Gemfile.lock",
         | 
| 26 25 | 
             
                "LICENSE.txt",
         | 
| 27 | 
            -
                "README. | 
| 26 | 
            +
                "README.md",
         | 
| 28 27 | 
             
                "Rakefile",
         | 
| 29 28 | 
             
                "VERSION",
         | 
| 30 29 | 
             
                "ext/jpeg/extconf.rb",
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: jpeg
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.3. | 
| 4 | 
            +
              version: 0.3.3
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2012- | 
| 12 | 
            +
            date: 2012-06-28 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: rake-compiler
         | 
| @@ -98,15 +98,14 @@ extensions: | |
| 98 98 | 
             
            - ext/jpeg/extconf.rb
         | 
| 99 99 | 
             
            extra_rdoc_files:
         | 
| 100 100 | 
             
            - LICENSE.txt
         | 
| 101 | 
            -
            - README. | 
| 101 | 
            +
            - README.md
         | 
| 102 102 | 
             
            files:
         | 
| 103 103 | 
             
            - .document
         | 
| 104 104 | 
             
            - .rspec
         | 
| 105 105 | 
             
            - .travis.yml
         | 
| 106 106 | 
             
            - Gemfile
         | 
| 107 | 
            -
            - Gemfile.lock
         | 
| 108 107 | 
             
            - LICENSE.txt
         | 
| 109 | 
            -
            - README. | 
| 108 | 
            +
            - README.md
         | 
| 110 109 | 
             
            - Rakefile
         | 
| 111 110 | 
             
            - VERSION
         | 
| 112 111 | 
             
            - ext/jpeg/extconf.rb
         | 
| @@ -137,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 137 136 | 
             
                  version: '0'
         | 
| 138 137 | 
             
                  segments:
         | 
| 139 138 | 
             
                  - 0
         | 
| 140 | 
            -
                  hash:  | 
| 139 | 
            +
                  hash: 3946472519539915744
         | 
| 141 140 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 142 141 | 
             
              none: false
         | 
| 143 142 | 
             
              requirements:
         | 
    
        data/Gemfile.lock
    DELETED
    
    | @@ -1,34 +0,0 @@ | |
| 1 | 
            -
            GEM
         | 
| 2 | 
            -
              remote: http://rubygems.org/
         | 
| 3 | 
            -
              specs:
         | 
| 4 | 
            -
                diff-lcs (1.1.3)
         | 
| 5 | 
            -
                git (1.2.5)
         | 
| 6 | 
            -
                jeweler (1.8.3)
         | 
| 7 | 
            -
                  bundler (~> 1.0)
         | 
| 8 | 
            -
                  git (>= 1.2.5)
         | 
| 9 | 
            -
                  rake
         | 
| 10 | 
            -
                  rdoc
         | 
| 11 | 
            -
                json (1.6.6)
         | 
| 12 | 
            -
                rake (0.9.2.2)
         | 
| 13 | 
            -
                rake-compiler (0.8.1)
         | 
| 14 | 
            -
                  rake
         | 
| 15 | 
            -
                rdoc (3.12)
         | 
| 16 | 
            -
                  json (~> 1.4)
         | 
| 17 | 
            -
                rspec (2.9.0)
         | 
| 18 | 
            -
                  rspec-core (~> 2.9.0)
         | 
| 19 | 
            -
                  rspec-expectations (~> 2.9.0)
         | 
| 20 | 
            -
                  rspec-mocks (~> 2.9.0)
         | 
| 21 | 
            -
                rspec-core (2.9.0)
         | 
| 22 | 
            -
                rspec-expectations (2.9.0)
         | 
| 23 | 
            -
                  diff-lcs (~> 1.1.3)
         | 
| 24 | 
            -
                rspec-mocks (2.9.0)
         | 
| 25 | 
            -
             | 
| 26 | 
            -
            PLATFORMS
         | 
| 27 | 
            -
              ruby
         | 
| 28 | 
            -
             | 
| 29 | 
            -
            DEPENDENCIES
         | 
| 30 | 
            -
              bundler
         | 
| 31 | 
            -
              jeweler
         | 
| 32 | 
            -
              rake-compiler
         | 
| 33 | 
            -
              rdoc
         | 
| 34 | 
            -
              rspec
         |