rubysmith 0.1.1 → 0.2.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: 380101c84537fa203d854153516c427b08b601d2e74c6e368a0efc04d614dc27
4
- data.tar.gz: 45e762503cd4fab3363c770db57cb90817af1bb60016c127ec846e2470fe6cca
3
+ metadata.gz: 6c642fd1a721b8b3255818b19493d421a08edbe62039f64dea424c15397a7474
4
+ data.tar.gz: cd67f5bed50ab0c79febb6d50f5e2903ee4df094604cf93dc6f0f463f5e64004
5
5
  SHA512:
6
- metadata.gz: 4a9909ac824ad0aa4a7ca4a8a161d1e32e6f49121cccc2f25f03fd3ca5ec79381818d72a9c65730bdeca971b70299cefc79b5b07c2c3b50289eebdf46cf112bb
7
- data.tar.gz: 28ae633b10861b7d94b401580829ca9af4b0f60927e34734bc48699b22dddbcd5603768d6f8f8bab617a29519105a92602454e0a850fa52a898c79d991d45342
6
+ metadata.gz: 42ae38a68784b2570bf5351d7a699e98db2b3edc1262ae4a6dce60690baabe1219587ff97c6cf8ff341381817061faff077d4a32befd8e1cffc82545379f3a72
7
+ data.tar.gz: 5c2d97efa35f0a9c9bdfb4affc417fbef45af8d17fc9cd4bf3a1546ef4dbd3520736ef53bff67bfb465c836162f5195634b7ce8db2004964cc5b1c3237192350
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- A command line interface for smithing Ruby projects. Handy for situations in which you need
13
- something more sophisticated than a Bundler Inline script but less complicated than a Ruby Gem as
14
- provided by link:https://www.alchemists.io/projects/gemsmith[Gemsmith].
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
@@ -37,7 +37,7 @@ module Rubysmith
37
37
  end
38
38
 
39
39
  def add_build
40
- client.on "-b", "--build NAME [options]", "Build new gem." do |value|
40
+ client.on "-b", "--build NAME [options]", "Build new project." do |value|
41
41
  options[:build] = value
42
42
  end
43
43
  end
@@ -4,7 +4,7 @@ module Rubysmith
4
4
  module Identity
5
5
  NAME = "rubysmith"
6
6
  LABEL = "Rubysmith"
7
- VERSION = "0.1.1"
7
+ VERSION = "0.2.0"
8
8
  VERSION_LABEL = "#{LABEL} #{VERSION}"
9
9
  SUMMARY = "A command line interface for smithing Ruby projects."
10
10
  end
@@ -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.1.1
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-09-29 00:00:00.000000000 Z
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
@@ -1,8 +0,0 @@
1
- <% namespace do %>
2
- module Identity
3
- NAME = "<%= realm.project_name %>"
4
- LABEL = "<%= realm.project_label %>"
5
- VERSION = "0.1.0"
6
- VERSION_LABEL = "#{LABEL} #{VERSION}"
7
- end
8
- <% end %>