merb-gen 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/merb/merb_core.rb +5 -5
- data/lib/generators/merb/merb_flat.rb +5 -5
- data/lib/generators/merb/merb_stack.rb +5 -5
- data/lib/generators/merb/merb_very_flat.rb +5 -5
- data/lib/generators/templates/application/common/dotgitignore +6 -1
- data/lib/generators/templates/application/common/merb_thor/app_script.rb +31 -0
- data/lib/generators/templates/application/common/merb_thor/common.rb +64 -0
- data/lib/generators/templates/application/common/merb_thor/gem_ext.rb +123 -0
- data/lib/generators/templates/application/common/merb_thor/main.thor +150 -0
- data/lib/generators/templates/application/common/merb_thor/ops.rb +88 -0
- data/lib/generators/templates/application/common/merb_thor/utils.rb +40 -0
- data/lib/generators/templates/application/merb_stack/spec/spec_helper.rb +5 -0
- data/lib/generators/templates/component/controller/app/controllers/%file_name%.rb +0 -2
- data/lib/generators/thor.rb +28 -0
- data/lib/merb-gen/templater.rb +40 -0
- data/lib/merb-gen.rb +2 -0
- metadata +12 -4
- data/lib/generators/templates/application/common/merb.thor +0 -2020
data/lib/merb-gen.rb
CHANGED
@@ -6,6 +6,7 @@ require 'templater'
|
|
6
6
|
|
7
7
|
path = File.join(File.dirname(__FILE__))
|
8
8
|
|
9
|
+
require path / "merb-gen" / "templater"
|
9
10
|
require path / "merb-gen" / "generator"
|
10
11
|
require path / "merb-gen" / "named_generator"
|
11
12
|
require path / "merb-gen" / "namespaced_generator"
|
@@ -24,6 +25,7 @@ require path / "generators" / "model"
|
|
24
25
|
require path / "generators" / "resource_controller"
|
25
26
|
require path / "generators" / "resource"
|
26
27
|
require path / "generators" / "layout"
|
28
|
+
require path / "generators" / "thor"
|
27
29
|
|
28
30
|
Templater::Discovery.discover!("merb-gen")
|
29
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-15 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.0.
|
23
|
+
version: 1.0.5
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: templater
|
@@ -70,7 +70,13 @@ files:
|
|
70
70
|
- lib/generators/templates/application/common/dotgitignore
|
71
71
|
- lib/generators/templates/application/common/dothtaccess
|
72
72
|
- lib/generators/templates/application/common/jquery.js
|
73
|
-
- lib/generators/templates/application/common/
|
73
|
+
- lib/generators/templates/application/common/merb_thor
|
74
|
+
- lib/generators/templates/application/common/merb_thor/app_script.rb
|
75
|
+
- lib/generators/templates/application/common/merb_thor/common.rb
|
76
|
+
- lib/generators/templates/application/common/merb_thor/gem_ext.rb
|
77
|
+
- lib/generators/templates/application/common/merb_thor/main.thor
|
78
|
+
- lib/generators/templates/application/common/merb_thor/ops.rb
|
79
|
+
- lib/generators/templates/application/common/merb_thor/utils.rb
|
74
80
|
- lib/generators/templates/application/common/Rakefile
|
75
81
|
- lib/generators/templates/application/merb_core
|
76
82
|
- lib/generators/templates/application/merb_core/app
|
@@ -282,11 +288,13 @@ files:
|
|
282
288
|
- lib/generators/templates/component/resource_controller/test
|
283
289
|
- lib/generators/templates/component/resource_controller/test/controllers
|
284
290
|
- lib/generators/templates/component/resource_controller/test/controllers/%file_name%_test.rb
|
291
|
+
- lib/generators/thor.rb
|
285
292
|
- lib/merb-gen
|
286
293
|
- lib/merb-gen/app_generator.rb
|
287
294
|
- lib/merb-gen/generator.rb
|
288
295
|
- lib/merb-gen/named_generator.rb
|
289
296
|
- lib/merb-gen/namespaced_generator.rb
|
297
|
+
- lib/merb-gen/templater.rb
|
290
298
|
- lib/merb-gen.rb
|
291
299
|
- bin/merb-gen
|
292
300
|
- spec/controller_spec.rb
|