pendaxes 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -56,6 +56,12 @@ Throwing axe means "comment my opnion."
56
56
 
57
57
  This script throws axe to committer, about his/her uncontrolled pending tests.
58
58
 
59
+ ### See Also
60
+
61
+ 椅子を投げる (Throwing chairs) is similarly:
62
+
63
+ <http://speakerdeck.com/u/riywo/p/ops-tool-made-by-perl-beginner?slide=11>
64
+
59
65
  ## Requirements
60
66
 
61
67
  * Ruby 1.9+ (1.9.3 supported)
@@ -1,11 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
  # coding: utf-8
3
3
 
4
+ retried = false
4
5
  begin
5
6
  require 'pendaxes'
6
7
  rescue LoadError
7
8
  $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
8
- retry
9
+ if retried
10
+ raise
11
+ else
12
+ retried = true
13
+ retry
14
+ end
9
15
  end
10
16
 
11
17
  exit Pendaxes.run(*ARGV)
@@ -19,8 +19,9 @@ module Pendaxes
19
19
  def detect
20
20
  @workspace.dive do
21
21
  pattern = @config.pattern.is_a?(Array) ? @config.pattern : [@config.pattern]
22
- grep = @workspace.git(*GREP_CMD, *pattern).force_encoding("UTF-8")
23
- return [] unless grep
22
+ grep_raw = @workspace.git(*GREP_CMD, *pattern)
23
+ return [] unless grep_raw
24
+ grep = grep_raw.force_encoding("UTF-8")
24
25
  files = grep.split(/\r?\n/).map(&:chomp)
25
26
 
26
27
  files.inject([]) do |pendings, file|
@@ -1,3 +1,3 @@
1
1
  module Pendaxes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pendaxes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-27 00:00:00.000000000 Z
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashr
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: -3174069537055922012
172
+ hash: -1582125588923772707
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  none: false
175
175
  requirements:
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  segments:
180
180
  - 0
181
- hash: -3174069537055922012
181
+ hash: -1582125588923772707
182
182
  requirements: []
183
183
  rubyforge_project:
184
184
  rubygems_version: 1.8.23