buildr-as3 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
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.1.5"
8
+ s.version = "0.1.6"
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"]
@@ -221,7 +221,7 @@ public class Build
221
221
  end
222
222
  include NeededTools
223
223
  def needed?(sources, target, dependencies)
224
- output = (options[:output] || "#{target}/#{project.to_s}.swc")
224
+ output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
225
225
  sources.each do |source|
226
226
  return true if is_output_outdated?(output,source)
227
227
  end
@@ -235,7 +235,7 @@ public class Build
235
235
  def compile(sources, target, dependencies)
236
236
  # write_build_info_class sources[0], project
237
237
  flex_sdk = options[:flexsdk]
238
- output = (options[:output] || "#{target}/#{project.to_s}.swc")
238
+ output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
239
239
  cmd_args = []
240
240
  cmd_args << "-jar" << flex_sdk.compc_jar
241
241
  cmd_args << "-output" << output
@@ -269,7 +269,7 @@ public class Build
269
269
  end
270
270
  include NeededTools
271
271
  def needed?(sources, target, dependencies)
272
- output = (options[:output] || "#{target}/#{project.to_s}.swc")
272
+ output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
273
273
  sources.each do |source|
274
274
  if is_output_outdated?(output, source)
275
275
  puts "Recompile needed: Sources are newer than target"
@@ -350,7 +350,7 @@ public class Build
350
350
  def compile(sources, target, dependencies)
351
351
  alchemy_tk = options[:alchemytk]
352
352
  flex_sdk = alchemy_tk.flex_sdk
353
- output = (options[:output] || "#{target}/#{project.to_s}.swc")
353
+ output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
354
354
 
355
355
  # gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
356
356
  cmd_args = []
@@ -375,7 +375,6 @@ public class Build
375
375
  ENV["PATH"] = "#{ENV["PATH"]}:#{flex_sdk.bin}"
376
376
  project_dir = Dir.getwd
377
377
  Dir.chdir File.dirname options[:main]
378
- puts "working-dir: ", Dir.getwd
379
378
  system(cmd_args.join(" "))
380
379
  File.copy( File.basename(output), output)
381
380
  Dir.chdir project_dir
@@ -81,7 +81,7 @@ module Buildr
81
81
  protected
82
82
  def package_as_swc(file_name)
83
83
  SwcTask.define_task(file_name).tap do |swc|
84
- swc.src_swc = (compile.options[:output] || "#{compile.target}/#{project.to_s}.swc")
84
+ swc.src_swc = (compile.options[:output] || "#{compile.target}/#{project.name.gsub(":", "-")}.swc")
85
85
  swc.target_swc = file_name
86
86
  end
87
87
  end
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dominic Graefen