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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4d71e7595198b1df9299f3a233afea2b8265284
4
- data.tar.gz: 8478bad6011d8b3f68e579f9daf562d6ca81e057
3
+ metadata.gz: 4a1ff4b3f4465c2e75acad8c22150a73eb8fb2cd
4
+ data.tar.gz: f915d9e00b9ec3c4d1fdfa39a668ec1fd70e03e0
5
5
  SHA512:
6
- metadata.gz: 70fcceebeef63283179db8aca78b59f8bd5b245f89ba4589e6e0e8fea78f2b0453d4b97664bc66ce38e0894178990d934acb5fefa04660976ba71bc1c5fda81e
7
- data.tar.gz: 968d3af3e6dc2b3257f4a228327639fea8e7a1f037ac590c2b187c4e305f65d6e43d62de531dfd19f35015d1bd1112c97498f9ca1568160b5f2c2cbd1d486a7b
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{Overwrites a Ruby on Rails scaffold generation and makes it look great.}
12
- spec.description = %q{Really great.}
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
 
@@ -1,3 +1,3 @@
1
1
  module Bootscaf
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.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-17 00:00:00.000000000 Z
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: Really great.
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: Overwrites a Ruby on Rails scaffold generation and makes it look great.
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