base_script 1.2.0 → 1.3.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
  SHA1:
3
- metadata.gz: d17a8d43d91f0102c8aac6c7ef24f8b60390f912
4
- data.tar.gz: 5d3571ec3f02d90f30ec8efcc961535b5e200b2c
3
+ metadata.gz: 368fc4ba3f9c74b95cadb1af003d943606860bb8
4
+ data.tar.gz: 17bd19ba4d596609858fce618eab2b6afd281671
5
5
  SHA512:
6
- metadata.gz: 1e3b40e02621ed27c1f9039d55f4dd9579d2dae031a62deb383008230346bfe00c53e511be67f67aa30b491d3a4469fa9f6a2923932bdf1d4b1bdd3f37275744
7
- data.tar.gz: ff253992c6eaeb6288e2eb36e05ff6b1bd8fe014a87bc62e56b2ddcaee48b80cd7f7be81b82c84e47ea931470d72c3e8df3dc2d370cc366f83873a09e3158708
6
+ metadata.gz: 14356b37be02419e119353510a264d3f59b07ac8a1a971c4fc8f0b3f470b62232fae5d13b5dd927b74d1a88cecef5c602fa67ff97ccbe0cff7887348d81267fe
7
+ data.tar.gz: f45b83af8d612d594727f426ff4c2ef90bbe3415b92f2aed5c369560f4617493ece8bc3f8aef84f96ac7971ff5329d89a05edce3258b60e64d09d6e214ba31f1
@@ -1,3 +1,3 @@
1
1
  class BaseScript
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
data/lib/base_script.rb CHANGED
@@ -60,7 +60,9 @@ class BaseScript
60
60
  end
61
61
  end
62
62
 
63
- def verbose?; arg("v") end
63
+ def verbose?
64
+ arg("v") || arg("verbose")
65
+ end
64
66
 
65
67
  ##
66
68
  # Logging.
@@ -138,7 +140,7 @@ class BaseScript
138
140
  # Execute block unless dry run
139
141
  def unless_dry_run(message)
140
142
  if dry?
141
- log "Skipping #{message} due to dry run"
143
+ vlog "Skipping due to dry run: #{message}"
142
144
  else
143
145
  vlog message
144
146
  yield
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_script
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Annesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-05 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler