reapack-index 1.2rc1 → 1.2.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.
- checksums.yaml +5 -5
 - data/.github/FUNDING.yml +3 -0
 - data/.github/workflows/test.yml +17 -0
 - data/README.md +2 -4
 - data/lib/reapack/index.rb +12 -3
 - data/lib/reapack/index/gem_version.rb +1 -2
 - data/lib/reapack/index/git.rb +7 -12
 - data/lib/reapack/index/parsers.rb +11 -8
 - data/lib/reapack/index/scanner.rb +22 -8
 - data/lib/reapack/index/source.rb +2 -1
 - data/reapack-index.gemspec +5 -6
 - data/test/helper.rb +0 -4
 - data/test/index/test_provides.rb +14 -0
 - data/test/index/test_scan.rb +30 -0
 - data/test/scanner/test_makeurl.rb +2 -2
 - data/test/scanner/test_validation.rb +2 -2
 - data/test/test_parsers.rb +14 -5
 - data/test/test_provides.rb +5 -2
 - data/test/test_scanner.rb +1 -1
 - metadata +20 -34
 - data/.travis.yml +0 -8
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 395a21482f9f7c57d34491efa4afd7a32fa16f3fca18d42dff99b2ca3ef0cddf
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: d9f769fbcf286a5541efbeb8eb4f1a70ffb2308349249706d85cad27b7b3ec46
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5b21099ed8e39ced20a19bf40df2f21a919bc66fd30dd3876d27d19b22a1aad8f9ed235ed6f548f8cf3fd4bd1d885c601d21fd2e0eef1de4ecafef8d50f40e66
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 3910b7e2954e9246b692a28621156418cbeaec0d74f6f62fcb42f42c168cb2c24a0532795d435e78ce77487262e2503e178adfe07680afcb2f925d46f6959f99
         
     | 
    
        data/.github/FUNDING.yml
    ADDED
    
    
| 
         @@ -0,0 +1,17 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            name: test
         
     | 
| 
      
 2 
     | 
    
         
            +
            on: [push, pull_request]
         
     | 
| 
      
 3 
     | 
    
         
            +
            jobs:
         
     | 
| 
      
 4 
     | 
    
         
            +
              rake:
         
     | 
| 
      
 5 
     | 
    
         
            +
                runs-on: ubuntu-latest
         
     | 
| 
      
 6 
     | 
    
         
            +
                steps:
         
     | 
| 
      
 7 
     | 
    
         
            +
                - name: Fetch repository
         
     | 
| 
      
 8 
     | 
    
         
            +
                  uses: actions/checkout@v2
         
     | 
| 
      
 9 
     | 
    
         
            +
                - name: Install Pandoc
         
     | 
| 
      
 10 
     | 
    
         
            +
                  run:  sudo apt-get install -yy pandoc
         
     | 
| 
      
 11 
     | 
    
         
            +
                - name: Set up Ruby
         
     | 
| 
      
 12 
     | 
    
         
            +
                  uses: ruby/setup-ruby@v1
         
     | 
| 
      
 13 
     | 
    
         
            +
                  with:
         
     | 
| 
      
 14 
     | 
    
         
            +
                    bundler-cache: true
         
     | 
| 
      
 15 
     | 
    
         
            +
                    ruby-version: 2.7
         
     | 
| 
      
 16 
     | 
    
         
            +
                - name: Run tests
         
     | 
