rubysmith 0.1.1 → 0.2.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.adoc +28 -3
- data/lib/rubysmith/builders/core.rb +0 -2
- data/lib/rubysmith/cli/parsers/core.rb +1 -1
- data/lib/rubysmith/identity.rb +1 -1
- data/lib/rubysmith/templates/%project_name%/lib/%project_name%.rb.erb +0 -1
- metadata +2 -3
- metadata.gz.sig +0 -0
- data/lib/rubysmith/templates/%project_name%/lib/%project_name%/identity.rb.erb +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c642fd1a721b8b3255818b19493d421a08edbe62039f64dea424c15397a7474
|
|
4
|
+
data.tar.gz: cd67f5bed50ab0c79febb6d50f5e2903ee4df094604cf93dc6f0f463f5e64004
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42ae38a68784b2570bf5351d7a699e98db2b3edc1262ae4a6dce60690baabe1219587ff97c6cf8ff341381817061faff077d4a32befd8e1cffc82545379f3a72
|
|
7
|
+
data.tar.gz: 5c2d97efa35f0a9c9bdfb4affc417fbef45af8d17fc9cd4bf3a1546ef4dbd3520736ef53bff67bfb465c836162f5195634b7ce8db2004964cc5b1c3237192350
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.adoc
CHANGED
|
@@ -9,9 +9,12 @@ image::https://badge.fury.io/rb/rubysmith.svg[Gem Version]
|
|
|
9
9
|
[link=https://circleci.com/gh/bkuhlmann/rubysmith]
|
|
10
10
|
image::https://circleci.com/gh/bkuhlmann/rubysmith.svg?style=svg[Circle CI Status]
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
Rubysmith is a command line interface for smithing Ruby projects.
|
|
13
|
+
|
|
14
|
+
This gem is useful in situations in which you need something more sophisticated than a
|
|
15
|
+
link:https://bundler.io/guides/bundler_in_a_single_file_ruby_script.html[Bundler Inline] script but
|
|
16
|
+
less complicated than a Ruby Gem as provided by
|
|
17
|
+
link:https://www.alchemists.io/projects/gemsmith[Gemsmith].
|
|
15
18
|
|
|
16
19
|
toc::[]
|
|
17
20
|
|
|
@@ -108,6 +111,28 @@ BUILD OPTIONS:
|
|
|
108
111
|
--[no-]simple_cov Add SimpleCov.
|
|
109
112
|
....
|
|
110
113
|
|
|
114
|
+
=== Building
|
|
115
|
+
|
|
116
|
+
The core functionality of this gem centers around the `--build` command with optional customization
|
|
117
|
+
provided via build options. By default, all build options are enabled. Example:
|
|
118
|
+
|
|
119
|
+
[source,bash]
|
|
120
|
+
----
|
|
121
|
+
rubysmith --build demo
|
|
122
|
+
----
|
|
123
|
+
|
|
124
|
+
Running the above will generate a new `demo` Ruby project with all options enabled. Should you wish
|
|
125
|
+
to disable certain options when building projects, you can prefix options with `--no-*`. Example:
|
|
126
|
+
|
|
127
|
+
[source,bash]
|
|
128
|
+
----
|
|
129
|
+
rubysmith --build demo --no-pry --no-guard
|
|
130
|
+
----
|
|
131
|
+
|
|
132
|
+
Should you wish to have certain options enabled/disabled _every time_ you build a new Ruby project,
|
|
133
|
+
then you can edit your global configuration for making these settings permanent (see below for
|
|
134
|
+
details).
|
|
135
|
+
|
|
111
136
|
=== Configuration
|
|
112
137
|
|
|
113
138
|
This gem can be configured via a global configuration:
|
|
@@ -14,8 +14,6 @@ module Rubysmith
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def call
|
|
17
|
-
builder.call(realm.with(template_path: "%project_name%/lib/%project_name%/identity.rb.erb"))
|
|
18
|
-
.render
|
|
19
17
|
builder.call(realm.with(template_path: "%project_name%/lib/%project_name%.rb.erb")).render
|
|
20
18
|
builder.call(realm.with(template_path: "%project_name%/.ruby-version.erb")).render
|
|
21
19
|
nil
|
data/lib/rubysmith/identity.rb
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require "<%= realm.project_name %>/identity"
|
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.2.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-
|
|
31
|
+
date: 2020-10-04 00:00:00.000000000 Z
|
|
32
32
|
dependencies:
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: pragmater
|
|
@@ -333,7 +333,6 @@ files:
|
|
|
333
333
|
- lib/rubysmith/templates/%project_name%/bin/rubocop.erb
|
|
334
334
|
- lib/rubysmith/templates/%project_name%/bin/setup.erb
|
|
335
335
|
- lib/rubysmith/templates/%project_name%/lib/%project_name%.rb.erb
|
|
336
|
-
- lib/rubysmith/templates/%project_name%/lib/%project_name%/identity.rb.erb
|
|
337
336
|
- lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
|
|
338
337
|
- lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
|
|
339
338
|
- lib/rubysmith/text/inserter.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|