reapack-index 1.2.3rc2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.github/workflows/test.yml +17 -0
- data/README.md +2 -3
- data/lib/reapack/index/gem_version.rb +1 -1
- data/lib/reapack/index/git.rb +5 -10
- data/lib/reapack/index/source.rb +1 -1
- data/reapack-index.gemspec +1 -2
- data/test/helper.rb +0 -4
- data/test/test_provides.rb +2 -1
- metadata +13 -26
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
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,9 +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
|
[![Gem Version](https://badge.fury.io/rb/reapack-index.svg)](http://badge.fury.io/rb/reapack-index)
|
7
|
-
[![
|
8
|
-
[![
|
9
|
-
[![Donate](https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_74x21.png)](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
|
+
[![Test status](https://github.com/cfillion/reapack-index/workflows/test/badge.svg)](https://github.com/cfillion/reapack-index/actions)
|
8
|
+
[![Donate](https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_74x21.png)](https://reapack.com/donate)
|
10
9
|
|
11
10
|
### Installation
|
12
11
|
|
data/lib/reapack/index/git.rb
CHANGED
@@ -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 ||=
|
data/lib/reapack/index/source.rb
CHANGED
@@ -9,7 +9,7 @@ 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
14
|
'linux-armv7l': :linux, 'linux-aarch64': :linux
|
15
15
|
}.freeze
|
data/reapack-index.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.required_ruby_version = '>= 2.3'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
24
|
-
spec.add_development_dependency 'coveralls', '~> 0.8'
|
25
24
|
spec.add_development_dependency 'minitest', '~> 5.8'
|
26
25
|
spec.add_development_dependency 'rake', '~> 12.0'
|
27
26
|
spec.add_development_dependency 'simplecov', '~> 0.11'
|
@@ -32,6 +31,6 @@ Gem::Specification.new do |spec|
|
|
32
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/test_provides.rb
CHANGED
@@ -34,7 +34,7 @@ class TestProvides < MiniTest::Test
|
|
34
34
|
|
35
35
|
def test_platforms
|
36
36
|
assert_equal [:windows, :win32, :win64,
|
37
|
-
:darwin, :darwin32, :darwin64,
|
37
|
+
:darwin, :darwin32, :darwin64, :'darwin-arm64',
|
38
38
|
:linux, :linux32, :linux64, :'linux-armv7l', :'linux-aarch64'],
|
39
39
|
[
|
40
40
|
'[windows] file',
|
@@ -43,6 +43,7 @@ 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',
|
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.2.
|
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
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
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'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.8'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: minitest
|
43
29
|
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,7 +178,7 @@ dependencies:
|
|
192
178
|
- - "~>"
|
193
179
|
- !ruby/object:Gem::Version
|
194
180
|
version: '1.1'
|
195
|
-
description:
|
181
|
+
description:
|
196
182
|
email:
|
197
183
|
- reapack-index@cfillion.ca
|
198
184
|
executables:
|
@@ -200,8 +186,9 @@ executables:
|
|
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,12 +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
|
-
rubygems_version: 3.1.
|
268
|
-
signing_key:
|
254
|
+
rubygems_version: 3.1.4
|
255
|
+
signing_key:
|
269
256
|
specification_version: 4
|
270
257
|
summary: Package indexer for git-based ReaPack repositories
|
271
258
|
test_files:
|
data/.travis.yml
DELETED