regen 0.0.5 → 0.0.6

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/regen.rb +12 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b69280f936ec8dbe2c2c950e47e84b148705332
4
- data.tar.gz: 4e33fdd073ccba7f4061dc6cfba3ecc85159b2cd
3
+ metadata.gz: 04e43713fa2e291d71714c92e0132bf1fad19276
4
+ data.tar.gz: 881c40542fa5de1c7312df8d754fa5b8ca616020
5
5
  SHA512:
6
- metadata.gz: bc7c2b61a9ff873ebce611c5050db9657668a7547aaf269937d6832c34159242bee93a1baade74b296c3ccaf86ea071b4ed3b90421d415c21ecf80c5e658fabf
7
- data.tar.gz: e10f7a4d8924aba90143ee12523424c203871a24e619143768e685894a25faf5362c2cae0e8d4113889b72762754f5d807e00d8de5a3cc98fbd30fff11fc42f8
6
+ metadata.gz: b2c3119623e9ff3a358f7af0b9825d08f7b1ff0cbd3d30e61c08aa258fe09872ccc5cd32c77e760534bd2be57e8692f6ceb5249cf232d3015544c774ebdfc0f3
7
+ data.tar.gz: af3b789fc0f76b0be1938fdd5211e9f3ebd8669a6a0c0dff7202a5ffb577aba25e1f2191c4f40c1656bd3083566c75f1b3b33df51d7b027730262555b2b7d9f8
@@ -18,7 +18,18 @@ end.parse!
18
18
  options[:config_file] ||= "regen.json"
19
19
 
20
20
  # Create the destination directory if it doesn't exist
21
- raise 'A destination directory must be specified' unless options[:destination]
21
+ err = <<-EOL
22
+ A destination directory is required.
23
+ If a config file is not specified it will default to the regen.json file
24
+ in the current directory if it exists.
25
+
26
+ Example use
27
+
28
+ regen -c path/to/configfile -d path/to/destination
29
+ EOL
30
+
31
+ #raise err unless options[:destination]
32
+ abort err unless options[:destination]
22
33
  Dir.mkdir options[:destination] unless File.exists? options[:destination]
23
34
 
24
35
  # Allow pointing to a Git repo for the config file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joiey Seeley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-30 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug