shoestrap 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +18 -0
- data/features/shoestrap/commands/new_command_spec.rb +2 -2
- data/lib/shoestrap/version.rb +1 -1
- data/templates/application_generator/application.html.haml +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c090c4eecc46f877fcd70713bf67189db14d0336
|
4
|
+
data.tar.gz: 8af9d3380f575421ee964a7398253ccb79492dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8059259f412ed24aed9ba29e53ecda51dd230156505e2afff76005443d3a8b9f553f24865728b2d00879b755d4aca36b2c4685eef5a798bdf069d49b33290800
|
7
|
+
data.tar.gz: fd24600c582956c778182cfcbc36dd6c3e0b7d7d472a6c3f7f327d9dad314eeb6c043e972cce0d9b6c45972845f25ab79e6e213203b46285807f1bb6da63f296
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.0.2 - 2013-10-02
|
4
|
+
|
5
|
+
- Fix Kuhaft `content_for :head` block integration and document how to use it
|
6
|
+
- Upgrade to Kuhsaft 2.2.0 and **update the head of your application layout** accordingly!
|
7
|
+
|
3
8
|
## 1.0.1 - 2013-09-26
|
4
9
|
|
5
10
|
* foundation integration tweaks:
|
data/README.md
CHANGED
@@ -13,6 +13,24 @@ work. Your mileage may vary!
|
|
13
13
|
* generate new rails apps with a sc flavored setup
|
14
14
|
* generate admin backends with view inheritance and inhertied_resources
|
15
15
|
|
16
|
+
# Building a Rails App with shoestrap
|
17
|
+
|
18
|
+
## Meta Tags
|
19
|
+
|
20
|
+
Shoestrap expects you to define a `content_for :head block` where you
|
21
|
+
define things like descritpion and keyword metatags, page title etc:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
= content_for :head do
|
25
|
+
%title 'Define how your page title is built'
|
26
|
+
%meta{ name: 'keywords', 'content: set some keywords if you like' }
|
27
|
+
%meta{ name: 'description', content: 'add a description!' }
|
28
|
+
```
|
29
|
+
|
30
|
+
Kuhsaft already uses this for it's pages starting from version 2.2.0. If
|
31
|
+
you do not define a content_for block, the meta tags will be set to
|
32
|
+
default values!
|
33
|
+
|
16
34
|
## Test shoestrap "compliance"
|
17
35
|
|
18
36
|
You can check how much your existing Applicaiton complies with the
|
@@ -90,8 +90,8 @@ describe 'application generated with shoestrap new <application_name>' do
|
|
90
90
|
expect(application_layout).to match "%html.no-js{ lang: I18n.locale }"
|
91
91
|
end
|
92
92
|
|
93
|
-
it '
|
94
|
-
expect(application_layout).to match(
|
93
|
+
it 'renders content_for :head if it is defined' do
|
94
|
+
expect(application_layout).to match(/content_for\?\(:head\)\n = yield\(:head\)\n - else\n %title 'Untitled'\n/)
|
95
95
|
end
|
96
96
|
|
97
97
|
it 'has meta tags' do
|
data/lib/shoestrap/version.rb
CHANGED
@@ -11,9 +11,13 @@
|
|
11
11
|
%head
|
12
12
|
%meta{ charset: 'utf-8' }
|
13
13
|
%meta{ 'http-equiv' => 'X-UA-Compatible', content: 'IE=edge' }
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
- if content_for?(:head)
|
15
|
+
= yield(:head)
|
16
|
+
- else
|
17
|
+
%title 'Untitled'
|
18
|
+
%meta{ name: 'keywords', content: '' }
|
19
|
+
%meta{ name: 'description', content: '' }
|
20
|
+
|
17
21
|
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }
|
18
22
|
|
19
23
|
-# Favicons
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoestrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Kaufmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|