advanced_haml_scaffold_generator 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c183d1b7dc02ae5fb0e30275c880b3f0c8699ef7bd4f88f315db5b80a36dc31b
4
- data.tar.gz: 1bd387d662d538146b99cf4a5b7a171e1889515c543a03956268ae6bdc48ed8a
3
+ metadata.gz: 8f344a99c22cc17f0c6eb832e9b8cdf303abbd31b4739be7307b83e2885b6d1a
4
+ data.tar.gz: 3ae39730efadad38720846993251b3f29380bf9419dec47b7d8d87f7cea16c65
5
5
  SHA512:
6
- metadata.gz: 3ad5d8f632ef082f715893417362f37fbdb2526873b0f814172e967e246fbb6747d8faf148bbdfee54398d560f158b0eaef32c6fcd5b25bcf8f65ec134bdb49a
7
- data.tar.gz: d7ddee7f274b4890686101f10d1343dba4fe2678a88a787631989a5dea9e4a7281f2b06341f58fb7ade5a51cf021eda4ad021f81c7454b171c650117a2d75db4
6
+ metadata.gz: 645ebab9eb58aa1b262c667f372031fbed893103ae83ffdfb161e372c345866b4aa1f313124bb91fe95e8e320c00a22732e78ab6aa2c87b9e761fc02d5a9876d
7
+ data.tar.gz: 3ff6be8a5c3a8ec21d1dce75d093069819994a7e24784677b63de7ddd1ed437cb6d181b51848513182ad4398a8ea87353c48884458d06839aa13abc16ddff786
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.3.0
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: advanced_haml_scaffold_generator 2.2.0 ruby lib
5
+ # stub: advanced_haml_scaffold_generator 2.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "advanced_haml_scaffold_generator".freeze
9
- s.version = "2.2.0"
9
+ s.version = "2.3.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Dmitri Koulikoff".freeze]
14
- s.date = "2019-12-11"
14
+ s.date = "2020-06-17"
15
15
  s.description = "Extention of the haml generator that generates templates with the use of i18n, cancan and WiceGrid, adds classes to buttons and uses :title helper".freeze
16
16
  s.email = "dima@koulikoff.ru".freeze
17
17
  s.extra_rdoc_files = [
@@ -41,25 +41,19 @@ Gem::Specification.new do |s|
41
41
  ]
42
42
  s.homepage = "http://github.com/dima4p/advanced_haml_scaffold_generator".freeze
43
43
  s.licenses = ["MIT".freeze]
44
- s.rubygems_version = "3.0.3".freeze
44
+ s.rubygems_version = "3.1.2".freeze
45
45
  s.summary = "Extention of the haml generator that is aware of i18n and so forth".freeze
46
46
 
47
47
  if s.respond_to? :specification_version then
48
48
  s.specification_version = 4
49
+ end
49
50
 
50
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
52
- s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
53
- s.add_development_dependency(%q<bundler>.freeze, ["~> 1.6"])
54
- s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
55
- s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.0"])
56
- else
57
- s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
58
- s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
59
- s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
60
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
61
- s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
62
- end
51
+ if s.respond_to? :add_runtime_dependency then
52
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
53
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
54
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.6"])
55
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
56
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.0"])
63
57
  else
64
58
  s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
65
59
  s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
@@ -6,6 +6,7 @@
6
6
  <% else -%>
7
7
  %p.nav= link_to t('.new_<%= singular_table_name %>'), new_<%= singular_table_name %>_path, class: 'new'
8
8
  <% end -%>
9
+ <% turbo = defined? Turbo -%>
9
10
 
10
11
  - if @<%= plural_table_name %>.limit(1).size > 0
11
12
  <% if defined? Wice::WiceGrid -%>
@@ -14,11 +15,11 @@
14
15
  <% for attribute in attributes.reject(&:password_digest?) -%>
15
16
  <% if attribute.reference? -%>
16
17
  - g.column name: <%= class_name %>.human_attribute_name(:<%= attribute.name %>),
17
- class: '<%= attribute.name %>', attribute: '<%= attribute.name %>_id' do |<%= singular_table_name %>|
18
+ class: '<%= attribute.name %>', attribute: '<%= attribute.name %>_id' do |<%= singular_table_name %>|
18
19
  - <%= singular_table_name %>.<%= attribute.name %>.try :name
19
20
  <% else -%>
20
21
  - g.column name: <%= class_name %>.human_attribute_name(:<%= attribute.name %>),
21
- class: '<%= attribute.name %>', attribute: '<%= attribute.name %>' do |<%= singular_table_name %>|
22
+ class: '<%= attribute.name %>', attribute: '<%= attribute.name %>' do |<%= singular_table_name %>|
22
23
  - <%= singular_table_name %>.<%= attribute.name %>
23
24
  <% end -%>
24
25
  <% end -%>
@@ -31,18 +32,30 @@
31
32
  - link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
32
33
  - g.column do |<%= singular_table_name %>|
