doit 0.2.4 → 0.2.7

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: 79a433db8959ba8237dbc94e440e09e81cf8cac6
4
- data.tar.gz: ae14003d0bb47603b5b84cb65952ba89a68135f5
3
+ metadata.gz: 70518ea8bcbf0e15ac83df3e0e1e99e676550172
4
+ data.tar.gz: 391276d0d384805aeb3840456663101d3dd99d2f
5
5
  SHA512:
6
- metadata.gz: 418fe282ab06d1b9bdf7293702eb03251855937194114d68967616ff89402c58ff8d23272bfe02cdd5cd3b90f146b2e920d8597d4ecee883011cc6d0fb4a5e31
7
- data.tar.gz: 80b566ffc7fbdb1af2752b366c05c958f414d26930c51e06b4198e493c7b71ae49f59c51ebc15ef9cc6862ec69c87eade97dee6d699055ee631c4be861519a65
6
+ metadata.gz: 926ef9ba46971ca99ee2e431a1e19a03fbc8f6e8f65138cf97918ce3272db0b609e4fa984da5b5a57c5b4c1a93e17f8879b04b3dc9fcd90f6749ce4bcf152135
7
+ data.tar.gz: 97085872c51e982f0b79f77b79de49da2126d81b684c3260c505b60c180eb55b8780df15d2bd807c17727343956f14fd3110ebd88db1ad2bfa9555a5259ff782
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ rails-4.1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.1.2
1
+ ruby-2.1.4
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doit (0.2.4)
5
- micro-optparse
4
+ doit (0.2.7)
5
+ micro-optparse (~> 1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
data/bin/doit CHANGED
@@ -11,8 +11,8 @@ options = Parser.new do |p|
11
11
  p.banner = "Usage: doit script... [options] # execute locally or remotely"
12
12
  p.version = "doit #{Globals::VERSION}"
13
13
  p.option :list, 'Lists available scripts'
14
- p.option :remote, 'remote host or comma separated hosts', default: ['host'], optional: true
15
- p.option :silent, 'run silently; suppress output'
14
+ p.option :remote, 'Remote host or comma separated hosts', default: '---', optional: true
15
+ p.option :silent, 'Run silently; suppress output'
16
16
  p.option :verbose, 'Enable verbose output'
17
17
  p.option :noop, 'Suppress execution of commannds'
18
18
  end.process!
data/doit.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.homepage = 'http://www.matique.de'
13
13
  gem.license = 'MIT'
14
14
 
15
- gem.add_dependency 'micro-optparse', '~> 0'
15
+ gem.add_dependency 'micro-optparse', '~> 1'
16
16
 
17
17
  gem.files = `git ls-files`.split("\n")
18
18
  gem.test_files = `git ls-files -- test`.split("\n")
data/lib/doit.rb CHANGED
@@ -23,6 +23,7 @@ class Doit
23
23
  hsh = Import.list
24
24
  hsh.sort.each { |abb, long|
25
25
  puts "#{abb}\t- #{long}"
26
+ next unless options[:verbose]
26
27
  lines = `grep -i 'usage\\|summary' #{long} | grep '^#'`.split("\n")
27
28
  lines.each { |line|
28
29
  next unless line
data/lib/globals.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Globals
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.7'
3
3
  end
data/lib/what.rb CHANGED
@@ -17,7 +17,7 @@ class What
17
17
  @env = [@env].flatten.compact
18
18
 
19
19
  remote = Doit.options[:remote]
20
- @where = remote if remote
20
+ @where = remote if remote && remote != '---'
21
21
  @where ||= Dir.pwd # default is current directory
22
22
  @where = [@where].flatten.compact
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-25 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: micro-optparse
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1'
27
27
  description: Run good old shell/bash scripts locally or remotely(ssh).
28
28
  email: dittmar.krall@matique.de
29
29
  executables:
@@ -33,6 +33,7 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - ".doit/hello"
35
35
  - ".doit/hello.yml"
36
+ - ".ruby-gemset"
36
37
  - ".ruby-version"
37
38
  - ".travis.yml"
38
39
  - ".watchr"