gator-as3 0.0.9.pre → 0.0.10.pre

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9.pre
1
+ 0.0.10.pre
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gator-as3"
8
- s.version = "0.0.9.pre"
8
+ s.version = "0.0.10.pre"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dominic Graefen"]
@@ -67,14 +67,18 @@ class Gator
67
67
 
68
68
  def update_suite
69
69
  return unless options[:suite]
70
- invoke resolve_subcommand(["test","suite"])
70
+ suite = resolve_subcommand(["test","suite"])
71
+ say "No TestSuite generator found. Skipped.", :yellow unless suite
72
+ inkoke suite unless suite.nil?
71
73
  end
72
74
 
73
75
  class_option :runner, :default => true
74
76
 
75
77
  def update_runner
76
78
  return unless options[:runner]
77
- invoke resolve_subcommand(["test","runner"])
79
+ runner = resolve_subcommand(["test","runner"])
80
+ say "No TestRunner generator found. Skipped.", :yellow unless runner
81
+ inkoke runner unless runner.nil?
78
82
  end
79
83
 
80
84
  protected
@@ -9,7 +9,7 @@ class Gator
9
9
  :usage => "generate as3 asunit3 test runner CLASS_NAME", :description => "Creates ASUnit3 runner."
10
10
 
11
11
  def source
12
- project.path(:source, :test, :as3)
12
+ Gator::Sandbox.gator.project.path(:source, :test, :as3)
13
13
  end
14
14
 
15
15
  def template_file
@@ -9,7 +9,7 @@ class Gator
9
9
  :usage => "generate as3 asunit3 test suite CLASS_NAME", :description => "Creates ASUnit3 suite."
10
10
 
11
11
  def source
12
- project.path(:source, :test, :as3)
12
+ Gator::Sandbox.gator.project.path(:source, :test, :as3)
13
13
  end
14
14
 
15
15
  def template_file
@@ -2,27 +2,25 @@ class Gator
2
2
  module AS3
3
3
  module FlexUnit4
4
4
 
5
- class ClassTestGenerator < Gator::AS3::AS3TestFileGenerator
5
+ class ClassTestGenerator < Gator::AS3::TestGenerator
6
6
 
7
7
 
8
8
  define :command => "klass",
9
9
  :usage => "generate as3 test klass CLASS_NAME", :description => "Creates FlexUnit4 class test."
10
10
 
11
- def self.source_root
12
- File.dirname __FILE__
11
+ def template_file
12
+ "as3/test/flexunit4/klass.as.tt"
13
13
  end
14
14
 
15
15
  def generate
16
- src = project.path(:source, :test, :as3)
17
- class_name = "#{class_name()}Test"
18
- src = File.join(src, package_name.split(".").join(File::SEPARATOR)) unless package_name == ""
19
- template "klass.as.tt", File.join(src, "#{class_name}.as")
16
+ @class_name = "#{@class_name}Test"
17
+ super
20
18
  end
21
19
 
22
20
  no_tasks {
23
21
 
24
22
  def instance_name
25
- class_name.chomp("Test")
23
+ @class_name.chomp("Test")
26
24
  end
27
25
 
28
26
  }
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gator-as3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.pre
5
- prerelease: 6
4
+ version: 0.0.10.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dominic Graefen
@@ -13,7 +13,7 @@ date: 2011-10-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gator
16
- requirement: &2156239400 !ruby/object:Gem::Requirement
16
+ requirement: &2156110680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.23.pre
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156239400
24
+ version_requirements: *2156110680
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2156238180 !ruby/object:Gem::Requirement
27
+ requirement: &2156108360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.3.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156238180
35
+ version_requirements: *2156108360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ci_reporter
38
- requirement: &2156236740 !ruby/object:Gem::Requirement
38
+ requirement: &2156105900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.5
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2156236740
46
+ version_requirements: *2156105900
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &2156235580 !ruby/object:Gem::Requirement
49
+ requirement: &2156103440 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2156235580
57
+ version_requirements: *2156103440
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &2156234180 !ruby/object:Gem::Requirement
60
+ requirement: &2156101700 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.6.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2156234180
68
+ version_requirements: *2156101700
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: &2156232820 !ruby/object:Gem::Requirement
71
+ requirement: &2156100000 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2156232820
79
+ version_requirements: *2156100000
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov-rcov
82
- requirement: &2156231780 !ruby/object:Gem::Requirement
82
+ requirement: &2156098620 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2156231780
90
+ version_requirements: *2156098620
91
91
  description: gator-as3 - ActionScript3 & MXML generators for gator
92
92
  email: dominic.graefen@gmail.com
93
93
  executables: []
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  segments:
178
178
  - 0
179
- hash: 1566251559687607998
179
+ hash: 1240448868084008832
180
180
  required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  none: false
182
182
  requirements: