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.
data.tar.gz.sig CHANGED
Binary file
@@ -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,24 +41,11 @@ generator, with a few differences.
42
41
 
43
42
  == Installation
44
43
 
45
- There are three ways you can install this generator:
44
+ Haml Scaffold is available on RubyForge as a gem:
46
45
 
47
- === Gem
46
+ sudo gem install haml_scaffold
48
47
 
49
- sudo gem install norman-haml_scaffold --source http://gems.github.com
50
-
51
- or
52
-
53
- git clone git://github.com/norman/haml-scaffold.git
54
- cd haml-scaffold
55
- gem build haml_scaffold.gemspec
56
- sudo gem install haml_scaffold-*.gem
57
-
58
- === Manual
59
-
60
- Download the tarball from the Github repository and unarchive it in ~/.rails/generators.
61
-
62
- === Rails Plugin
48
+ You can also install it as a Rails plugin if you wish:
63
49
 
64
50
  ./script/plugin install git://github.com/norman/haml-scaffold.git
65
51
 
@@ -67,21 +53,30 @@ Download the tarball from the Github repository and unarchive it in ~/.rails/gen
67
53
 
68
54
  The generated code will depend on:
69
55
 
56
+ * haml[http://haml.hamptoncatlin.com/] (of course!)
70
57
  * will_paginate[http://github.com/mislav/will_paginate/]
71
58
  * mocha[http://mocha.rubyforge.org/]
72
59
 
73
- You'll need to add the gems and/or requires to your config/environment.rb
74
- 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 .
75
71
 
76
72
  == Other stuff you might be interested in:
77
73
 
78
74
  * Haml[http://haml.hamptoncatlin.com/]
79
75
  * {RSpec Haml scaffold generator}[http://github.com/dfischer/rspec-haml-scaffold-generator]
80
- * {Randomba scaffold}[https://github.com/norman/randomba-scaffold/tree] (like this one, but ERB)
81
76
 
82
77
  == Author
83
78
 
84
- {Norman Clarke}[mailto:norman@randomba.org]
79
+ {Norman Clarke}[mailto:norman@njclarke.com]
85
80
 
86
81
  This work is derived from code in {Ruby on Rails}[http://rubyonrails.org/] and
87
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: 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
@@ -30,7 +30,7 @@ cert_chain:
30
30
  h7fbBRfStxI=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-02-10 00:00:00 -02:00
33
+ date: 2009-07-01 00:00:00 -03:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -71,7 +71,7 @@ dependencies:
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 1.2.3
74
+ version: 1.4.1
75
75
  version:
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: hoe
@@ -83,9 +83,9 @@ dependencies:
83
83
  - !ruby/object:Gem::Version
84
84
  version: 1.8.0
85
85
  version:
86
- description: Rails scaffolding with HAML rather than ERB
86
+ description: Rails scaffolding with Haml rather than ERB, and various other improvements.
87
87
  email:
88
- - norman@randomba.org
88
+ - norman@njclarke.com
89
89
  executables: []
90
90
 
91
91
  extensions: []
@@ -100,18 +100,19 @@ files:
100
100
  - Manifest.txt
101
101
  - README.rdoc
102
102
  - Rakefile
103
- - config/website.yml
104
103
  - generators/haml_scaffold/haml_scaffold_generator.rb
105
- - generators/haml_scaffold/templates/_form.html.erb
106
- - generators/haml_scaffold/templates/_object.html.erb
107
- - generators/haml_scaffold/templates/controller.rb
108
- - generators/haml_scaffold/templates/functional_test.rb
109
- - generators/haml_scaffold/templates/helper.rb
110
- - generators/haml_scaffold/templates/view_edit.html.erb
111
- - generators/haml_scaffold/templates/view_index.html.erb
112
- - generators/haml_scaffold/templates/view_new.html.erb
113
- - generators/haml_scaffold/templates/view_show.html.erb
114
- - haml_scaffold.gemspec
104
+ - generators/haml_scaffold/templates/_form.html.haml.erb
105
+ - generators/haml_scaffold/templates/_object.html.haml.erb
106
+ - generators/haml_scaffold/templates/controller.rb.erb
107
+ - generators/haml_scaffold/templates/functional_test.rb.erb
108
+ - generators/haml_scaffold/templates/helper.rb.erb
109
+ - generators/haml_scaffold/templates/helper_test.rb.erb
110
+ - generators/haml_scaffold/templates/layout.html.haml.erb
111
+ - generators/haml_scaffold/templates/stylesheet.sass
112
+ - generators/haml_scaffold/templates/view_edit.html.haml.erb
113
+ - generators/haml_scaffold/templates/view_index.html.haml.erb
114
+ - generators/haml_scaffold/templates/view_new.html.haml.erb
115
+ - generators/haml_scaffold/templates/view_show.html.haml.erb
115
116
  - init.rb
116
117
  - lib/haml_scaffold/version.rb
117
118
  - samples/posts_controller.rb
@@ -124,6 +125,8 @@ files:
124
125
  - samples/views/show.html.haml
125
126
  has_rdoc: true
126
127
  homepage: http://haml-scaffold.rubyforge.org/
128
+ licenses: []
129
+
127
130
  post_install_message:
128
131
  rdoc_options:
129
132
  - --main
@@ -145,9 +148,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
148
  requirements: []
146
149
 
147
150
  rubyforge_project: haml-scaffold
148
- rubygems_version: 1.3.1
151
+ rubygems_version: 1.3.4
149
152
  signing_key:
150
- specification_version: 2
151
- summary: Rails scaffolding with HAML rather than ERB
153
+ specification_version: 3
154
+ summary: Rails scaffolding with Haml rather than ERB
152
155
  test_files: []
153
156
 
metadata.gz.sig CHANGED
Binary file
@@ -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