gemsmith 14.5.0 → 14.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: 8b7457300e915d5d07eba2cce6833fed4a167bcd107d2fc91373d31457c113c6
4
- data.tar.gz: 9f08ed76e0fa3fbd8d02610a034ef820585691ebcb3a2dd116ae199957e501fd
3
+ metadata.gz: 98fb4ce6f597b5aad5295c7300ea5412e92e69497b002ddb3bf80ae0d3790bd5
4
+ data.tar.gz: 82b1a0cf8088618969ef027ade045627f30f3f7b1837dfadfc84b57eb79291ff
5
5
  SHA512:
6
- metadata.gz: c18d96a5a586ef9017daaac65ce0f5f1ceecfa199c1c38c68d545e310b43a5e2a097cea4a4beb52d23f0b0b6bc53b92bfe490e42277ab28887d374cfbce8b28d
7
- data.tar.gz: 1bd72ecbbdd888bd6997314ca6fbdcd0d1d27cd6406737f5a9cd82cfe33e2e0f12bb00f11038d014d1dfdac9d3dd6c2f460dffdbf7a5162d5e79d19feb898a3e
6
+ metadata.gz: 2e593555d2f9296a560934b2653bbc5548ff1a3c674fffa033c08e5c7025b9153a7f02bd253fef18be727a55a87cc3c780f4614ef2e482a2a1357610e504e173
7
+ data.tar.gz: 033dc6607506ee4ec2780f1301ca14ecf3d7d40bf83e8bcec9c9f2cd99a6629daa7ac25cc4eb79468c3dae83867126742b00e7645e2f2dc6c313055bf243bba2
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,6 +1,9 @@
1
1
  #! /usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
+ # TODO: Remove once the Pattern Matching feature is fully supported.
5
+ Warning[:experimental] = false
6
+
4
7
  require "gemsmith"
5
8
  require "gemsmith/cli"
6
9
  require "gemsmith/identity"
@@ -10,11 +10,7 @@ module Gemsmith
10
10
  DEFAULT_COMMENTS = ["# frozen_string_literal: true"].freeze
11
11
 
12
12
  def run
13
- Pragmater::Runner.new(
14
- gem_root,
15
- comments: DEFAULT_COMMENTS,
16
- includes: includes
17
- ).run action: :add
13
+ Pragmater::Runner.for(**attributes).call
18
14
  end
19
15
 
20
16
  # rubocop:disable Metrics/MethodLength
@@ -37,6 +33,17 @@ module Gemsmith
37
33
  ]
38
34
  end
39
35
  # rubocop:enable Metrics/MethodLength
36
+
37
+ private
38
+
39
+ def attributes
40
+ {
41
+ action: :insert,
42
+ root_dir: gem_root,
43
+ comments: DEFAULT_COMMENTS,
44
+ includes: includes
45
+ }
46
+ end
40
47
  end
41
48
  end
42
49
  end
@@ -5,7 +5,7 @@ module Gemsmith
5
5
  module Identity
6
6
  NAME = "gemsmith"
7
7
  LABEL = "Gemsmith"
8
- VERSION = "14.5.0"
8
+ VERSION = "14.6.0"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
10
  URL = "https://www.alchemists.io/projects/gemsmith"
11
11
  end
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: 14.5.0
4
+ version: 14.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
29
  QWc=
30
30
  -----END CERTIFICATE-----
31
- date: 2020-08-07 00:00:00.000000000 Z
31
+ date: 2020-08-25 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: milestoner
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '7.0'
53
+ version: '8.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: '7.0'
60
+ version: '8.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: refinements
63
63
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file