merb-haml 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,46 +1,9 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
 
4
- # Assume a typical dev checkout to fetch the current merb-core version
5
- require File.expand_path('../../merb-core/lib/merb-core/version', __FILE__)
6
-
7
4
  # Load this library's version information
8
5
  require File.expand_path('../lib/merb-haml/version', __FILE__)
9
6
 
10
- begin
11
-
12
- gem 'jeweler', '~> 1.4'
13
- require 'jeweler'
14
-
15
- Jeweler::Tasks.new do |gemspec|
16
-
17
- gemspec.version = Merb::Haml::VERSION.dup
18
-
19
- gemspec.name = "merb-haml"
20
- gemspec.description = "Merb plugin for HAML support"
21
- gemspec.summary = "Merb plugin that provides support for writing view template with HAML"
22
-
23
- gemspec.authors = [ "Yehuda Katz" ]
24
- gemspec.email = "ykatz@engineyard.com"
25
- gemspec.homepage = "http://merbivore.com/"
26
-
27
- gemspec.files = %w(Generators LICENSE Rakefile README TODO) + Dir['{lib,spec}/**/*']
28
-
29
- # Runtime dependencies
30
- gemspec.add_dependency 'merb-core', "~> #{Merb::VERSION}"
31
- gemspec.add_dependency 'haml', '>= 2.0.3'
32
-
33
- # Development dependencies
34
- gemspec.add_development_dependency 'rspec', '>= 1.2.9'
35
-
36
- end
37
-
38
- Jeweler::GemcutterTasks.new
39
-
40
- rescue LoadError
41
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
42
- end
43
-
44
7
  require 'spec/rake/spectask'
45
8
  Spec::Rake::SpecTask.new(:spec) do |spec|
46
9
  spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
@@ -6,7 +6,7 @@
6
6
  app/views/<%= file_name %>/edit.html.haml
7
7
  = error_messages_for @<%= singular_model %>
8
8
 
9
- = form_for(@<%= singular_model %>, :action => url(:<%= singular_model %>, @<%= singular_model %>)) do
9
+ = form_for(@<%= singular_model %>, :action => resource(@<%= singular_model %>)) do
10
10
  <% for property in properties.select{|p| !p.key?} -%>
11
11
  %p
12
12
  %b
@@ -17,6 +17,6 @@
17
17
  %p
18
18
  = submit "Update"
19
19
 
20
- = link_to 'Show', url(:<%= singular_model %>, @<%= singular_model %>)
20
+ = link_to 'Show', resource(@<%= singular_model %>)
21
21
  |
22
- = link_to 'Back', url(:<%= plural_model %>)
22
+ = link_to 'Back', resource(:<%= plural_model %>)
@@ -17,8 +17,8 @@
17
17
  =h <%= singular_model %>.<%= property.getter %>
18
18
  <% end -%>
19
19
  %td
20
- = link_to 'Show', url(:<%= singular_model %>, <%= singular_model %>)
20
+ = link_to 'Show', resource(<%= singular_model %>)
21
21
  %td
22
- = link_to 'Edit', url(:edit_<%= singular_model %>, <%= singular_model %>)
22
+ = link_to 'Edit', resource(<%= singular_model %>, :edit)
23
23
 
24
- = link_to 'New', url(:new_<%= singular_model %>)
24
+ = link_to 'New', resource(:<%= plural_model %>, :new)
@@ -6,7 +6,7 @@
6
6
 
7
7
  = error_messages_for @<%= singular_model %>
8
8
 
9
- = form_for(@<%= singular_model %>, :action => url(:<%= plural_model %>) ) do
9
+ = form_for(@<%= singular_model %>, :action => resource(:<%= plural_model %>) ) do
10
10
  <% for property in properties.select{|p| !p.key?} -%>
11
11
  %p
12
12
  %b
@@ -17,4 +17,4 @@
17
17
  %p
18
18
  = submit "Create"
19
19
 
20
- = link_to 'Back', url(:<%= plural_model %>)
20
+ = link_to 'Back', resource(:<%= plural_model %>)
@@ -11,6 +11,6 @@
11
11
  =h @<%= singular_model %>.<%= property.getter %>
12
12
  <% end -%>
13
13
 
14
- = link_to 'Edit', url(:edit_<%= singular_model %>, @<%= singular_model %>)
14
+ = link_to 'Edit', resource(@<%= singular_model %>, :edit)
15
15
  |
16
- = link_to 'Back', url(:<%= plural_model %>)
16
+ = link_to 'Back', resource(:<%= plural_model %>)
@@ -1,5 +1,5 @@
1
1
  module Merb
2
2
  module Haml
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-haml
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 0
9
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Yehuda Katz
@@ -14,30 +15,34 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-22 00:00:00 +00:00
18
+ date: 2010-06-15 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: merb-core
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 17
27
30
  segments:
28
31
  - 1
29
32
  - 1
30
- - 0
31
- version: 1.1.0
33
+ - 1
34
+ version: 1.1.1
32
35
  type: :runtime
33
36
  version_requirements: *id001
34
37
  - !ruby/object:Gem::Dependency
35
38
  name: haml
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 9
41
46
  segments:
42
47
  - 2
43
48
  - 0
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: rspec
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 13
55
62
  segments:
56
63
  - 1
57
64
  - 2
@@ -66,15 +73,12 @@ executables: []
66
73
  extensions: []
67
74
 
68
75
  extra_rdoc_files:
69
- - LICENSE
70
76
  - README
77
+ - LICENSE
71
78
  - TODO
72
79
  files:
73
80
  - Generators
74
- - LICENSE
75
- - README
76
81
  - Rakefile
77
- - TODO
78
82
  - lib/generators/controller.rb
79
83
  - lib/generators/layout.rb
80
84
  - lib/generators/resource_controller.rb
@@ -96,10 +100,10 @@ files:
96
100
  - lib/generators/templates/resource_controller/sequel/app/views/%file_name%/index.html.haml
97
101
  - lib/generators/templates/resource_controller/sequel/app/views/%file_name%/new.html.haml
98
102
  - lib/generators/templates/resource_controller/sequel/app/views/%file_name%/show.html.haml
99
- - lib/merb-haml.rb
100
103
  - lib/merb-haml/merbtasks.rb
101
104
  - lib/merb-haml/template.rb
102
105
  - lib/merb-haml/version.rb
106
+ - lib/merb-haml.rb
103
107
  - spec/controllers/haml.rb
104
108
  - spec/controllers/views/capture_haml/index.html.haml
105
109
  - spec/controllers/views/concat_haml/index.html.haml
@@ -112,33 +116,40 @@ files:
112
116
  - spec/haml_spec.rb
113
117
  - spec/spec.opts
114
118
  - spec/spec_helper.rb
119
+ - README
120
+ - LICENSE
121
+ - TODO
115
122
  has_rdoc: true
116
123
  homepage: http://merbivore.com/
117
124
  licenses: []
118
125
 
119
126
  post_install_message:
120
- rdoc_options:
121
- - --charset=UTF-8
127
+ rdoc_options: []
128
+
122
129
  require_paths:
123
130
  - lib
124
131
  required_ruby_version: !ruby/object:Gem::Requirement
132
+ none: false
125
133
  requirements:
126
134
  - - ">="
127
135
  - !ruby/object:Gem::Version
136
+ hash: 3
128
137
  segments:
129
138
  - 0
130
139
  version: "0"
131
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
+ none: false
132
142
  requirements:
133
143
  - - ">="
134
144
  - !ruby/object:Gem::Version
145
+ hash: 3
135
146
  segments:
136
147
  - 0
137
148
  version: "0"
138
149
  requirements: []
139
150
 
140
151
  rubyforge_project:
141
- rubygems_version: 1.3.6
152
+ rubygems_version: 1.3.7
142
153
  signing_key:
143
154
  specification_version: 3
144
155
  summary: Merb plugin that provides support for writing view template with HAML