rubysmith 0.8.0 → 0.9.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.tar.gz.sig +0 -0
- data/bin/rubysmith +0 -3
- data/lib/rubysmith/builders/bundler.rb +8 -4
- data/lib/rubysmith/builders/pragma.rb +4 -4
- data/lib/rubysmith/identity.rb +1 -1
- data/lib/rubysmith/templates/%project_name%/Gemfile.erb +3 -1
- data/lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb +1 -1
- 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: 35f0eea5be27d1e8a8e05430c6b99d80bfa02bbeabbc6e1148f4c7b388280a26
|
4
|
+
data.tar.gz: ebce4666b017291222012d583ce61266cd15674bf6248199e6cff1700484d4fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be592ad7f91f4589ba1aac09b26a7ff875edbc36974559abdae1410e0e41342f08dd5ff24c6517ff63eb87af30491a86115c165c161a39bb3b6453f315230a13
|
7
|
+
data.tar.gz: d245861a8bf50f49541dd9f0aae53007681905eebff6d561ac3a7a9d0fc70ccfa495233fa2f0764cb44313e8f2d0569130ef007e2d63468d587c455e9c3a8035
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/bin/rubysmith
CHANGED
@@ -2,19 +2,22 @@
|
|
2
2
|
|
3
3
|
require "bundler"
|
4
4
|
require "bundler/cli"
|
5
|
+
require "refinements/pathnames"
|
5
6
|
|
6
7
|
module Rubysmith
|
7
8
|
module Builders
|
8
9
|
# Builds Bundler Gemfile configuration and installs gem dependencies for project skeleton.
|
9
10
|
class Bundler
|
11
|
+
using Refinements::Pathnames
|
12
|
+
|
10
13
|
def self.call realm, builder: Builder
|
11
14
|
new(realm, builder: builder).call
|
12
15
|
end
|
13
16
|
|
14
|
-
def initialize realm, builder: Builder,
|
17
|
+
def initialize realm, builder: Builder, client: ::Bundler::CLI
|
15
18
|
@realm = realm
|
16
19
|
@builder = builder
|
17
|
-
@
|
20
|
+
@client = client
|
18
21
|
end
|
19
22
|
|
20
23
|
def call
|
@@ -26,13 +29,14 @@ module Rubysmith
|
|
26
29
|
.replace(/(\n+|\s+)end/, "\nend")
|
27
30
|
.replace(/\n\ngroup :(code_quality|test|tools) do\nend/, "")
|
28
31
|
.replace(/org"\n+/, "org\"\n\n")
|
29
|
-
|
32
|
+
|
33
|
+
realm.project_root.change_dir { client.start %w[install --quiet] }
|
30
34
|
nil
|
31
35
|
end
|
32
36
|
|
33
37
|
private
|
34
38
|
|
35
|
-
attr_reader :realm, :builder, :
|
39
|
+
attr_reader :realm, :builder, :client
|
36
40
|
end
|
37
41
|
end
|
38
42
|
end
|
@@ -10,19 +10,19 @@ module Rubysmith
|
|
10
10
|
new(realm).call
|
11
11
|
end
|
12
12
|
|
13
|
-
def initialize realm,
|
13
|
+
def initialize realm, client: Pragmater::Runner
|
14
14
|
@realm = realm
|
15
|
-
@
|
15
|
+
@client = client
|
16
16
|
end
|
17
17
|
|
18
18
|
def call
|
19
|
-
|
19
|
+
client.for(**attributes).call
|
20
20
|
nil
|
21
21
|
end
|
22
22
|
|
23
23
|
private
|
24
24
|
|
25
|
-
attr_reader :realm, :
|
25
|
+
attr_reader :realm, :client
|
26
26
|
|
27
27
|
def attributes
|
28
28
|
{
|
data/lib/rubysmith/identity.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
ruby File.read(".ruby-version").strip
|
2
|
+
|
1
3
|
source "https://rubygems.org"
|
2
4
|
|
3
5
|
<% unless realm.build_minimum %>
|
@@ -19,7 +21,7 @@ source "https://rubygems.org"
|
|
19
21
|
gem "reek", "~> 6.0"
|
20
22
|
<% end %>
|
21
23
|
<% if realm.build_rubocop %>
|
22
|
-
gem "rubocop", "~> 1.
|
24
|
+
gem "rubocop", "~> 1.8"
|
23
25
|
gem "rubocop-performance", "~> 1.9"
|
24
26
|
gem "rubocop-rake", "~> 0.5"
|
25
27
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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:
|
31
|
+
date: 2021-01-24 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pragmater
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '1.
|
67
|
+
version: '1.8'
|
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: '1.
|
74
|
+
version: '1.8'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: runcom
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.2.
|
183
|
+
rubygems_version: 3.2.6
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: A command line interface for smithing Ruby projects.
|
metadata.gz.sig
CHANGED
Binary file
|