my_generators 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +17 -0
  5. data/Rakefile +52 -0
  6. data/VERSION +1 -0
  7. data/lib/generators/my_generators/controller/controller_generator.rb +18 -0
  8. data/lib/generators/my_generators/controller/templates/view.html.haml +2 -0
  9. data/lib/generators/my_generators/model/model_generator.rb +28 -0
  10. data/lib/generators/my_generators/model/templates/model.rb +26 -0
  11. data/lib/generators/my_generators/scaffold/scaffold_generator.rb +49 -0
  12. data/lib/generators/my_generators/scaffold/templates/_form.html.haml +15 -0
  13. data/lib/generators/my_generators/scaffold/templates/edit.html.haml +7 -0
  14. data/lib/generators/my_generators/scaffold/templates/index.html.haml +23 -0
  15. data/lib/generators/my_generators/scaffold/templates/new.html.haml +5 -0
  16. data/lib/generators/my_generators/scaffold/templates/show.html.haml +11 -0
  17. data/lib/generators/my_scaffold_generator.rb +161 -0
  18. data/lib/generators/my_spec/controller/controller_generator.rb +33 -0
  19. data/lib/generators/my_spec/controller/templates/controller_spec.rb +14 -0
  20. data/lib/generators/my_spec/controller/templates/view_spec.rb +5 -0
  21. data/lib/generators/my_spec/helper/helper_generator.rb +20 -0
  22. data/lib/generators/my_spec/helper/templates/helper_spec.rb +15 -0
  23. data/lib/generators/my_spec/integration/integration_generator.rb +20 -0
  24. data/lib/generators/my_spec/integration/templates/request_spec.rb +14 -0
  25. data/lib/generators/my_spec/model/model_generator.rb +33 -0
  26. data/lib/generators/my_spec/model/templates/fixtures.yml +19 -0
  27. data/lib/generators/my_spec/model/templates/model_spec.rb +20 -0
  28. data/lib/generators/my_spec/model/templates/mongoid.rb +4 -0
  29. data/lib/generators/my_spec/observer/observer_generator.rb +16 -0
  30. data/lib/generators/my_spec/observer/templates/observer_spec.rb +5 -0
  31. data/lib/generators/my_spec/scaffold/scaffold_generator.rb +93 -0
  32. data/lib/generators/my_spec/scaffold/templates/controller_spec.rb +140 -0
  33. data/lib/generators/my_spec/scaffold/templates/edit_spec.rb +38 -0
  34. data/lib/generators/my_spec/scaffold/templates/index_spec.rb +37 -0
  35. data/lib/generators/my_spec/scaffold/templates/inherited_resources_stubs.rb +28 -0
  36. data/lib/generators/my_spec/scaffold/templates/new_spec.rb +37 -0
  37. data/lib/generators/my_spec/scaffold/templates/routing_spec.rb +37 -0
  38. data/lib/generators/my_spec/scaffold/templates/show_spec.rb +33 -0
  39. data/lib/generators/my_spec/view/templates/view_spec.rb +5 -0
  40. data/lib/generators/my_spec/view/view_generator.rb +24 -0
  41. data/lib/generators/rails/USAGE +10 -0
  42. data/lib/generators/rails/my_controller_generator.rb +33 -0
  43. data/lib/generators/rails/templates/controller.rb +13 -0
  44. data/lib/my_generators.rb +16 -0
  45. data/my_generators.gemspec +88 -0
  46. data/test/helper.rb +10 -0
  47. data/test/test_my_generators.rb +7 -0
  48. 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
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'my_generators'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestMyGenerators < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
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