bootscaf 0.1.2 → 0.1.4

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: 4a1ff4b3f4465c2e75acad8c22150a73eb8fb2cd
4
- data.tar.gz: f915d9e00b9ec3c4d1fdfa39a668ec1fd70e03e0
3
+ metadata.gz: de4ad880238b7ab2fe17d22b09ae367b56eb26e7
4
+ data.tar.gz: 7aec2415107cfe501826dd6e703fd31f29e4c211
5
5
  SHA512:
6
- metadata.gz: 044b7150626fb885a9b89e85655f5bb3cac9c3880b21436e106083d80daee0f13a64970f23c6580ecf1749d5001af88ee31162d58193f1be806410c7f9954a56
7
- data.tar.gz: 0d3ac426c466041a06254884dffdd7cfba9cd6735086d2abc4adc053aa6dfabd5d6b6d98e8a922039f9e9373940be6c31104ec699c810ded545d479030167503
6
+ metadata.gz: 0797ed8e8fdede398f53c34a7149fa58bb0586d232a0a6db6c24488ea3dfea67747a76732b20fae0a0338789d59eda7d9707d43c0aba20558ed88b033a1ac44e
7
+ data.tar.gz: 2429d394677aceab14578d0eae374a9db7df0ba3677113a252302f6e924e6fa08d0263adb782d1342ce612ca83289048f2290feaa1f2576b50c0c0c9e5bb2c10
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Bootscaf is a ruby gem that turns the default `rails generate scaffold`s into fully bootstrappified scaffolds.
6
6
 
7
- Read more in the original blog post.
7
+ Read more in the [original blog post](https://medium.com/@thrivesmart/bootscaf-easily-sexify-your-rails-scaffolds-to-use-bootstrap-d30c09d8649d).
8
8
 
9
9
  * Supported [Bootstrap](http://getbootstrap.com/) Version: `3.x`
10
10
  * Supported [JQuery](http://jquery.com/) Version: `2.x`
data/lib/bootscaf/cli.rb CHANGED
@@ -149,6 +149,7 @@ module Bootscaf
149
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`
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
153
  print `sed #{inplace_command} -e 's/<th colspan="3"><\\/th>//' app/views/#{modelname}/index.html.erb`
153
154
  print `sed #{inplace_command} -e 's/<td><%= link_to '\\''Show'\\'', \\(.*\\) %><\\/td>//' app/views/#{modelname}/index.html.erb`
154
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.2"
2
+ VERSION = "0.1.4"
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.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.2.2
118
+ rubygems_version: 2.4.6
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: I absolutely love the rails g scaffold command for new projects. But I can’t