guard-java 0.0.4 → 0.0.5
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 +8 -8
- data/LICENSE +16 -17
- data/lib/guard/java/templates/Guardfile +27 -2
- data/lib/guard/java/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTZlZDc1Nzg1OGIyNDAyYTRhYmZmMjE5NTNhOGNkN2M2NmMzMjg4Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTE4OWYxNDY4NzQ3ZGY1ZDg3ZDEzNTcwYjhmM2RkMjMwYjMxNDFlMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTdiZDg1M2JiMDhkYjFmYTJmZjFiOTQzMzdkMDZkYzM0ZjVmZTE4ZGU2Nzdj
|
10
|
+
MTAzMDdiMmM4Y2RhODcxYmU0OGRhODYzYTEyN2E4ZjEzODMyMDNhMWFjYTQ1
|
11
|
+
YmI5MWViNmY2ZDk1Y2U4YzdhNDYxNDQxNGZlMzRjNjE1MDcyMWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjIzYTliMDQ2MWEyMjU1ZjhiZjY5YmEwZjE1YTViNTRiMTBlNTYyNmZmNjg5
|
14
|
+
MDkyYWQzNDg4MWNlNGIzMDMyMjBhMTI4ZDU5Zjk3YzhiYzBmZGMzZjMxNWVj
|
15
|
+
YjA5ODY0YzY4YWQxNjY3YzhmMTQ5NzM4MGQyYTQ1MDliNDZhNTk=
|
data/LICENSE
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
Copyright (c) 2013
|
1
|
+
Copyright (c) 2013 InfoSpace LLC
|
2
2
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
the following conditions:
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
10
9
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
13
12
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
OF
|
20
|
-
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
@@ -1,9 +1,13 @@
|
|
1
|
+
require 'guard/java_translator'
|
2
|
+
|
3
|
+
### Basic java project
|
1
4
|
guard :java, :project_name => 'My Java Project',
|
2
5
|
:all_after_pass => false, # run the all_cli command if the specific test class passes (true/false)
|
3
6
|
:focused_cli => 'ant clean debug', # (required) command-line to run before running a specific test class
|
4
7
|
:all_cli => 'ant package-and-test', # (required) command-line to run that executes the "build and run all tests" concept
|
5
8
|
:classpath => './bin/classes.jar:./libs/*:/usr/share/java/junit.jar' # (required) don't forget junit and your own jars here
|
6
|
-
# :all_on_start => true
|
9
|
+
# :all_on_start => true, # run all on startup of guard
|
10
|
+
# :focused_after_compile => false, # turns off running a focused test after compiling
|
7
11
|
# test_runner_class => 'org.junit.runner.JUnitCore' # just in case you're using junit 3 or something other than 4
|
8
12
|
do
|
9
13
|
|
@@ -14,5 +18,26 @@ guard :java, :project_name => 'My Java Project',
|
|
14
18
|
::Guard::JavaTranslator.filename_to_classname(test_filename)
|
15
19
|
} # when source files change, run the test for that file
|
16
20
|
|
17
|
-
# ignore(path) will ignore files that change automatically, such as generated code
|
21
|
+
# ignore(path) will ignore files that change automatically, such as generated code files
|
18
22
|
end
|
23
|
+
|
24
|
+
|
25
|
+
### Android project
|
26
|
+
def android_sdk_dir
|
27
|
+
sdk_dir = ''
|
28
|
+
%w{project.properties local.properties}.each do |prop_file|
|
29
|
+
File.open(File.join(File.dirname(__FILE__), prop_file)).each do |line|
|
30
|
+
sdk_dir = line[8..-1] if line[0..7] == 'sdk.dir='
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
sdk_dir.strip
|
35
|
+
end
|
36
|
+
|
37
|
+
guard :java, :project_name => 'My Java Project',
|
38
|
+
:all_on_start => false,
|
39
|
+
:all_after_pass => false,
|
40
|
+
:focused_after_compile => false,
|
41
|
+
:focused_cli => 'ant guard-debug',
|
42
|
+
:all_cli => '(cd ./tests; ant clean debug && ant installt test)', # surrounding in parens launches a sub-session so the cd doesn't impact this session
|
43
|
+
:classpath => "./bin/classes.jar:./libs/*:/usr/share/java/junit.jar:#{android_sdk_dir}/platforms/android-10/*" do
|
data/lib/guard/java/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony C. Heupel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|