reapack-index 1.0beta2 → 1.0beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/COPYING +674 -0
- data/README.md +8 -4
- data/Rakefile +1 -0
- data/lib/reapack/index.rb +84 -71
- data/lib/reapack/index/cli.rb +75 -154
- data/lib/reapack/index/cli/options.rb +157 -0
- data/lib/reapack/index/gem_version.rb +1 -1
- data/lib/reapack/index/metadata.rb +8 -2
- data/lib/reapack/index/parsers.rb +10 -13
- data/lib/reapack/index/version.rb +1 -1
- data/reapack-index.gemspec +12 -10
- data/setup/StrRep.nsh +59 -0
- data/setup/reapack-index.nsi +52 -29
- data/test/test_cli.rb +250 -84
- data/test/test_index.rb +177 -101
- data/test/test_metadata.rb +1 -4
- data/test/test_package.rb +1 -1
- data/test/test_parsers.rb +32 -1
- metadata +45 -14
data/test/test_metadata.rb
CHANGED
@@ -132,7 +132,7 @@ class TestMetadata < MiniTest::Test
|
|
132
132
|
md.push_link :website, 'hello'
|
133
133
|
end
|
134
134
|
|
135
|
-
assert_equal 'invalid
|
135
|
+
assert_equal 'invalid link: hello', error.message
|
136
136
|
assert_equal after.chomp, before.to_s
|
137
137
|
end
|
138
138
|
|
@@ -320,9 +320,6 @@ class TestMetadata < MiniTest::Test
|
|
320
320
|
end
|
321
321
|
|
322
322
|
def test_replace_description
|
323
|
-
rtf = <<-RTF
|
324
|
-
RTF
|
325
|
-
|
326
323
|
before = make_node <<-XML
|
327
324
|
<index>
|
328
325
|
<metadata>
|
data/test/test_package.rb
CHANGED
data/test/test_parsers.rb
CHANGED
@@ -24,7 +24,38 @@ class TestParsers < MiniTest::Test
|
|
24
24
|
IN
|
25
25
|
|
26
26
|
changelog = <<-LOG
|
27
|
-
|
27
|
+
+ Line 3
|
28
|
+
+ Line 4
|
29
|
+
LOG
|
30
|
+
|
31
|
+
assert_equal '1.1', mh[:version]
|
32
|
+
assert_equal changelog.chomp, mh[:changelog]
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_wordpress_noprefix
|
36
|
+
mh = MetaHeader.new <<-IN
|
37
|
+
--[[
|
38
|
+
Version: 1.1
|
39
|
+
--]]
|
40
|
+
|
41
|
+
--[[
|
42
|
+
Changelog:
|
43
|
+
|
44
|
+
v1.2 (2010-01-01)
|
45
|
+
\t+ Line 1
|
46
|
+
\t+ Line 2
|
47
|
+
v1.1 (2011-01-01)
|
48
|
+
\t+ Line 3
|
49
|
+
\t+ Line 4
|
50
|
+
v1.0 (2012-01-01)
|
51
|
+
\t+ Line 5
|
52
|
+
|
53
|
+
]]
|
54
|
+
|
55
|
+
Test\x97
|
56
|
+
IN
|
57
|
+
|
58
|
+
changelog = <<-LOG
|
28
59
|
+ Line 3
|
29
60
|
+ Line 4
|
30
61
|
LOG
|
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.0beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cfillion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '11.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '11.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.11'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: addressable
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.4'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.4'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: colorize
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +122,20 @@ dependencies:
|
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0.7'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: gitable
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.3'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.3'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: metaheader
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,28 +170,28 @@ dependencies:
|
|
142
170
|
requirements:
|
143
171
|
- - "~>"
|
144
172
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
173
|
+
version: '2.0'
|
146
174
|
type: :runtime
|
147
175
|
prerelease: false
|
148
176
|
version_requirements: !ruby/object:Gem::Requirement
|
149
177
|
requirements:
|
150
178
|
- - "~>"
|
151
179
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
180
|
+
version: '2.0'
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
182
|
name: rugged
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
185
|
- - "~>"
|
158
186
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.24
|
187
|
+
version: '0.24'
|
160
188
|
type: :runtime
|
161
189
|
prerelease: false
|
162
190
|
version_requirements: !ruby/object:Gem::Requirement
|
163
191
|
requirements:
|
164
192
|
- - "~>"
|
165
193
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.24
|
194
|
+
version: '0.24'
|
167
195
|
description:
|
168
196
|
email:
|
169
197
|
- reapack-index@cfillion.tk
|
@@ -174,12 +202,14 @@ extra_rdoc_files: []
|
|
174
202
|
files:
|
175
203
|
- ".gitignore"
|
176
204
|
- ".travis.yml"
|
205
|
+
- COPYING
|
177
206
|
- Gemfile
|
178
207
|
- README.md
|
179
208
|
- Rakefile
|
180
209
|
- bin/reapack-index
|
181
210
|
- lib/reapack/index.rb
|
182
211
|
- lib/reapack/index/cli.rb
|
212
|
+
- lib/reapack/index/cli/options.rb
|
183
213
|
- lib/reapack/index/gem_version.rb
|
184
214
|
- lib/reapack/index/metadata.rb
|
185
215
|
- lib/reapack/index/named_node.rb
|
@@ -188,6 +218,7 @@ files:
|
|
188
218
|
- lib/reapack/index/version.rb
|
189
219
|
- reapack-index.gemspec
|
190
220
|
- setup/.gitignore
|
221
|
+
- setup/StrRep.nsh
|
191
222
|
- setup/reapack-index.nsi
|
192
223
|
- test/data/index.xml
|
193
224
|
- test/data/noindex.lua
|
@@ -200,9 +231,9 @@ files:
|
|
200
231
|
- test/test_package.rb
|
201
232
|
- test/test_parsers.rb
|
202
233
|
- test/test_version.rb
|
203
|
-
homepage: https://github.com/cfillion/reapack-
|
234
|
+
homepage: https://github.com/cfillion/reapack-index
|
204
235
|
licenses:
|
205
|
-
-
|
236
|
+
- GPL-3.0+
|
206
237
|
metadata: {}
|
207
238
|
post_install_message:
|
208
239
|
rdoc_options: []
|