my_generators 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/lib/generators/my_generators/controller/controller_generator.rb +18 -0
- data/lib/generators/my_generators/controller/templates/view.html.haml +2 -0
- data/lib/generators/my_generators/model/model_generator.rb +28 -0
- data/lib/generators/my_generators/model/templates/model.rb +26 -0
- data/lib/generators/my_generators/scaffold/scaffold_generator.rb +49 -0
- data/lib/generators/my_generators/scaffold/templates/_form.html.haml +15 -0
- data/lib/generators/my_generators/scaffold/templates/edit.html.haml +7 -0
- data/lib/generators/my_generators/scaffold/templates/index.html.haml +23 -0
- data/lib/generators/my_generators/scaffold/templates/new.html.haml +5 -0
- data/lib/generators/my_generators/scaffold/templates/show.html.haml +11 -0
- data/lib/generators/my_scaffold_generator.rb +161 -0
- data/lib/generators/my_spec/controller/controller_generator.rb +33 -0
- data/lib/generators/my_spec/controller/templates/controller_spec.rb +14 -0
- data/lib/generators/my_spec/controller/templates/view_spec.rb +5 -0
- data/lib/generators/my_spec/helper/helper_generator.rb +20 -0
- data/lib/generators/my_spec/helper/templates/helper_spec.rb +15 -0
- data/lib/generators/my_spec/integration/integration_generator.rb +20 -0
- data/lib/generators/my_spec/integration/templates/request_spec.rb +14 -0
- data/lib/generators/my_spec/model/model_generator.rb +33 -0
- data/lib/generators/my_spec/model/templates/fixtures.yml +19 -0
- data/lib/generators/my_spec/model/templates/model_spec.rb +20 -0
- data/lib/generators/my_spec/model/templates/mongoid.rb +4 -0
- data/lib/generators/my_spec/observer/observer_generator.rb +16 -0
- data/lib/generators/my_spec/observer/templates/observer_spec.rb +5 -0
- data/lib/generators/my_spec/scaffold/scaffold_generator.rb +93 -0
- data/lib/generators/my_spec/scaffold/templates/controller_spec.rb +140 -0
- data/lib/generators/my_spec/scaffold/templates/edit_spec.rb +38 -0
- data/lib/generators/my_spec/scaffold/templates/index_spec.rb +37 -0
- data/lib/generators/my_spec/scaffold/templates/inherited_resources_stubs.rb +28 -0
- data/lib/generators/my_spec/scaffold/templates/new_spec.rb +37 -0
- data/lib/generators/my_spec/scaffold/templates/routing_spec.rb +37 -0
- data/lib/generators/my_spec/scaffold/templates/show_spec.rb +33 -0
- data/lib/generators/my_spec/view/templates/view_spec.rb +5 -0
- data/lib/generators/my_spec/view/view_generator.rb +24 -0
- data/lib/generators/rails/USAGE +10 -0
- data/lib/generators/rails/my_controller_generator.rb +33 -0
- data/lib/generators/rails/templates/controller.rb +13 -0
- data/lib/my_generators.rb +16 -0
- data/my_generators.gemspec +88 -0
- data/test/helper.rb +10 -0
- data/test/test_my_generators.rb +7 -0
- metadata +112 -0
@@ -0,0 +1,88 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{my_generators}
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Tyler Gannon"]
|
12
|
+
s.date = %q{2010-11-24}
|
13
|
+
s.description = %q{Just a replacement for default rails generators, specifig to my configuration of mongoid, inherited_resources, etc.}
|
14
|
+
s.email = %q{tgannon@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/generators/my_generators/controller/controller_generator.rb",
|
27
|
+
"lib/generators/my_generators/controller/templates/view.html.haml",
|
28
|
+
"lib/generators/my_generators/model/model_generator.rb",
|
29
|
+
"lib/generators/my_generators/model/templates/model.rb",
|
30
|
+
"lib/generators/my_generators/scaffold/scaffold_generator.rb",
|
31
|
+
"lib/generators/my_generators/scaffold/templates/_form.html.haml",
|
32
|
+
"lib/generators/my_generators/scaffold/templates/edit.html.haml",
|
33
|
+
"lib/generators/my_generators/scaffold/templates/index.html.haml",
|
34
|
+
"lib/generators/my_generators/scaffold/templates/new.html.haml",
|
35
|
+
"lib/generators/my_generators/scaffold/templates/show.html.haml",
|
36
|
+
"lib/generators/my_scaffold_generator.rb",
|
37
|
+
"lib/generators/my_spec/controller/controller_generator.rb",
|
38
|
+
"lib/generators/my_spec/controller/templates/controller_spec.rb",
|
39
|
+
"lib/generators/my_spec/controller/templates/view_spec.rb",
|
40
|
+
"lib/generators/my_spec/helper/helper_generator.rb",
|
41
|
+
"lib/generators/my_spec/helper/templates/helper_spec.rb",
|
42
|
+
"lib/generators/my_spec/integration/integration_generator.rb",
|
43
|
+
"lib/generators/my_spec/integration/templates/request_spec.rb",
|
44
|
+
"lib/generators/my_spec/model/model_generator.rb",
|
45
|
+
"lib/generators/my_spec/model/templates/fixtures.yml",
|
46
|
+
"lib/generators/my_spec/model/templates/model_spec.rb",
|
47
|
+
"lib/generators/my_spec/model/templates/mongoid.rb",
|
48
|
+
"lib/generators/my_spec/observer/observer_generator.rb",
|
49
|
+
"lib/generators/my_spec/observer/templates/observer_spec.rb",
|
50
|
+
"lib/generators/my_spec/scaffold/scaffold_generator.rb",
|
51
|
+
"lib/generators/my_spec/scaffold/templates/controller_spec.rb",
|
52
|
+
"lib/generators/my_spec/scaffold/templates/edit_spec.rb",
|
53
|
+
"lib/generators/my_spec/scaffold/templates/index_spec.rb",
|
54
|
+
"lib/generators/my_spec/scaffold/templates/inherited_resources_stubs.rb",
|
55
|
+
"lib/generators/my_spec/scaffold/templates/new_spec.rb",
|
56
|
+
"lib/generators/my_spec/scaffold/templates/routing_spec.rb",
|
57
|
+
"lib/generators/my_spec/scaffold/templates/show_spec.rb",
|
58
|
+
"lib/generators/my_spec/view/templates/view_spec.rb",
|
59
|
+
"lib/generators/my_spec/view/view_generator.rb",
|
60
|
+
"lib/generators/rails/USAGE",
|
61
|
+
"lib/generators/rails/my_controller_generator.rb",
|
62
|
+
"lib/generators/rails/templates/controller.rb",
|
63
|
+
"lib/my_generators.rb",
|
64
|
+
"my_generators.gemspec",
|
65
|
+
"test/helper.rb",
|
66
|
+
"test/test_my_generators.rb"
|
67
|
+
]
|
68
|
+
s.homepage = %q{http://github.com/tylergannon/my_generators}
|
69
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
70
|
+
s.require_paths = ["lib"]
|
71
|
+
s.rubygems_version = %q{1.3.7}
|
72
|
+
s.summary = %q{Generators that I use for rails apps}
|
73
|
+
s.test_files = [
|
74
|
+
"test/test_my_generators.rb",
|
75
|
+
"test/helper.rb"
|
76
|
+
]
|
77
|
+
|
78
|
+
if s.respond_to? :specification_version then
|
79
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
80
|
+
s.specification_version = 3
|
81
|
+
|
82
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
83
|
+
else
|
84
|
+
end
|
85
|
+
else
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
data/test/helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: my_generators
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Tyler Gannon
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-11-24 00:00:00 -08:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: Just a replacement for default rails generators, specifig to my configuration of mongoid, inherited_resources, etc.
|
22
|
+
email: tgannon@gmail.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
files:
|
31
|
+
- .document
|
32
|
+
- .gitignore
|
33
|
+
- LICENSE
|
34
|
+
- README.rdoc
|
35
|
+
- Rakefile
|
36
|
+
- VERSION
|
37
|
+
- lib/generators/my_generators/controller/controller_generator.rb
|
38
|
+
- lib/generators/my_generators/controller/templates/view.html.haml
|
39
|
+
- lib/generators/my_generators/model/model_generator.rb
|
40
|
+
- lib/generators/my_generators/model/templates/model.rb
|
41
|
+
- lib/generators/my_generators/scaffold/scaffold_generator.rb
|
42
|
+
- lib/generators/my_generators/scaffold/templates/_form.html.haml
|
43
|
+
- lib/generators/my_generators/scaffold/templates/edit.html.haml
|
44
|
+
- lib/generators/my_generators/scaffold/templates/index.html.haml
|
45
|
+
- lib/generators/my_generators/scaffold/templates/new.html.haml
|
46
|
+
- lib/generators/my_generators/scaffold/templates/show.html.haml
|
47
|
+
- lib/generators/my_scaffold_generator.rb
|
48
|
+
- lib/generators/my_spec/controller/controller_generator.rb
|
49
|
+
- lib/generators/my_spec/controller/templates/controller_spec.rb
|
50
|
+
- lib/generators/my_spec/controller/templates/view_spec.rb
|
51
|
+
- lib/generators/my_spec/helper/helper_generator.rb
|
52
|
+
- lib/generators/my_spec/helper/templates/helper_spec.rb
|
53
|
+
- lib/generators/my_spec/integration/integration_generator.rb
|
54
|
+
- lib/generators/my_spec/integration/templates/request_spec.rb
|
55
|
+
- lib/generators/my_spec/model/model_generator.rb
|
56
|
+
- lib/generators/my_spec/model/templates/fixtures.yml
|
57
|
+
- lib/generators/my_spec/model/templates/model_spec.rb
|
58
|
+
- lib/generators/my_spec/model/templates/mongoid.rb
|
59
|
+
- lib/generators/my_spec/observer/observer_generator.rb
|
60
|
+
- lib/generators/my_spec/observer/templates/observer_spec.rb
|
61
|
+
- lib/generators/my_spec/scaffold/scaffold_generator.rb
|
62
|
+
- lib/generators/my_spec/scaffold/templates/controller_spec.rb
|
63
|
+
- lib/generators/my_spec/scaffold/templates/edit_spec.rb
|
64
|
+
- lib/generators/my_spec/scaffold/templates/index_spec.rb
|
65
|
+
- lib/generators/my_spec/scaffold/templates/inherited_resources_stubs.rb
|
66
|
+
- lib/generators/my_spec/scaffold/templates/new_spec.rb
|
67
|
+
- lib/generators/my_spec/scaffold/templates/routing_spec.rb
|
68
|
+
- lib/generators/my_spec/scaffold/templates/show_spec.rb
|
69
|
+
- lib/generators/my_spec/view/templates/view_spec.rb
|
70
|
+
- lib/generators/my_spec/view/view_generator.rb
|
71
|
+
- lib/generators/rails/USAGE
|
72
|
+
- lib/generators/rails/my_controller_generator.rb
|
73
|
+
- lib/generators/rails/templates/controller.rb
|
74
|
+
- lib/my_generators.rb
|
75
|
+
- my_generators.gemspec
|
76
|
+
- test/helper.rb
|
77
|
+
- test/test_my_generators.rb
|
78
|
+
has_rdoc: true
|
79
|
+
homepage: http://github.com/tylergannon/my_generators
|
80
|
+
licenses: []
|
81
|
+
|
82
|
+
post_install_message:
|
83
|
+
rdoc_options:
|
84
|
+
- --charset=UTF-8
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
version: "0"
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
requirements: []
|
104
|
+
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 1.3.7
|
107
|
+
signing_key:
|
108
|
+
specification_version: 3
|
109
|
+
summary: Generators that I use for rails apps
|
110
|
+
test_files:
|
111
|
+
- test/test_my_generators.rb
|
112
|
+
- test/helper.rb
|