gemsmith 15.5.0 → 16.0.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/LICENSE.adoc +207 -155
- data/README.adoc +177 -189
- data/exe/gemsmith +6 -0
- data/gemsmith.gemspec +41 -0
- data/lib/gemsmith/builders/bundler.rb +34 -0
- data/lib/gemsmith/builders/cli.rb +86 -0
- data/lib/gemsmith/builders/git/commit.rb +46 -0
- data/lib/gemsmith/builders/git/ignore.rb +37 -0
- data/lib/gemsmith/builders/rspec/helper.rb +47 -0
- data/lib/gemsmith/builders/specification.rb +35 -0
- data/lib/gemsmith/cli/actions/build.rb +53 -0
- data/lib/gemsmith/cli/actions/config.rb +35 -0
- data/lib/gemsmith/cli/actions/edit.rb +38 -0
- data/lib/gemsmith/cli/actions/install.rb +36 -0
- data/lib/gemsmith/cli/actions/publish.rb +36 -0
- data/lib/gemsmith/cli/actions/view.rb +38 -0
- data/lib/gemsmith/cli/parser.rb +33 -0
- data/lib/gemsmith/cli/parsers/build.rb +54 -0
- data/lib/gemsmith/cli/parsers/core.rb +94 -0
- data/lib/gemsmith/cli/shell.rb +66 -0
- data/lib/gemsmith/configuration/enhancers/template_root.rb +20 -0
- data/lib/gemsmith/configuration/loader.rb +50 -0
- data/lib/gemsmith/container.rb +21 -0
- data/lib/gemsmith/gems/finder.rb +21 -0
- data/lib/gemsmith/gems/loader.rb +21 -0
- data/lib/gemsmith/gems/picker.rb +43 -0
- data/lib/gemsmith/gems/presenter.rb +50 -0
- data/lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb +49 -0
- data/lib/gemsmith/templates/%project_name%/exe/%project_name%.erb +5 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/config.rb.erb +35 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parser.rb.erb +31 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parsers/core.rb.erb +54 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb +38 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/content.rb.erb +18 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/defaults.yml.erb +0 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/loader.rb.erb +33 -0
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/container.rb.erb +35 -0
- data/lib/gemsmith/templates/{%gem_name%/lib/%gem_path%/identity.rb.tt → %project_name%/lib/%project_path%/identity.rb.erb} +1 -1
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb +24 -0
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parser_spec.rb.erb +25 -0
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parsers/core_spec.rb.erb +53 -0
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/shell_spec.rb.erb +43 -0
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/configuration/content_spec.rb.erb +15 -0
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/configuration/loader_spec.rb.erb +29 -0
- data/lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_container.rb.erb +22 -0
- data/lib/gemsmith/templates/%project_name%/spec/support/shared_examples/a_parser.rb.erb +7 -0
- data/lib/gemsmith/tools/cleaner.rb +29 -0
- data/lib/gemsmith/tools/editor.rb +30 -0
- data/lib/gemsmith/tools/installer.rb +39 -0
- data/lib/gemsmith/tools/packager.rb +33 -0
- data/lib/gemsmith/tools/publisher.rb +34 -0
- data/lib/gemsmith/tools/pusher.rb +36 -0
- data/lib/gemsmith/tools/validator.rb +28 -0
- data/lib/gemsmith/tools/versioner.rb +43 -0
- data/lib/gemsmith/tools/viewer.rb +28 -0
- data/lib/gemsmith.rb +5 -3
- data.tar.gz.sig +0 -0
- metadata +87 -115
- metadata.gz.sig +0 -0
- data/bin/gemsmith +0 -9
- data/lib/gemsmith/authenticators/basic.rb +0 -28
- data/lib/gemsmith/authenticators/ruby_gems.rb +0 -41
- data/lib/gemsmith/cli.rb +0 -259
- data/lib/gemsmith/credentials.rb +0 -82
- data/lib/gemsmith/errors/base.rb +0 -9
- data/lib/gemsmith/errors/requirement_conversion.rb +0 -9
- data/lib/gemsmith/errors/requirement_operator.rb +0 -9
- data/lib/gemsmith/errors/specification.rb +0 -9
- data/lib/gemsmith/gem/inspector.rb +0 -30
- data/lib/gemsmith/gem/module_formatter.rb +0 -50
- data/lib/gemsmith/gem/requirement.rb +0 -55
- data/lib/gemsmith/gem/specification.rb +0 -74
- data/lib/gemsmith/generators/base.rb +0 -46
- data/lib/gemsmith/generators/bundler.rb +0 -19
- data/lib/gemsmith/generators/bundler_audit.rb +0 -15
- data/lib/gemsmith/generators/circle_ci.rb +0 -14
- data/lib/gemsmith/generators/cli.rb +0 -17
- data/lib/gemsmith/generators/documentation.rb +0 -36
- data/lib/gemsmith/generators/engine.rb +0 -77
- data/lib/gemsmith/generators/gem.rb +0 -29
- data/lib/gemsmith/generators/git.rb +0 -45
- data/lib/gemsmith/generators/git_hub.rb +0 -15
- data/lib/gemsmith/generators/git_lint.rb +0 -14
- data/lib/gemsmith/generators/guard.rb +0 -14
- data/lib/gemsmith/generators/pragma.rb +0 -49
- data/lib/gemsmith/generators/rake.rb +0 -76
- data/lib/gemsmith/generators/reek.rb +0 -17
- data/lib/gemsmith/generators/rspec.rb +0 -39
- data/lib/gemsmith/generators/rubocop.rb +0 -18
- data/lib/gemsmith/generators/ruby.rb +0 -12
- data/lib/gemsmith/helpers/cli.rb +0 -59
- data/lib/gemsmith/helpers/template.rb +0 -30
- data/lib/gemsmith/identity.rb +0 -12
- data/lib/gemsmith/rake/builder.rb +0 -57
- data/lib/gemsmith/rake/publisher.rb +0 -100
- data/lib/gemsmith/rake/setup.rb +0 -4
- data/lib/gemsmith/rake/tasks.rb +0 -83
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +0 -44
- data/lib/gemsmith/templates/%gem_name%/.circleci/config.yml.tt +0 -31
- data/lib/gemsmith/templates/%gem_name%/.github/ISSUE_TEMPLATE.md.tt +0 -14
- data/lib/gemsmith/templates/%gem_name%/.github/PULL_REQUEST_TEMPLATE.md.tt +0 -11
- data/lib/gemsmith/templates/%gem_name%/.gitignore.tt +0 -6
- data/lib/gemsmith/templates/%gem_name%/.reek.yml.tt +0 -6
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +0 -15
- data/lib/gemsmith/templates/%gem_name%/.ruby-version.tt +0 -1
- data/lib/gemsmith/templates/%gem_name%/CHANGES.md.tt +0 -3
- data/lib/gemsmith/templates/%gem_name%/CODE_OF_CONDUCT.md.tt +0 -66
- data/lib/gemsmith/templates/%gem_name%/CONTRIBUTING.md.tt +0 -22
- data/lib/gemsmith/templates/%gem_name%/Gemfile.tt +0 -47
- data/lib/gemsmith/templates/%gem_name%/Guardfile.tt +0 -21
- data/lib/gemsmith/templates/%gem_name%/LICENSE.md.tt +0 -20
- data/lib/gemsmith/templates/%gem_name%/README.md.tt +0 -93
- data/lib/gemsmith/templates/%gem_name%/Rakefile.tt +0 -12
- data/lib/gemsmith/templates/%gem_name%/bin/%gem_name%.tt +0 -8
- data/lib/gemsmith/templates/%gem_name%/bin/console.tt +0 -10
- data/lib/gemsmith/templates/%gem_name%/bin/setup.tt +0 -8
- data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt +0 -61
- data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/engine.rb.tt +0 -6
- data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%.rb.tt +0 -7
- data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/install/USAGE.tt +0 -8
- data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/install/install_generator.rb.tt +0 -12
- data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/upgrade/USAGE.tt +0 -8
- data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/upgrade/upgrade_generator.rb.tt +0 -10
- data/lib/gemsmith/templates/%gem_name%/spec/lib/%gem_path%/cli_spec.rb.tt +0 -81
- data/lib/gemsmith/templates/%gem_name%/spec/rails_helper.rb.tt +0 -14
- data/lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt +0 -37
- data/lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt +0 -9
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemsmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 16.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
@@ -28,148 +28,134 @@ cert_chain:
|
|
28
28
|
lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
|
29
29
|
W2A=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date:
|
31
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: dry-container
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.9'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
46
|
+
version: '0.9'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: dry-monads
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '1.4'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '1.4'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '9.0'
|
68
|
-
type: :runtime
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '9.0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: refinements
|
62
|
+
name: milestoner
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
65
|
- - "~>"
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
67
|
+
version: '13.0'
|
82
68
|
type: :runtime
|
83
69
|
prerelease: false
|
84
70
|
version_requirements: !ruby/object:Gem::Requirement
|
85
71
|
requirements:
|
86
72
|
- - "~>"
|
87
73
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
74
|
+
version: '13.0'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
76
|
+
name: pastel
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
92
78
|
requirements:
|
93
79
|
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
81
|
+
version: '0.8'
|
96
82
|
type: :runtime
|
97
83
|
prerelease: false
|
98
84
|
version_requirements: !ruby/object:Gem::Requirement
|
99
85
|
requirements:
|
100
86
|
- - "~>"
|
101
87
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
88
|
+
version: '0.8'
|
103
89
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
90
|
+
name: refinements
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|
106
92
|
requirements:
|
107
93
|
- - "~>"
|
108
94
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
95
|
+
version: '9.1'
|
110
96
|
type: :runtime
|
111
97
|
prerelease: false
|
112
98
|
version_requirements: !ruby/object:Gem::Requirement
|
113
99
|
requirements:
|
114
100
|
- - "~>"
|
115
101
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
102
|
+
version: '9.1'
|
117
103
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
104
|
+
name: rubysmith
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|
120
106
|
requirements:
|
121
107
|
- - "~>"
|
122
108
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
109
|
+
version: '1.2'
|
124
110
|
type: :runtime
|
125
111
|
prerelease: false
|
126
112
|
version_requirements: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
114
|
- - "~>"
|
129
115
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
116
|
+
version: '1.2'
|
131
117
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
118
|
+
name: runcom
|
133
119
|
requirement: !ruby/object:Gem::Requirement
|
134
120
|
requirements:
|
135
121
|
- - "~>"
|
136
122
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
123
|
+
version: '8.0'
|
138
124
|
type: :runtime
|
139
125
|
prerelease: false
|
140
126
|
version_requirements: !ruby/object:Gem::Requirement
|
141
127
|
requirements:
|
142
128
|
- - "~>"
|
143
129
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
130
|
+
version: '8.0'
|
145
131
|
- !ruby/object:Gem::Dependency
|
146
132
|
name: versionaire
|
147
133
|
requirement: !ruby/object:Gem::Requirement
|
148
134
|
requirements:
|
149
135
|
- - "~>"
|
150
136
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
137
|
+
version: '10.0'
|
152
138
|
type: :runtime
|
153
139
|
prerelease: false
|
154
140
|
version_requirements: !ruby/object:Gem::Requirement
|
155
141
|
requirements:
|
156
142
|
- - "~>"
|
157
143
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
144
|
+
version: '10.0'
|
159
145
|
- !ruby/object:Gem::Dependency
|
160
146
|
name: zeitwerk
|
161
147
|
requirement: !ruby/object:Gem::Requirement
|
162
148
|
requirements:
|
163
149
|
- - "~>"
|
164
150
|
- !ruby/object:Gem::Version
|
165
|
-
version: '2.
|
151
|
+
version: '2.5'
|
166
152
|
type: :runtime
|
167
153
|
prerelease: false
|
168
154
|
version_requirements: !ruby/object:Gem::Requirement
|
169
155
|
requirements:
|
170
156
|
- - "~>"
|
171
157
|
- !ruby/object:Gem::Version
|
172
|
-
version: '2.
|
158
|
+
version: '2.5'
|
173
159
|
description:
|
174
160
|
email:
|
175
161
|
- brooke@alchemists.io
|
@@ -182,83 +168,69 @@ extra_rdoc_files:
|
|
182
168
|
files:
|
183
169
|
- LICENSE.adoc
|
184
170
|
- README.adoc
|
185
|
-
-
|
171
|
+
- exe/gemsmith
|
172
|
+
- gemsmith.gemspec
|
186
173
|
- lib/gemsmith.rb
|
187
|
-
- lib/gemsmith/
|
188
|
-
- lib/gemsmith/
|
189
|
-
- lib/gemsmith/
|
190
|
-
- lib/gemsmith/
|
191
|
-
- lib/gemsmith/
|
192
|
-
- lib/gemsmith/
|
193
|
-
- lib/gemsmith/
|
194
|
-
- lib/gemsmith/
|
195
|
-
- lib/gemsmith/
|
196
|
-
- lib/gemsmith/
|
197
|
-
- lib/gemsmith/
|
198
|
-
- lib/gemsmith/
|
199
|
-
- lib/gemsmith/
|
200
|
-
- lib/gemsmith/
|
201
|
-
- lib/gemsmith/
|
202
|
-
- lib/gemsmith/
|
203
|
-
- lib/gemsmith/
|
204
|
-
- lib/gemsmith/
|
205
|
-
- lib/gemsmith/
|
206
|
-
- lib/gemsmith/
|
207
|
-
- lib/gemsmith/
|
208
|
-
- lib/gemsmith/
|
209
|
-
- lib/gemsmith/
|
210
|
-
- lib/gemsmith/
|
211
|
-
- lib/gemsmith/
|
212
|
-
- lib/gemsmith/
|
213
|
-
- lib/gemsmith/
|
214
|
-
- lib/gemsmith/
|
215
|
-
- lib/gemsmith/
|
216
|
-
- lib/gemsmith/
|
217
|
-
- lib/gemsmith/
|
218
|
-
- lib/gemsmith/
|
219
|
-
- lib/gemsmith/
|
220
|
-
- lib/gemsmith/
|
221
|
-
- lib/gemsmith/
|
222
|
-
- lib/gemsmith/
|
223
|
-
- lib/gemsmith/
|
224
|
-
- lib/gemsmith/templates/%
|
225
|
-
- lib/gemsmith/templates/%
|
226
|
-
- lib/gemsmith/templates/%
|
227
|
-
- lib/gemsmith/templates/%
|
228
|
-
- lib/gemsmith/templates/%
|
229
|
-
- lib/gemsmith/
|
230
|
-
- lib/gemsmith/
|
231
|
-
- lib/gemsmith/
|
232
|
-
- lib/gemsmith/
|
233
|
-
- lib/gemsmith/
|
234
|
-
- lib/gemsmith/
|
235
|
-
- lib/gemsmith/
|
236
|
-
- lib/gemsmith/
|
237
|
-
- lib/gemsmith/
|
238
|
-
- lib/gemsmith/templates/%gem_name%/README.md.tt
|
239
|
-
- lib/gemsmith/templates/%gem_name%/Rakefile.tt
|
240
|
-
- lib/gemsmith/templates/%gem_name%/bin/%gem_name%.tt
|
241
|
-
- lib/gemsmith/templates/%gem_name%/bin/console.tt
|
242
|
-
- lib/gemsmith/templates/%gem_name%/bin/setup.tt
|
243
|
-
- lib/gemsmith/templates/%gem_name%/lib/%gem_path%.rb.tt
|
244
|
-
- lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt
|
245
|
-
- lib/gemsmith/templates/%gem_name%/lib/%gem_path%/engine.rb.tt
|
246
|
-
- lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
|
247
|
-
- lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/install/USAGE.tt
|
248
|
-
- lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/install/install_generator.rb.tt
|
249
|
-
- lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/upgrade/USAGE.tt
|
250
|
-
- lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/upgrade/upgrade_generator.rb.tt
|
251
|
-
- lib/gemsmith/templates/%gem_name%/spec/lib/%gem_path%/cli_spec.rb.tt
|
252
|
-
- lib/gemsmith/templates/%gem_name%/spec/rails_helper.rb.tt
|
253
|
-
- lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
|
254
|
-
- lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
|
174
|
+
- lib/gemsmith/builders/bundler.rb
|
175
|
+
- lib/gemsmith/builders/cli.rb
|
176
|
+
- lib/gemsmith/builders/git/commit.rb
|
177
|
+
- lib/gemsmith/builders/git/ignore.rb
|
178
|
+
- lib/gemsmith/builders/rspec/helper.rb
|
179
|
+
- lib/gemsmith/builders/specification.rb
|
180
|
+
- lib/gemsmith/cli/actions/build.rb
|
181
|
+
- lib/gemsmith/cli/actions/config.rb
|
182
|
+
- lib/gemsmith/cli/actions/edit.rb
|
183
|
+
- lib/gemsmith/cli/actions/install.rb
|
184
|
+
- lib/gemsmith/cli/actions/publish.rb
|
185
|
+
- lib/gemsmith/cli/actions/view.rb
|
186
|
+
- lib/gemsmith/cli/parser.rb
|
187
|
+
- lib/gemsmith/cli/parsers/build.rb
|
188
|
+
- lib/gemsmith/cli/parsers/core.rb
|
189
|
+
- lib/gemsmith/cli/shell.rb
|
190
|
+
- lib/gemsmith/configuration/enhancers/template_root.rb
|
191
|
+
- lib/gemsmith/configuration/loader.rb
|
192
|
+
- lib/gemsmith/container.rb
|
193
|
+
- lib/gemsmith/gems/finder.rb
|
194
|
+
- lib/gemsmith/gems/loader.rb
|
195
|
+
- lib/gemsmith/gems/picker.rb
|
196
|
+
- lib/gemsmith/gems/presenter.rb
|
197
|
+
- lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb
|
198
|
+
- lib/gemsmith/templates/%project_name%/exe/%project_name%.erb
|
199
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/config.rb.erb
|
200
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parser.rb.erb
|
201
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parsers/core.rb.erb
|
202
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb
|
203
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/content.rb.erb
|
204
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/defaults.yml.erb
|
205
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/loader.rb.erb
|
206
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/container.rb.erb
|
207
|
+
- lib/gemsmith/templates/%project_name%/lib/%project_path%/identity.rb.erb
|
208
|
+
- lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb
|
209
|
+
- lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parser_spec.rb.erb
|
210
|
+
- lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parsers/core_spec.rb.erb
|
211
|
+
- lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/shell_spec.rb.erb
|
212
|
+
- lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/configuration/content_spec.rb.erb
|
213
|
+
- lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/configuration/loader_spec.rb.erb
|
214
|
+
- lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_container.rb.erb
|
215
|
+
- lib/gemsmith/templates/%project_name%/spec/support/shared_examples/a_parser.rb.erb
|
216
|
+
- lib/gemsmith/tools/cleaner.rb
|
217
|
+
- lib/gemsmith/tools/editor.rb
|
218
|
+
- lib/gemsmith/tools/installer.rb
|
219
|
+
- lib/gemsmith/tools/packager.rb
|
220
|
+
- lib/gemsmith/tools/publisher.rb
|
221
|
+
- lib/gemsmith/tools/pusher.rb
|
222
|
+
- lib/gemsmith/tools/validator.rb
|
223
|
+
- lib/gemsmith/tools/versioner.rb
|
224
|
+
- lib/gemsmith/tools/viewer.rb
|
255
225
|
homepage: https://www.alchemists.io/projects/gemsmith
|
256
226
|
licenses:
|
257
|
-
-
|
227
|
+
- Hippocratic-3.0
|
258
228
|
metadata:
|
259
229
|
bug_tracker_uri: https://github.com/bkuhlmann/gemsmith/issues
|
260
|
-
changelog_uri: https://www.alchemists.io/projects/gemsmith/
|
230
|
+
changelog_uri: https://www.alchemists.io/projects/gemsmith/versions
|
261
231
|
documentation_uri: https://www.alchemists.io/projects/gemsmith
|
232
|
+
label: Gemsmith
|
233
|
+
rubygems_mfa_required: 'true'
|
262
234
|
source_code_uri: https://github.com/bkuhlmann/gemsmith
|
263
235
|
post_install_message:
|
264
236
|
rdoc_options: []
|
@@ -268,14 +240,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
268
240
|
requirements:
|
269
241
|
- - "~>"
|
270
242
|
- !ruby/object:Gem::Version
|
271
|
-
version: '3.
|
243
|
+
version: '3.1'
|
272
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
245
|
requirements:
|
274
246
|
- - ">="
|
275
247
|
- !ruby/object:Gem::Version
|
276
248
|
version: '0'
|
277
249
|
requirements: []
|
278
|
-
rubygems_version: 3.
|
250
|
+
rubygems_version: 3.3.5
|
279
251
|
signing_key:
|
280
252
|
specification_version: 4
|
281
253
|
summary: A command line interface for smithing Ruby gems.
|
metadata.gz.sig
CHANGED
Binary file
|
data/bin/gemsmith
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "net/http"
|
4
|
-
|
5
|
-
module Gemsmith
|
6
|
-
module Authenticators
|
7
|
-
# An authenticator for retrieving HTTP Basic authorization.
|
8
|
-
class Basic
|
9
|
-
def self.url
|
10
|
-
""
|
11
|
-
end
|
12
|
-
|
13
|
-
def initialize login, password, encrypter: Net::HTTP::Get.new("https://ignore.example.com")
|
14
|
-
@login = login
|
15
|
-
@password = password
|
16
|
-
@encrypter = encrypter
|
17
|
-
end
|
18
|
-
|
19
|
-
def authorization
|
20
|
-
encrypter.basic_auth(login, password).first
|
21
|
-
end
|
22
|
-
|
23
|
-
private
|
24
|
-
|
25
|
-
attr_reader :login, :password, :encrypter
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "net/http"
|
4
|
-
require "uri"
|
5
|
-
require "openssl"
|
6
|
-
|
7
|
-
module Gemsmith
|
8
|
-
module Authenticators
|
9
|
-
# An authenticator for retrieving RubyGems authorization.
|
10
|
-
class RubyGems
|
11
|
-
def self.url
|
12
|
-
"https://rubygems.org/api/v1/api_key"
|
13
|
-
end
|
14
|
-
|
15
|
-
def initialize login, password
|
16
|
-
@login = login
|
17
|
-
@password = password
|
18
|
-
@uri = URI.parse self.class.url
|
19
|
-
@client = configure_client
|
20
|
-
end
|
21
|
-
|
22
|
-
def authorization
|
23
|
-
request = Net::HTTP::Get.new uri.request_uri
|
24
|
-
request.basic_auth login, password
|
25
|
-
response = client.request request
|
26
|
-
String response.body
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
attr_reader :login, :password, :uri, :client
|
32
|
-
|
33
|
-
def configure_client
|
34
|
-
Net::HTTP.new(uri.host, uri.port).tap do |client|
|
35
|
-
client.use_ssl = true
|
36
|
-
client.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|