mygen 0.3.12 → 0.3.13

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/myg +4 -7
  3. data/lib/mygen/version.rb +1 -1
  4. metadata +1 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74cf116c746aa40be9f0612f511ce667e2046940
4
- data.tar.gz: f118b9e0b433f2914806cc9aea5fb7634d16697b
3
+ metadata.gz: 8dd85c60393de245b5975820cf5496cb8f8990c1
4
+ data.tar.gz: d5e3ee90772ddfe22f942fbea5de74f6c5c9ffad
5
5
  SHA512:
6
- metadata.gz: a925709d75bf7e043ea7f219595c8c865ba8de2d7a32366d7702d9fcaddec09dd482335636e3f149ef94c6b358dd5f5e0d71e38907e1e15d15b9f08b2a1ea77b
7
- data.tar.gz: dd4b0372a68f3fc05bc01090e40025ea73fbe70a57b2afaf264c8b5f40693b26bc86fbde0dd3eecfb463f8b6065655150ef1b1d6b92d6b0525dc8709f86545a7
6
+ metadata.gz: c4b4905bd026daad4154effb65a35f5398825fbd52fccc2fcb8b2be2ed5f1ad86a4d56a36d28aec2047395684e8b02ef0c56545ca1226ff56968a81e6493fddf
7
+ data.tar.gz: 441cd2b013d2e858e1f5c050ace78476fee5080396a0a8e61cd25c52c4264226c64098d8959b1cdc0deb6c2439b68ba137c469185ec60f2bf02a22761066fcdc
data/bin/myg CHANGED
@@ -14,18 +14,15 @@ subcommand_option_handling :normal
14
14
  arguments :strict
15
15
 
16
16
  desc "Dry run, doesn't change files"
17
+ default_value false
17
18
  switch :s
18
19
 
19
-
20
- desc 'Describe some flag here'
21
- default_value 'the default'
22
-
20
+ desc 'Destination directory'
21
+ flag [:D, :destination]
23
22
 
24
23
  desc 'Apply an arbitrary generator'
25
24
  arg_name 'The generator to run'
26
25
  command :generate do |c|
27
- c.desc 'Describe a flag to generate'
28
- c.flag :f
29
26
  Mygen::Plugins.load.each do |p|
30
27
  plugin = p.new
31
28
  c.desc plugin.description
@@ -36,7 +33,7 @@ command :generate do |c|
36
33
  plugin.options = options
37
34
  plugin.dry_run = global_options[:s]
38
35
  plugin.name = args[0]
39
- plugin.dest_dir = args[0]
36
+ plugin.dest_dir = global_options[:destination].nil? ? args[0] : global_options[:destination]
40
37
  plugin.call if plugin.respond_to?(:call)
41
38
  end
42
39
  end
@@ -1,3 +1,3 @@
1
1
  module Mygen
2
- VERSION = "0.3.12"
2
+ VERSION = "0.3.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mygen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Rasmussen
@@ -151,4 +151,3 @@ signing_key:
151
151
  specification_version: 4
152
152
  summary: Code generator for generating project structures, for various languages
153
153
  test_files: []
154
- has_rdoc: