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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4499d6a51e6d8b3965197a1a3d26d5df8610bee4
4
- data.tar.gz: 657310de883775dc187bb4b19df33ef5d15660b1
3
+ metadata.gz: c090c4eecc46f877fcd70713bf67189db14d0336
4
+ data.tar.gz: 8af9d3380f575421ee964a7398253ccb79492dac
5
5
  SHA512:
6
- metadata.gz: d9cba1a01ebf6c576989d4b75c3dac7ef3483cb6e7ca3964eab6c812ff4ae579ca1f8debc0463956c5fa3e46d67f32cd5bd9bb939b35e29f31926d1317892936
7
- data.tar.gz: d59b93e642a1324a71a73a7e225b246beb0163e0bb67114dcbeb62eb6083fd605e13ae55381511ab539e651a9b00fedd943aa337bb9bd9dd862d544eb3368bfe
6
+ metadata.gz: 8059259f412ed24aed9ba29e53ecda51dd230156505e2afff76005443d3a8b9f553f24865728b2d00879b755d4aca36b2c4685eef5a798bdf069d49b33290800
7
+ data.tar.gz: fd24600c582956c778182cfcbc36dd6c3e0b7d7d472a6c3f7f327d9dad314eeb6c043e972cce0d9b6c45972845f25ab79e6e213203b46285807f1bb6da63f296
@@ -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 'sets a page title' do
94
- expect(application_layout).to match(/%title=\ content_for\?\(:title\)\ \?\ yield\(:title\)\ :\ 'Untitled'/)
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
@@ -1,3 +1,3 @@
1
1
  module Shoestrap
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -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
- %title= content_for?(:title) ? yield(:title) : 'Untitled'
15
- %meta{ name: 'keywords', content: '' }
16
- %meta{ name: 'description', content: '' }
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.1
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-09-26 00:00:00.000000000 Z
11
+ date: 2013-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler