buildr-as3 0.1.18 → 0.1.19

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/README.rdoc CHANGED
@@ -4,9 +4,17 @@
4
4
 
5
5
  = Changelog
6
6
 
7
+ == 0.1.19
8
+
9
+ * [FEATURE] compile.with now works with directories, which allows to use other as3-source-folders to be referenced in your project.
10
+
11
+ == 0.1.18
12
+
13
+ * [FIXED] Fixed a bug in as3:fdt4:generate, which would overwrite files with a symlink to itself.
14
+
7
15
  == 0.1.17
8
16
 
9
- * [FXIED] Actually no files were updated in version 0.1.16 because of a git hick-up, now the changes meant for 0.1.16 are applied in 0.1.17.
17
+ * [FIXED] Actually no files were updated in version 0.1.16 because of a git hick-up, now the changes meant for 0.1.16 are applied in 0.1.17.
10
18
 
11
19
  == 0.1.16
12
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.18
1
+ 0.1.19
data/buildr-as3.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{buildr-as3}
8
- s.version = "0.1.18"
8
+ s.version = "0.1.19"
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"]
12
- s.date = %q{2011-02-10}
12
+ s.date = %q{2011-02-20}
13
13
  s.description = %q{Build like you code - now supporting ActionScript 3 & Flex}
14
14
  s.email = %q{dominic @nospam@ devboy.org}
15
15
  s.extra_rdoc_files = [
@@ -40,12 +40,6 @@ module Buildr
40
40
  def invoke
41
41
  @url ||= get_alchemy_toolkit_url(@system)
42
42
 
43
- # if @url
44
- # Buildr.artifact(@spec).from(Buildr.download(@url)).invoke unless File.exists? @alchemy_zip.to_s
45
- # else
46
- # Buildr.artifact(@spec).invoke unless File.exists? @alchemy_zip.to_s
47
- # end
48
-
49
43
  if Buildr::Util.win_os?
50
44
  unless File.exists? @alchemy_zip.to_s
51
45
  FileUtils.mkdir_p File.dirname(@alchemy_zip.to_s) unless File.directory? File.dirname(@alchemy_zip.to_s)
@@ -75,6 +75,15 @@ module Buildr
75
75
  file_mtimes.reverse!
76
76
  file_mtimes.length > 0 ? file_mtimes.first : Time.at(0)
77
77
  end
78
+
79
+ def move_dependency_dirs_to_source( sources, dependencies )
80
+ dependencies.each do |dependency|
81
+ if File.directory? dependency
82
+ dependencies.delete dependency
83
+ sources << dependency
84
+ end
85
+ end
86
+ end
78
87
  end
79
88
 
80
89
  class Mxmlc < Buildr::Compiler::Base
@@ -95,14 +104,15 @@ module Buildr
95
104
  def compile(sources, target, dependencies)
96
105
  flex_sdk = options[:flexsdk].invoke
97
106
  output = CompilerUtils::get_output(project, target, :swf, options)
98
-
107
+ move_dependency_dirs_to_source( sources, dependencies)
99
108
  cmd_args = []
100
109
  cmd_args << "-jar" << flex_sdk.mxmlc_jar
101
110
  cmd_args << "+flexlib" << "#{flex_sdk.home}/frameworks"
102
111
  cmd_args << options[:main]
103
112
  cmd_args << "-output" << output
104
113
  cmd_args << "-load-config" << flex_sdk.flex_config
105
- cmd_args << "-source-path" << sources.join(" ")
114
+ sources.each {|source| cmd_args << "-source-path+=#{source}"}
115
+ # cmd_args << "-source-path" << sources.join(" ")
106
116
  cmd_args << "-library-path+=#{dependencies.join(",")}" unless dependencies.empty?
107
117
  options[:debug] = Buildr.options.debug.to_s
108
118
  reserved = [:flexsdk, :main, :apparat]
@@ -139,7 +149,7 @@ module Buildr
139
149
  def compile(sources, target, dependencies)
140
150
  flex_sdk = options[:flexsdk].invoke
141
151
  output = CompilerUtils::get_output(project, target, :swf, options)
142
-
152
+ move_dependency_dirs_to_source( sources, dependencies)
143
153
  cmd_args = []
144
154
  cmd_args << "-jar" << flex_sdk.mxmlc_jar
145
155
  cmd_args << "+flexlib" << "#{flex_sdk.home}/frameworks"
@@ -147,7 +157,7 @@ module Buildr
147
157
  cmd_args << options[:main]
148
158
  cmd_args << "-output" << output
149
159
  cmd_args << "-load-config" << flex_sdk.air_config
150
- cmd_args << "-source-path" << sources.join(" ")
160
+ sources.each {|source| cmd_args << "-source-path+=#{source}"}
151
161
  cmd_args << "-library-path+=#{dependencies.join(",")}" unless dependencies.empty?
152
162
  options[:debug] = Buildr.options.debug.to_s
153
163
  reserved = [:flexsdk, :main, :apparat]
@@ -182,12 +192,13 @@ module Buildr
182
192
  def compile(sources, target, dependencies)
183
193
  flex_sdk = options[:flexsdk].invoke
184
194
  output = CompilerUtils::get_output(project, target, :swc, options)
195
+ move_dependency_dirs_to_source( sources, dependencies)
185
196
  cmd_args = []
186
197
  cmd_args << "-jar" << flex_sdk.compc_jar
187
198
  cmd_args << "-output" << output
188
199
  cmd_args << "+flexlib" << "#{flex_sdk.home}/frameworks"
189
200
  cmd_args << "-load-config" << flex_sdk.flex_config
190
- cmd_args << "-include-sources" << sources.join(" ")
201
+ sources.each {|source| cmd_args << "-include-sources+=#{source}"}
191
202
  cmd_args << "-library-path+=#{dependencies.join(",")}" unless dependencies.empty?
192
203
  reserved = [:flexsdk, :main, :apparat]
193
204
  options[:debug] = Buildr.options.debug.to_s
@@ -222,13 +233,14 @@ module Buildr
222
233
  def compile(sources, target, dependencies)
223
234
  flex_sdk = options[:flexsdk].invoke
224
235
  output = CompilerUtils::get_output(project, target, :swc, options)
236
+ move_dependency_dirs_to_source( sources, dependencies)
225
237
  cmd_args = []
226
238
  cmd_args << "-jar" << flex_sdk.compc_jar
227
239
  cmd_args << "-output" << output
228
240
  cmd_args << "-load-config" << flex_sdk.air_config
229
241
  cmd_args << "+flexlib" << "#{flex_sdk.home}/frameworks"
230
242
  cmd_args << "+configname" << "air"
231
- cmd_args << "-include-sources" << sources.join(" ")
243
+ sources.each {|source| cmd_args << "-include-sources+=#{source}"}
232
244
  cmd_args << "-library-path+=#{dependencies.join(",")}" unless dependencies.empty?
233
245
  options[:debug] = Buildr.options.debug.to_s
234
246
  reserved = [:flexsdk, :main, :apparat]
@@ -93,7 +93,7 @@ module Buildr
93
93
  end
94
94
 
95
95
  def create_fdt4_dependency_symlink(project, dependency)
96
- case source
96
+ case dependency
97
97
  when Buildr::Artifact then
98
98
  path = dependency.name
99
99
  else
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: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 18
10
- version: 0.1.18
9
+ - 19
10
+ version: 0.1.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dominic Graefen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-10 00:00:00 +01:00
18
+ date: 2011-02-20 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency