gator 0.0.12.pre → 0.0.13.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.12.pre
1
+ 0.0.13.pre
data/gator.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gator}
8
- s.version = "0.0.12.pre"
8
+ s.version = "0.0.13.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"]
@@ -34,7 +34,6 @@ Gem::Specification.new do |s|
34
34
  "lib/gator/commands/generate_command.rb",
35
35
  "lib/gator/commands/project_command.rb",
36
36
  "lib/gator/config.rb",
37
- "lib/gator/generator.rb",
38
37
  "lib/gator/generators.rb",
39
38
  "lib/gator/generators/as3/ClassTemplate.as.tt",
40
39
  "lib/gator/generators/as3/class_generator.rb",
@@ -43,6 +42,7 @@ Gem::Specification.new do |s|
43
42
  "lib/gator/generators/as3/test/class_test_generator.rb",
44
43
  "lib/gator/project.rb",
45
44
  "lib/gator/runner.rb",
45
+ "lib/gator/task.rb",
46
46
  "lib/gator/util.rb",
47
47
  "spec/spec_helper.rb"
48
48
  ]
data/lib/gator.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'gator/config'
2
2
  require 'gator/project'
3
3
  require 'gator/util'
4
- require 'gator/runner'
4
+ require 'gator/task'
5
5
  require 'gator/command'
6
+ require 'gator/runner'
6
7
  require 'gator/commands'
7
- require 'gator/generator'
8
8
  require 'gator/generators'
@@ -1,9 +1,9 @@
1
1
  module Gator
2
2
  module AS3
3
- class ClassGenerator < Generator
3
+ class ClassGenerator < Task
4
4
  include Gator::Project
5
5
 
6
- register_generator Gator::AS3::GeneratorCollection, "klass", "generate as3 klass CLASS_NAME", "Creates AS3 class."
6
+ register_task Gator::AS3::GeneratorCollection, "klass", "generate as3 klass CLASS_NAME", "Creates AS3 class."
7
7
 
8
8
  argument :name
9
9
 
@@ -1,9 +1,9 @@
1
1
  module Gator
2
2
  module AS3
3
- class ClassTestGenerator < Generator
3
+ class ClassTestGenerator < Task
4
4
  include Gator::Project
5
5
 
6
- register_generator Gator::AS3::TestGeneratorCollection, "klass", "generate as3 test klass CLASS_NAME", "Creates AS3 class test."
6
+ register_task Gator::AS3::TestGeneratorCollection, "klass", "generate as3 test klass CLASS_NAME", "Creates AS3 class test."
7
7
 
8
8
  argument :name
9
9
 
data/lib/gator/runner.rb CHANGED
@@ -3,7 +3,7 @@ require 'thor/group'
3
3
  require 'thor/actions'
4
4
 
5
5
  module Gator
6
- class Runner < Thor
6
+ class Runner < Command
7
7
  include Thor::Actions
8
8
 
9
9
  def self.start
@@ -16,18 +16,5 @@ module Gator
16
16
  say "Gator --pre"
17
17
  end
18
18
 
19
- #The following lines fixes a bug in thor see: https://github.com/wycats/thor/pull/150
20
- class << self
21
- def register(klass, subcommand_name, usage, description, options={})
22
- if klass <= Thor::Group
23
- desc usage, description, options
24
- define_method(subcommand_name) { |*args| invoke klass }
25
- else
26
- desc usage, description, options
27
- subcommand subcommand_name, klass
28
- end
29
- end
30
- end
31
-
32
19
  end
33
20
  end
@@ -2,9 +2,9 @@ require "thor/group"
2
2
  require "thor/actions"
3
3
 
4
4
  module Gator
5
- class Generator < Thor::Group
5
+ class Task < Thor::Group
6
6
  include Thor::Actions
7
- def self.register_generator( target, name, usage, description, mappings=[], options={} )
7
+ def self.register_task( target, name, usage, description, mappings=[], options={} )
8
8
  target.register self, name, usage,description,options
9
9
  target.map mappings => name
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12.pre
4
+ version: 0.0.13.pre
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable: gator
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
17
- requirement: &2157657900 !ruby/object:Gem::Requirement
17
+ requirement: &2161742020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.14.6
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157657900
25
+ version_requirements: *2161742020
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &2157657320 !ruby/object:Gem::Requirement
28
+ requirement: &2161741520 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 2.3.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2157657320
36
+ version_requirements: *2161741520
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &2157656800 !ruby/object:Gem::Requirement
39
+ requirement: &2161741000 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.0.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2157656800
47
+ version_requirements: *2161741000
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: jeweler
50
- requirement: &2157656200 !ruby/object:Gem::Requirement
50
+ requirement: &2161740460 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.6.2
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2157656200
58
+ version_requirements: *2161740460
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rcov
61
- requirement: &2157655480 !ruby/object:Gem::Requirement
61
+ requirement: &2161739860 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2157655480
69
+ version_requirements: *2161739860
70
70
  description: gator - the friendly code-generator
71
71
  email: dominic.graefen@gmail.com
72
72
  executables:
@@ -91,7 +91,6 @@ files:
91
91
  - lib/gator/commands/generate_command.rb
92
92
  - lib/gator/commands/project_command.rb
93
93
  - lib/gator/config.rb
94
- - lib/gator/generator.rb
95
94
  - lib/gator/generators.rb
96
95
  - lib/gator/generators/as3/ClassTemplate.as.tt
97
96
  - lib/gator/generators/as3/class_generator.rb
@@ -100,6 +99,7 @@ files:
100
99
  - lib/gator/generators/as3/test/class_test_generator.rb
101
100
  - lib/gator/project.rb
102
101
  - lib/gator/runner.rb
102
+ - lib/gator/task.rb
103
103
  - lib/gator/util.rb
104
104
  - spec/spec_helper.rb
105
105
  has_rdoc: true
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  segments:
120
120
  - 0
121
- hash: -387151882015572738
121
+ hash: 2732303947582231571
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  none: false
124
124
  requirements: