rake-deveiate 0.12.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.md +38 -0
- data/README.md +3 -0
- data/lib/rake/deveiate.rb +50 -4
- data/lib/rake/deveiate/fixup.rb +7 -3
- data/lib/rake/deveiate/gemspec.rb +1 -0
- data/lib/rake/deveiate/hg.rb +1 -1
- metadata +34 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c2bb0778d27418700022a963c18f81a16cae82f69e09688fd2a8e13b6096eb4
|
4
|
+
data.tar.gz: 31304d8589879cf4d72125462820ae71409628381e8728a3d21ef96039797cdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da94940cf35b7adc4a51f42aa42f6768fb2665d56d364fea128a1f5a2430f166e44a5ecb4c39559f70029dacb3c3f488cf7197f48158e7a2becceb0c485f9f4d
|
7
|
+
data.tar.gz: 9cad415102523353cefbb8539d20e6919b9816216cbf6ba8744ee8c3d9a21414ce94b68f888e6c700798d48e313a3e65df52627aebb4bcd87ee8a1d5d14d75d9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.md
CHANGED
@@ -1,6 +1,44 @@
|
|
1
1
|
# Release History for rake-deveiate
|
2
2
|
|
3
3
|
---
|
4
|
+
## v0.15.0 [2020-10-29] Michael Granger <ged@FaerieMUD.org>
|
5
|
+
|
6
|
+
Improvements:
|
7
|
+
|
8
|
+
- Added support for extensions
|
9
|
+
|
10
|
+
|
11
|
+
## v0.14.1 [2020-10-01] Michael Granger <ged@FaerieMUD.org>
|
12
|
+
|
13
|
+
Improvements:
|
14
|
+
|
15
|
+
- Support changes in latest tty-editor.
|
16
|
+
|
17
|
+
|
18
|
+
## v0.14.0 [2020-04-02] Michael Granger <ged@FaerieMUD.org>
|
19
|
+
|
20
|
+
Improvements:
|
21
|
+
|
22
|
+
- Handle gem names like 'ruby-pf', fixup untracked gem deps files
|
23
|
+
|
24
|
+
|
25
|
+
## v0.13.0 [2020-03-09] Michael Granger <ged@FaerieMUD.org>
|
26
|
+
|
27
|
+
Improvements:
|
28
|
+
|
29
|
+
- Allow file that version is read from to be overridden
|
30
|
+
|
31
|
+
Bugfixes:
|
32
|
+
|
33
|
+
- Bump the hglib dependency
|
34
|
+
|
35
|
+
|
36
|
+
## v0.12.1 [2020-03-04] Michael Granger <ged@FaerieMUD.org>
|
37
|
+
|
38
|
+
Bugfixes:
|
39
|
+
|
40
|
+
- Stop truncating the description extracted from the README.
|
41
|
+
|
4
42
|
|
5
43
|
## v0.12.0 [2020-03-04] Michael Granger <ged@FaerieMUD.org>
|
6
44
|
|
data/README.md
CHANGED
data/lib/rake/deveiate.rb
CHANGED
@@ -35,7 +35,7 @@ class Rake::DevEiate < Rake::TaskLib
|
|
35
35
|
VERSION_PATTERN = /VERSION\s*=\s*(?<quote>['"])(?<version>\d+(\.\d+){2}.*)\k<quote>/
|
36
36
|
|
37
37
|
# The version of this library
|
38
|
-
VERSION = '0.
|
38
|
+
VERSION = '0.15.0'
|
39
39
|
|
40
40
|
# The server to release to by default
|
41
41
|
DEFAULT_GEMSERVER = 'https://rubygems.org/'
|
@@ -46,6 +46,10 @@ class Rake::DevEiate < Rake::TaskLib
|
|
46
46
|
# The version to use if one cannot be read from the source
|
47
47
|
DEFAULT_VERSION = '0.1.0'
|
48
48
|
|
49
|
+
# Words in the package/gem name that should not be included in deriving paths,
|
50
|
+
# file names, etc.
|
51
|
+
PACKAGE_IGNORE_WORDS = %w[ruby]
|
52
|
+
|
49
53
|
# Paths
|
50
54
|
PROJECT_DIR = Pathname( '.' )
|
51
55
|
|
@@ -73,6 +77,10 @@ class Rake::DevEiate < Rake::TaskLib
|
|
73
77
|
]
|
74
78
|
DEFAULT_PROJECT_FILES.exclude( 'Manifest*.txt' )
|
75
79
|
|
80
|
+
# Environment variable overrides for settings
|
81
|
+
ENV_SETTING_NAME = {
|
82
|
+
version_from: 'VERSION_FROM',
|
83
|
+
}
|
76
84
|
|
77
85
|
|
78
86
|
# The default license for the project in SPDX form: https://spdx.org/licenses
|
@@ -142,13 +150,14 @@ class Rake::DevEiate < Rake::TaskLib
|
|
142
150
|
@manifest_file = DEFAULT_MANIFEST_FILE.dup
|
143
151
|
@project_files = self.read_manifest
|
144
152
|
@executables = self.find_executables
|
145
|
-
@version = self.find_version || DEFAULT_VERSION
|
146
153
|
@readme_file = self.find_readme
|
147
154
|
@history_file = self.find_history_file
|
148
155
|
@readme = self.parse_readme
|
149
156
|
@rdoc_files = self.make_rdoc_filelist
|
150
157
|
@cert_files = Rake::FileList[ CERTS_DIR + '*.pem' ]
|
151
158
|
@licenses = [ DEFAULT_LICENSE ]
|
159
|
+
@version_from = env( :version_from, as_pathname: true ) ||
|
160
|
+
LIB_DIR + "%s.rb" % [ version_file_from(name) ]
|
152
161
|
|
153
162
|
@docs_dir = DOCS_DIR.dup
|
154
163
|
|
@@ -158,7 +167,9 @@ class Rake::DevEiate < Rake::TaskLib
|
|
158
167
|
@description = self.extract_description || DEFAULT_DESCRIPTION
|
159
168
|
@summary = nil
|
160
169
|
@dependencies = self.find_dependencies
|
170
|
+
@extensions = Rake::FileList.new
|
161
171
|
|
172
|
+
@version = nil
|
162
173
|
@publish_to = nil
|
163
174
|
@required_ruby_version = nil
|
164
175
|
|
@@ -209,6 +220,10 @@ class Rake::DevEiate < Rake::TaskLib
|
|
209
220
|
# The title of the library for things like docs, gemspec, etc.
|
210
221
|
attr_accessor :title
|
211
222
|
|
223
|
+
##
|
224
|
+
# The pathname of the file to read the version from
|
225
|
+
attr_pathname :version_from
|
226
|
+
|
212
227
|
##
|
213
228
|
# The project's Rakefile
|
214
229
|
attr_pathname :rakefile
|
@@ -258,6 +273,10 @@ class Rake::DevEiate < Rake::TaskLib
|
|
258
273
|
# The Gem::RequestSet that describes the gem's dependencies
|
259
274
|
attr_accessor :dependencies
|
260
275
|
|
276
|
+
##
|
277
|
+
# A FileMap of the paths to this project's extension config scripts.
|
278
|
+
attr_reader :extensions
|
279
|
+
|
261
280
|
##
|
262
281
|
# The gemserver to push gems to
|
263
282
|
attr_accessor :allowed_push_host
|
@@ -421,7 +440,7 @@ class Rake::DevEiate < Rake::TaskLib
|
|
421
440
|
def extract_description
|
422
441
|
parts = self.readme&.parts or return nil
|
423
442
|
desc_para = parts.find {|part| part.is_a?(RDoc::Markup::Paragraph) }&.text or return nil
|
424
|
-
formatter = RDoc::Markup::
|
443
|
+
formatter = RDoc::Markup::ToHtml.new( RDoc::Options.new )
|
425
444
|
html = formatter.convert( desc_para )
|
426
445
|
|
427
446
|
return html.gsub( /<.*?>/, '' ).strip
|
@@ -487,10 +506,17 @@ class Rake::DevEiate < Rake::TaskLib
|
|
487
506
|
end
|
488
507
|
|
489
508
|
|
509
|
+
### Return the project version as a Gem::Version, reading it from the
|
510
|
+
### #version_from file if it's not set yet.
|
511
|
+
def version
|
512
|
+
return @version ||= self.find_version
|
513
|
+
end
|
514
|
+
|
515
|
+
|
490
516
|
### Find the file that contains the VERSION constant and return it as a
|
491
517
|
### Gem::Version.
|
492
518
|
def find_version
|
493
|
-
version_file =
|
519
|
+
version_file = self.version_from
|
494
520
|
|
495
521
|
unless version_file.readable?
|
496
522
|
self.prompt.warn "Version could not be read from %s" % [ version_file ]
|
@@ -778,4 +804,24 @@ class Rake::DevEiate < Rake::TaskLib
|
|
778
804
|
return nil
|
779
805
|
end
|
780
806
|
|
807
|
+
|
808
|
+
### Convenience mapping -- fetch a value for the setting of the given +name+
|
809
|
+
### from the appropriate environment variable. Returns +nil+ if that variable is
|
810
|
+
### undefined or blank.
|
811
|
+
def env( name, as_pathname: false )
|
812
|
+
env_name = ENV_SETTING_NAME[ name ] or return nil
|
813
|
+
val = ENV[ env_name ] or return nil
|
814
|
+
return val unless as_pathname
|
815
|
+
return PROJECT_DIR + val
|
816
|
+
end
|
817
|
+
|
818
|
+
|
819
|
+
### Return the path to the file that should contain the VERSION constant.
|
820
|
+
def version_file_from( name )
|
821
|
+
return name.
|
822
|
+
split( /-/ ).
|
823
|
+
reject {|word| PACKAGE_IGNORE_WORDS.include?(word) }.
|
824
|
+
join( '/' )
|
825
|
+
end
|
826
|
+
|
781
827
|
end # class Rake::DevEiate
|
data/lib/rake/deveiate/fixup.rb
CHANGED
@@ -93,7 +93,7 @@ module Rake::DevEiate::Fixup
|
|
93
93
|
fixups << "De-hoeify the Rakefile" if self.rakefile_needs_hoe_fixup?
|
94
94
|
fixups << "Remove cruft from the manifest" if self.manifest_needs_fixup?
|
95
95
|
fixups << "Remove bundler files" if self.bundler_files_present?
|
96
|
-
fixups << "
|
96
|
+
fixups << "Convert legacy dependency files" if self.legacy_deps_files_present?
|
97
97
|
|
98
98
|
self.prompt.say( "Fixups available:", color: :bright_green )
|
99
99
|
|
@@ -209,8 +209,12 @@ module Rake::DevEiate::Fixup
|
|
209
209
|
|
210
210
|
raise "Failed to read dependencies from %s!" % [ depsfile ] if depnames.empty?
|
211
211
|
|
212
|
-
self.
|
213
|
-
|
212
|
+
if self.hg.tracked?( depsfile )
|
213
|
+
self.trace "Recording move of %s to %s" % [ depsfile, new_depsfile ]
|
214
|
+
self.hg.mv( depsfile, new_depsfile )
|
215
|
+
else
|
216
|
+
depsfile.rename( new_depsfile )
|
217
|
+
end
|
214
218
|
|
215
219
|
newest_deps = self.find_latest_versions( *depnames ).
|
216
220
|
reject {|tuple| tuple.name.include?('hoe') }
|
@@ -124,6 +124,7 @@ module Rake::DevEiate::Gemspec
|
|
124
124
|
spec.summary = self.summary || self.extract_summary
|
125
125
|
spec.files = self.project_files
|
126
126
|
spec.executables = self.executables
|
127
|
+
spec.extensions = self.extensions.to_a
|
127
128
|
spec.signing_key = self.resolve_signing_key.to_s
|
128
129
|
spec.cert_chain = [ self.find_signing_cert ].compact
|
129
130
|
spec.version = self.version
|
data/lib/rake/deveiate/hg.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-deveiate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MIID+DCCAmCgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
|
14
|
+
REM9RmFlcmllTVVEL0RDPW9yZzAeFw0xOTEyMjQyMDE5NTFaFw0yMDEyMjMyMDE5
|
15
|
+
NTFaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
|
16
16
|
hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAvyVhkRzvlEs0fe7145BYLfN6njX9ih5H
|
17
17
|
L60U0p0euIurpv84op9CNKF9tx+1WKwyQvQP7qFGuZxkSUuWcP/sFhDXL1lWUuIl
|
18
18
|
M4uHbGCRmOshDrF4dgnBeOvkHr1fIhPlJm5FO+Vew8tSQmlDsosxLUx+VB7DrVFO
|
@@ -21,20 +21,19 @@ cert_chain:
|
|
21
21
|
vQ66lts4alKC69TE5cuKasWBm+16A4aEe3XdZBRNmtOu/g81gvwA7fkJHKllJuaI
|
22
22
|
dXzdHqq+zbGZVSQ7pRYHYomD0IiDe1DbIouFnPWmagaBnGHwXkDT2bKKP+s2v21m
|
23
23
|
ozilJg4aar2okb/RA6VS87o+d7g6LpDDMMQjH4G9OPnJENLdhu8KnPw/ivSVvQw7
|
24
|
-
N2I4L/ZOIe2DIVuYH7aLHfjZDQv/
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
XrxOxp8o0uOkU7FdLSGsyqJ2LzsR4obN
|
24
|
+
N2I4L/ZOIe2DIVuYH7aLHfjZDQv/mNgpAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYD
|
25
|
+
VR0PBAQDAgSwMB0GA1UdDgQWBBRyjf55EbrHagiRLqt5YAd3yb8k4DANBgkqhkiG
|
26
|
+
9w0BAQsFAAOCAYEAifxlz7x0EfT3fjhM520ZEIrWa+tLMuLKNefkY18u8tZnx4EX
|
27
|
+
Xxwh3tna3fvNfrOrdY5leIj1dbv4FTRg+gIBnIxAySqvpGvI/Axg5EdYbwninCLL
|
28
|
+
LAKCmRo+5QwaPMYN2zdHIjGrp8jg1neCo5zy6tVvyTv0DMI6FLrydVJYduMMDFSy
|
29
|
+
gQKR1rVOcCJtnBnLCF9+kKEUKohAHOmGsE7OBZFnjMIpH5yUDUVJKByv0gIipFt0
|
30
|
+
1T6zff6oVU0w8WBiNKR381+6sF3wIZVnVY0XeJg6hNL+YecE8ILxLhHTmtT/BO0S
|
31
|
+
3xPze9uXDR+iD6HYl8KU5QEg/dXFPhfQb512vVkTJDZvMcwu6PxDUjHFChLjAji/
|
32
|
+
AZXjg1C5E9znTkeUR8ieU9F1MOKoiH57a5lYSTI8Ga8PpsNXTxNeXc16Ob26CqrJ
|
33
|
+
83uuAYSy65yXDGXXPVBeKPVnYrqp91pqpS5Nh7wfuiCrE8lgU8PATh7K4BV1UhAT
|
34
|
+
0MHbAT42wTYkfUj3
|
36
35
|
-----END CERTIFICATE-----
|
37
|
-
date: 2020-
|
36
|
+
date: 2020-10-29 00:00:00.000000000 Z
|
38
37
|
dependencies:
|
39
38
|
- !ruby/object:Gem::Dependency
|
40
39
|
name: rake
|
@@ -98,14 +97,20 @@ dependencies:
|
|
98
97
|
requirements:
|
99
98
|
- - "~>"
|
100
99
|
- !ruby/object:Gem::Version
|
101
|
-
version: '0.
|
100
|
+
version: '0.10'
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.10.1
|
102
104
|
type: :runtime
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
107
|
requirements:
|
106
108
|
- - "~>"
|
107
109
|
- !ruby/object:Gem::Version
|
108
|
-
version: '0.
|
110
|
+
version: '0.10'
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 0.10.1
|
109
114
|
- !ruby/object:Gem::Dependency
|
110
115
|
name: tty-prompt
|
111
116
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,14 +131,14 @@ dependencies:
|
|
126
131
|
requirements:
|
127
132
|
- - "~>"
|
128
133
|
- !ruby/object:Gem::Version
|
129
|
-
version: '0.
|
134
|
+
version: '0.6'
|
130
135
|
type: :runtime
|
131
136
|
prerelease: false
|
132
137
|
version_requirements: !ruby/object:Gem::Requirement
|
133
138
|
requirements:
|
134
139
|
- - "~>"
|
135
140
|
- !ruby/object:Gem::Version
|
136
|
-
version: '0.
|
141
|
+
version: '0.6'
|
137
142
|
- !ruby/object:Gem::Dependency
|
138
143
|
name: tty-table
|
139
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,7 +182,9 @@ dependencies:
|
|
177
182
|
- !ruby/object:Gem::Version
|
178
183
|
version: '0.4'
|
179
184
|
description: This is a collection of Rake tasks I use for development. I distribute
|
180
|
-
them as a gem mostly so people
|
185
|
+
them as a gem mostly so people who wish to contribute to the other Open Source libraries
|
186
|
+
I maintain can do so easily, but of course you're welcome to use them yourself
|
187
|
+
if you find them useful.
|
181
188
|
email:
|
182
189
|
- ged@FaerieMUD.org
|
183
190
|
executables: []
|
@@ -208,7 +215,9 @@ metadata:
|
|
208
215
|
homepage_uri: https://hg.sr.ht/~ged/rake-deveiate
|
209
216
|
documentation_uri: https://deveiate.org/code/rake-deveiate/
|
210
217
|
changelog_uri: https://deveiate.org/code/rake-deveiate/History_md.html
|
211
|
-
|
218
|
+
source_uri: https://hg.sr.ht/~ged/rake-deveiate/browse
|
219
|
+
bug_tracker_uri: https://todo.sr.ht/~ged/rake-deveiate/browse
|
220
|
+
post_install_message:
|
212
221
|
rdoc_options: []
|
213
222
|
require_paths:
|
214
223
|
- lib
|
@@ -224,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
233
|
version: '0'
|
225
234
|
requirements: []
|
226
235
|
rubygems_version: 3.1.2
|
227
|
-
signing_key:
|
236
|
+
signing_key:
|
228
237
|
specification_version: 4
|
229
238
|
summary: This is a collection of Rake tasks I use for development.
|
230
239
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|