cbt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ require 'rspec'
2
+ require 'cbt'
3
+
4
+ RSpec.configure do |config|
5
+ config.color_enabled = true
6
+ config.formatter = 'documentation'
7
+ end
8
+
@@ -0,0 +1,18 @@
1
+ -----------------------------------------------
2
+ -- class: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ local <%= name %> = {}
7
+ local <%= name %>MT = {__index = <%= name %>}
8
+
9
+ function <%= name %>.new(opt)
10
+ local <%= name %>Instance = opt or {}
11
+ assert(type(<%= name %>Instance) == 'table', 'the parameter passed to new() must be a table.')
12
+ setmetatable(<%= name %>Instance, <%= name %>MT)
13
+
14
+ return <%= name %>Instance
15
+ end
16
+
17
+ return <%= name %>
18
+
@@ -0,0 +1,20 @@
1
+ -----------------------------------------------
2
+ -- mock class: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ local <%= name %> = {}
7
+ local <%= name %>MT = {__index = <%= name %>}
8
+
9
+ function <%= name %>.new(opt)
10
+ local <%= name %>Instance = opt or {}
11
+ <%= name %>Instance.is_mock = true
12
+
13
+ assert(type(<%= name %>Instance) == 'table', 'the parameter passed to new() must be a table.')
14
+ setmetatable(<%= name %>Instance, <%= name %>MT)
15
+
16
+ return <%= name %>Instance
17
+ end
18
+
19
+ return <%= name %>
20
+
@@ -0,0 +1,22 @@
1
+ -----------------------------------------------
2
+ -- class: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ local <%= super_class %> = require '<%= super_class %>'
7
+ local <%= name %> = {}
8
+ local <%= name %>MT = {__index = <%= name %>}
9
+
10
+ -- erd_inherit: <%= super_class %>
11
+ setmetatable(<%= name %>, {__index = <%= super_class %>})
12
+
13
+ function <%= name %>.new(opt)
14
+ local <%= name %>Instance = opt or {}
15
+ assert(type(<%= name %>Instance) == 'table', 'the parameter passed to new() must be a table.')
16
+ setmetatable(<%= name %>Instance, <%= name %>MT)
17
+
18
+ return <%= name %>Instance
19
+ end
20
+
21
+ return <%= name %>
22
+
@@ -0,0 +1,23 @@
1
+ -----------------------------------------------
2
+ -- Mock class: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ local <%= super_class %> = require '<%= super_class %>'
7
+ local <%= name %> = {}
8
+ local <%= name %>MT = {__index = <%= name %>}
9
+
10
+ -- erd_inherit: <%= super_class %>
11
+ setmetatable(<%= name %>, {__index = <%= super_class %>})
12
+
13
+ function <%= name %>.new(opt)
14
+ local <%= name %>Instance = opt or {}
15
+ <%= name %>Instance.is_mock = true
16
+ assert(type(<%= name %>Instance) == 'table', 'the parameter passed to new() must be a table.')
17
+ setmetatable(<%= name %>Instance, <%= name %>MT)
18
+
19
+ return <%= name %>Instance
20
+ end
21
+
22
+ return <%= name %>
23
+
@@ -0,0 +1,2 @@
1
+ -- Mock test runner for <%= label %>
2
+
@@ -0,0 +1,9 @@
1
+ -----------------------------------------------
2
+ -- component: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ local <%= name %> = {}
7
+
8
+
9
+ return <%= name %>
@@ -0,0 +1,11 @@
1
+ -----------------------------------------------
2
+ -- Mock component: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ local <%= name %> = {}
7
+ <%= name %>.is_mock = true
8
+
9
+
10
+ return <%= name %>
11
+
@@ -0,0 +1,13 @@
1
+ -----------------------------------------------
2
+ -- component: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ -- erd_inherit: <%= super_class %>
7
+ local <%= super_class %> = require '<%= super_class %>'
8
+ local <%= name %> = <%= super_class %>.new
9
+ <%= name %>.name = "<%= name %>"
10
+
11
+
12
+ return <%= name %>
13
+
@@ -0,0 +1,13 @@
1
+ -----------------------------------------------
2
+ -- Mock component: <%= name %> <%= label %>
3
+ -----------------------------------------------
4
+ -- created at: <%= DateTime.now.strftime("%F %T") %>
5
+
6
+ -- erd_inherit: <%= super_class %>
7
+ local <%= super_class %> = require '<%= super_class %>'
8
+ local <%= name %> = <%= super_class %>.new
9
+ <%= name %>.name = "<%= name %>"
10
+ <%= name %>.is_mock = true
11
+
12
+ return <%= name %>
13
+
@@ -0,0 +1,3 @@
1
+ -- Spec runner for <%= name %> (<%= label %>)
2
+
3
+ local ts = require "spec_runner"
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cbt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Huang Wei
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '2.5'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.5'
30
+ - !ruby/object:Gem::Dependency
31
+ name: erubis
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rviz
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: Cbt is a bundle of tools for build and test corona based applications.
63
+ email: huangw@pe-po.com
64
+ executables:
65
+ - cbt
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - README.md
70
+ - ROADMAP
71
+ - Rakefile
72
+ - bin/cbt
73
+ - cbt.gemspec
74
+ - config/components.yml
75
+ - config/members.yml
76
+ - docs/css/jsgantt.css
77
+ - docs/gantt.html
78
+ - docs/js/jsgantt.js
79
+ - examples/config/components.yml
80
+ - lib/cbt.rb
81
+ - lib/cbt/app.rb
82
+ - lib/cbt/checkout.rb
83
+ - lib/cbt/cleanup.rb
84
+ - lib/cbt/component.rb
85
+ - lib/cbt/creator.rb
86
+ - lib/cbt/diagram.rb
87
+ - lib/cbt/digester.rb
88
+ - lib/cbt/girc.rb
89
+ - lib/cbt/version.rb
90
+ - lib/luobo/cbt.rb
91
+ - lib/luobo/lua.rb
92
+ - lib/luobo/settings.rb
93
+ - lib/luobo/spec.rb
94
+ - spec/app_spec.rb
95
+ - spec/creator_spec.rb
96
+ - spec/digester_spec.rb
97
+ - spec/spec_helper.rb
98
+ - templates/Class.lua.erb
99
+ - templates/Class.mock.lua.erb
100
+ - templates/Class_with_super.lua.erb
101
+ - templates/Class_with_super.mock.lua.erb
102
+ - templates/main.lua.erb
103
+ - templates/part.lua.erb
104
+ - templates/part.mock.lua.erb
105
+ - templates/part_with_super.lua.erb
106
+ - templates/part_with_super.mock.lua.erb
107
+ - templates/spec.lua.erb
108
+ homepage: https://github.com/huangw/cbt-gem
109
+ licenses: []
110
+ post_install_message:
111
+ rdoc_options:
112
+ - --line-numbers
113
+ - --inline-source
114
+ - --title
115
+ - Cbt
116
+ - --main
117
+ - README.rdoc
118
+ - --encoding=UTF-8
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 1.8.25
136
+ signing_key:
137
+ specification_version: 3
138
+ summary: Cbt is a bundle of tools for build and test corona based applications.
139
+ test_files:
140
+ - spec/app_spec.rb
141
+ - spec/creator_spec.rb
142
+ - spec/digester_spec.rb
143
+ - spec/spec_helper.rb