discid 1.4.0 → 1.4.1
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 +5 -5
 - data/CHANGES.md +3 -0
 - data/README.md +3 -4
 - data/lib/discid/disc.rb +4 -4
 - data/lib/discid/version.rb +1 -1
 - data/test/test_discid.rb +1 -0
 - metadata +3 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0c1f99777183d8decf97ffb214d424300ae1546f72d30e0a9fe3891e24b66882
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 65cc1ffde114bcd7860697ac081d266f434d294a86094a0f26efdd418096f1dc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6ccdebac904df0839af7ce5ad36d130e7c00d36324fabf72e64bdebf686bdb7a290c82d520dcd909b4b83295cc8ea0389540b66086b06e2f3a39646d277d70c1
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6fe953875c071bd33973596c4bc9e18c1313a58df2273e4b929ca628e0923f79b93efa8bbf1c7fb26067278cf2f46588a3c2754a72b3f0febfb311b860725aa5
         
     | 
    
        data/CHANGES.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,8 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Ruby bindings for MusicBrainz libdiscid
         
     | 
| 
       2 
     | 
    
         
            -
            [](https://travis-ci.org/phw/ruby-discid)
         
     | 
| 
       3 
     | 
    
         
            -
            [](https://codeclimate.com/github/phw/ruby-discid)
         
     | 
| 
       4 
     | 
    
         
            -
            [](https://codeclimate.com/github/phw/ruby-discid)
         
     | 
| 
       5 
2 
     | 
    
         
             
            [](http://badge.fury.io/rb/discid)
         
     | 
| 
      
 3 
     | 
    
         
            +
            [](https://codeclimate.com/github/phw/ruby-discid/maintainability)
         
     | 
| 
      
 4 
     | 
    
         
            +
            [](https://codeclimate.com/github/phw/ruby-discid/test_coverage)
         
     | 
| 
       6 
5 
     | 
    
         | 
| 
       7 
6 
     | 
    
         
             
            ## About
         
     | 
| 
       8 
7 
     | 
    
         
             
            ruby-discid provides Ruby bindings for the MusicBrainz DiscID library [libdiscid](http://musicbrainz.org/doc/libdiscid).
         
     | 
| 
         @@ -112,7 +111,7 @@ Please report any issues on the 
     | 
|
| 
       112 
111 
     | 
    
         
             
            [issue tracker](https://github.com/phw/ruby-discid/issues).
         
     | 
| 
       113 
112 
     | 
    
         | 
| 
       114 
113 
     | 
    
         
             
            ## License
         
     | 
| 
       115 
     | 
    
         
            -
            ruby-discid Copyright (c) 2007- 
     | 
| 
      
 114 
     | 
    
         
            +
            ruby-discid Copyright (c) 2007-2021 by Philipp Wolfer <ph.wolfer@gmail.com>
         
     | 
| 
       116 
115 
     | 
    
         | 
| 
       117 
116 
     | 
    
         
             
            ruby-discid is free software: you can redistribute it and/or modify
         
     | 
| 
       118 
117 
     | 
    
         
             
            it under the terms of the GNU Lesser General Public License as published by
         
     | 
    
        data/lib/discid/disc.rb
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright (C) 2013-2014 Philipp Wolfer
         
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright (C) 2013-2014, 2021 Philipp Wolfer
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
       3 
3 
     | 
    
         
             
            # This program is free software: you can redistribute it and/or modify
         
     | 
| 
       4 
4 
     | 
    
         
             
            # it under the terms of the GNU Lesser General Public License as published by
         
     | 
| 
         @@ -197,12 +197,12 @@ module DiscId 
     | 
|
| 
       197 
197 
     | 
    
         
             
                #     instead iterates over the block calling the block with one argument.
         
     | 
| 
       198 
198 
     | 
    
         
             
                # @yieldreturn [nil]
         
     | 
| 
       199 
199 
     | 
    
         
             
                # @return [Array<Track>] Array of {Track} objects.
         
     | 
| 
       200 
     | 
    
         
            -
                def tracks
         
     | 
| 
      
 200 
     | 
    
         
            +
                def tracks(&block)
         
     | 
| 
       201 
201 
     | 
    
         
             
                  if @read
         
     | 
| 
       202 
202 
     | 
    
         
             
                    read_tracks if @tracks.nil?
         
     | 
| 
       203 
203 
     | 
    
         | 
| 
       204 
     | 
    
         
            -
                    if  
     | 
| 
       205 
     | 
    
         
            -
                      @tracks.each(& 
     | 
| 
      
 204 
     | 
    
         
            +
                    if block
         
     | 
| 
      
 205 
     | 
    
         
            +
                      @tracks.each(&block)
         
     | 
| 
       206 
206 
     | 
    
         
             
                      return nil
         
     | 
| 
       207 
207 
     | 
    
         
             
                    else
         
     | 
| 
       208 
208 
     | 
    
         
             
                      return @tracks
         
     | 
    
        data/lib/discid/version.rb
    CHANGED
    
    
    
        data/test/test_discid.rb
    CHANGED
    
    | 
         @@ -63,6 +63,7 @@ class TestDiscId < Test::Unit::TestCase 
     | 
|
| 
       63 
63 
     | 
    
         
             
                disc = DiscId.put(3, @fiction_sectors,
         
     | 
| 
       64 
64 
     | 
    
         
             
                                  [150, 18901, 39738, 59557, 79152, 100126,
         
     | 
| 
       65 
65 
     | 
    
         
             
                                   124833, 147278, 166336, 182560])
         
     | 
| 
      
 66 
     | 
    
         
            +
                assert_equal "ByBKvJM1hBL7XtvsPyYtIjlX0Bw-", disc.id
         
     | 
| 
       66 
67 
     | 
    
         
             
                assert_equal 3, disc.first_track_number
         
     | 
| 
       67 
68 
     | 
    
         
             
                assert_equal 12, disc.last_track_number
         
     | 
| 
       68 
69 
     | 
    
         
             
                assert_equal 10, disc.tracks.size
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: discid
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.4. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.4.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Philipp Wolfer
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-09-23 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: ffi
         
     | 
| 
         @@ -158,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       158 
158 
     | 
    
         
             
                  version: 1.3.6
         
     | 
| 
       159 
159 
     | 
    
         
             
            requirements:
         
     | 
| 
       160 
160 
     | 
    
         
             
            - libdiscid >= 0.1.0
         
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
            rubygems_version: 2.6.14.4
         
     | 
| 
      
 161 
     | 
    
         
            +
            rubygems_version: 3.0.3.1
         
     | 
| 
       163 
162 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       164 
163 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       165 
164 
     | 
    
         
             
            summary: Ruby bindings for libdiscid
         
     |