gemsmith 19.2.0 → 19.3.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/README.adoc +1 -1
- data/gemsmith.gemspec +2 -2
- data/lib/gemsmith/builders/git/commit.rb +1 -34
- data/lib/gemsmith/configuration/loader.rb +1 -6
- data.tar.gz.sig +0 -0
- metadata +5 -5
- 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: 95d511941ea8db3bca78600df275809ee6276432de45d98213822730652506e6
|
4
|
+
data.tar.gz: 58a14bff0f5a01aac84e5e310f4df46292a897dd296d1456f67ff4595cbf847f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93b02f12bdef0a377924ed3eadc026eb009053a208b58ff3aa4aba1a38764b4e8a27fbd3c0f0ded27ba366b1f809c0e7d7a46a2d0f65927ae49348dd0cd1377c
|
7
|
+
data.tar.gz: 37d50db47ddf567be0c6e67410a042b446cd449c0e92ee0041450fd66c0791ffebfa534094c106b92e4f88d711cf4dd30be4b78203445bea17a4ed12ccfbde21
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
data/gemsmith.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "gemsmith"
|
5
|
-
spec.version = "19.
|
5
|
+
spec.version = "19.3.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/gemsmith"
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "infusible", "~> 1.0"
|
31
31
|
spec.add_dependency "milestoner", "~> 15.2"
|
32
32
|
spec.add_dependency "refinements", "~> 10.0"
|
33
|
-
spec.add_dependency "rubysmith", "~> 4.
|
33
|
+
spec.add_dependency "rubysmith", "~> 4.4"
|
34
34
|
spec.add_dependency "runcom", "~> 9.0"
|
35
35
|
spec.add_dependency "spek", "~> 1.0"
|
36
36
|
spec.add_dependency "versionaire", "~> 11.0"
|
@@ -4,41 +4,8 @@ module Gemsmith
|
|
4
4
|
module Builders
|
5
5
|
module Git
|
6
6
|
# Builds project skeleton initial Git commit message.
|
7
|
-
class Commit
|
7
|
+
class Commit < Rubysmith::Builders::Git::Commit
|
8
8
|
include Import[:specification]
|
9
|
-
|
10
|
-
def self.call(...) = new(...).call
|
11
|
-
|
12
|
-
def initialize configuration, builder: Rubysmith::Builder, **dependencies
|
13
|
-
super(**dependencies)
|
14
|
-
|
15
|
-
@configuration = configuration
|
16
|
-
@builder = builder
|
17
|
-
end
|
18
|
-
|
19
|
-
def call
|
20
|
-
return configuration unless configuration.build_git
|
21
|
-
|
22
|
-
builder.call(configuration)
|
23
|
-
.run("git add .", chdir: project_name)
|
24
|
-
.run(
|
25
|
-
%(git commit --all --message "Added project skeleton" --message "#{body}"),
|
26
|
-
chdir: project_name
|
27
|
-
)
|
28
|
-
|
29
|
-
configuration
|
30
|
-
end
|
31
|
-
|
32
|
-
private
|
33
|
-
|
34
|
-
attr_reader :configuration, :builder
|
35
|
-
|
36
|
-
def body
|
37
|
-
"Generated with [#{specification.label}](#{specification.homepage_url}) " \
|
38
|
-
"#{specification.version}."
|
39
|
-
end
|
40
|
-
|
41
|
-
def project_name = configuration.project_name
|
42
9
|
end
|
43
10
|
end
|
44
11
|
end
|
@@ -1,14 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/structs"
|
4
3
|
require "runcom"
|
5
4
|
|
6
5
|
module Gemsmith
|
7
6
|
module Configuration
|
8
7
|
# Represents the fully assembled Command Line Interface (CLI) configuration.
|
9
8
|
class Loader < Rubysmith::Configuration::Loader
|
10
|
-
using Refinements::Structs
|
11
|
-
|
12
9
|
DEFAULTS = Rubysmith::Configuration::Loader::DEFAULTS
|
13
10
|
CLIENT = Runcom::Config.new "gemsmith/configuration.yml", defaults: DEFAULTS
|
14
11
|
|
@@ -17,9 +14,7 @@ module Gemsmith
|
|
17
14
|
enhancers: {template_root: Rubysmith::Configuration::Enhancers::TemplateRoot}
|
18
15
|
end
|
19
16
|
|
20
|
-
def initialize
|
21
|
-
super
|
22
|
-
end
|
17
|
+
def initialize(client: CLIENT, **) = super
|
23
18
|
|
24
19
|
def call
|
25
20
|
return super unless enhancers.key? :template_root
|
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: 19.
|
4
|
+
version: 19.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-01-
|
31
|
+
date: 2023-01-22 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -134,14 +134,14 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '4.
|
137
|
+
version: '4.4'
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '4.
|
144
|
+
version: '4.4'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: runcom
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
- !ruby/object:Gem::Version
|
294
294
|
version: '0'
|
295
295
|
requirements: []
|
296
|
-
rubygems_version: 3.4.
|
296
|
+
rubygems_version: 3.4.4
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
299
|
summary: A command line interface for smithing Ruby gems.
|
metadata.gz.sig
CHANGED
Binary file
|