doubleshot 1.0.2-java → 1.0.3-java

Sign up to get free protection for your applications and to get access to all the features.
data/Doubleshot CHANGED
@@ -4,7 +4,7 @@ Doubleshot.new do |config|
4
4
 
5
5
  config.project = "doubleshot"
6
6
  config.group = "org.sam.doubleshot"
7
- config.version = "1.0.2"
7
+ config.version = "1.0.3"
8
8
 
9
9
  config.gem "minitest", ">= 3.0.1"
10
10
  config.gem "minitest-wscolor", ">= 0"
@@ -137,7 +137,7 @@ class Doubleshot::CLI::Commands::Test < Doubleshot::CLI
137
137
  modified.each do |location|
138
138
  path = Pathname(location)
139
139
 
140
- next unless path.extname == ".rb" or path.extname == ".java"
140
+ next unless !path.hidden? || path.extname == ".rb" || path.extname == ".java"
141
141
 
142
142
  test = nil
143
143
 
data/lib/ruby/pathname.rb CHANGED
@@ -12,4 +12,15 @@ class Pathname
12
12
  def to_url
13
13
  java.io.File.new(to_s).to_url.to_s
14
14
  end
15
- end
15
+
16
+ def hidden?
17
+ path = expand_path
18
+
19
+ until path.root?
20
+ return true if path.basename.to_s.start_with? "."
21
+ path = path.parent
22
+ end
23
+
24
+ false
25
+ end
26
+ end
Binary file
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: doubleshot
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: java
7
7
  authors:
8
8
  - Sam Smoot