bootscaf 0.1.4 → 0.1.5

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: de4ad880238b7ab2fe17d22b09ae367b56eb26e7
4
- data.tar.gz: 7aec2415107cfe501826dd6e703fd31f29e4c211
3
+ metadata.gz: b105750b0faef03535b122fdcf67314b105e2ad3
4
+ data.tar.gz: afe95fb44e5ca317c2fca7d69e6f3f20dbeabb95
5
5
  SHA512:
6
- metadata.gz: 0797ed8e8fdede398f53c34a7149fa58bb0586d232a0a6db6c24488ea3dfea67747a76732b20fae0a0338789d59eda7d9707d43c0aba20558ed88b033a1ac44e
7
- data.tar.gz: 2429d394677aceab14578d0eae374a9db7df0ba3677113a252302f6e924e6fa08d0263adb782d1342ce612ca83289048f2290feaa1f2576b50c0c0c9e5bb2c10
6
+ metadata.gz: 1a4c4fc726278c196d0ccdd291653a48724b01fbf750c5da4d6264821bc995741f28ea843dc4a428a8d8e32244fc40b47fca4f4fa50910021a4d82ac2c77873d
7
+ data.tar.gz: c753cc644eea64e1f879771595c482c52815c4296e5db64ca35e2d199ce9890fa38eb7204cae4b2720bec09692b3d567b679e836bf22dd54c12d9f4af1546d79
data/lib/bootscaf/cli.rb CHANGED
@@ -146,10 +146,10 @@ module Bootscaf
146
146
  print "\n"
147
147
 
148
148
  print "Updating app/views/#{modelname}/index.html.erb. "
149
- print `sed #{inplace_command} -e 's/<h1>Listing \\(.*\\)s<\\/h1>/<% content_for :page_title do %>\\\n\\1s - \\\n<% end %>\\\n<div class="container">\\\n<div class="page-header">\\\n<h1>\\\n<div class="pull-left">\\\n<%= link_to "<span class=\\\\"glyphicon glyphicon-step-backward\\\\" aria-hidden=\\\\"true\\\\"><\\/span>".html_safe, "\\/", class: "btn btn-default", title: "Back" %>\\\n\\&nbsp;\\\n<\\/div>\\\n\\\n<div class="pull-right">\\\n<%= link_to "<span class=\\\\"glyphicon glyphicon-plus-sign\\\\" aria-hidden=\\\\"true\\\\"><\\/span> New \\1".html_safe, [:new, :\\1], class: "btn btn-success" %>\\\n<\\/div>\\\nListing \\1s\\\n<\\/h1>\\\n<\\/div>\\\n\\\n<table class="table table-striped table-hover tablesorter" id="\\1s-table">/' app/views/#{modelname}/index.html.erb`
149
+ print `sed #{inplace_command} -e 's/<h1>Listing \\(.*\\)s<\\/h1>/<% content_for :page_title do %>\\\n\\1s - \\\n<% end %>\\\n<div class="container">\\\n<div class="page-header">\\\n<h1>\\\n<div class="pull-left">\\\n<%= link_to "<span class=\\\\"glyphicon glyphicon-step-backward\\\\" aria-hidden=\\\\"true\\\\"><\\/span>".html_safe, "\\/", class: "btn btn-default", title: "Back" %>\\\n\\&nbsp;\\\n<\\/div>\\\n\\\n<div class="pull-right">\\\n<%= link_to "<span class=\\\\"glyphicon glyphicon-plus-sign\\\\" aria-hidden=\\\\"true\\\\"><\\/span> New \\1".html_safe, [:new, :#{Bootscaf::Utils.singularize(modelname)}], class: "btn btn-success" %>\\\n<\\/div>\\\nListing \\1s\\\n<\\/h1>\\\n<\\/div>\\\n\\\n<table class="table table-striped table-hover tablesorter" id="\\1s-table">/' app/views/#{modelname}/index.html.erb`
150
150
  print `sed #{inplace_command} -e 's/<th>\\(.*\\)<\\/th>/<th><span>\\1<\\/span><\\/th>/g' app/views/#{modelname}/index.html.erb`
151
151
  print `sed #{inplace_command} -e 's/<table>//' app/views/#{modelname}/index.html.erb`
152
- print `sed #{inplace_command} -e 's/<\\/table>/<\\/table>\\\n<\\/div>\\\n<\\/div>/' app/views/#{modelname}/index.html.erb`
152
+ print `sed #{inplace_command} -e 's/<\\/table>/<\\/table>\\\n<\\/div>/' app/views/#{modelname}/index.html.erb`
153
153
  print `sed #{inplace_command} -e 's/<th colspan="3"><\\/th>//' app/views/#{modelname}/index.html.erb`
154
154
  print `sed #{inplace_command} -e 's/<td><%= link_to '\\''Show'\\'', \\(.*\\) %><\\/td>//' app/views/#{modelname}/index.html.erb`
155
155
  print `sed #{inplace_command} -e 's/<td><%= link_to '\\''Edit'\\'', edit_\\(.*\\)_path(\\(.*\\)) %><\\/td>//' app/views/#{modelname}/index.html.erb`
@@ -1,3 +1,3 @@
1
1
  module Bootscaf
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootscaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-30 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor