doubleshot 1.0.1-java → 1.0.2-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.1"
7
+ config.version = "1.0.2"
8
8
 
9
9
  config.gem "minitest", ">= 3.0.1"
10
10
  config.gem "minitest-wscolor", ">= 0"
@@ -58,7 +58,7 @@ end
58
58
  ```
59
59
 
60
60
  ##Requirements
61
- * Java 6 or later
61
+ * Java 7 or later
62
62
  * Maven
63
63
  * JRuby 1.7 or later
64
64
  * Ruby 1.9 syntax only
@@ -128,9 +128,25 @@ require "minitest/autorun"
128
128
  ...
129
129
  ```
130
130
 
131
- ##FAQ
131
+ ## FAQ
132
+
133
+ ### Does Doubleshot support Ruby 1.8.x syntax?
132
134
 
133
- ###Does Doubleshot support Ruby 1.8.x syntax?
134
135
  No.
135
136
 
137
+ ### I get an error about Aether?
138
+
139
+ If after installing Doubleshot (`gem install doubleshot`) you get the following when trying to run it:
140
+
141
+ ```bash
142
+ $ doubleshot build
143
+ Performing Doubleshot setup to resolve dependencies...
144
+ NameError: missing class or uppercase package name (`org.sam.doubleshot.Aether')
145
+ ...STACKTRACE_INFORMATION_HERE...
146
+ ```
147
+
148
+ Then there's a good change you don't have Java7 installed (the default on OSX is Java6).
149
+
150
+ Download and install the current version here: http://jdk7.java.net/download.html
151
+
136
152
  ##Happy coding!
@@ -183,6 +183,17 @@ class Doubleshot::CLI::Commands::Test < Doubleshot::CLI
183
183
  matchers << Pathname(matcher.to_s.split("/")[1..-1].join("/"))
184
184
  end
185
185
 
186
+ # If a Java source follows the package group directory structure, eg:
187
+ #
188
+ # org/substantiality
189
+ #
190
+ # Then strip the group id portion of the path in an attempt to match
191
+ # tests at the root of the tests directory.
192
+ group_path = @config.group.to_s.split(".").join("/") + "/"
193
+ if path.extname == ".java" && matcher.to_s[group_path]
194
+ matchers << matcher.sub(group_path, "")
195
+ end
196
+
186
197
  test = matchers.detect do |matcher|
187
198
  if match = Pathname::glob(@config.source.tests + matcher).first
188
199
  break match
Binary file
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: doubleshot
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: java
7
7
  authors:
8
8
  - Sam Smoot
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -145,7 +145,7 @@ files:
145
145
  - !binary |-
146
146
  UkVBRE1FLU9MRC50ZXh0aWxl
147
147
  - !binary |-
148
- UkVBRE1FLm1hcmtkb3du
148
+ UkVBRE1FLm1k
149
149
  - lib/doubleshot/cli/options.rb
150
150
  - lib/doubleshot/cli.rb
151
151
  - lib/doubleshot/commands/build.rb