hoe-halostatue 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ad97817e3c7c25d416ce2d84fd8768ef988585984ec9c121faeead466a7f6eae
4
+ data.tar.gz: e4909280d9be7adbb5bfc781830554850b94c42f466f6445cb66959654c14960
5
+ SHA512:
6
+ metadata.gz: 30f90f79f0f6170a551602bc77b9d68e1abfb2df5ded177ff37f12b7a5a6d6125f1819a4062e115355af84ef16aa10ebf385b9f7ace9560b058ec666ee87b5bf
7
+ data.tar.gz: 3afd08e69cec5931e41fa5f66f395b76e29f40f85a92ef2c9715da93c14efdd6b8bc5447c2cf7cd6d651c08450907f53ac927f1864aa7adb061c4ef80bc15372
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # hoe-halostatue Changelog
2
+
3
+ ## 1.0.1 / 2024-12-31
4
+
5
+ - Birthday!
data/Manifest.txt ADDED
@@ -0,0 +1,5 @@
1
+ CHANGELOG.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ lib/hoe/halostatue.rb
data/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Hoe - Halostatue Meta-Plugin
2
+
3
+ ## Description
4
+
5
+ Hoe::Halostatue is a [Hoe][hoe] meta-plugin that ensures that the following
6
+ plugins are installed and enabled for your project:
7
+
8
+ - [`hoe-doofus`][hoe-doofus]
9
+ - [`hoe-gemspec2`][hoe-gemspec2]
10
+ - [`hoe-git2`][hoe-git2]
11
+ - [`hoe-markdown`][hoe-markdown]
12
+ - [`hoe-rubygems`][hoe-rubygems]
13
+
14
+ It also provides an improved implementation for `Hoe#parse_urls` that works
15
+ better with a Markdown README. It allows either `*` or `-` as list leaders for
16
+ the README. It also allows the URLs to be blank. Double colons are still
17
+ required for pattern matching.
18
+
19
+ In addition to the four letter aliases in `Hoe::URLS_TO_META_MAP` (`bugs`,
20
+ `clog`, `doco`, `docs`, `home`, `code`, `wiki`, and `mail`), this adds:
21
+
22
+ - `changelog`, `changes`, and `history` as aliases for `changelog_uri`
23
+ - `documentation` for `documentation_uri`
24
+ - `issues` and `tickets` for `bug_tracker_uri`
25
+
26
+ ## Examples
27
+
28
+ ```ruby
29
+ # in your Rakefile
30
+ Hoe.plugin :halostatue
31
+ ```
32
+
33
+ ## Dependencies
34
+
35
+ Hoe and Git, obviously. I wouldn't be surprised if things don't quite work for
36
+ git < 2.37.
37
+
38
+ ## Installation
39
+
40
+ ```console
41
+ $ gem install hoe-halostatue
42
+ ```
43
+
44
+ ## License
45
+
46
+ Copyright 2024 Austin Ziegler (halostatue@gmail.com)
47
+
48
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
49
+ this software and associated documentation files (the 'Software'), to deal in
50
+ the Software without restriction, including without limitation the rights to
51
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
52
+ the Software, and to permit persons to whom the Software is furnished to do so,
53
+ subject to the following conditions:
54
+
55
+ The above copyright notice and this permission notice shall be included in all
56
+ copies or substantial portions of the Software.
57
+
58
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
59
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
60
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
61
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
62
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
63
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64
+
65
+ [hoe-doofus]: https://github.com/jbarnette/hoe-doofus
66
+ [hoe-gemspec2]: https://github.com/raggi/hoe-gemspec2
67
+ [hoe-git2]: https://github.com/halostatue/hoe-git2
68
+ [hoe-markdown]: https://github.com/flavorjones/hoe-markdown
69
+ [hoe-rubygems]: https://github.com/jbarnette/hoe-rubygems
70
+ [hoe]: https://github.com/seattlerb/hoe
data/Rakefile ADDED
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift "lib"
4
+
5
+ require "hoe"
6
+
7
+ Hoe.plugin :halostatue
8
+
9
+ Hoe.spec "hoe-halostatue" do
10
+ developer "Austin Ziegler", "halostatue@gmail.com"
11
+
12
+ self.extra_rdoc_files = FileList["*.rdoc"]
13
+
14
+ license "MIT"
15
+
16
+ extra_deps << ["hoe", ">= 3.0", "< 5"]
17
+ extra_deps << ["hoe-doofus", "~> 1.0"]
18
+ extra_deps << ["hoe-gemspec2", "~> 1.1"]
19
+ extra_deps << ["hoe-git2", "~> 1.8"]
20
+ extra_deps << ["hoe-markdown", "~> 1.6"]
21
+ extra_deps << ["hoe-rubygems", "~> 1.0"]
22
+
23
+ extra_dev_deps << ["standard", "~> 1.0"]
24
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ Hoe.plugin :doofus
4
+ Hoe.plugin :gemspec2
5
+ Hoe.plugin :git2
6
+ Hoe.plugin :markdown
7
+ Hoe.plugin :rubygems
8
+
9
+ # Hoe::Halostatue is a Hoe meta-plugin that ensures that the following
10
+ # plugins are installed and enabled for your project:
11
+ #
12
+ # - hoe-doofus (release checklist)
13
+ # - hoe-gemspec2 (gemspec generation)
14
+ # - hoe-git2 (git manifest and tag generation)
15
+ # - hoe-markdown (default to Markdown files and auto-linkification)
16
+ #
17
+ # It also provides an improved implementation for Hoe#parse_urls that
18
+ # works better with a Markdown README. It allows either +*+ or +-+ as
19
+ # list leaders for the README. It also allows the URLs to be blank.
20
+ # Double colons are still required for pattern matching.
21
+ #
22
+ # In addition to the four letter aliases in Hoe::URLS_TO_META_MAP
23
+ # (+bugs+, +clog+, +doco+, +docs+, +home+, +code+, +wiki+, and +mail+),
24
+ # this adds:
25
+ #
26
+ # - +changelog+, +changes+, and +history+ as aliases for +changelog_uri+
27
+ # - +documentation+ for +documentation_uri+
28
+ # - +issues+ and +tickets+ for +bug_tracker_uri+
29
+
30
+ module Hoe::Halostatue
31
+ VERSION = "1.0.1"
32
+
33
+ def initialize_halostatue # :nodoc:
34
+ Hoe::URLS_TO_META_MAP.update Hoe::Halostatue::ParseUrls::URLS_TO_META_MAP
35
+
36
+ Hoe.prepend Hoe::Halostatue::ParseUrls
37
+ end
38
+
39
+ def define_halostatue_tasks # :nodoc:
40
+ end
41
+
42
+ module ParseUrls
43
+ URLS_TO_META_MAP = {
44
+ "changelog" => "changelog_uri",
45
+ "changes" => "changelog_uri",
46
+ "documentation" => "documentation_uri",
47
+ "history" => "changelog_uri",
48
+ "issues" => "bug_tracker_uri",
49
+ "tickets" => "bug_tracker_uri"
50
+ }
51
+
52
+ def parse_urls text
53
+ lines = text.gsub(/^[-*] /, "").delete("<>").split("\n").grep(/\S+/)
54
+
55
+ return {} if lines.empty?
56
+
57
+ if /::/.match?(lines.first)
58
+ Hash[lines.map { |line| line.split(/\s*::\s*/) }]
59
+ else
60
+ {}
61
+ end
62
+ end
63
+ end
64
+ end
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoe-halostatue
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Austin Ziegler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-12-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hoe
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
33
+ - !ruby/object:Gem::Dependency
34
+ name: hoe-doofus
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: hoe-gemspec2
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.1'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.1'
61
+ - !ruby/object:Gem::Dependency
62
+ name: hoe-git2
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.8'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.8'
75
+ - !ruby/object:Gem::Dependency
76
+ name: hoe-markdown
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.6'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.6'
89
+ - !ruby/object:Gem::Dependency
90
+ name: hoe-rubygems
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: standard
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rdoc
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '4.0'
124
+ - - "<"
125
+ - !ruby/object:Gem::Version
126
+ version: '7'
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '4.0'
134
+ - - "<"
135
+ - !ruby/object:Gem::Version
136
+ version: '7'
137
+ description: |-
138
+ Hoe::Halostatue is a [Hoe][hoe] meta-plugin that ensures that the following
139
+ plugins are installed and enabled for your project:
140
+
141
+ - [`hoe-doofus`][hoe-doofus]
142
+ - [`hoe-gemspec2`][hoe-gemspec2]
143
+ - [`hoe-git2`][hoe-git2]
144
+ - [`hoe-markdown`][hoe-markdown]
145
+ - [`hoe-rubygems`][hoe-rubygems]
146
+
147
+ It also provides an improved implementation for `Hoe#parse_urls` that works
148
+ better with a Markdown README. It allows either `*` or `-` as list leaders for
149
+ the README. It also allows the URLs to be blank. Double colons are still
150
+ required for pattern matching.
151
+
152
+ In addition to the four letter aliases in `Hoe::URLS_TO_META_MAP` (`bugs`,
153
+ `clog`, `doco`, `docs`, `home`, `code`, `wiki`, and `mail`), this adds:
154
+
155
+ - `changelog`, `changes`, and `history` as aliases for `changelog_uri`
156
+ - `documentation` for `documentation_uri`
157
+ - `issues` and `tickets` for `bug_tracker_uri`
158
+ email:
159
+ - halostatue@gmail.com
160
+ executables: []
161
+ extensions: []
162
+ extra_rdoc_files:
163
+ - CHANGELOG.md
164
+ - Manifest.txt
165
+ - README.md
166
+ files:
167
+ - CHANGELOG.md
168
+ - Manifest.txt
169
+ - README.md
170
+ - Rakefile
171
+ - lib/hoe/halostatue.rb
172
+ homepage:
173
+ licenses:
174
+ - MIT
175
+ metadata: {}
176
+ post_install_message:
177
+ rdoc_options:
178
+ - "--main"
179
+ - README.md
180
+ require_paths:
181
+ - lib
182
+ required_ruby_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ required_rubygems_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ requirements: []
193
+ rubygems_version: 3.5.23
194
+ signing_key:
195
+ specification_version: 4
196
+ summary: 'Hoe::Halostatue is a [Hoe][hoe] meta-plugin that ensures that the following
197
+ plugins are installed and enabled for your project: - [`hoe-doofus`][hoe-doofus]
198
+ - [`hoe-gemspec2`][hoe-gemspec2] - [`hoe-git2`][hoe-git2] - [`hoe-markdown`][hoe-markdown]
199
+ - [`hoe-rubygems`][hoe-rubygems] It also provides an improved implementation for
200
+ `Hoe#parse_urls` that works better with a Markdown README'
201
+ test_files: []