| 
      
 17 
     | 
    
         
            +
                  run:  bundle exec rake
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -4,10 +4,8 @@ Parent project: [https://github.com/cfillion/reapack](https://github.com/cfillio 
     | 
|
| 
       4 
4 
     | 
    
         
             
            Subproject: [https://github.com/cfillion/metaheader](https://github.com/cfillion/metaheader)
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            [](http://badge.fury.io/rb/reapack-index)
         
     | 
| 
       7 
     | 
    
         
            -
            [](https://coveralls.io/github/cfillion/reapack-index?branch=master)
         
     | 
| 
       10 
     | 
    
         
            -
            [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=T3DEWBQJAV7WL&lc=CA&item_name=reapack-index%3a%20Package%20indexer%20for%20git-based%20ReaPack%20repositories&no_note=0&cn=Custom%20message&no_shipping=1¤cy_code=CAD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
         
     | 
| 
      
 7 
     | 
    
         
            +
            [](https://github.com/cfillion/reapack-index/actions)
         
     | 
| 
      
 8 
     | 
    
         
            +
            [](https://reapack.com/donate)
         
     | 
| 
       11 
9 
     | 
    
         | 
| 
       12 
10 
     | 
    
         
             
            ### Installation
         
     | 
| 
       13 
11 
     | 
    
         | 
    
        data/lib/reapack/index.rb
    CHANGED
    
    | 
         @@ -14,6 +14,7 @@ require 'rugged' 
     | 
|
| 
       14 
14 
     | 
    
         
             
            require 'shellwords'
         
     | 
| 
       15 
15 
     | 
    
         
             
            require 'stable_sort'
         
     | 
| 
       16 
16 
     | 
    
         
             
            require 'time'
         
     | 
| 
      
 17 
     | 
    
         
            +
            require 'uri'
         
     | 
| 
       17 
18 
     | 
    
         | 
| 
       18 
19 
     | 
    
         
             
            require 'reapack/index/cdetector'
         
     | 
| 
       19 
20 
     | 
    
         
             
            require 'reapack/index/cli'
         
     | 
| 
         @@ -76,6 +77,15 @@ class ReaPack::Index 
     | 
|
| 
       76 
77 
     | 
    
         
             
                    .find {|name, exts| input.to_sym == name || exts.include?(input.to_s) }
         
     | 
| 
       77 
78 
     | 
    
         
             
                    &.first
         
     | 
| 
       78 
79 
     | 
    
         
             
                end
         
     | 
| 
      
 80 
     | 
    
         
            +
             
     | 
| 
      
 81 
     | 
    
         
            +
                def parse(contents)
         
     | 
| 
      
 82 
     | 
    
         
            +
                  mh = MetaHeader.parse contents
         
     | 
| 
      
 83 
     | 
    
         
            +
                  unless mh.has? :changelog
         
     | 
| 
      
 84 
     | 
    
         
            +
                    wp = WordpressChangelog.new mh
         
     | 
| 
      
 85 
     | 
    
         
            +
                    wp.parse contents
         
     | 
| 
      
 86 
     | 
    
         
            +
                  end
         
     | 
| 
      
 87 
     | 
    
         
            +
                  mh
         
     | 
| 
      
 88 
     | 
    
         
            +
                end
         
     | 
| 
       79 
89 
     | 
    
         
             
              end
         
     | 
| 
       80 
90 
     | 
    
         | 
| 
       81 
91 
     | 
    
         
             
              def initialize(path)
         
     | 
| 
         @@ -119,8 +129,7 @@ class ReaPack::Index 
     | 
|
| 
       119 
129 
     | 
    
         
             
                type = self.class.type_of path
         
     | 
| 
       120 
130 
     | 
    
         
             
                return unless type
         
     | 
| 
       121 
131 
     | 
    
         | 
| 
       122 
     | 
    
         
            -
                mh = MetaHeader.parse 
     | 
| 
       123 
     | 
    
         
            -
                mh.strict = @strict
         
     | 
| 
      
 132 
     | 
    
         
            +
                mh = contents.is_a?(MetaHeader) ? contents : self.class.parse(contents)
         
     | 
| 
       124 
133 
     | 
    
         | 
| 
       125 
134 
     | 
    
         
             
                if mh[:noindex]
         
     | 
| 
       126 
135 
     | 
    
         
             
                  remove path
         
     | 
| 
         @@ -138,7 +147,7 @@ class ReaPack::Index 
     | 
|
| 
       138 
147 
     | 
    
         
             
                scanner = Scanner.new cat, pkg, mh, self
         
     | 
| 
       139 
148 
     | 
    
         | 
| 
       140 
149 
     | 
    
         
             
                begin
         
     | 
| 
       141 
     | 
    
         
            -
                  scanner.run
         
     | 
| 
      
 150 
     | 
    
         
            +
                  scanner.run @strict
         
     | 
| 
       142 
151 
     | 
    
         
             
                rescue Error
         
     | 
| 
       143 
152 
     | 
    
         
             
                  backups.each {|var, value| instance_variable_set var, value }
         
     | 
| 
       144 
153 
     | 
    
         
             
                  raise
         
     | 
    
        data/lib/reapack/index/git.rb
    CHANGED
    
    | 
         @@ -71,7 +71,7 @@ class ReaPack::Index 
     | 
|
| 
       71 
71 
     | 
    
         
             
                  return unless uri.path =~ /\A\/?(?<user>[^\/]+)\/(?<repo>[^\/]+)(\.git|\/)?\Z/
         
     | 
| 
       72 
72 
     | 
    
         | 
| 
       73 
73 
     | 
    
         
             
                  tpl = uri.to_web_uri
         
     | 
| 
       74 
     | 
    
         
            -
                  tpl.path.chomp 
     | 
| 
      
 74 
     | 
    
         
            +
                  tpl.path = tpl.path.chomp '/'
         
     | 
| 
       75 
75 
     | 
    
         
             
                  tpl.path += '/raw/$commit/$path'
         
     | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
77 
     | 
    
         
             
                  tpl.to_s
         
     | 
| 
         @@ -146,7 +146,7 @@ class ReaPack::Index 
     | 
|
| 
       146 
146 
     | 
    
         
             
                    diff = @commit.diff
         
     | 
| 
       147 
147 
     | 
    
         
             
                  end
         
     | 
| 
       148 
148 
     | 
    
         | 
| 
       149 
     | 
    
         
            -
                  @diffs  
     | 
| 
      
 149 
     | 
    
         
            +
                  @diffs = diff.each_delta.map {|delta| Git::Diff.new(delta, @repo) }
         
     | 
| 
       150 
150 
     | 
    
         
             
                  @diffs.each &block
         
     | 
| 
       151 
151 
     | 
    
         
             
                end
         
     | 
| 
       152 
152 
     | 
    
         | 
| 
         @@ -207,16 +207,11 @@ class ReaPack::Index 
     | 
|
| 
       207 
207 
     | 
    
         
             
              end
         
     | 
| 
       208 
208 
     | 
    
         | 
| 
       209 
209 
     | 
    
         
             
              class Git::Diff
         
     | 
| 
       210 
     | 
    
         
            -
                def initialize(delta,  
     | 
| 
      
 210 
     | 
    
         
            +
                def initialize(delta, repo)
         
     | 
| 
       211 
211 
     | 
    
         
             
                  @delta, @repo = delta, repo
         
     | 
| 
       212 
212 
     | 
    
         | 
| 
       213 
     | 
    
         
            -
                   
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
                    @file = delta.old_file
         
     | 
| 
       216 
     | 
    
         
            -
                  else
         
     | 
| 
       217 
     | 
    
         
            -
                    @status = delta.status.to_sym
         
     | 
| 
       218 
     | 
    
         
            -
                    @file = delta.new_file
         
     | 
| 
       219 
     | 
    
         
            -
                  end
         
     | 
| 
      
 213 
     | 
    
         
            +
                  @status = delta.status.to_sym
         
     | 
| 
      
 214 
     | 
    
         
            +
                  @file = delta.new_file
         
     | 
| 
       220 
215 
     | 
    
         
             
                end
         
     | 
| 
       221 
216 
     | 
    
         | 
| 
       222 
217 
     | 
    
         
             
                attr_reader :status
         
     | 
| 
         @@ -224,7 +219,7 @@ class ReaPack::Index 
     | 
|
| 
       224 
219 
     | 
    
         
             
                def file
         
     | 
| 
       225 
220 
     | 
    
         
             
                  @path ||= @file[:path].force_encoding(Encoding::UTF_8)
         
     | 
| 
       226 
221 
     | 
    
         
             
                end
         
     | 
| 
       227 
     | 
    
         
            -
             
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
       228 
223 
     | 
    
         
             
                def new_content
         
     | 
| 
       229 
224 
     | 
    
         
             
                  return if status == :deleted
         
     | 
| 
       230 
225 
     | 
    
         
             
                  @new_content ||=
         
     | 
| 
         @@ -232,7 +227,7 @@ class ReaPack::Index 
     | 
|
| 
       232 
227 
     | 
    
         
             
                end
         
     | 
| 
       233 
228 
     | 
    
         | 
| 
       234 
229 
     | 
    
         
             
                def new_header
         
     | 
| 
       235 
     | 
    
         
            -
                  @new_header ||=  
     | 
| 
      
 230 
     | 
    
         
            +
                  @new_header ||= ReaPack::Index.parse @new_content if new_content
         
     | 
| 
       236 
231 
     | 
    
         
             
                end
         
     | 
| 
       237 
232 
     | 
    
         
             
              end
         
     | 
| 
       238 
233 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class WordpressChangelog 
     | 
| 
      
 1 
     | 
    
         
            +
            class WordpressChangelog
         
     | 
| 
       2 
2 
     | 
    
         
             
              CHANGELOG = /
         
     | 
| 
       3 
3 
     | 
    
         
             
                Changelog\s*:\n
         
     | 
| 
       4 
4 
     | 
    
         
             
                (.+?)\n\s*
         
     | 
| 
         @@ -7,11 +7,14 @@ class WordpressChangelog < MetaHeader::Parser 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
              VERSION = /\A[\s\*]*v([\d\.]+)(?:\s+(.+))?\Z/.freeze
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
      
 10 
     | 
    
         
            +
              def initialize(mh)
         
     | 
| 
      
 11 
     | 
    
         
            +
                @header = mh
         
     | 
| 
      
 12 
     | 
    
         
            +
              end
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       10 
14 
     | 
    
         
             
              def parse(input)
         
     | 
| 
       11 
     | 
    
         
            -
                input = input.read
         
     | 
| 
       12 
15 
     | 
    
         
             
                input.encode! Encoding::UTF_8, invalid: :replace
         
     | 
| 
       13 
16 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
                ver, changes = header[:version], header[:changelog]
         
     | 
| 
      
 17 
     | 
    
         
            +
                ver, changes = @header[:version], @header[:changelog]
         
     | 
| 
       15 
18 
     | 
    
         
             
                return if ver.nil? || changes || CHANGELOG.match(input).nil?
         
     | 
| 
       16 
19 
     | 
    
         | 
| 
       17 
20 
     | 
    
         
             
                $1.lines.each {|line| read line.lstrip }
         
     | 
| 
         @@ -19,15 +22,15 @@ class WordpressChangelog < MetaHeader::Parser 
     | 
|
| 
       19 
22 
     | 
    
         | 
| 
       20 
23 
     | 
    
         
             
              def read(line)
         
     | 
| 
       21 
24 
     | 
    
         
             
                if line =~ VERSION
         
     | 
| 
       22 
     | 
    
         
            -
                  @current = $1 == header[:version]
         
     | 
| 
      
 25 
     | 
    
         
            +
                  @current = $1 == @header[:version]
         
     | 
| 
       23 
26 
     | 
    
         
             
                elsif @current
         
     | 
| 
       24 
     | 
    
         
            -
                  if header[:changelog]
         
     | 
| 
       25 
     | 
    
         
            -
                    header[:changelog] += "\n"
         
     | 
| 
      
 27 
     | 
    
         
            +
                  if @header[:changelog]
         
     | 
| 
      
 28 
     | 
    
         
            +
                    @header[:changelog] += "\n"
         
     | 
| 
       26 
29 
     | 
    
         
             
                  else
         
     | 
| 
       27 
     | 
    
         
            -
                    header[:changelog] = String.new
         
     | 
| 
      
 30 
     | 
    
         
            +
                    @header[:changelog] = String.new
         
     | 
| 
       28 
31 
     | 
    
         
             
                  end
         
     | 
| 
       29 
32 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
                  header[:changelog] += line.chomp
         
     | 
| 
      
 33 
     | 
    
         
            +
                  @header[:changelog] += line.chomp
         
     | 
| 
       31 
34 
     | 
    
         
             
                end
         
     | 
| 
       32 
35 
     | 
    
         
             
              end
         
     | 
| 
       33 
36 
     | 
    
         
             
            end
         
     | 
| 
         @@ -52,10 +52,12 @@ class ReaPack::Index 
     | 
|
| 
       52 
52 
     | 
    
         
             
                  @self_overriden = false
         
     | 
| 
       53 
53 
     | 
    
         
             
                end
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
       55 
     | 
    
         
            -
                def run
         
     | 
| 
      
 55 
     | 
    
         
            +
                def run(strict = false)
         
     | 
| 
       56 
56 
     | 
    
         
             
                  @mh.alias HEADER_ALIASES
         
     | 
| 
       57 
57 
     | 
    
         | 
| 
       58 
     | 
    
         
            -
                   
     | 
| 
      
 58 
     | 
    
         
            +
                  errors = @mh.validate(HEADER_RULES, strict)
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
                  unless errors.empty?
         
     | 
| 
       59 
61 
     | 
    
         
             
                    raise Error, errors.join("\n")
         
     | 
| 
       60 
62 
     | 
    
         
             
                  end
         
     | 
| 
       61 
63 
     | 
    
         | 
| 
         @@ -108,11 +110,23 @@ class ReaPack::Index 
     | 
|
| 
       108 
110 
     | 
    
         
             
                    end
         
     | 
| 
       109 
111 
     | 
    
         
             
                  end
         
     | 
| 
       110 
112 
     | 
    
         | 
| 
       111 
     | 
    
         
            -
                   
     | 
| 
       112 
     | 
    
         
            -
                     
     | 
| 
       113 
     | 
    
         
            -
                     
     | 
| 
       114 
     | 
    
         
            -
                     
     | 
| 
       115 
     | 
    
         
            -
                     
     | 
| 
      
 113 
     | 
    
         
            +
                  substitutions = {
         
     | 
| 
      
 114 
     | 
    
         
            +
                    '$path'    => path,
         
     | 
| 
      
 115 
     | 
    
         
            +
                    '$commit'  => @index.commit || 'master',
         
     | 
| 
      
 116 
     | 
    
         
            +
                    '$version' => @ver.name,
         
     | 
| 
      
 117 
     | 
    
         
            +
                    '$package' => @pkg.path,
         
     | 
| 
      
 118 
     | 
    
         
            +
                  }
         
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
                  uri = Addressable::URI.parse template
         
     | 
| 
      
 121 
     | 
    
         
            +
                  [:host, :path, :query].each {|segment|
         
     | 
| 
      
 122 
     | 
    
         
            +
                    value = uri.send segment
         
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
      
 124 
     | 
    
         
            +
                    if value
         
     | 
| 
      
 125 
     | 
    
         
            +
                      value.gsub! /\$\w+/, substitutions
         
     | 
| 
      
 126 
     | 
    
         
            +
                      uri.send "#{segment}=", value
         
     | 
| 
      
 127 
     | 
    
         
            +
                    end
         
     | 
| 
      
 128 
     | 
    
         
            +
                  }
         
     | 
| 
      
 129 
     | 
    
         
            +
                  uri.normalize.to_s
         
     | 
| 
       116 
130 
     | 
    
         
             
                end
         
     | 
| 
       117 
131 
     | 
    
         | 
| 
       118 
132 
     | 
    
         
             
                def parse_provides(provides)
         
     | 
| 
         @@ -182,7 +196,7 @@ class ReaPack::Index 
     | 
|
| 
       182 
196 
     | 
    
         
             
                          src.detect_sections @pkg
         
     | 
| 
       183 
197 
     | 
    
         
             
                        end
         
     | 
| 
       184 
198 
     | 
    
         | 
| 
       185 
     | 
    
         
            -
                        src.file = target if line.target
         
     | 
| 
      
 199 
     | 
    
         
            +
                        src.file = target if line.target && expanded != file
         
     | 
| 
       186 
200 
     | 
    
         
             
                        @self_overriden = true
         
     | 
| 
       187 
201 
     | 
    
         
             
                      else
         
     | 
| 
       188 
202 
     | 
    
         
             
                        if line.url_template
         
     | 
    
        data/lib/reapack/index/source.rb
    CHANGED
    
    | 
         @@ -9,8 +9,9 @@ class ReaPack::Index 
     | 
|
| 
       9 
9 
     | 
    
         
             
                PLATFORMS = {
         
     | 
| 
       10 
10 
     | 
    
         
             
                  all: nil,
         
     | 
| 
       11 
11 
     | 
    
         
             
                  windows: :all, win32: :windows, win64: :windows,
         
     | 
| 
       12 
     | 
    
         
            -
                  darwin: :all, darwin32: :darwin, darwin64: :darwin,
         
     | 
| 
      
 12 
     | 
    
         
            +
                  darwin: :all, darwin32: :darwin, darwin64: :darwin, 'darwin-arm64': :darwin,
         
     | 
| 
       13 
13 
     | 
    
         
             
                  linux: :all, linux32: :linux, linux64: :linux,
         
     | 
| 
      
 14 
     | 
    
         
            +
                  'linux-armv7l': :linux, 'linux-aarch64': :linux
         
     | 
| 
       14 
15 
     | 
    
         
             
                }.freeze
         
     | 
| 
       15 
16 
     | 
    
         | 
| 
       16 
17 
     | 
    
         
             
                SECTIONS = [
         
     | 
    
        data/reapack-index.gemspec
    CHANGED
    
    | 
         @@ -8,7 +8,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       8 
8 
     | 
    
         
             
              spec.name          = 'reapack-index'
         
     | 
| 
       9 
9 
     | 
    
         
             
              spec.version       = ReaPack::Index::VERSION
         
     | 
| 
       10 
10 
     | 
    
         
             
              spec.authors       = ['cfillion']
         
     | 
| 
       11 
     | 
    
         
            -
              spec.email         = ['reapack-index@cfillion. 
     | 
| 
      
 11 
     | 
    
         
            +
              spec.email         = ['reapack-index@cfillion.ca']
         
     | 
| 
       12 
12 
     | 
    
         
             
              spec.summary       = 'Package indexer for git-based ReaPack repositories'
         
     | 
| 
       13 
13 
     | 
    
         
             
              spec.homepage      = 'https://github.com/cfillion/reapack-index'
         
     | 
| 
       14 
14 
     | 
    
         
             
              spec.license       = 'GPL-3.0+'
         
     | 
| 
         @@ -20,18 +20,17 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
              spec.required_ruby_version = '>= 2.3'
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
              spec.add_development_dependency 'bundler', '~>  
     | 
| 
       24 
     | 
    
         
            -
              spec.add_development_dependency 'coveralls', '~> 0.8'
         
     | 
| 
      
 23 
     | 
    
         
            +
              spec.add_development_dependency 'bundler', '~> 2.0'
         
     | 
| 
       25 
24 
     | 
    
         
             
              spec.add_development_dependency 'minitest', '~> 5.8'
         
     | 
| 
       26 
     | 
    
         
            -
              spec.add_development_dependency 'rake', '~>  
     | 
| 
      
 25 
     | 
    
         
            +
              spec.add_development_dependency 'rake', '~> 12.0'
         
     | 
| 
       27 
26 
     | 
    
         
             
              spec.add_development_dependency 'simplecov', '~> 0.11'
         
     | 
| 
       28 
27 
     | 
    
         | 
| 
       29 
28 
     | 
    
         
             
              spec.add_runtime_dependency 'addressable', '~> 2.4'
         
     | 
| 
       30 
29 
     | 
    
         
             
              spec.add_runtime_dependency 'colorize', '~> 0.7'
         
     | 
| 
       31 
30 
     | 
    
         
             
              spec.add_runtime_dependency 'gitable', '~> 0.3'
         
     | 
| 
       32 
     | 
    
         
            -
              spec.add_runtime_dependency 'metaheader', '~>  
     | 
| 
      
 31 
     | 
    
         
            +
              spec.add_runtime_dependency 'metaheader', '~> 2.0'
         
     | 
| 
       33 
32 
     | 
    
         
             
              spec.add_runtime_dependency 'nokogiri', '~> 1.7'
         
     | 
| 
       34 
33 
     | 
    
         
             
              spec.add_runtime_dependency 'pandoc-ruby', '~> 2.0'
         
     | 
| 
       35 
     | 
    
         
            -
              spec.add_runtime_dependency 'rugged', '~> 0 
     | 
| 
      
 34 
     | 
    
         
            +
              spec.add_runtime_dependency 'rugged', '~> 1.0'
         
     | 
| 
       36 
35 
     | 
    
         
             
              spec.add_runtime_dependency 'stable_sort', '~> 1.1'
         
     | 
| 
       37 
36 
     | 
    
         
             
            end
         
     | 
    
        data/test/helper.rb
    CHANGED
    
    
    
        data/test/index/test_provides.rb
    CHANGED
    
    | 
         @@ -427,4 +427,18 @@ class TestIndex::Provides < MiniTest::Test 
     | 
|
| 
       427 
427 
     | 
    
         
             
                  @provides ../target.lua
         
     | 
| 
       428 
428 
     | 
    
         
             
                IN
         
     | 
| 
       429 
429 
     | 
    
         
             
              end
         
     | 
| 
      
 430 
     | 
    
         
            +
             
     | 
| 
      
 431 
     | 
    
         
            +
              def test_rename_target_same_name
         
     | 
| 
      
 432 
     | 
    
         
            +
                index = ReaPack::Index.new @dummy_path
         
     | 
| 
      
 433 
     | 
    
         
            +
                index.files = ['Category/script.lua']
         
     | 
| 
      
 434 
     | 
    
         
            +
                index.url_template = 'http://host/$path'
         
     | 
| 
      
 435 
     | 
    
         
            +
             
     | 
| 
      
 436 
     | 
    
         
            +
                index.scan index.files.first, <<-IN
         
     | 
| 
      
 437 
     | 
    
         
            +
                  @version 1.0
         
     | 
| 
      
 438 
     | 
    
         
            +
                  @provides . > script.lua
         
     | 
| 
      
 439 
     | 
    
         
            +
                IN
         
     | 
| 
      
 440 
     | 
    
         
            +
             
     | 
| 
      
 441 
     | 
    
         
            +
                index.write!
         
     | 
| 
      
 442 
     | 
    
         
            +
                refute_match 'file=', File.read(index.path)
         
     | 
| 
      
 443 
     | 
    
         
            +
              end
         
     | 
| 
       430 
444 
     | 
    
         
             
            end
         
     | 
    
        data/test/index/test_scan.rb
    CHANGED
    
    | 
         @@ -54,6 +54,36 @@ class TestIndex::Scan < MiniTest::Test 
     | 
|
| 
       54 
54 
     | 
    
         
             
                assert_equal expected, File.read(index.path)
         
     | 
| 
       55 
55 
     | 
    
         
             
              end
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
      
 57 
     | 
    
         
            +
              def test_escape_path_uri
         
     | 
| 
      
 58 
     | 
    
         
            +
                index = ReaPack::Index.new @dummy_path
         
     | 
| 
      
 59 
     | 
    
         
            +
                index.files = ['Category/Hello World #1.lua']
         
     | 
| 
      
 60 
     | 
    
         
            +
                index.url_template = 'http://host/$path'
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
                index.scan index.files.first, '@version 1.0'
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
      
 64 
     | 
    
         
            +
                assert_equal true, index.modified?
         
     | 
| 
      
 65 
     | 
    
         
            +
                assert_equal '1 new category, 1 new package, 1 new version', index.changelog
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
      
 67 
     | 
    
         
            +
                index.write!
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
                assert_equal false, index.modified?
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
                expected = <<-XML
         
     | 
| 
      
 72 
     | 
    
         
            +
            <?xml version="1.0" encoding="utf-8"?>
         
     | 
| 
      
 73 
     | 
    
         
            +
            <index version="1">
         
     | 
| 
      
 74 
     | 
    
         
            +
              <category name="Category">
         
     | 
| 
      
 75 
     | 
    
         
            +
                <reapack name="Hello World #1.lua" type="script">
         
     | 
| 
      
 76 
     | 
    
         
            +
                  <version name="1.0">
         
     | 
| 
      
 77 
     | 
    
         
            +
                    <source main="main">http://host/Category/Hello%20World%20%231.lua</source>
         
     | 
| 
      
 78 
     | 
    
         
            +
                  </version>
         
     | 
| 
      
 79 
     | 
    
         
            +
                </reapack>
         
     | 
| 
      
 80 
     | 
    
         
            +
              </category>
         
     | 
| 
      
 81 
     | 
    
         
            +
            </index>
         
     | 
| 
      
 82 
     | 
    
         
            +
                XML
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                assert_equal expected, File.read(index.path)
         
     | 
| 
      
 85 
     | 
    
         
            +
              end
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
       57 
87 
     | 
    
         
             
              def test_package_in_root
         
     | 
| 
       58 
88 
     | 
    
         
             
                index = ReaPack::Index.new @dummy_path
         
     | 
| 
       59 
89 
     | 
    
         
             
                index.files = ['script.lua', 'Hello/World']
         
     | 
| 
         @@ -93,10 +93,10 @@ class TestScanner::TestMakeUrl < MiniTest::Test 
     | 
|
| 
       93 
93 
     | 
    
         | 
| 
       94 
94 
     | 
    
         
             
              def test_repeat
         
     | 
| 
       95 
95 
     | 
    
         
             
                @index.expect :files, ['Category/script.lua']
         
     | 
| 
       96 
     | 
    
         
            -
                @index.expect :url_template, '$path 
     | 
| 
      
 96 
     | 
    
         
            +
                @index.expect :url_template, '$path$path'
         
     | 
| 
       97 
97 
     | 
    
         
             
                @index.expect :commit, 'C0FF33'
         
     | 
| 
       98 
98 
     | 
    
         | 
| 
       99 
     | 
    
         
            -
                assert_equal 'Category/script. 
     | 
| 
      
 99 
     | 
    
         
            +
                assert_equal 'Category/script.luaCategory/script.lua',
         
     | 
| 
       100 
100 
     | 
    
         
             
                  @scanner.make_url('Category/script.lua')
         
     | 
| 
       101 
101 
     | 
    
         
             
              end
         
     | 
| 
       102 
102 
     | 
    
         
             
            end
         
     | 
| 
         @@ -8,7 +8,7 @@ class TestScanner::TestValidation < MiniTest::Test 
     | 
|
| 
       8 
8 
     | 
    
         
             
                @pkg.expect :type, :script
         
     | 
| 
       9 
9 
     | 
    
         
             
                @pkg.expect :path, 'cat/test'
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
     | 
    
         
            -
                @mh = MetaHeader.new 
     | 
| 
      
 11 
     | 
    
         
            +
                @mh = MetaHeader.new
         
     | 
| 
       12 
12 
     | 
    
         
             
                @mh[:version] = '1.0'
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
                @index = MiniTest::Mock.new
         
     | 
| 
         @@ -20,7 +20,7 @@ class TestScanner::TestValidation < MiniTest::Test 
     | 
|
| 
       20 
20 
     | 
    
         
             
              def test_validation
         
     | 
| 
       21 
21 
     | 
    
         
             
                mh_mock = MiniTest::Mock.new
         
     | 
| 
       22 
22 
     | 
    
         
             
                mh_mock.expect :alias, nil, [Hash]
         
     | 
| 
       23 
     | 
    
         
            -
                mh_mock.expect :validate, ['first', 'second'], [Hash]
         
     | 
| 
      
 23 
     | 
    
         
            +
                mh_mock.expect :validate, ['first', 'second'], [Hash, false]
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
                @scanner.instance_variable_set :@mh, mh_mock
         
     | 
| 
       26 
26 
     | 
    
         | 
    
        data/test/test_parsers.rb
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ require File.expand_path '../helper', __FILE__ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            class TestParsers < MiniTest::Test
         
     | 
| 
       4 
4 
     | 
    
         
             
              def test_wordpress
         
     | 
| 
       5 
     | 
    
         
            -
                 
     | 
| 
      
 5 
     | 
    
         
            +
                input = <<-IN
         
     | 
| 
       6 
6 
     | 
    
         
             
            /**
         
     | 
| 
       7 
7 
     | 
    
         
             
             * Version: 1.1
         
     | 
| 
       8 
8 
     | 
    
         
             
             */
         
     | 
| 
         @@ -23,12 +23,17 @@ class TestParsers < MiniTest::Test 
     | 
|
| 
       23 
23 
     | 
    
         
             
             Test\x97
         
     | 
| 
       24 
24 
     | 
    
         
             
                IN
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
      
 26 
     | 
    
         
            +
                mh = MetaHeader.parse input
         
     | 
| 
       26 
27 
     | 
    
         
             
                assert_equal '1.1', mh[:version]
         
     | 
| 
      
 28 
     | 
    
         
            +
                refute mh.has?(:changelog)
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
                parser = WordpressChangelog.new mh
         
     | 
| 
      
 31 
     | 
    
         
            +
                parser.parse input
         
     | 
| 
       27 
32 
     | 
    
         
             
                assert_equal "+ Line 3\n+ Line 4", mh[:changelog]
         
     | 
| 
       28 
33 
     | 
    
         
             
              end
         
     | 
| 
       29 
34 
     | 
    
         | 
| 
       30 
35 
     | 
    
         
             
              def test_wordpress_no_date
         
     | 
| 
       31 
     | 
    
         
            -
                 
     | 
| 
      
 36 
     | 
    
         
            +
                input = <<-IN
         
     | 
| 
       32 
37 
     | 
    
         
             
            /**
         
     | 
| 
       33 
38 
     | 
    
         
             
             * Version: 1.1
         
     | 
| 
       34 
39 
     | 
    
         
             
             */
         
     | 
| 
         @@ -49,12 +54,14 @@ class TestParsers < MiniTest::Test 
     | 
|
| 
       49 
54 
     | 
    
         
             
             Test\x97
         
     | 
| 
       50 
55 
     | 
    
         
             
                IN
         
     | 
| 
       51 
56 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
                 
     | 
| 
      
 57 
     | 
    
         
            +
                mh = MetaHeader.parse input
         
     | 
| 
      
 58 
     | 
    
         
            +
                parser = WordpressChangelog.new mh
         
     | 
| 
      
 59 
     | 
    
         
            +
                parser.parse input
         
     | 
| 
       53 
60 
     | 
    
         
             
                assert_equal "+ Line 3\n+ Line 4", mh[:changelog]
         
     | 
| 
       54 
61 
     | 
    
         
             
              end
         
     | 
| 
       55 
62 
     | 
    
         | 
| 
       56 
63 
     | 
    
         
             
              def test_wordpress_noprefix
         
     | 
| 
       57 
     | 
    
         
            -
                 
     | 
| 
      
 64 
     | 
    
         
            +
                input = <<-IN
         
     | 
| 
       58 
65 
     | 
    
         
             
            --[[
         
     | 
| 
       59 
66 
     | 
    
         
             
            Version: 1.1
         
     | 
| 
       60 
67 
     | 
    
         
             
            --]]
         
     | 
| 
         @@ -76,7 +83,9 @@ v1.0 (2012-01-01) 
     | 
|
| 
       76 
83 
     | 
    
         
             
             Test\x97
         
     | 
| 
       77 
84 
     | 
    
         
             
                IN
         
     | 
| 
       78 
85 
     | 
    
         | 
| 
       79 
     | 
    
         
            -
                 
     | 
| 
      
 86 
     | 
    
         
            +
                mh = MetaHeader.parse input
         
     | 
| 
      
 87 
     | 
    
         
            +
                parser = WordpressChangelog.new mh
         
     | 
| 
      
 88 
     | 
    
         
            +
                parser.parse input
         
     | 
| 
       80 
89 
     | 
    
         
             
                assert_equal "+ Line 3\n+ Line 4", mh[:changelog]
         
     | 
| 
       81 
90 
     | 
    
         
             
              end
         
     | 
| 
       82 
91 
     | 
    
         
             
            end
         
     | 
    
        data/test/test_provides.rb
    CHANGED
    
    | 
         @@ -34,8 +34,8 @@ class TestProvides < MiniTest::Test 
     | 
|
| 
       34 
34 
     | 
    
         | 
| 
       35 
35 
     | 
    
         
             
              def test_platforms
         
     | 
| 
       36 
36 
     | 
    
         
             
                assert_equal [:windows, :win32, :win64,
         
     | 
| 
       37 
     | 
    
         
            -
                              :darwin, :darwin32, :darwin64,
         
     | 
| 
       38 
     | 
    
         
            -
                              :linux, :linux32, :linux64],
         
     | 
| 
      
 37 
     | 
    
         
            +
                              :darwin, :darwin32, :darwin64, :'darwin-arm64',
         
     | 
| 
      
 38 
     | 
    
         
            +
                              :linux, :linux32, :linux64, :'linux-armv7l', :'linux-aarch64'],
         
     | 
| 
       39 
39 
     | 
    
         
             
                  [
         
     | 
| 
       40 
40 
     | 
    
         
             
                    '[windows] file',
         
     | 
| 
       41 
41 
     | 
    
         
             
                    '[win32] file',
         
     | 
| 
         @@ -43,9 +43,12 @@ class TestProvides < MiniTest::Test 
     | 
|
| 
       43 
43 
     | 
    
         
             
                    '[Darwin]file',
         
     | 
| 
       44 
44 
     | 
    
         
             
                    ' [ darwin32 ] file',
         
     | 
| 
       45 
45 
     | 
    
         
             
                    '[win32 darwin64] file',
         
     | 
| 
      
 46 
     | 
    
         
            +
                    '[darwin-arm64] file',
         
     | 
| 
       46 
47 
     | 
    
         
             
                    '[linux] file',
         
     | 
| 
       47 
48 
     | 
    
         
             
                    '[linux32] file',
         
     | 
| 
       48 
49 
     | 
    
         
             
                    '[linux64] file',
         
     | 
| 
      
 50 
     | 
    
         
            +
                    '[linux-armv7l] file',
         
     | 
| 
      
 51 
     | 
    
         
            +
                    '[linux-aarch64] file',
         
     | 
| 
       49 
52 
     | 
    
         
             
                  ].map {|l| ReaPack::Index::Provides.parse(l).platform }
         
     | 
| 
       50 
53 
     | 
    
         
             
              end
         
     | 
| 
       51 
54 
     | 
    
         | 
    
        data/test/test_scanner.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: reapack-index
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.2.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - cfillion
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-01-03 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -16,28 +16,14 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: ' 
     | 
| 
       20 
     | 
    
         
            -
              type: :development
         
     | 
| 
       21 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       22 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
     | 
    
         
            -
                requirements:
         
     | 
| 
       24 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       25 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: '1.10'
         
     | 
| 
       27 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
     | 
    
         
            -
              name: coveralls
         
     | 
| 
       29 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       30 
     | 
    
         
            -
                requirements:
         
     | 
| 
       31 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       32 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
     | 
    
         
            -
                    version: '0.8'
         
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '2.0'
         
     | 
| 
       34 
20 
     | 
    
         
             
              type: :development
         
     | 
| 
       35 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       38 
24 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       39 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
     | 
    
         
            -
                    version: '0 
     | 
| 
      
 26 
     | 
    
         
            +
                    version: '2.0'
         
     | 
| 
       41 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       42 
28 
     | 
    
         
             
              name: minitest
         
     | 
| 
       43 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -58,14 +44,14 @@ dependencies: 
     | 
|
| 
       58 
44 
     | 
    
         
             
                requirements:
         
     | 
| 
       59 
45 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       60 
46 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '12.0'
         
     | 
| 
       62 
48 
     | 
    
         
             
              type: :development
         
     | 
| 
       63 
49 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       64 
50 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
51 
     | 
    
         
             
                requirements:
         
     | 
| 
       66 
52 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
53 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '12.0'
         
     | 
| 
       69 
55 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       70 
56 
     | 
    
         
             
              name: simplecov
         
     | 
| 
       71 
57 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -128,14 +114,14 @@ dependencies: 
     | 
|
| 
       128 
114 
     | 
    
         
             
                requirements:
         
     | 
| 
       129 
115 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       130 
116 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       131 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 117 
     | 
    
         
            +
                    version: '2.0'
         
     | 
| 
       132 
118 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       133 
119 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       134 
120 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       135 
121 
     | 
    
         
             
                requirements:
         
     | 
| 
       136 
122 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       137 
123 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       138 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 124 
     | 
    
         
            +
                    version: '2.0'
         
     | 
| 
       139 
125 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       140 
126 
     | 
    
         
             
              name: nokogiri
         
     | 
| 
       141 
127 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -170,14 +156,14 @@ dependencies: 
     | 
|
| 
       170 
156 
     | 
    
         
             
                requirements:
         
     | 
| 
       171 
157 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       172 
158 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       173 
     | 
    
         
            -
                    version: '0 
     | 
| 
      
 159 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       174 
160 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       175 
161 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       176 
162 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       177 
163 
     | 
    
         
             
                requirements:
         
     | 
| 
       178 
164 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       179 
165 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       180 
     | 
    
         
            -
                    version: '0 
     | 
| 
      
 166 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
       181 
167 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       182 
168 
     | 
    
         
             
              name: stable_sort
         
     | 
| 
       183 
169 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -192,16 +178,17 @@ dependencies: 
     | 
|
| 
       192 
178 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       193 
179 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       194 
180 
     | 
    
         
             
                    version: '1.1'
         
     | 
| 
       195 
     | 
    
         
            -
            description: 
     | 
| 
      
 181 
     | 
    
         
            +
            description:
         
     | 
| 
       196 
182 
     | 
    
         
             
            email:
         
     | 
| 
       197 
     | 
    
         
            -
            - reapack-index@cfillion. 
     | 
| 
      
 183 
     | 
    
         
            +
            - reapack-index@cfillion.ca
         
     | 
| 
       198 
184 
     | 
    
         
             
            executables:
         
     | 
| 
       199 
185 
     | 
    
         
             
            - reapack-index
         
     | 
| 
       200 
186 
     | 
    
         
             
            extensions: []
         
     | 
| 
       201 
187 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       202 
188 
     | 
    
         
             
            files:
         
     | 
| 
      
 189 
     | 
    
         
            +
            - ".github/FUNDING.yml"
         
     | 
| 
      
 190 
     | 
    
         
            +
            - ".github/workflows/test.yml"
         
     | 
| 
       203 
191 
     | 
    
         
             
            - ".gitignore"
         
     | 
| 
       204 
     | 
    
         
            -
            - ".travis.yml"
         
     | 
| 
       205 
192 
     | 
    
         
             
            - COPYING
         
     | 
| 
       206 
193 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       207 
194 
     | 
    
         
             
            - README.md
         
     | 
| 
         @@ -249,7 +236,7 @@ homepage: https://github.com/cfillion/reapack-index 
     | 
|
| 
       249 
236 
     | 
    
         
             
            licenses:
         
     | 
| 
       250 
237 
     | 
    
         
             
            - GPL-3.0+
         
     | 
| 
       251 
238 
     | 
    
         
             
            metadata: {}
         
     | 
| 
       252 
     | 
    
         
            -
            post_install_message: 
     | 
| 
      
 239 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       253 
240 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       254 
241 
     | 
    
         
             
            require_paths:
         
     | 
| 
       255 
242 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -260,13 +247,12 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       260 
247 
     | 
    
         
             
                  version: '2.3'
         
     | 
| 
       261 
248 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       262 
249 
     | 
    
         
             
              requirements:
         
     | 
| 
       263 
     | 
    
         
            -
              - - " 
     | 
| 
      
 250 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       264 
251 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       265 
     | 
    
         
            -
                  version:  
     | 
| 
      
 252 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       266 
253 
     | 
    
         
             
            requirements: []
         
     | 
| 
       267 
     | 
    
         
            -
             
     | 
| 
       268 
     | 
    
         
            -
             
     | 
| 
       269 
     | 
    
         
            -
            signing_key: 
         
     | 
| 
      
 254 
     | 
    
         
            +
            rubygems_version: 3.1.4
         
     | 
| 
      
 255 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       270 
256 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       271 
257 
     | 
    
         
             
            summary: Package indexer for git-based ReaPack repositories
         
     | 
| 
       272 
258 
     | 
    
         
             
            test_files:
         
     |