git_tools 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bc3f7f01ad32646404bc725653462fdba76ecfc
4
- data.tar.gz: 4e133c8c0c56c335f0e0f2756f06b84d218f5b65
3
+ metadata.gz: 0bee5df76980fc88244520c21d3321e15ce9dd8b
4
+ data.tar.gz: 31eac7a1ba52a3ff0f46306e6b85ff7ce814ef67
5
5
  SHA512:
6
- metadata.gz: 9fba53a172ba660ef0b6aed34b6d90162e094b7a7667c78bdfc7b3a146c4d4e741421566d4bdfab8855afd744e3864a5241bb1e2b122a0418afa4ff39358f421
7
- data.tar.gz: 9bbdcaf7b15c26efa2d344ea8a21fdd02a2b93b0a5e8a9d8358b50cdb3026ec4890e92452439cc39adaf6c7e2ef0c99d2a9825871be1f314bc2820899733ee74
6
+ metadata.gz: 64d1b2d863d0038e89dd5f1fd5aa371b4b824184fe5a8aac4c4b1f8274e44195aef5eb4d99ca1b0bf5dc1d8417fcf7765d444578260c463872b6b17f2194465f
7
+ data.tar.gz: 457ce5eea993b94b32caf677c36d2937e5af6295c81c48aab31203890181a4ab643e7c11483ac4f30ed221e29ccef3643f7593c3cdfe267f0df1a7e845de7cbe
@@ -25,8 +25,8 @@ DOCOPT
25
25
 
26
26
  begin
27
27
  args = Docopt::docopt(doc)
28
- GitTools::Branches::ActionExecutor.test_mode = args[:test]
29
- GitTools::Branches::ActionExecutor.skip_prompted = !args[:prompt]
28
+ GitTools::Branches::ActionExecutor.test_mode = args['--test']
29
+ GitTools::Branches::ActionExecutor.skip_prompted = !args['--prompt']
30
30
 
31
31
  if args['--verbose']
32
32
  $VERBOSE = true
data/git_tools.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git_tools"
6
- s.version = '0.2.0'
6
+ s.version = '0.2.1'
7
7
  s.authors = ["Birkir A. Barkarson"]
8
8
  s.email = ["birkirb@stoicviking.net"]
9
9
  s.licenses = ['MIT']
@@ -54,6 +54,7 @@ module GitTools
54
54
  end
55
55
 
56
56
  def run!
57
+ puts "Skipping prompts" if $VERBOSE && ActionExecutor.skip_prompted
57
58
  (@branches - protected_branches - [master_branch] ).each do |branch|
58
59
  branch = Branch.new(branch, remote)
59
60
  containing_branches = contained_branches(branch.normalized_name) - [branch.name]
@@ -213,6 +214,10 @@ module GitTools
213
214
  @@test_mode = (value == true)
214
215
  end
215
216
 
217
+ def self.skip_prompted
218
+ @@skip_prompted
219
+ end
220
+
216
221
  def self.skip_prompted=(value)
217
222
  @@skip_prompted = (value == true)
218
223
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Birkir A. Barkarson