dopstick 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ee695ef256b47ceb23cc0326cb011333aa8af9e3e543cd904b5c3a84cae666c
4
- data.tar.gz: cfabd34e6a575a676a45da2e9d5b481c09aeff321b1667d75bc16e3f5f2ffc70
3
+ metadata.gz: 845c70abf80cfc35d701755ccb884541712a51932992335a029262259acb3224
4
+ data.tar.gz: f99884fb97532ab7c311bca815686138c1b8076e6707188ada8d65afc368cca0
5
5
  SHA512:
6
- metadata.gz: 775d30923ea9add775c96c2e1d54fcc34b3879c43208a848f2a24ba2c9532a3bc3f1d93f7f8b5e35ad341c18f4bd9f2b8b1c415e6e0aa1e80b2d24fc6ee55529
7
- data.tar.gz: e1edd178b62e2f9d213db00b4aae289319376457045bf746defdb7b5733df15b7beb95e332fc58b3ee23b4badd1e6944639338b9478d4602b61d751b77526f6b
6
+ metadata.gz: 52673c29a2ff5cb40cf8d188234e469657c7dc7715ca43deac9ac6d0f3a8d67d2b26c501396f510c38b782052940cc4acf8ba64f34ce82af48171fa30d925183
7
+ data.tar.gz: ff3d572d6c593bc6b1a38e48f6d3e830f408a8ec32c06e6e8eb6ba3406abb0003375ae335c4cb2eea43b2aafa756ebe39e0f82ef5d28de54d89bc653828d3a79
@@ -11,6 +11,11 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
+ ## v0.0.3 - 2020-11-03
15
+
16
+ - [Changed] Remove unused `--repository` switch.
17
+ - [Changed] Make `--help` and `-h` work with `dopstick new`.
18
+
14
19
  ## v0.0.2 - 2020-11-02
15
20
 
16
21
  - [Fixed] Link added to gemspec's meta info now open the correct code browser.
