ding 0.8.2 → 0.8.3

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: a1be9dc233de1e9fa9ef54dc9598581bf831bc05
4
- data.tar.gz: 6ca2841edd020de0c0a6da25e027370497ae7423
3
+ metadata.gz: 773571acd00c78a95c50cb8672608a31a7cff151
4
+ data.tar.gz: 4f7540337bb5a0dcdf39b55ca5abf344d1db6b32
5
5
  SHA512:
6
- metadata.gz: 214c096bdc4cff13250bc1f0af923f331a5f29aa89ec59213f90355798c58e167faabd1e5d317ade850f8177a31e3a1c446860970ece0e26d3f9c6758aed1cda
7
- data.tar.gz: 3274c3a8d55abdaaba7f1392dd9afcafc0977c53ccca7ecc9f21bd197516e0487b700d2f2f9b7c29f0cc3f10c13428516b49576ad46398c838c2333e89128a59
6
+ metadata.gz: 97a3c942efca71ce5502080b428061253e7ca068e453756c2215151cea69948b32564144dcb720821130c6f0b3fb0982c2dd21db43fabeaca62866263bc9a4b6
7
+ data.tar.gz: 1ed7277aec52b524973a50162bb769f42107f9d7de4576f09bc7d78319321a2918ff099549e2e95b0c38aacfc939402e1150333f8f8a1d09a69ff99b75d04a9f
data/ding.gemspec CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency 'bundler', '~> 1.9'
23
23
  spec.add_development_dependency 'rake', '~> 10.0'
24
+ spec.add_development_dependency 'pry'
24
25
  spec.add_runtime_dependency 'thor', '~> 0.19'
25
26
  spec.add_runtime_dependency 'git-up', '~> 0.5'
26
27
  end
data/lib/ding/helpers.rb CHANGED
@@ -3,6 +3,7 @@ module Ding
3
3
  # NOTE: only for commands where we are interested in the effect
4
4
  # as unless verbose is turned on, stdout and stderr are suppressed
5
5
  def run_cmd(cmd)
6
+ options ||= {}
6
7
  cmd << ' &>/dev/null ' unless options[:verbose]
7
8
  system cmd
8
9
  end
@@ -5,8 +5,8 @@ module Ding
5
5
  attr_reader :options
6
6
 
7
7
  def initialize(options={})
8
- raise "#{repo} is NOT a git repository" unless git_repo?
9
8
  @options = options
9
+ raise "#{repo} is NOT a git repository" unless git_repo?
10
10
  end
11
11
 
12
12
  def branches(pattern)
data/lib/ding/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ding
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Warren Bain
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: thor
43
57
  requirement: !ruby/object:Gem::Requirement