gemsmith 13.5.0 → 13.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a284ae46f24d78cb43736846f78d8686456c78db3a77ecac2be8ef7d7074b57
4
- data.tar.gz: 110c5c24a8dcce5f9135e566f1e00d6495a9114352b1575857db1838d2654c93
3
+ metadata.gz: 17ce2acb370a7eb6551ce4436a8791eb1ec63cdb64e428216845d87e05034b97
4
+ data.tar.gz: a3a69c866c4590a14e24bc288d76e3e7bc920b2b12e594efa323cf463e4092cc
5
5
  SHA512:
6
- metadata.gz: 1fc53dc38de50da902de0a77b8507e33507aaf960c9c8add742cfae842b492547159a603d97e405a02ef0e5d1e4f10aa4609a21f17abb5b486351f54e9db215f
7
- data.tar.gz: a57a88d5c1392d4601b619b204363c745877547afd2f3c1234f7c969636bb724fd07fdb20f045fc1bff5af7c1e85ca288a3b7a2c2598cd8b088586b0f480639e
6
+ metadata.gz: 2e1143b954e77b497856dec6471107f910183347cb2503fbdcd2057dc589de3d6f1962c3f84583d2caca4ab4c3d4f459532c1024d5af7a5190719b4ad9633479
7
+ data.tar.gz: 5e86e94c2109cd2ce6010f3db596c123ace2e0ec7ff8750fc69fcf7ca9ca54d08008f5422b5ed44ab873119e40df2c4f77ffeb26ebb671e04d6b5da5a0569c5e
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 environment variables](https://github.com/bkuhlmann/runcom#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
 
@@ -15,8 +15,8 @@ module Gemsmith
15
15
  end
16
16
 
17
17
  def update_readme
18
- readme = File.join gem_root, "README.md"
19
- Tocer::Writer.new(readme).call
18
+ File.join(gem_root, "README.md")
19
+ .then { |readme| Tocer::Writer.new(readme).call }
20
20
  end
21
21
 
22
22
  def run
@@ -12,7 +12,7 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "13.5.0"
15
+ "13.6.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -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 tocer: Tocer::Writer, shell: Bundler::UI::Shell.new, kernel: Kernel
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 :tocer, :shell, :kernel
51
+ attr_reader :shell, :kernel
61
52
  end
62
53
  end
63
54
  end
@@ -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
- desc "Update Table of Contents (README)"
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.0.0/configurations/rubocop/ruby.yml
3
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/performance.yml
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.0.0/configurations/rubocop/rspec.yml
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.0.0/configurations/rubocop/rails.yml
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(File.dirname(__FILE__), "support/shared_contexts/**/*.rb")].each do |file|
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.5.0
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-01 00:00:00.000000000 Z
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.0'
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.0'
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