buildr-as3 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/buildr-as3.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{buildr-as3}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dominic Graefen"]
@@ -61,7 +61,13 @@ module Buildr
61
61
  candidates = []
62
62
  task.project.test.compile.sources.each do |source|
63
63
  files = Dir["#{source}/**/*Test.as"] + Dir["#{source}/**/*Test.mxml"]
64
- files.each { |item| candidates << File.dirname(item).gsub!(source+"/", "").gsub!("/", ".")+"."+File.basename(item, '.*') }
64
+ files.each { |item|
65
+ if File.dirname(item) == source
66
+ candidates << File.basename(item, '.*')
67
+ else
68
+ candidates << File.dirname(item).gsub!(source+"/", "").gsub!("/", ".")+"."+File.basename(item, '.*')
69
+ end
70
+ }
65
71
  end
66
72
  candidates
67
73
  end
@@ -80,7 +86,7 @@ module Buildr
80
86
  player = "air" if [:airmxmlc, :airompc].include?(task.project.compile.compiler) || options[:player] == "air"
81
87
  player ||= "flash"
82
88
 
83
- Buildr.ant("flexunit4test") do |ant|
89
+ Buildr.ant("flexunit4") do |ant|
84
90
 
85
91
  ant.property :name => "FLEX_HOME",
86
92
  :location=>task.project.compile.options[:flexsdk].home
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildr-as3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dominic Graefen