gemsmith 17.0.1 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/README.adoc +58 -28
  4. data/gemsmith.gemspec +5 -4
  5. data/lib/gemsmith/builders/circle_ci.rb +4 -1
  6. data/lib/gemsmith/builders/cli.rb +15 -7
  7. data/lib/gemsmith/builders/git/commit.rb +6 -5
  8. data/lib/gemsmith/cli/actions/config.rb +6 -7
  9. data/lib/gemsmith/cli/actions/container.rb +25 -0
  10. data/lib/gemsmith/cli/actions/edit.rb +5 -7
  11. data/lib/gemsmith/cli/actions/import.rb +11 -0
  12. data/lib/gemsmith/cli/actions/install.rb +5 -5
  13. data/lib/gemsmith/cli/actions/publish.rb +5 -5
  14. data/lib/gemsmith/cli/actions/view.rb +5 -7
  15. data/lib/gemsmith/cli/parser.rb +9 -5
  16. data/lib/gemsmith/cli/parsers/build.rb +7 -5
  17. data/lib/gemsmith/cli/parsers/core.rb +6 -5
  18. data/lib/gemsmith/cli/shell.rb +21 -40
  19. data/lib/gemsmith/container.rb +1 -1
  20. data/lib/gemsmith/import.rb +7 -0
  21. data/lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb +3 -0
  22. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/config.rb.erb +6 -9
  23. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/container.rb.erb +18 -0
  24. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/import.rb.erb +9 -0
  25. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parser.rb.erb +9 -5
  26. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parsers/core.rb.erb +6 -5
  27. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb +6 -15
  28. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/container.rb.erb +3 -25
  29. data/lib/gemsmith/templates/%project_name%/lib/%project_path%/import.rb.erb +5 -0
  30. data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb +3 -3
  31. data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parser_spec.rb.erb +1 -1
  32. data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parsers/core_spec.rb.erb +1 -1
  33. data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/shell_spec.rb.erb +16 -13
  34. data/lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_dependencies.rb.erb +21 -0
  35. data/lib/gemsmith/tools/editor.rb +2 -9
  36. data/lib/gemsmith/tools/installer.rb +5 -5
  37. data/lib/gemsmith/tools/pusher.rb +23 -5
  38. data/lib/gemsmith/tools/validator.rb +1 -10
  39. data/lib/gemsmith/tools/versioner.rb +6 -6
  40. data/lib/gemsmith/tools/viewer.rb +1 -10
  41. data.tar.gz.sig +0 -0
  42. metadata +48 -28
  43. metadata.gz.sig +0 -0
  44. data/lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_container.rb.erb +0 -22
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.0.1
4
+ version: 18.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,9 +10,9 @@ bindir: exe
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIC/jCCAeagAwIBAgIBBDANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMTAzMTkxMjQ4MDZaFw0yMjAzMTkx
15
- MjQ4MDZaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
13
+ MIIC/jCCAeagAwIBAgIBBTANBgkqhkiG9w0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QADggEBAJbbNyWzFjqUNVPPCUCo
24
+ IMrhDa9xf1xkORXNYYbmXgoxRy/KyNbUr+jgEEoWJAm9GXlcqxxWAUI6pK/i4/Qi
25
+ X6rPFEFmeObDOHNvuqy8Hd6AYsu+kP94U/KJhe9wnWGMmGoNKJNU3EkW3jM/osSl
26
+ +JRxiH5t4WtnDiVyoYl5nYC02rYdjJkG6VMxDymXTqn7u6HhYgZkGujq1UPar8x2
27
+ hNIWJblDKKSu7hA2d6+kUthuYo13o1sg1Da/AEDg0hoZSUvhqDEF5Hy232qb3pDt
28
+ CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
+ RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-03-04 00:00:00.000000000 Z
31
+ date: 2022-04-10 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
- name: dry-container
34
+ name: auto_injector
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.9'
39
+ version: '0.4'
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.9'
46
+ version: '0.4'
47
47
  - !ruby/object:Gem::Dependency
48
- name: dry-monads
48
+ name: cogger
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.4'
53
+ version: '0.0'
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: '1.4'
60
+ version: '0.0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: milestoner
62
+ name: dry-container
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '13.3'
67
+ version: '0.9'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '13.3'
74
+ version: '0.9'
75
75
  - !ruby/object:Gem::Dependency
