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 +4 -4
- data/README.md +1 -1
- data/lib/bootscaf/cli.rb +1 -0
- data/lib/bootscaf/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de4ad880238b7ab2fe17d22b09ae367b56eb26e7
|
4
|
+
data.tar.gz: 7aec2415107cfe501826dd6e703fd31f29e4c211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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\\ \\\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`
|
data/lib/bootscaf/version.rb
CHANGED
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
|
+
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:
|
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.
|
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
|