buildr-hx 0.0.26.pre → 0.0.27.pre
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/VERSION +1 -1
- data/buildr-hx.gemspec +2 -2
- data/lib/buildr/hx/test/munit.rb +14 -10
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.27.pre
|
data/buildr-hx.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "buildr-hx"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.27.pre"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dominic Graefen"]
|
12
|
-
s.date = "2012-06-
|
12
|
+
s.date = "2012-06-03"
|
13
13
|
s.description = "Build like you code - now supporting haXe"
|
14
14
|
s.email = "dominic @nospam@ devboy.org"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/buildr/hx/test/munit.rb
CHANGED
@@ -89,17 +89,21 @@ module Buildr
|
|
89
89
|
def generate_munit_config
|
90
90
|
file get_munit_file => get_test_files do
|
91
91
|
puts "Generating MUnit configuration '#{get_munit_file}'"
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
92
|
+
file_contents = <<-FILE
|
93
|
+
version=#{options[:version].nil? ? DEFAULT_VERSION : options[:version]}
|
94
|
+
src=#{relative_path task.project.path_to(:source, :test, :hx), @task.project.base_dir}
|
95
|
+
bin=#{relative_path task.project.test.compile.target.to_s, @task.project.base_dir}
|
96
|
+
report=#{relative_path task.project.path_to(:reports, :munit).to_s, @task.project.base_dir}
|
97
|
+
hxml=#{relative_path get_hxml_file, @task.project.base_dir}
|
98
|
+
classPaths=#{task.project.compile.sources.map(&:to_s).map{|s| relative_path s, @task.project.base_dir}.join(',')}
|
99
|
+
FILE
|
100
|
+
test_resources = task.project.path_to(:source, :test, :resources)
|
101
|
+
if File.exists? test_resources and File.directory? test_resources
|
102
|
+
file_contents << <<-FILE
|
103
|
+
resources=#{relative_path test_resources, @task.project.base_dir}
|
101
104
|
FILE
|
102
|
-
|
105
|
+
end
|
106
|
+
File.open(get_munit_file, 'w') { |f| f.write( file_contents ) }
|
103
107
|
end
|
104
108
|
end
|
105
109
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr-hx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27.pre
|
5
5
|
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: buildr
|
@@ -213,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
213
|
version: '0'
|
214
214
|
segments:
|
215
215
|
- 0
|
216
|
-
hash:
|
216
|
+
hash: -2827858626304924694
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
none: false
|
219
219
|
requirements:
|