76
- name: pastel
76
+ name: dry-monads
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.4'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.4'
89
+ - !ruby/object:Gem::Dependency
90
+ name: milestoner
77
91
  requirement: !ruby/object:Gem::Requirement
78
92
  requirements:
79
93
  - - "~>"
80
94
  - !ruby/object:Gem::Version
81
- version: '0.8'
95
+ version: '14.0'
82
96
  type: :runtime
83
97
  prerelease: false
84
98
  version_requirements: !ruby/object:Gem::Requirement
85
99
  requirements:
86
100
  - - "~>"
87
101
  - !ruby/object:Gem::Version
88
- version: '0.8'
102
+ version: '14.0'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: refinements
91
105
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +120,14 @@ dependencies:
106
120
  requirements:
107
121
  - - "~>"
108
122
  - !ruby/object:Gem::Version
109
- version: '2.0'
123
+ version: '3.0'
110
124
  type: :runtime
111
125
  prerelease: false
112
126
  version_requirements: !ruby/object:Gem::Requirement
113
127
  requirements:
114
128
  - - "~>"
115
129
  - !ruby/object:Gem::Version
116
- version: '2.0'
130
+ version: '3.0'
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: runcom
119
133
  requirement: !ruby/object:Gem::Requirement
@@ -195,7 +209,9 @@ files:
195
209
  - lib/gemsmith/builders/specification.rb
196
210
  - lib/gemsmith/cli/actions/build.rb
197
211
  - lib/gemsmith/cli/actions/config.rb
212
+ - lib/gemsmith/cli/actions/container.rb
198
213
  - lib/gemsmith/cli/actions/edit.rb
214
+ - lib/gemsmith/cli/actions/import.rb
199
215
  - lib/gemsmith/cli/actions/install.rb
200
216
  - lib/gemsmith/cli/actions/publish.rb
201
217
  - lib/gemsmith/cli/actions/view.rb
@@ -206,9 +222,12 @@ files:
206
222
  - lib/gemsmith/configuration/enhancers/template_root.rb
207
223
  - lib/gemsmith/configuration/loader.rb
208
224
  - lib/gemsmith/container.rb
225
+ - lib/gemsmith/import.rb
209
226
  - lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb
210
227
  - lib/gemsmith/templates/%project_name%/exe/%project_name%.erb
211
228
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/config.rb.erb
229
+ - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/container.rb.erb
230
+ - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/actions/import.rb.erb
212
231
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parser.rb.erb
213
232
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parsers/core.rb.erb
214
233
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb
@@ -217,13 +236,14 @@ files:
217
236
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/loader.rb.erb
218
237
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/container.rb.erb
219
238
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/identity.rb.erb
239
+ - lib/gemsmith/templates/%project_name%/lib/%project_path%/import.rb.erb
220
240
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb
221
241
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parser_spec.rb.erb
222
242
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/parsers/core_spec.rb.erb
223
243
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/shell_spec.rb.erb
224
244
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/configuration/content_spec.rb.erb
225
245
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/configuration/loader_spec.rb.erb
226
- - lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_container.rb.erb
246
+ - lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_dependencies.rb.erb
227
247
  - lib/gemsmith/templates/%project_name%/spec/support/shared_examples/a_parser.rb.erb
228
248
  - lib/gemsmith/tools/cleaner.rb
229
249
  - lib/gemsmith/tools/editor.rb
@@ -259,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
279
  - !ruby/object:Gem::Version
260
280
  version: '0'
261
281
  requirements: []
262
- rubygems_version: 3.3.8
282
+ rubygems_version: 3.3.11
263
283
  signing_key:
264
284
  specification_version: 4
265
285
  summary: A command line interface for smithing Ruby gems.
metadata.gz.sig CHANGED
Binary file
@@ -1,22 +0,0 @@
1
- require "dry/container/stub"
2
-
3
- RSpec.shared_context "with application container" do
4
- using Refinements::Structs
5
-
6
- include_context "with temporary directory"
7
-
8
- let(:container) { <%= configuration.project_namespaced_class %>::Container }
9
- let(:configuration) { <%= configuration.project_namespaced_class %>::Configuration::Loader.with_defaults.call }
10
- let(:kernel) { class_spy Kernel }
11
-
12
- before do
13
- container.enable_stubs!
14
- container.stub :configuration, configuration
15
- container.stub :kernel, kernel
16
- end
17
-
18
- after do
19
- container.unstub :configuration
20
- container.unstub :kernel
21
- end
22
- end