bootscaf 0.1.1 → 0.1.2
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 +40 -0
- data/bootscaf.gemspec +2 -2
- data/lib/bootscaf/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1ff4b3f4465c2e75acad8c22150a73eb8fb2cd
|
4
|
+
data.tar.gz: f915d9e00b9ec3c4d1fdfa39a668ec1fd70e03e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 044b7150626fb885a9b89e85655f5bb3cac9c3880b21436e106083d80daee0f13a64970f23c6580ecf1749d5001af88ee31162d58193f1be806410c7f9954a56
|
7
|
+
data.tar.gz: 0d3ac426c466041a06254884dffdd7cfba9cd6735086d2abc4adc053aa6dfabd5d6b6d98e8a922039f9e9373940be6c31104ec699c810ded545d479030167503
|
data/README.md
CHANGED
@@ -45,6 +45,46 @@ Of course, get help any time simply by running the naked `bootscaf` binary:
|
|
45
45
|
bootscaf
|
46
46
|
```
|
47
47
|
|
48
|
+
### Examples
|
49
|
+
|
50
|
+
Run the `bootscaf` binary on a `Post` scaffold/model:
|
51
|
+
|
52
|
+
```sh
|
53
|
+
bootscaf update posts
|
54
|
+
```
|
55
|
+
|
56
|
+
## Extras
|
57
|
+
|
58
|
+
There are a few conveniences added that we use in the vast majority of our projects. They are:
|
59
|
+
|
60
|
+
1) Helper css class names on the `<body>` element for page-specific CSS:
|
61
|
+
|
62
|
+
```erb
|
63
|
+
<body class="controller-<%= controller.controller_name.dasherize %> action-<%= controller.action_name.dasherize %>">
|
64
|
+
```
|
65
|
+
|
66
|
+
2) Google analytics if an environment variable is set:
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
ENV["GOOGLE_ANALYTICS_ID"]
|
70
|
+
```
|
71
|
+
|
72
|
+
3) A click-to-select css selector for read-only inputs:
|
73
|
+
|
74
|
+
```html
|
75
|
+
<input class="select-all-on-click" type="text" value="long value" readonly>
|
76
|
+
```
|
77
|
+
|
78
|
+
4) Page `<title>`s set in views:
|
79
|
+
|
80
|
+
```erb
|
81
|
+
<% content_for :page_title do %>
|
82
|
+
Edit Model —
|
83
|
+
<% end %>
|
84
|
+
```
|
85
|
+
|
86
|
+
And that’s about it, for now!
|
87
|
+
|
48
88
|
## Running Tests
|
49
89
|
|
50
90
|
`bundle exec rspec spec`
|
data/bootscaf.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Bootscaf::VERSION
|
9
9
|
spec.authors = ["Matthew Moore"]
|
10
10
|
spec.email = ["hello@thrivesmart.com"]
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
11
|
+
spec.summary = %q{I absolutely love the rails g scaffold command for new projects. But I can’t stand that there’s no easy way to output good-lookin’ bootstrap layouts by default. I also haven’t found a twitter bootstap gem that can go back to old scaffolds and just re-jigger them at any time. So we created Bootscaf, a gem that lets you run a command that seds all your scaffold view files to use bootstrap friendly classes. Best of all, it’s open-source.}
|
12
|
+
spec.description = %q{Easily turn your rails generated scaffolds into fully bootstrappified views.}
|
13
13
|
spec.homepage = "https://github.com/thrivesmart/bootscaf"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
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.2
|
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-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -66,7 +66,8 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description: Easily turn your rails generated scaffolds into fully bootstrappified
|
70
|
+
views.
|
70
71
|
email:
|
71
72
|
- hello@thrivesmart.com
|
72
73
|
executables:
|
@@ -117,6 +118,11 @@ rubyforge_project:
|
|
117
118
|
rubygems_version: 2.2.2
|
118
119
|
signing_key:
|
119
120
|
specification_version: 4
|
120
|
-
summary:
|
121
|
+
summary: I absolutely love the rails g scaffold command for new projects. But I can’t
|
122
|
+
stand that there’s no easy way to output good-lookin’ bootstrap layouts by default.
|
123
|
+
I also haven’t found a twitter bootstap gem that can go back to old scaffolds and
|
124
|
+
just re-jigger them at any time. So we created Bootscaf, a gem that lets you run
|
125
|
+
a command that seds all your scaffold view files to use bootstrap friendly classes. Best
|
126
|
+
of all, it’s open-source.
|
121
127
|
test_files:
|
122
128
|
- spec/bootscaf_spec.rb
|