data/README.md CHANGED
@@ -1,13 +1,23 @@
1
- # dopstick
2
-
3
- [![Tests](https://github.com/fnando/dopstick/workflows/Tests/badge.svg)](https://github.com/fnando/dopstick)
4
- [![Code Climate](https://codeclimate.com/github/fnando/dopstick/badges/gpa.svg)](https://codeclimate.com/github/fnando/dopstick)
5
- [![Gem](https://img.shields.io/gem/v/dopstick.svg)](https://rubygems.org/gems/dopstick)
6
- [![Gem](https://img.shields.io/gem/dt/dopstick.svg)](https://rubygems.org/gems/dopstick)
7
-
8
- Generate a project skeleton for creating a rubygem.
9
-
10
- Includes:
1
+ <p align="center">
2
+ <a href="https://github.com/fnando/dopstick/">
3
+ <img width="250" src="https://github.com/fnando/dopstick/raw/main/dopstick.svg" alt="Dopstick">
4
+ </a>
5
+ </p>
6
+
7
+ <p align="center">
8
+ Generate a project skeleton for creating a rubygem.
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://github.com/fnando/dopstick"><img src="https://github.com/fnando/dopstick/workflows/Tests/badge.svg" alt="Tests"></a>
13
+ <a href="https://codeclimate.com/github/fnando/dopstick"><img src="https://codeclimate.com/github/fnando/dopstick/badges/gpa.svg" alt="Code Climate"></a>
14
+ <a href="https://rubygems.org/gems/dopstick"><img src="https://img.shields.io/gem/v/dopstick.svg" alt="Gem"></a>
15
+ <a href="https://rubygems.org/gems/dopstick"><img src="https://img.shields.io/gem/dt/dopstick.svg" alt="Gem"></a>
16
+ </p>
17
+
18
+ ---
19
+
20
+ Features:
11
21
 
12
22
  - Github templates
13
23
  - Changelog
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="2283" height="512" viewBox="0 0 2283 512"><g fill="none"><path fill="#E8546A" d="M220.504 9.988L10.5 129.992v252.004L220.504 502l210.004-120.004V129.992z"/><path fill="#C42B4C" d="M350.508 333.996v2.711l-130.004 71.988-130-71.988V175.281l130-71.988 130.004 71.988z"/><path fill="#000" d="M130.504 291.996c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10z"/><path fill="#000" d="M435.504 121.332l-.035-.023-210.004-120a10.061 10.061 0 0 0-9.922 0l-210.004 120-.035.023C2.5 123.062.5 126.363.5 129.992v252.004c0 6.067 5.023 8.633 5.125 8.73L215.543 510.68l.066.035a10.177 10.177 0 0 0 4.895 1.285c1.633 0 3.371-.43 4.894-1.285l.067-.035s209.902-119.946 209.914-119.95c3.254-2.367 5.129-4.171 5.129-8.734V129.992c0-.047-.008-.094-.008-.14-.047-3.665-2.102-6.856-4.996-8.52zm-205-94.11l180.215 102.981-58.063 34.84-122.152-67.645V27.223zm-20 0v70.176L88.352 165.043l-58.063-34.84 180.215-102.98zM20.5 147.653l60.004 36.004v144.676L20.5 364.336V147.652zm190.004 337.114L30.289 381.786l58.066-34.84 122.149 67.644v70.176zm10-87.5l-120-66.454V181.177l120-66.453 120.004 66.453v149.637l-120.004 66.453zm10 87.5V414.59l122.152-67.645 58.063 34.84-180.215 102.98zm190.004-120.43l-60-36.004V183.656l60-36.004v216.684z"/><path fill="#000" d="M175.66 162.422l-50.004 27.691a10.003 10.003 0 0 0-5.152 8.75v63.13c0 5.523 4.476 10 10 10 5.52 0 10-4.477 10-10v-57.24l44.844-24.835c4.832-2.676 6.582-8.762 3.906-13.59-2.676-4.832-8.762-6.578-13.594-3.906z"/><path fill="#434C50" d="M653.311 372c29.222 0 50.896-13.942 58.25-35.242h3.677v33.5H794V92h-78.762v102.628h-3.677c-7.354-21.3-29.028-34.855-58.25-34.855-45.283 0-74.311 34.08-74.311 98.174v15.491c0 63.9 29.028 98.562 74.311 98.562zm34.092-59C671.66 313 660 299.654 660 271.61v-11.412C660 232.346 671.66 219 687.403 219 703.145 219 715 232.152 715 260.198v11.411C715 299.654 703.145 313 687.403 313zm247.388 61C1000.648 374 1039 336.8 1039 269.569v-10.463C1039 198.656 1000.648 157 934.79 157 868.547 157 830 199.238 830 259.688v10.268C830 336.8 868.546 374 934.79 374zm-.195-57c-21.108 0-24.47-25.01-24.592-43.178L910 257.045c0-20.567 3.843-44.045 24.596-44.045 20.56 0 24.404 23.09 24.404 44.045v15.716c0 18.627-3.075 44.239-24.404 44.239zm217.237 122V336.107h3.874c8.135 21.315 28.86 35.267 58.108 35.267 45.518 0 74.185-33.523 74.185-98.63v-15.502c0-65.3-28.667-98.242-74.185-98.242-29.247 0-49.973 13.564-58.108 34.879h-3.874v-33.135H1073V439h78.833zm27.667-126c-15.603 0-27.5-13.346-27.5-41.39v-11.412c0-28.046 11.897-41.198 27.5-41.198 16.188 0 27.5 13.346 27.5 41.198v11.411c0 28.045-11.312 41.391-27.5 41.391zm230.438 61c64.28 0 98.062-28.288 98.062-73.044 0-35.262-20.848-52.7-58.297-59.481-4.36-.79-9.073-1.46-13.856-2.134l-4.317-.611-2.877-.42c-18.66-2.769-36.28-6.555-36.28-18.729 0-6.975 5.79-14.143 18.917-14.143 13.898 0 20.268 8.137 21.812 17.05h67.177c0-45.144-37.835-65.488-88.217-65.488-49.61 0-93.236 19.762-93.236 69.556 0 39.913 28.183 57.156 63.315 64.519 22.778 4.844 50.575 5.425 50.575 20.15 0 7.362-6.756 13.95-19.496 13.95-13.706 0-22.778-7.556-23.55-17.631H1314c0 37.006 30.5 66.456 95.938 66.456zm231.066-4c15.437 0 27.4-1.162 32.996-1.936v-55.182c-1.93.193-8.49.387-14.279.387-15.244 0-24.699-6.196-24.699-20.718v-73.189H1674v-58.086h-38.978V115h-75.061v46.276H1526v58.086h31.645v90.615c0 45.114 27.787 60.023 83.359 60.023zm114.593-227c22.144 0 40.403-13.349 40.403-35.597C1796 85.35 1777.741 72 1755.597 72 1733.26 72 1715 85.349 1715 107.403c0 22.248 18.259 35.597 40.597 35.597zM1794 370V161h-78v209h78zm138.801 4c51.577 0 95.813-24.219 96.199-87.188h-69.348c-.387 14.92-5.023 28.87-23.567 28.87-16.42 0-26.078-15.888-26.078-46.307V257.75c0-25.769 10.431-42.238 25.885-42.238 14.101 0 23.373 13.175 23.76 29.45H2029c-.386-52.506-36.51-87.962-95.813-87.962C1869.441 157 1831 197.881 1831 257.944v12.4C1831 338.93 1872.145 374 1932.801 374zm209.606-4v-65.582l8.112-11.608 42.293 77.19H2283l-71.455-119.364 66.434-89.184h-86.712l-44.997 75.835h-3.863V92H2064v278h78.407z"/></g></svg>
@@ -30,9 +30,6 @@ module Dopstick
30
30
  default: "",
31
31
  desc: "Set Paypal account for donations. Defaults to " \
32
32
  "`git config user.paypal`."
33
- option :repository,
34
- default: "",
35
- desc: "Set Github repository name. Defaults to gem name."
36
33
  option :description,
37
34
  default: "",
38
35
  desc: "Set gem description."
@@ -51,13 +48,18 @@ module Dopstick
51
48
  type: :array,
52
49
  desc: "Set Ruby versions that are officially supported. Multiple " \
53
50
  "versions must separated by space."
54
- def new(path)
55
- options = dup_options
51
+ option :help,
52
+ aliases: "-h",
53
+ type: :boolean,
54
+ hide: true
55
+ def new(path = nil)
56
+ interrupt_with_help(:new) if options[:help] || path.to_s.strip.empty?
57
+
56
58
  gem_name, namespace = expand_gem_name_and_namespace(path)
57
59
 
58
60
  generator = Generator.new
59
61
  generator.destination_root = File.expand_path(path)
60
- generator.options = options.merge(
62
+ generator.options = dup_options.merge(
61
63
  gem_name: gem_name,
62
64
  namespace: namespace,
63
65
  entry_path: namespace.underscore("/")
@@ -67,6 +69,11 @@ module Dopstick
67
69
  end
68
70
 
69
71
  no_commands do
72
+ private def interrupt_with_help(command)
73
+ help(command)
74
+ exit
75
+ end
76
+
70
77
  private def dup_options
71
78
  options.each_with_object({}) do |(key, value), buffer|
72
79
  buffer[key.to_sym] = value
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dopstick
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dopstick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -147,6 +147,7 @@ files:
147
147
  - bin/console
148
148
  - bin/setup
149
149
  - dopstick.gemspec
150
+ - dopstick.svg
150
151
  - exe/dopstick
151
152
  - lib/dopstick.rb
152
153
  - lib/dopstick/cli.rb
@@ -188,10 +189,10 @@ licenses:
188
189
  metadata:
189
190
  homepage_uri: https://github.com/fnando/dopstick
190
191
  bug_tracker_uri: https://github.com/fnando/dopstick/issues
191
- source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.2
192
- changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.2/CHANGELOG.md
193
- documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.2/README.md
194
- license_uri: https://github.com/fnando/dopstick/tree/v0.0.2/LICENSE.md
192
+ source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.3
193
+ changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.3/CHANGELOG.md
194
+ documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.3/README.md
195
+ license_uri: https://github.com/fnando/dopstick/tree/v0.0.3/LICENSE.md
195
196
  post_install_message:
196
197
  rdoc_options: []
197
198
  require_paths: