dust-generators 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/dust/version.rb CHANGED
@@ -2,7 +2,7 @@ class Dust
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -1,14 +1,13 @@
1
1
  <%- first_attribute = model_attributes.first -%>
2
2
  - title @<%= singular_name %>.title
3
3
 
4
- = content_tag :div, :class => "page_#{@<%= singular_name %>.id}" do
4
+ = content_tag :div, :class => "<%= singular_name %>_#{@<%= singular_name %>.id}" do
5
5
  = render_region "<%= singular_name %>" do
6
- - heading @<%= singular_name %>.<%= first_attribute.name %>
7
- = @<%= singular_name %>.<%= first_attribute.name %>
6
+ %h1= @<%= singular_name %>.<%= first_attribute.name %>
8
7
 
9
8
  - if permitted_to? :manage, :<%= plural_name %>
10
9
  %p
11
- = link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>)
10
+ = link_to "Edit", edit_app_<%= singular_name %>_path(@<%= singular_name %>)
12
11
  |
13
12
  = link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
14
13
  |
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dust-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70293410465400 !ruby/object:Gem::Requirement
16
+ requirement: &70257037483000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70293410465400
24
+ version_requirements: *70257037483000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70293410462920 !ruby/object:Gem::Requirement
27
+ requirement: &70257037481240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70293410462920
35
+ version_requirements: *70257037481240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70293410474480 !ruby/object:Gem::Requirement
38
+ requirement: &70257037664180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70293410474480
46
+ version_requirements: *70257037664180
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70293410472920 !ruby/object:Gem::Requirement
49
+ requirement: &70257037672480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70293410472920
57
+ version_requirements: *70257037672480
58
58
  description: Generators such as Uploadify Albums and Photos, and Location or facilities
59
59
  email: axcess1@me.com
60
60
  executables: []
@@ -195,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  segments:
197
197
  - 0
198
- hash: 1787440251366166652
198
+ hash: 3139463777930948452
199
199
  required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  none: false
201
201
  requirements: