buildr-hx 0.0.23.pre → 0.0.24.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/buildr-hx.gemspec +3 -3
- data/buildr-hx.iml +0 -29
- data/lib/buildr/hx/test/munit.rb +35 -10
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.24.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.24.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-
|
12
|
+
s.date = "2012-05-02"
|
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 = [
|
@@ -56,7 +56,7 @@ Gem::Specification.new do |s|
|
|
56
56
|
s.homepage = "http://github.com/devboy/buildr-hx"
|
57
57
|
s.licenses = ["MIT"]
|
58
58
|
s.require_paths = ["lib"]
|
59
|
-
s.rubygems_version = "1.8.
|
59
|
+
s.rubygems_version = "1.8.23"
|
60
60
|
s.summary = "Buildr extension to allow haXe development."
|
61
61
|
|
62
62
|
if s.respond_to? :specification_version then
|
data/buildr-hx.iml
CHANGED
@@ -8,35 +8,6 @@
|
|
8
8
|
</content>
|
9
9
|
<orderEntry type="jdk" jdkName="ruby-1.9.2-p290" jdkType="RUBY_SDK" />
|
10
10
|
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="atoulme-Antwrap (v0.7.1, ruby-1.9.2-p290) [gem]" level="application" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="builder (v2.1.2, ruby-1.9.2-p290) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="buildr (v1.4.6, ruby-1.9.2-p290) [gem]" level="application" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="buildr-hx (v0.0.21.pre, ruby-1.9.2-p290) [gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, ruby-1.9.2-p290) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.2, ruby-1.9.2-p290) [gem]" level="application" />
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="git (v1.2.5, ruby-1.9.2-p290) [gem]" level="application" />
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="highline (v1.5.1, ruby-1.9.2-p290) [gem]" level="application" />
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="hoe (v2.3.3, ruby-1.9.2-p290) [gem]" level="application" />
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="jeweler (v1.8.3, ruby-1.9.2-p290) [gem]" level="application" />
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="json_pure (v1.4.3, ruby-1.9.2-p290) [gem]" level="application" />
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="minitar (v0.5.3, ruby-1.9.2-p290) [gem]" level="application" />
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.2.0, ruby-1.9.2-p290) [gem]" level="application" />
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="net-sftp (v2.0.4, ruby-1.9.2-p290) [gem]" level="application" />
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.0.23, ruby-1.9.2-p290) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v0.8.7, ruby-1.9.2-p290) [gem]" level="application" />
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, ruby-1.9.2-p290) [gem]" level="application" />
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="rjb (v1.3.3, ruby-1.9.2-p290) [gem]" level="application" />
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.3.1, ruby-1.9.2-p290) [gem]" level="application" />
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="rubyforge (v2.0.3, ruby-1.9.2-p290) [gem]" level="application" />
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.4, ruby-1.9.2-p290) [gem]" level="application" />
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.6.1, ruby-1.9.2-p290) [gem]" level="application" />
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.5.3, ruby-1.9.2-p290) [gem]" level="application" />
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov-rcov (v0.2.3, ruby-1.9.2-p290) [gem]" level="application" />
|
39
|
-
<orderEntry type="library" scope="PROVIDED" name="xml-simple (v1.0.12, ruby-1.9.2-p290) [gem]" level="application" />
|
40
11
|
</component>
|
41
12
|
</module>
|
42
13
|
|
data/lib/buildr/hx/test/munit.rb
CHANGED
@@ -9,11 +9,14 @@ module Buildr
|
|
9
9
|
|
10
10
|
class MUnit < TestFramework::Haxe
|
11
11
|
|
12
|
-
DEFAULT_VERSION = "0.9.2.
|
12
|
+
DEFAULT_VERSION = "0.9.2.3"
|
13
13
|
|
14
14
|
def initialize(test_task, options)
|
15
15
|
super
|
16
|
-
@task.compile.
|
16
|
+
@task.compile.with @task.project.haxelib("munit:#{options.version||DEFAULT_VERSION}")
|
17
|
+
@task.compile.enhance [generate_munit_config]
|
18
|
+
@task.compile.from generate_test_suite
|
19
|
+
@task.project.clean.enhance [clean_files]
|
17
20
|
end
|
18
21
|
|
19
22
|
def tests(dependencies) #:nodoc:
|
@@ -41,6 +44,7 @@ module Buildr
|
|
41
44
|
cmd << " -browser #{options[:browser]}" unless options[:browser].nil?
|
42
45
|
cmd << " -keep-browser-alive" if options[:keepbrowseralive]
|
43
46
|
cmd << " -coverage" if options[:coverage]
|
47
|
+
cmd << " -nogen"
|
44
48
|
|
45
49
|
fail "Failed to run MUnit TestRunner!" unless system cmd
|
46
50
|
|
@@ -58,10 +62,22 @@ module Buildr
|
|
58
62
|
tests
|
59
63
|
end
|
60
64
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
+
private
|
66
|
+
|
67
|
+
def clean_files
|
68
|
+
Rake::Task.define_task :clean_files do
|
69
|
+
rm_rf get_munit_file
|
70
|
+
rm_rf get_test_suite_file
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def generate_files
|
75
|
+
Rake::Task.define_task :generate_files => [generate_munit_config, generate_test_suite]
|
76
|
+
end
|
77
|
+
|
78
|
+
def generate_test_suite
|
79
|
+
file get_test_suite_file => get_test_files do
|
80
|
+
puts "Generating MUnit Test Suite '#{get_test_suite_file}'"
|
65
81
|
appwd = Dir.pwd
|
66
82
|
Dir.chdir task.project.base_dir
|
67
83
|
cmd = "haxelib run munit gen"
|
@@ -70,10 +86,10 @@ module Buildr
|
|
70
86
|
end
|
71
87
|
end
|
72
88
|
|
73
|
-
def
|
74
|
-
file
|
75
|
-
|
76
|
-
|
89
|
+
def generate_munit_config
|
90
|
+
file get_munit_file => get_test_files do
|
91
|
+
puts "Generating MUnit configuration '#{get_munit_file}'"
|
92
|
+
File.open(get_munit_file, 'w') { |f| f.write(
|
77
93
|
<<-FILE
|
78
94
|
version=#{options[:version].nil? ? DEFAULT_VERSION : options[:version]}
|
79
95
|
src=#{relative_path task.project.path_to(:source, :test, :hx), @task.project.base_dir}
|
@@ -83,6 +99,15 @@ hxml=#{relative_path get_hxml_file, @task.project.base_dir}
|
|
83
99
|
classPaths=#{task.project.compile.sources.map(&:to_s).map{|s| relative_path s, @task.project.base_dir}.join(',')}
|
84
100
|
FILE
|
85
101
|
) }
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def get_test_files
|
106
|
+
Dir.glob( @task.project._(:source,:test,:hx, "**/*Test.hx") )
|
107
|
+
end
|
108
|
+
|
109
|
+
def get_test_suite_file
|
110
|
+
task.project._(:source,:test,:hx,"TestSuite.hx")
|
86
111
|
end
|
87
112
|
|
88
113
|
def get_munit_file
|
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.24.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-
|
12
|
+
date: 2012-05-02 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: -3144013810839005503
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
none: false
|
219
219
|
requirements:
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
version: 1.3.1
|
223
223
|
requirements: []
|
224
224
|
rubyforge_project:
|
225
|
-
rubygems_version: 1.8.
|
225
|
+
rubygems_version: 1.8.23
|
226
226
|
signing_key:
|
227
227
|
specification_version: 3
|
228
228
|
summary: Buildr extension to allow haXe development.
|