guard-java 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWI5ZGIxNDBkOThlN2RiMjk5MTZiZTMzZmUxNjg5YzZjMjM0ODFlMQ==
4
+ YTZlZDc1Nzg1OGIyNDAyYTRhYmZmMjE5NTNhOGNkN2M2NmMzMjg4Nw==
5
5
  data.tar.gz: !binary |-
6
- NTAxM2JmMjcyM2I5NTRiNzM1M2YwOWQ4NmI3MDIzYmVmMTM1ZWM2YQ==
6
+ MTE4OWYxNDY4NzQ3ZGY1ZDg3ZDEzNTcwYjhmM2RkMjMwYjMxNDFlMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTg5ODBiMWYxMzFjMzg5MTY1MWQ4NDYwMjZkMjliZDAzNzYwZDE3NTY2ZWVm
10
- MmMxZTJmMDg4Y2U0NTMwN2E3YTcwMWIyYjZkYWE3OWNjYjMyNWNjMTFiM2Qx
11
- ZDdmZWM4NjkwZGQwMDliNTc2NWY3Yjk5M2RiYzFmNDI3MmMxNzc=
9
+ ZTdiZDg1M2JiMDhkYjFmYTJmZjFiOTQzMzdkMDZkYzM0ZjVmZTE4ZGU2Nzdj
10
+ MTAzMDdiMmM4Y2RhODcxYmU0OGRhODYzYTEyN2E4ZjEzODMyMDNhMWFjYTQ1
11
+ YmI5MWViNmY2ZDk1Y2U4YzdhNDYxNDQxNGZlMzRjNjE1MDcyMWY=
12
12
  data.tar.gz: !binary |-
13
- M2IwNWRkZWY4ZGU4MDgyNWZiZWRkMjBhMDc2MDllMWE5ZTY0NTFlY2U5MjA1
14
- MjkwM2M4ZDVhMzI5OWE5ODAxYjE3N2M4NDI2NGUyM2M0NjNmNGQ3NDE3M2E2
15
- MzhiOTg4OTNiZWZmZDVmMDA3Njc4ZmU1NzQ0MDVjMzlmODBjYmI=
13
+ NjIzYTliMDQ2MWEyMjU1ZjhiZjY5YmEwZjE1YTViNTRiMTBlNTYyNmZmNjg5
14
+ MDkyYWQzNDg4MWNlNGIzMDMyMjBhMTI4ZDU5Zjk3YzhiYzBmZGMzZjMxNWVj
15
+ YjA5ODY0YzY4YWQxNjY3YzhmMTQ5NzM4MGQyYTQ1MDliNDZhNTk=
data/LICENSE CHANGED
@@ -1,20 +1,19 @@
1
- Copyright (c) 2013 Tony Heupel
1
+ Copyright (c) 2013 InfoSpace LLC
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
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
- included in all copies or substantial portions of the Software.
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
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 # run all on startup of guard
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 filesjt
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
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module JavaVersion
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
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
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-05-09 00:00:00.000000000 Z
11
+ date: 2013-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard