flexunit 0.0.3.pre → 0.0.4.pre

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/Gemfile.lock CHANGED
@@ -1,25 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- archive-tar-minitar (0.5.2)
5
- flashsdk (1.0.26.pre)
6
- sprout (>= 1.1.11.pre)
7
- mocha (0.9.12)
8
- open4 (1.0.1)
9
- rake (0.8.7)
10
- rubyzip (0.9.4)
11
- shoulda (2.11.3)
12
- sprout (1.1.11.pre)
13
- archive-tar-minitar (= 0.5.2)
14
- bundler (>= 0.9.19)
15
- open4 (>= 0.9.6)
16
- rake (>= 0.8.7)
17
- rubyzip (= 0.9.4)
18
-
19
- PLATFORMS
20
- ruby
21
-
22
- DEPENDENCIES
23
- flashsdk (>= 1.0.2.pre)
24
- mocha
25
- shoulda
data/POSTINSTALL.rdoc CHANGED
@@ -23,3 +23,4 @@ Example usage:
23
23
  # or:
24
24
  fu-
25
25
  (followed by the TAB key)
26
+
data/README.md CHANGED
@@ -26,7 +26,7 @@ Generate a project with
26
26
 
27
27
  Or edit your Gemfile to include
28
28
 
29
- gem "flexunit", ">= 0.0.3.pre"
29
+ gem "flexunit", ">= 0.0.4.pre"
30
30
 
31
31
  This will mean that when you generate a class using:
32
32
 
@@ -50,8 +50,8 @@ needed:
50
50
 
51
51
  ## Credit
52
52
 
53
- To Luke Bayes and Kristopher Joseph as similarity to the FlashSDK and Robotlegs
54
- srpout gems are not purely coincidental.
53
+ To [Luke Bayes](http://github.com/lukebayes/) and [Kristopher Joseph](http://github.com/kristoferjoseph/) as similarity to the [FlashSDK](https://github.com/lukebayes/sprout-flashsdk) and [Robotlegs](http://github.com/kristoferjoseph/sprout-robotlegs)
54
+ sprout gems are not purely coincidental.
55
55
 
56
56
  ## MIT License
57
57
 
Binary file
data/flexunit.gemspec CHANGED
@@ -1,7 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $:.unshift lib unless $:.include?( lib )
2
4
 
3
- require File.join(File.dirname(__FILE__), 'lib', 'flexunit')
4
- require 'rake'
5
+ require 'bundler'
6
+ require 'flexunit'
5
7
 
6
8
  Gem::Specification.new do |s|
7
9
  s.name = FlexUnit::NAME
@@ -9,14 +11,15 @@ Gem::Specification.new do |s|
9
11
  s.platform = Gem::Platform::RUBY
10
12
  s.authors = ["Simon Gregory"]
11
13
  s.email = ["projectsprouts@googlegroups.com"]
12
- s.homepage = "http://projectsprouts.org"
14
+ s.homepage = "http://flexunit.org"
13
15
  s.summary = "FlexUnit is a unit testing framework for Flex and ActionScript 3.0 applications and libraries."
14
- s.description = "FlexUnit 4 is meta-data driven allowing you to have extreme freedom and ease when creating tests."
16
+ s.description = "Project Sprouts support for the FlexUnit unit testing framework."
15
17
  s.executables = ["fu-flex", "fu-as3", "fu-runner"]
16
18
  s.post_install_message = File.read 'POSTINSTALL.rdoc'
17
19
  s.rubyforge_project = "flexunit"
18
20
  s.required_rubygems_version = ">= 1.3.7"
19
- s.require_path = "lib"
20
21
  s.files = FileList["**/*"].exclude /docs|.DS_Store|generated|.svn|.git|airglobal.swc|airframework.swc/
22
+ s.require_path << 'lib'
23
+ s.add_bundler_dependencies
21
24
  end
22
25
 
data/lib/flexunit.rb CHANGED
@@ -4,7 +4,7 @@ $:.unshift File.dirname(__FILE__)
4
4
 
5
5
  module FlexUnit
6
6
  NAME = 'flexunit'
7
- VERSION = '0.0.3.pre'
7
+ VERSION = '0.0.4.pre'
8
8
  end
9
9
 
10
10
  require 'flexunit4/generators/flex_project_generator'
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <mx:WindowedApplication
3
+ xmlns:mx="http://www.adobe.com/2006/mxml"
4
+ creationComplete="creationCompleteHandler()"
5
+ x="0" y="0">
6
+
7
+ <mx:Script>
8
+ <![CDATA[
9
+ import org.flexunit.internals.TraceListener;
10
+ import org.flexunit.listeners.AirCIListener;
11
+ import org.flexunit.runner.FlexUnitCore;
12
+
13
+ private var _core:FlexUnitCore;
14
+
15
+ protected function creationCompleteHandler():void
16
+ {
17
+ _core = new FlexUnitCore();
18
+
19
+ _core.addListener(new TraceListener());
20
+ _core.addListener(new AirCIListener());
21
+ _core.run(AllTests);
22
+ }
23
+ ]]>
24
+ </mx:Script>
25
+
26
+ </mx:WindowedApplication>
@@ -1,28 +1,26 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <mx:WindowedApplication
3
- xmlns:mx="http://www.adobe.com/2006/mxml"
4
- creationComplete="creationCompleteHandler()"
5
- x="0" y="0">
2
+ <mx:Application
3
+ xmlns:mx="http://www.adobe.com/2006/mxml"
4
+ xmlns:fu="http://www.adobe.com/2009/flexUnitUIRunner"
5
+ creationComplete="run()">
6
6
 
7
- <mx:Script>
7
+ <mx:Script>
8
8
  <![CDATA[
9
- import AllTests;
10
-
11
- import org.flexunit.internals.TraceListener;
12
- //import org.flexunit.listeners.AirCIListener;
9
+ import org.flexunit.listeners.UIListener;
13
10
  import org.flexunit.runner.FlexUnitCore;
14
11
 
15
- private var _core:FlexUnitCore;
16
-
17
- protected function creationCompleteHandler():void
18
- {
19
- _core = new FlexUnitCore();
12
+ private var core:FlexUnitCore;
20
13
 
21
- _core.addListener(new TraceListener());
22
- //_core.addListener(new AirCIListener());
23
- _core.run(AllTests);
14
+ public function run():void
15
+ {
16
+ core = new FlexUnitCore();
17
+ core.addListener(uiListener);
18
+ core.run(AllTests);
24
19
  }
20
+
25
21
  ]]>
26
- </mx:Script>
22
+ </mx:Script>
23
+
24
+ <fu:TestRunnerBase id="uiListener" width="100%" height="100%" />
27
25
 
28
- </mx:WindowedApplication>
26
+ </mx:Application>
@@ -1,4 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "flashsdk", ">= 1.0.0.pre"
4
- gem "flexunit", ">= 0.0.3.pre"
4
+ gem "flexunit", ">= 0.0.4.pre"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexunit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.pre
4
+ version: 0.0.4.pre
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,43 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-10 00:00:00.000000000 +01:00
12
+ date: 2011-05-11 00:00:00.000000000 +01:00
13
13
  default_executable:
14
- dependencies: []
15
- description: FlexUnit 4 is meta-data driven allowing you to have extreme freedom and
16
- ease when creating tests.
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: flashsdk
17
+ requirement: &2151890700 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.2.pre
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2151890700
26
+ - !ruby/object:Gem::Dependency
27
+ name: shoulda
28
+ requirement: &2151888200 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *2151888200
37
+ - !ruby/object:Gem::Dependency
38
+ name: mocha
39
+ requirement: &2151885400 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *2151885400
48
+ description: Project Sprouts support for the FlexUnit unit testing framework.
17
49
  email:
18
50
  - projectsprouts@googlegroups.com
19
51
  executables:
@@ -26,6 +58,8 @@ files:
26
58
  - bin/fu-as3
27
59
  - bin/fu-flex
28
60
  - bin/fu-runner
61
+ - flexunit-0.0.3.pre.gem
62
+ - flexunit-0.0.4.pre.gem
29
63
  - flexunit.gemspec
30
64
  - Gemfile
31
65
  - Gemfile.lock
@@ -37,6 +71,7 @@ files:
37
71
  - lib/flexunit4/generators/templates/ActionScript3Class.as
38
72
  - lib/flexunit4/generators/templates/ActionScript3MainClass.as
39
73
  - lib/flexunit4/generators/templates/ActionScript3RunnerClass.as
74
+ - lib/flexunit4/generators/templates/AIRRunner.mxml
40
75
  - lib/flexunit4/generators/templates/Flex4Application.mxml
41
76
  - lib/flexunit4/generators/templates/Flex4Main.css
42
77
  - lib/flexunit4/generators/templates/Flex4Rakefile.rb
@@ -53,7 +88,7 @@ files:
53
88
  - test/unit/test_helper.rb
54
89
  - test/unit/test_project_generator_test.rb
55
90
  has_rdoc: true
56
- homepage: http://projectsprouts.org
91
+ homepage: http://flexunit.org
57
92
  licenses: []
58
93
  post_install_message: ! "++++++++++++++++++++++++++++++++\nYou have successfully installed
59
94
  Project Sprouts support for FlexUnit!\n\nExample usage:\n\n # Generate a ActionScript
@@ -62,10 +97,10 @@ post_install_message: ! "++++++++++++++++++++++++++++++++\nYou have successfully
62
97
  test case and test suite:\n sprout-class utils.MathUtil\n\n # Compile and run
63
98
  the test harness:\n rake test\n\n # List available rake tasks:\n rake -T\n\n
64
99
  \ # List available generators:\n sprout-\n # or:\n fu-\n (followed by the TAB
65
- key)\n"
100
+ key)\n\n"
66
101
  rdoc_options: []
67
102
  require_paths:
68
- - lib
103
+ - liblib
69
104
  required_ruby_version: !ruby/object:Gem::Requirement
70
105
  none: false
71
106
  requirements: