lib/flexunit.rb in flexunit-0.0.6.pre vs lib/flexunit.rb in flexunit-0.0.7.pre

- old
+ new

@@ -1,37 +1,34 @@ require 'flashsdk' -module FlexUnit - NAME = 'flexunit' - VERSION = '0.0.6.pre' -end - require 'flexunit4/generators/air_project_generator' require 'flexunit4/generators/flex_project_generator' require 'flexunit4/generators/project_generator' require 'flexunit4/generators/runner_generator' require 'flexunit4/generators/suite_class_generator' require 'flexunit4/generators/test_class_generator' +require 'flexunit4/module' Sprout::Specification.new do |s| s.name = FlexUnit::NAME s.version = FlexUnit::VERSION s.add_remote_file_target do |t| t.platform = :universal t.archive_type = :zip - t.url = "http://flexunit.org/releases/flexunit-4.1.0-8-4.1.0.16076.zip" - t.md5 = "11b355d269be39c03e24aa1143ef4c1c" + t.url = FlexUnit::ZIP + t.md5 = FlexUnit::MD5 - # Picks the full contents of the zip up and moves it to the lib... + # Picks the full contents of the zip up and moves it to the lib... causes + # further problems as FlexUnit docs etc are in there. # t.add_library :swc, ['flexunit/'] - # Only moves the first ?? + # According to sprout doc's and examples this level of granularity should work. t.add_library :flexunit_as3, "flexunit/flexunit-4.1.0-8-as3_4.1.0.16076.swc" t.add_library :flexunit_flex, "flexunit/flexunit-4.1.0-8-flex_4.1.0.16076.swc" t.add_library :flexunit_aircilistener, "flexunit/flexunit-aircilistener-4.1.0-8-4.1.0.16076.swc" t.add_library :flexunit_cilistener, "flexunit/flexunit-cilistener-4.1.0-8-4.1.0.16076.swc" t.add_library :flexunit_flexcoverlistener, "flexunit/flexunit-flexcoverlistener-4.1.0-8-4.1.0.16076.swc" t.add_library :flexunit_uilistener, "flexunit/flexunit-uilistener-4.1.0-8-4.1.0.16076.swc" t.add_library :flexunit_extensions, "flexunit/fluint-extensions-4.1.0-8-4.1.0.16076.swc" end -end +end \ No newline at end of file