bootscaf 0.1.20 → 0.1.21

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
  SHA1:
3
- metadata.gz: 6df486119fb97353da442b83fce919ddf7d045f6
4
- data.tar.gz: 23ed0403a172e6767748489a62d97b03293a0ce3
3
+ metadata.gz: ff421fa52d9180fc898af40e6325535124cf4155
4
+ data.tar.gz: c4d01a6f8d603355a075e1355628869cd14c76d8
5
5
  SHA512:
6
- metadata.gz: 38ca57bfe470467efcd5471df3241266b8e3fd20dce0ff9b97b00d3831911ecc040905aea4a988b6fd64f6999d23556e8ccc23dc015e6d98663f55029046244a
7
- data.tar.gz: 4541b37ec635aa91f8664f8c183c6b2d5d3d68568d0bd50df66c25b90d0214a16f1a428d464a67eff5daf788cf5c86f371dcb72f46e661724a72fd3eb25d4b11
6
+ metadata.gz: 1e6c2dfdfc9a76c6a982517b843d4fcab2c38bbc55267c7a1425c9cd4548417ec02ca35b2c617912a6fb14d2e567809b2c87819f5782f877a4c0f9671052b499
7
+ data.tar.gz: 09f7269c0089f7bedfd90d3c6117166c81ebcba32cf966e064df2a92a94de59a66f696c2464d7e66016342859ae5dfc0e9e412ad4de8ba8207e0d61ac6d27c9b
data/lib/bootscaf/cli.rb CHANGED
@@ -226,7 +226,7 @@ module Bootscaf
226
226
  print `sed #{icmd} -e 's/<td><%= link_to '\\''Show'\\'', \\(.*\\) %><\\/td>//' app/views/#{modelname}/index.html.erb`
227
227
  print `sed #{icmd} -e 's/<td><%= link_to '\\''Edit'\\'', edit_\\(.*\\)_path(\\(.*\\)) %><\\/td>//' app/views/#{modelname}/index.html.erb`
228
228
  print `sed #{icmd} -e 's/<td><%= link_to '\\''Destroy'\\'', \\(.*\\), method: :delete, data: { confirm: '\\''Are you sure?'\\'' } %><\\/td>//' app/views/#{modelname}/index.html.erb`
229
- print `sed #{icmd} -e 's/<% @#{modelname}.each do \\|\\(.*\\)\\| %>/<% unless @#{modelname}.any? %>\\\n<tr id="empty-table">\\\n<td class="bg-warning" colspan="2">No #{modelname} created yet.<\\/td>\\\n<\\/tr>\\\n<% end %>\\\n<% @#{modelname}.each do \\|\\2\\| %>\\\n<tr class="linked-row" data-href="<%= \\2_path(\\2) %>">/' app/views/#{modelname}/index.html.erb`
229
+ print `sed #{icmd} -e 's/<% @#{modelname}.each do \\|\\(.*\\)\\| %>/<% unless @#{modelname}.any? %>\\\n<tr id="empty-table">\\\n<td class="bg-warning" colspan="2">No #{modelname} created yet.<\\/td>\\\n<\\/tr>\\\n<% end %>\\\n<% @#{modelname}.each do \\|\\1\\| %>\\\n<tr class="linked-row" data-href="<%= \\1_path(\\1) %>">/' app/views/#{modelname}/index.html.erb`
230
230
  print `sed #{icmd} -e 's/<tr>//' app/views/#{modelname}/index.html.erb`
231
231
  print `sed #{icmd} -e 's/<thead>/<thead>\\\n<tr>/' app/views/#{modelname}/index.html.erb`
232
232
  print `sed #{icmd} -e 's/<td><%= \\(.*\\)\\.\\(.*\\) %><\\/td>/<td><%= link_to \\1.\\2, \\1 %><\\/td>/' app/views/#{modelname}/index.html.erb`
@@ -1,3 +1,3 @@
1
1
  module Bootscaf
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootscaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Moore