doubleshot 1.0.1-java → 1.0.2-java
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.
- data/Doubleshot +1 -1
- data/{README.markdown → README.md} +19 -3
- data/lib/doubleshot/commands/test.rb +11 -0
- data/target/doubleshot.jar +0 -0
- metadata +3 -3
data/Doubleshot
CHANGED
@@ -58,7 +58,7 @@ end
|
|
58
58
|
```
|
59
59
|
|
60
60
|
##Requirements
|
61
|
-
* Java
|
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
|
data/target/doubleshot.jar
CHANGED
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.
|
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-
|
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
|
-
|
148
|
+
UkVBRE1FLm1k
|
149
149
|
- lib/doubleshot/cli/options.rb
|
150
150
|
- lib/doubleshot/cli.rb
|
151
151
|
- lib/doubleshot/commands/build.rb
|