norman-haml_scaffold 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ === 1.1.0 / 2009-07-30
2
+
3
+ * 3 major enhancements
4
+
5
+ * Upated generator code to Rails 2.3.2.
6
+ * Haml Scaffold now generates layout and a SASS stylesheet.
7
+ * Tests now use 'test "name" do' syntax.
8
+
1
9
  === 1.0.0 / 2009-02-10
2
10
 
3
11
  * 1 major enhancement
@@ -3,18 +3,19 @@ MIT-LICENSE
3
3
  Manifest.txt
4
4
  README.rdoc
5
5
  Rakefile
6
- config/website.yml
7
6
  generators/haml_scaffold/haml_scaffold_generator.rb
8
- generators/haml_scaffold/templates/_form.html.erb
9
- generators/haml_scaffold/templates/_object.html.erb
10
- generators/haml_scaffold/templates/controller.rb
11
- generators/haml_scaffold/templates/functional_test.rb
12
- generators/haml_scaffold/templates/helper.rb
13
- generators/haml_scaffold/templates/view_edit.html.erb
14
- generators/haml_scaffold/templates/view_index.html.erb
15
- generators/haml_scaffold/templates/view_new.html.erb
16
- generators/haml_scaffold/templates/view_show.html.erb
17
- haml_scaffold.gemspec
7
+ generators/haml_scaffold/templates/_form.html.haml.erb
8
+ generators/haml_scaffold/templates/_object.html.haml.erb
9
+ generators/haml_scaffold/templates/controller.rb.erb
10
+ generators/haml_scaffold/templates/functional_test.rb.erb
11
+ generators/haml_scaffold/templates/helper.rb.erb
12
+ generators/haml_scaffold/templates/helper_test.rb.erb
13
+ generators/haml_scaffold/templates/layout.html.haml.erb
14
+ generators/haml_scaffold/templates/stylesheet.sass
15
+ generators/haml_scaffold/templates/view_edit.html.haml.erb
16
+ generators/haml_scaffold/templates/view_index.html.haml.erb
17
+ generators/haml_scaffold/templates/view_new.html.haml.erb
18
+ generators/haml_scaffold/templates/view_show.html.haml.erb
18
19
  init.rb
19
20
  lib/haml_scaffold/version.rb
20
21
  samples/posts_controller.rb
@@ -21,20 +21,19 @@ generator, with a few differences.
21
21
 
22
22
  === Controller Test
23
23
 
24
- * Tests error conditions, not just the "happy-path."
24
+ * Tests error conditions, not just the "happy path."
25
25
  * Has 100% code coverage with RCov.
26
- * Simplifies test method names and alphabetizes them for more obvious consistency.
27
- * Uses some very simple mocking with mocha to limit calls to the DB.
26
+ * Uses very simple mocking with mocha to limit calls to the DB.
28
27
 
29
28
  === Views
30
29
 
31
- * Have cleaner, more semantic XHTML.
30
+ * Have cleaner, more semantic XHTML that's easier to quickly replace with your own markup.
32
31
  * Are broken up into a couple of partials to be DRYer.
33
32
  * Use will_paginate.
34
33
 
35
34
  === Misc
36
35
 
37
- * Doesn't generate a layout or CSS file.
36
+ * Generates Haml layout and SASS stylesheet.
38
37
 
39
38
  == Samples
40
39
 
@@ -42,9 +41,9 @@ generator, with a few differences.
42
41
 
43
42
  == Installation
44
43
 
45
- HAML Scaffold is available on RubyForge as a gem:
44
+ Haml Scaffold is available on RubyForge as a gem:
46
45
 
47
- sudo gem install haml-scaffold
46
+ sudo gem install haml_scaffold
48
47
 
49
48
  You can also install it as a Rails plugin if you wish:
50
49
 
@@ -54,21 +53,30 @@ You can also install it as a Rails plugin if you wish:
54
53
 
55
54
  The generated code will depend on:
56
55
 
