gemsmith 13.5.0 → 13.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -2
- data/lib/gemsmith/generators/documentation.rb +2 -2
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/rake/builder.rb +2 -11
- data/lib/gemsmith/rake/tasks.rb +2 -4
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +4 -4
- data/lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt +1 -3
- metadata +4 -4
- 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: 17ce2acb370a7eb6551ce4436a8791eb1ec63cdb64e428216845d87e05034b97
|
|
4
|
+
data.tar.gz: a3a69c866c4590a14e24bc288d76e3e7bc920b2b12e594efa323cf463e4092cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e1143b954e77b497856dec6471107f910183347cb2503fbdcd2057dc589de3d6f1962c3f84583d2caca4ab4c3d4f459532c1024d5af7a5190719b4ad9633479
|
|
7
|
+
data.tar.gz: 5e86e94c2109cd2ce6010f3db596c123ace2e0ec7ff8750fc69fcf7ca9ca54d08008f5422b5ed44ab873119e40df2c4f77ffeb26ebb671e04d6b5da5a0569c5e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.md
CHANGED
|
@@ -102,8 +102,7 @@ This gem can be configured via a global configuration:
|
|
|
102
102
|
|
|
103
103
|
~/.config/gemsmith/configuration.yml
|
|
104
104
|
|
|
105
|
-
It can also be configured via [XDG
|
|
106
|
-
as provided by the [Runcom](https://github.com/bkuhlmann/runcom) gem.
|
|
105
|
+
It can also be configured via [XDG](https://github.com/bkuhlmann/xdg) environment variables.
|
|
107
106
|
|
|
108
107
|
The default configuration is as follows:
|
|
109
108
|
|
data/lib/gemsmith/identity.rb
CHANGED
|
@@ -2,25 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
require "bundler/ui/shell"
|
|
4
4
|
require "fileutils"
|
|
5
|
-
require "tocer"
|
|
6
5
|
|
|
7
6
|
module Gemsmith
|
|
8
7
|
module Rake
|
|
9
8
|
# Provides gem build functionality. Meant to be wrapped in Rake tasks.
|
|
10
9
|
class Builder
|
|
11
|
-
def initialize
|
|
12
|
-
@tocer = tocer
|
|
10
|
+
def initialize shell: Bundler::UI::Shell.new, kernel: Kernel
|
|
13
11
|
@shell = shell
|
|
14
12
|
@kernel = kernel
|
|
15
13
|
end
|
|
16
14
|
|
|
17
|
-
def toc
|
|
18
|
-
File.join(Dir.pwd, "README.md")
|
|
19
|
-
.then { |readme| tocer.new(readme).call }
|
|
20
|
-
|
|
21
|
-
shell.confirm "Updated gem table of contents."
|
|
22
|
-
end
|
|
23
|
-
|
|
24
15
|
def clean
|
|
25
16
|
FileUtils.rm_rf "pkg"
|
|
26
17
|
shell.confirm "Cleaned gem artifacts."
|
|
@@ -57,7 +48,7 @@ module Gemsmith
|
|
|
57
48
|
|
|
58
49
|
private
|
|
59
50
|
|
|
60
|
-
attr_reader :
|
|
51
|
+
attr_reader :shell, :kernel
|
|
61
52
|
end
|
|
62
53
|
end
|
|
63
54
|
end
|
data/lib/gemsmith/rake/tasks.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "rake"
|
|
4
|
+
require "tocer/rake/tasks"
|
|
4
5
|
require "gemsmith/gem/specification"
|
|
5
6
|
require "gemsmith/errors/base"
|
|
6
7
|
require "gemsmith/errors/specification"
|
|
@@ -33,10 +34,7 @@ module Gemsmith
|
|
|
33
34
|
# rubocop:disable Metrics/MethodLength
|
|
34
35
|
# :reek:TooManyStatements
|
|
35
36
|
def install
|
|
36
|
-
|
|
37
|
-
task :toc do
|
|
38
|
-
builder.toc
|
|
39
|
-
end
|
|
37
|
+
Tocer::Rake::Tasks.setup
|
|
40
38
|
|
|
41
39
|
desc "Clean gem artifacts"
|
|
42
40
|
task :clean do
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
inherit_from:
|
|
2
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.
|
|
3
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.
|
|
2
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.1.0/configurations/rubocop/ruby.yml
|
|
3
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.1.0/configurations/rubocop/performance.yml
|
|
4
4
|
<%- if config.dig(:generate, :rspec) -%>
|
|
5
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.
|
|
5
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.1.0/configurations/rubocop/rspec.yml
|
|
6
6
|
<%- end -%>
|
|
7
7
|
<%- if config.dig(:generate, :engine) -%>
|
|
8
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.
|
|
8
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.1.0/configurations/rubocop/rails.yml
|
|
9
9
|
<%- end -%>
|
|
10
10
|
|
|
11
11
|
<%- if config.dig(:generate, :cli) -%>
|
|
@@ -14,9 +14,7 @@ require "<%= config.dig(:gem, :path) %>"
|
|
|
14
14
|
SimpleCov.start
|
|
15
15
|
<%- end -%>
|
|
16
16
|
|
|
17
|
-
Dir[File.join(
|
|
18
|
-
require file
|
|
19
|
-
end
|
|
17
|
+
Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].each(&method(:require))
|
|
20
18
|
|
|
21
19
|
RSpec.configure do |config|
|
|
22
20
|
config.color = true
|
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: 13.
|
|
4
|
+
version: 13.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brooke Kuhlmann
|
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
|
28
28
|
dKvURM+1PwDCzC5tvRwjhUJIizau6+MtkFCvJHmaAj1aZL3odcPejHj5Hxt/0CUW
|
|
29
29
|
y84=
|
|
30
30
|
-----END CERTIFICATE-----
|
|
31
|
-
date: 2019-06-
|
|
31
|
+
date: 2019-06-09 00:00:00.000000000 Z
|
|
32
32
|
dependencies:
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: milestoner
|
|
@@ -120,14 +120,14 @@ dependencies:
|
|
|
120
120
|
requirements:
|
|
121
121
|
- - "~>"
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: '9.
|
|
123
|
+
version: '9.1'
|
|
124
124
|
type: :runtime
|
|
125
125
|
prerelease: false
|
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
128
|
- - "~>"
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: '9.
|
|
130
|
+
version: '9.1'
|
|
131
131
|
- !ruby/object:Gem::Dependency
|
|
132
132
|
name: versionaire
|
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
|
Binary file
|