33
34
  - if can? :destroy, <%= singular_table_name %>
35
+ <% if turbo -%>
36
+ - link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
37
+ data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
38
+ turbo_method: :delete}
39
+ <% else -%>
34
40
  - link_to t('destroy'), <%= singular_table_name %>,
35
- data: {confirm: t('.confirm', default: 'Are you sure?')},
36
- method: :delete, class: 'destroy'
41
+ data: {confirm: t('.confirm', default: 'Are you sure?')},
42
+ method: :delete, class: 'destroy'
43
+ <% end -%>
37
44
  <% else -%>
38
45
  - g.column do |<%= singular_table_name %>|
39
46
  - link_to t('show'), <%= singular_table_name %>, class: 'show'
40
47
  - g.column do |<%= singular_table_name %>|
41
48
  - link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
42
49
  - g.column do |<%= singular_table_name %>|
50
+ <% if turbo -%>
51
+ - link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
52
+ data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
53
+ turbo_method: :delete}
54
+ <% else -%>
43
55
  - link_to t('destroy'), <%= singular_table_name %>,
44
- data: {confirm: t('.confirm', default: 'Are you sure?')},
45
- method: :delete, class: 'destroy'
56
+ data: {confirm: t('.confirm', default: 'Are you sure?')},
57
+ method: :delete, class: 'destroy'
58
+ <% end -%>
46
59
  <% end -%>
47
60
  -else
48
61
  %table
@@ -72,15 +85,27 @@
72
85
  = link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
73
86
  %td.action
74
87
  - if can? :destroy, <%= singular_table_name %>
88
+ <% if turbo -%>
89
+ = link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
90
+ data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
91
+ turbo_method: :delete}
92
+ <% else -%>
75
93
  = link_to t('destroy'), <%= singular_table_name %>,
76
- data: {confirm: t('.confirm', default: 'Are you sure?')},
77
- method: :delete, class: 'destroy'
94
+ data: {confirm: t('.confirm', default: 'Are you sure?')},
95
+ method: :delete, class: 'destroy'
96
+ <% end -%>
78
97
  <% else -%>
79
98
  %td.action= link_to t('show'), <%= singular_table_name %>, class: 'show'
80
99
  %td.action= link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
100
+ <% if turbo -%>
101
+ %td.action= link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
102
+ data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
103
+ turbo_method: :delete}
104
+ <% else -%>
81
105
  %td.action= link_to t('destroy'), <%= singular_table_name %>,
82
- data: {confirm: t('.confirm', default: 'Are you sure?')},
83
- method: :delete, class: 'destroy'
106
+ data: {confirm: t('.confirm', default: 'Are you sure?')},
107
+ method: :delete, class: 'destroy'
108
+ <% end -%>
84
109
  <% end -%>
85
110
  <% else -%>
86
111
  %table
@@ -110,15 +135,27 @@
110
135
  = link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
111
136
  %td.action
112
137
  - if can? :destroy, <%= singular_table_name %>
138
+ <% if turbo -%>
139
+ = link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
140
+ data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
141
+ turbo_method: :delete}
142
+ <% else -%>
113
143
  = link_to t('destroy'), <%= singular_table_name %>,
114
- data: {confirm: t('.confirm', default: 'Are you sure?')},
115
- method: :delete, class: 'destroy'
144
+ data: {confirm: t('.confirm', default: 'Are you sure?')},
145
+ method: :delete, class: 'destroy'
146
+ <% end -%>
116
147
  <% else -%>
117
148
  %td.action= link_to t('show'), <%= singular_table_name %>, class: 'show'
118
149
  %td.action= link_to t('edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'edit'
150
+ <% if turbo -%>
151
+ %td.action= link_to t('destroy'), <%= singular_table_name %>, class: 'destroy',
152
+ data: {turbo_confirm: t('.confirm', default: 'Are you sure?'),
153
+ turbo_method: :delete}
154
+ <% else -%>
119
155
  %td.action= link_to t('destroy'), <%= singular_table_name %>,
120
- data: {confirm: t('.confirm', default: 'Are you sure?')},
121
- method: :delete, class: 'destroy'
156
+ data: {confirm: t('.confirm', default: 'Are you sure?')},
157
+ method: :delete, class: 'destroy'
158
+ <% end -%>
122
159
  <% end -%>
123
160
  <% end -%>
124
161
  - else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advanced_haml_scaffold_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -112,7 +112,7 @@ homepage: http://github.com/dima4p/advanced_haml_scaffold_generator
112
112
  licenses:
113
113
  - MIT
114
114
  metadata: {}
115
- post_install_message:
115
+ post_install_message:
116
116
  rdoc_options: []
117
117
  require_paths:
118
118
  - lib
@@ -127,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.0.3
131
- signing_key:
130
+ rubygems_version: 3.1.4
131
+ signing_key:
132
132
  specification_version: 4
133
133
  summary: Extention of the haml generator that is aware of i18n and so forth
134
134
  test_files: []