56
+ * haml[http://haml.hamptoncatlin.com/] (of course!)
57
57
  * will_paginate[http://github.com/mislav/will_paginate/]
58
58
  * mocha[http://mocha.rubyforge.org/]
59
59
 
60
- You'll need to add the gems and/or requires to your config/environment.rb
61
- manually.
60
+ You'll need to add the gem dependencies to your config/environment.rb
61
+ manually:
62
+
63
+ config.gem "haml"
64
+ config.gem "will_paginate"
65
+ config.gem "mocha"
66
+
67
+ Also, don't forget to Hamlize your Rails app:
68
+
69
+ $ cd my_rails_app
70
+ $ haml --rails .
62
71
 
63
72
  == Other stuff you might be interested in:
64
73
 
65
74
  * Haml[http://haml.hamptoncatlin.com/]
66
75
  * {RSpec Haml scaffold generator}[http://github.com/dfischer/rspec-haml-scaffold-generator]
67
- * {Randomba scaffold}[https://github.com/norman/randomba-scaffold/tree] (like this one, but ERB)
68
76
 
69
77
  == Author
70
78
 
71
- {Norman Clarke}[mailto:norman@randomba.org]
79
+ {Norman Clarke}[mailto:norman@njclarke.com]
72
80
 
73
81
  This work is derived from code in {Ruby on Rails}[http://rubyonrails.org/] and
74
82
  is released under its same license, the MIT License.
data/Rakefile CHANGED
@@ -3,9 +3,9 @@ require File.dirname(__FILE__) + "/lib/haml_scaffold/version"
3
3
  $hoe = Hoe.new("haml_scaffold", HamlScaffold::Version::STRING) do |p|
4
4
  p.rubyforge_name = "haml-scaffold"
5
5
  p.author = ['Norman Clarke']
6
- p.email = ['norman@randomba.org']
7
- p.summary = "Rails scaffolding with HAML rather than ERB"
8
- p.description = "Rails scaffolding with HAML rather than ERB"
6
+ p.email = ['norman@njclarke.com']
7
+ p.summary = "Rails scaffolding with Haml rather than ERB"
8
+ p.description = "Rails scaffolding with Haml rather than ERB, and various other improvements."
9
9
  p.url = 'http://haml-scaffold.rubyforge.org/'
10
10
  p.extra_deps << ['haml', '>= 2.0.6']
11
11
  p.extra_deps << ['will_paginate', '>= 2.2.2']
@@ -13,7 +13,6 @@ $hoe = Hoe.new("haml_scaffold", HamlScaffold::Version::STRING) do |p|
13
13
  p.extra_dev_deps << ['newgem', ">= #{::Newgem::VERSION}"]
14
14
  p.remote_rdoc_dir = "/"
15
15
  end
16
- puts $hoe.inspect
17
16
  require 'newgem/tasks'
18
17
 
19
18
  desc 'Publish RDoc to RubyForge.'
@@ -9,18 +9,24 @@ class HamlScaffoldGenerator < Rails::Generator::NamedBase
9
9
  :controller_class_name,
10
10
  :controller_underscore_name,
11
11
  :controller_singular_name,
12
- :controller_plural_name
12
+ :controller_plural_name,
13
+ :application_name
13
14
  alias_method :controller_file_name, :controller_underscore_name
14
15
  alias_method :controller_table_name, :controller_plural_name
15
16
 
16
17
  def initialize(runtime_args, runtime_options = {})
17
18
  super
19
+
20
+ if @name == @name.pluralize && !options[:force_plural]
21
+ logger.warning "Plural version of the model detected, using singularized version. Override with --force-plural."
22
+ @name = @name.singularize
23
+ end
18
24
 
19
25
  @controller_name = @name.pluralize
20
-
26
+ @application_name = File.basename(Rails.root.to_s).humanize
21
27
  base_name, @controller_class_path, @controller_file_path, @controller_class_nesting, @controller_class_nesting_depth = extract_modules(@controller_name)
22
28
  @controller_class_name_without_nesting, @controller_underscore_name, @controller_plural_name = inflect_names(base_name)
23
- @controller_singular_name=base_name.singularize
29
+ @controller_singular_name = base_name.singularize
24
30
  if @controller_class_nesting.empty?
25
31
  @controller_class_name = @controller_class_name_without_nesting
26
32
  else
@@ -30,7 +36,7 @@ class HamlScaffoldGenerator < Rails::Generator::NamedBase
30
36
 
31
37
  def manifest
32
38
  record do |m|
33
-
39
+
34
40
  # Check for class naming collisions.
35
41
  m.class_collisions(controller_class_path, "#{controller_class_name}Controller", "#{controller_class_name}Helper")
36
42
  m.class_collisions(class_path, "#{class_name}")
@@ -42,35 +48,27 @@ class HamlScaffoldGenerator < Rails::Generator::NamedBase
42
48
  m.directory(File.join('app/views', controller_class_path, controller_file_name))
43
49
  m.directory(File.join('test/functional', controller_class_path))
44
50
  m.directory(File.join('test/unit', class_path))
45
-
51
+ m.directory(File.join('test/unit/helpers', class_path))
52
+
46
53
  for action in scaffold_views
47
- m.template(
48
- "view_#{action}.html.erb",
49
- File.join('app/views', controller_class_path, controller_file_name, "#{action}.html.haml")
50
- )
54
+ m.template("view_#{action}.html.haml.erb", File.join('app/views', controller_class_path, controller_file_name, "#{action}.html.haml"))
51
55
  end
52
-
53
- m.template(
54
- "_form.html.erb",
55
- File.join('app/views', controller_class_path, controller_file_name, "_form.html.haml")
56
- )
57
-
58
- m.template(
59
- "_object.html.erb",
60
- File.join('app/views', controller_class_path, controller_file_name, "_#{name}.html.haml")
61
- )
62
-
63
- m.template(
64
- 'controller.rb', File.join('app/controllers', controller_class_path, "#{controller_file_name}_controller.rb")
65
- )
66
-
67
- m.template('functional_test.rb', File.join('test/functional', controller_class_path, "#{controller_file_name}_controller_test.rb"))
68
- m.template('helper.rb', File.join('app/helpers', controller_class_path, "#{controller_file_name}_helper.rb"))
69
56
 
57
+ m.template("_form.html.haml.erb", File.join('app/views', controller_class_path, controller_file_name, "_form.html.haml"))
58
+ m.template("_object.html.haml.erb", File.join('app/views', controller_class_path, controller_file_name, "_#{name}.html.haml"))
59
+ m.template('controller.rb.erb', File.join('app/controllers', controller_class_path, "#{controller_file_name}_controller.rb"))
60
+ m.template('functional_test.rb.erb', File.join('test/functional', controller_class_path, "#{controller_file_name}_controller_test.rb"))
61
+ m.template('helper.rb.erb', File.join('app/helpers', controller_class_path, "#{controller_file_name}_helper.rb"))
62
+ m.template('helper_test.rb.erb', File.join('test/unit/helpers', controller_class_path, "#{controller_file_name}_helper_test.rb"))
63
+ m.directory('app/views/layouts')
64
+ m.directory('public/stylesheets/sass')
65
+ m.template('layout.html.haml.erb', 'app/views/layouts/application.html.haml', :collision => :skip, :assigns => {:application_name => @application_name})
66
+ m.template('stylesheet.sass', 'public/stylesheets/sass/application.sass', :collision => :skip)
70
67
  m.route_resources controller_file_name
71
-
72
68
  m.dependency 'model', [name] + @args, :collision => :skip
69
+
73
70
  end
71
+
74
72
  end
75
73
 
76
74
  protected
@@ -86,6 +84,8 @@ class HamlScaffoldGenerator < Rails::Generator::NamedBase
86
84
  "Don't add timestamps to the migration file for this model") { |v| options[:skip_timestamps] = v }
87
85
  opt.on("--skip-migration",
88
86
  "Don't generate a migration file for this model") { |v| options[:skip_migration] = v }
87
+ opt.on("--force-plural",
88
+ "Forces the generation of a plural ModelName") { |v| options[:force_plural] = v }
89
89
  end
90
90
 
91
91
  def scaffold_views
@@ -2,60 +2,60 @@ require 'test_helper'
2
2
 
3
3
  class <%= controller_class_name %>ControllerTest < ActionController::TestCase
4
4
 
5
- def test_create
5
+ test "should create <%= singular_name %>" do
6
6
  <%= class_name %>.any_instance.expects(:save).returns(true)
7
7
  post :create, :<%= file_name %> => { }
8
8
  assert_response :redirect
9
9
  end
10
10
 
11
- def test_create_with_failure
11
+ test "should handle failure to create <%= singular_name %>" do
12
12
  <%= class_name %>.any_instance.expects(:save).returns(false)
13
13
  post :create, :<%= file_name %> => { }
14
14
  assert_template "new"
15
15
  end
16
16
 
17
- def test_destroy
17
+ test "should destroy <%= singular_name %>" do
18
18
  <%= class_name %>.any_instance.expects(:destroy).returns(true)
19
19
  delete :destroy, :id => <%= table_name %>(:one).to_param
20
20
  assert_not_nil flash[:notice]
21
21
  assert_response :redirect
22
22
  end
23
23
 
24
- def test_destroy_with_failure
24
+ test "should handle failure to destroy <%= singular_name %>" do
25
25
  <%= class_name %>.any_instance.expects(:destroy).returns(false)
26
26
  delete :destroy, :id => <%= table_name %>(:one).to_param
27
27
  assert_not_nil flash[:error]
28
28
  assert_response :redirect
29
29
  end
30
30
 
31
- def test_edit
31
+ test "should get edit for <%= singular_name %>" do
32
32
  get :edit, :id => <%= table_name %>(:one).to_param
33
33
  assert_response :success
34
34
  end
35
35
 
36
- def test_index
36
+ test "should get index for <%= plural_name %>" do
37
37
  get :index
38
38
  assert_response :success
39
39
  assert_not_nil assigns(:<%= table_name %>)
40
40
  end
41
41
 
42
- def test_new
42
+ test "should get new for <%= singular_name %>" do
43
43
  get :new
44
44
  assert_response :success
45
45
  end
46
46
 
47
- def test_show
47
+ test "should get show for <%= singular_name %>" do
48
48
  get :show, :id => <%= table_name %>(:one).to_param
49
49
  assert_response :success
50
50
  end
51
51
 
52
- def test_update
52
+ test "should update <%= singular_name %>" do
53
53
  <%= class_name %>.any_instance.expects(:save).returns(true)
54
54
  put :update, :id => <%= table_name %>(:one).to_param, :<%= file_name %> => { }
55
55
  assert_response :redirect
56
56
  end
57
57
 
58
- def test_update_with_failure
58
+ test "should handle failure to update <%= singular_name %>" do
59
59
  <%= class_name %>.any_instance.expects(:save).returns(false)
60
60
  put :update, :id => <%= table_name %>(:one).to_param, :<%= file_name %> => { }
61
61
  assert_template "edit"
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class <%= controller_class_name %>HelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,21 @@
1
+ !!! XML
2
+ !!!
3
+ %html{ :'xml:lang' => "en", :lang => "en" }
4
+ %head
5
+ %title= "#{controller.class.to_s}: #{controller.action_name}"
6
+ %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
7
+ %link{ :rel => "shortcut icon", :href => "/favicon.ico" }
8
+ = stylesheet_link_tag "application", :media => "screen"
9
+ = javascript_include_tag :defaults
10
+ %body
11
+ #wrapper
12
+ #content
13
+ %h1 <%= application_name %>
14
+ #flash
15
+ - unless flash.empty?
16
+ = content_tag :div, flash[:notice], :class => "notice" if flash[:notice]
17
+ = content_tag :div, flash[:warning], :class => "warning" if flash[:warning]
18
+ = content_tag :div, flash[:error], :class => "error" if flash[:error]
19
+ :javascript
20
+ #{visual_effect :highlight, "flash"}
21
+ = yield
@@ -0,0 +1,11 @@
1
+ body
2
+ :text-align center
3
+
4
+ h1
5
+ :border-bottom 1px #000 solid
6
+ :padding-bottom 5px
7
+
8
+ #wrapper
9
+ :width 800px
10
+ :text-align left
11
+ :margin auto
@@ -2,4 +2,5 @@
2
2
  = render :partial => "form", :locals => {:<%= singular_name %> => @<%= singular_name %>}
3
3
  %ul
4
4
  %li= link_to 'Show', @<%= singular_name %>
5
- %li= link_to 'Back', <%= plural_name %>_path
5
+ %li= link_to 'Back', <%= plural_name %>_path
6
+ %li= link_to 'Destroy', @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
@@ -1,7 +1,7 @@
1
1
  module HamlScaffold
2
2
  class Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  TINY = 0
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
7
7
  end
@@ -2,60 +2,60 @@ require 'test_helper'
2
2
 
3
3
  class PostsControllerTest < ActionController::TestCase
4
4
 
5
- def test_create
5
+ test "should create post" do
6
6
  Post.any_instance.expects(:save).returns(true)
7
7
  post :create, :post => { }
8
8
  assert_response :redirect
9
9
  end
10
10
 
11
- def test_create_with_failure
11
+ test "should handle failure to create post" do
12
12
  Post.any_instance.expects(:save).returns(false)
13
13
  post :create, :post => { }
14
14
  assert_template "new"
15
15
  end
16
16
 
17
- def test_destroy
17
+ test "should destroy post" do
18
18
  Post.any_instance.expects(:destroy).returns(true)
19
19
  delete :destroy, :id => posts(:one).to_param
20
20
  assert_not_nil flash[:notice]
21
21
  assert_response :redirect
22
22
  end
23
23
 
24
- def test_destroy_with_failure
24
+ test "should handle failure to destroy post" do
25
25
  Post.any_instance.expects(:destroy).returns(false)
26
26
  delete :destroy, :id => posts(:one).to_param
27
27
  assert_not_nil flash[:error]
28
28
  assert_response :redirect
29
29
  end
30
30
 
31
- def test_edit
31
+ test "should get edit for post" do
32
32
  get :edit, :id => posts(:one).to_param
33
33
  assert_response :success
34
34
  end
35
35
 
36
- def test_index
36
+ test "should get index for posts" do
37
37
  get :index
38
38
  assert_response :success
39
39
  assert_not_nil assigns(:posts)
40
40
  end
41
41
 
42
- def test_new
42
+ test "should get new for post" do
43
43
  get :new
44
44
  assert_response :success
45
45
  end
46
46
 
47
- def test_show
47
+ test "should get show for post" do
48
48
  get :show, :id => posts(:one).to_param
49
49
  assert_response :success
50
50
  end
51
51
 
52
- def test_update
52
+ test "should update post" do
53
53
  Post.any_instance.expects(:save).returns(true)
54
54
  put :update, :id => posts(:one).to_param, :post => { }
55
55
  assert_response :redirect
56
56
  end
57
57
 
58
- def test_update_with_failure
58
+ test "should handle failure to update post" do
59
59
  Post.any_instance.expects(:save).returns(false)
60
60
  put :update, :id => posts(:one).to_param, :post => { }
61
61
  assert_template "edit"
@@ -2,4 +2,5 @@
2
2
  = render :partial => "form", :locals => {:post => @post}
3
3
  %ul
4
4
  %li= link_to 'Show', @post
5
- %li= link_to 'Back', posts_path
5
+ %li= link_to 'Back', posts_path
6
+ %li= link_to 'Destroy', @post, :confirm => 'Are you sure?', :method => :delete
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norman-haml_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norman Clarke
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-10 00:00:00 -08:00
12
+ date: 2009-07-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: will_paginate
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -32,6 +34,7 @@ dependencies:
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: mocha
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
@@ -41,15 +44,17 @@ dependencies:
41
44
  version:
42
45
  - !ruby/object:Gem::Dependency
43
46
  name: newgem
47
+ type: :development
44
48
  version_requirement:
45
49
  version_requirements: !ruby/object:Gem::Requirement
46
50
  requirements:
47
51
  - - ">="
48
52
  - !ruby/object:Gem::Version
49
- version: 1.2.3
53
+ version: 1.4.1
50
54
  version:
51
55
  - !ruby/object:Gem::Dependency
52
56
  name: hoe
57
+ type: :development
53
58
  version_requirement:
54
59
  version_requirements: !ruby/object:Gem::Requirement
55
60
  requirements:
@@ -57,9 +62,9 @@ dependencies:
57
62
  - !ruby/object:Gem::Version
58
63
  version: 1.8.0
59
64
  version:
60
- description: Rails scaffolding with HAML rather than ERB
65
+ description: Rails scaffolding with Haml rather than ERB, and various other improvements.
61
66
  email:
62
- - norman@randomba.org
67
+ - norman@njclarke.com
63
68
  executables: []
64
69
 
65
70
  extensions: []
@@ -74,18 +79,19 @@ files:
74
79
  - Manifest.txt
75
80
  - README.rdoc
76
81
  - Rakefile
77
- - config/website.yml
78
82
  - generators/haml_scaffold/haml_scaffold_generator.rb
79
- - generators/haml_scaffold/templates/_form.html.erb
80
- - generators/haml_scaffold/templates/_object.html.erb
81
- - generators/haml_scaffold/templates/controller.rb
82
- - generators/haml_scaffold/templates/functional_test.rb
83
- - generators/haml_scaffold/templates/helper.rb
84
- - generators/haml_scaffold/templates/view_edit.html.erb
85
- - generators/haml_scaffold/templates/view_index.html.erb
86
- - generators/haml_scaffold/templates/view_new.html.erb
87
- - generators/haml_scaffold/templates/view_show.html.erb
88
- - haml_scaffold.gemspec
83
+ - generators/haml_scaffold/templates/_form.html.haml.erb
84
+ - generators/haml_scaffold/templates/_object.html.haml.erb
85
+ - generators/haml_scaffold/templates/controller.rb.erb
86
+ - generators/haml_scaffold/templates/functional_test.rb.erb
87
+ - generators/haml_scaffold/templates/helper.rb.erb
88
+ - generators/haml_scaffold/templates/helper_test.rb.erb
89
+ - generators/haml_scaffold/templates/layout.html.haml.erb
90
+ - generators/haml_scaffold/templates/stylesheet.sass
91
+ - generators/haml_scaffold/templates/view_edit.html.haml.erb
92
+ - generators/haml_scaffold/templates/view_index.html.haml.erb
93
+ - generators/haml_scaffold/templates/view_new.html.haml.erb
94
+ - generators/haml_scaffold/templates/view_show.html.haml.erb
89
95
  - init.rb
90
96
  - lib/haml_scaffold/version.rb
91
97
  - samples/posts_controller.rb
@@ -96,8 +102,8 @@ files:
96
102
  - samples/views/index.html.haml
97
103
  - samples/views/new.html.haml
98
104
  - samples/views/show.html.haml
99
- has_rdoc: true
100
- homepage: http://github.com/norman/haml-scaffold
105
+ has_rdoc: false
106
+ homepage: http://haml-scaffold.rubyforge.org/
101
107
  post_install_message:
102
108
  rdoc_options:
103
109
  - --main
@@ -121,7 +127,7 @@ requirements: []
121
127
  rubyforge_project: haml-scaffold
122
128
  rubygems_version: 1.2.0
123
129
  signing_key:
124
- specification_version: 2
125
- summary: Rails scaffolding with HAML rather than ERB
130
+ specification_version: 3
131
+ summary: Rails scaffolding with Haml rather than ERB
126
132
  test_files: []
127
133
 
@@ -1,2 +0,0 @@
1
- host: compay@rubyforge.org
2
- remote_dir: /var/www/gforge-projects/friendly-id
@@ -1,46 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{haml_scaffold}
5
- s.version = "1.0.0"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Norman Clarke"]
9
- s.date = %q{2009-02-10}
10
- s.description = %q{Rails scaffolding with HAML rather than ERB}
11
- s.email = ["norman@randomba.org"]
12
- s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
13
- s.files = ["History.txt", "MIT-LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "config/website.yml", "generators/haml_scaffold/haml_scaffold_generator.rb", "generators/haml_scaffold/templates/_form.html.erb", "generators/haml_scaffold/templates/_object.html.erb", "generators/haml_scaffold/templates/controller.rb", "generators/haml_scaffold/templates/functional_test.rb", "generators/haml_scaffold/templates/helper.rb", "generators/haml_scaffold/templates/view_edit.html.erb", "generators/haml_scaffold/templates/view_index.html.erb", "generators/haml_scaffold/templates/view_new.html.erb", "generators/haml_scaffold/templates/view_show.html.erb", "haml_scaffold.gemspec", "init.rb", "lib/haml_scaffold/version.rb", "samples/posts_controller.rb", "samples/posts_controller_test.rb", "samples/views/_form.html.haml", "samples/views/_post.html.haml", "samples/views/edit.html.haml", "samples/views/index.html.haml", "samples/views/new.html.haml", "samples/views/show.html.haml"]
14
- s.has_rdoc = true
15
- s.homepage = %q{http://github.com/norman/haml-scaffold}
16
- s.rdoc_options = ["--main", "README.rdoc"]
17
- s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{haml-scaffold}
19
- s.rubygems_version = %q{1.3.1}
20
- s.summary = %q{Rails scaffolding with HAML rather than ERB}
21
-
22
- if s.respond_to? :specification_version then
23
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
- s.specification_version = 2
25
-
26
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<haml>, [">= 2.0.6"])
28
- s.add_runtime_dependency(%q<will_paginate>, [">= 2.2.2"])
29
- s.add_runtime_dependency(%q<mocha>, [">= 0.9.0"])
30
- s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
31
- s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
32
- else
33
- s.add_dependency(%q<haml>, [">= 2.0.6"])
34
- s.add_dependency(%q<will_paginate>, [">= 2.2.2"])
35
- s.add_dependency(%q<mocha>, [">= 0.9.0"])
36
- s.add_dependency(%q<newgem>, [">= 1.2.3"])
37
- s.add_dependency(%q<hoe>, [">= 1.8.0"])
38
- end
39
- else
40
- s.add_dependency(%q<haml>, [">= 2.0.6"])
41
- s.add_dependency(%q<will_paginate>, [">= 2.2.2"])
42
- s.add_dependency(%q<mocha>, [">= 0.9.0"])
43
- s.add_dependency(%q<newgem>, [">= 1.2.3"])
44
- s.add_dependency(%q<hoe>, [">= 1.8.0"])
45
- end
46
- end