bootstrap_leather 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/helpers/bootstrap_leather_helper.rb +11 -11
- data/bootstrap_leather.gemspec +3 -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: cd153c4868115ab2d541d7b6dd214cc4ba241ca4
|
4
|
+
data.tar.gz: 048dcedda985490c8edc96050645ddb699343367
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc54c5af458c2e816fd288237b1f7770cdd880119d423a559dd696936c231ff62579d591dc4fbfa8bff5a947235380d07874cdb97e63a3d1a54db85e1bdfe09
|
7
|
+
data.tar.gz: f1fa57fc5aa4921bc12e4b798175906696961882428183ab9376ab02bdc7fea2124d85e42039a9b1d4d455760709099db10a64da942e572d06ae55393d3ed961
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
@@ -1,19 +1,19 @@
|
|
1
1
|
module BootstrapLeatherHelper
|
2
2
|
|
3
3
|
def add_title(title)
|
4
|
-
|
4
|
+
content_for :title, title
|
5
5
|
end
|
6
6
|
|
7
7
|
def add_subtitle(subtitle)
|
8
|
-
|
8
|
+
content_for :subtitle, subtitle
|
9
9
|
end
|
10
10
|
|
11
11
|
def add_description(description)
|
12
|
-
|
12
|
+
content_for :description, description
|
13
13
|
end
|
14
14
|
|
15
15
|
def add_keywords(keywords)
|
16
|
-
|
16
|
+
content_for :keywords, keywords
|
17
17
|
end
|
18
18
|
|
19
19
|
def add_head_css(&block)
|
@@ -25,28 +25,28 @@ module BootstrapLeatherHelper
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def render_keywords
|
28
|
-
tag :meta, :name => :keywords, :content =>
|
28
|
+
tag :meta, :name => :keywords, :content => content_for(:keywords) || BootstrapLeather.configuration.application_keywords
|
29
29
|
end
|
30
30
|
|
31
31
|
def render_description
|
32
|
-
tag :meta, :name => :description, :content =>
|
32
|
+
tag :meta, :name => :description, :content => content_for(:description) || BootstrapLeather.configuration.application_keywords
|
33
33
|
end
|
34
34
|
|
35
35
|
def render_title
|
36
36
|
page_title = []
|
37
|
-
page_title <<
|
38
|
-
page_title <<
|
37
|
+
page_title << content_for(:title)
|
38
|
+
page_title << content_for(:subtitle)
|
39
39
|
page_title << BootstrapLeather.configuration.application_title
|
40
|
-
page_title <<
|
40
|
+
page_title << content_for(:keywords)
|
41
41
|
content_tag :title, page_title.compact.join(': ')
|
42
42
|
end
|
43
43
|
|
44
44
|
def render_h1(html_options = {})
|
45
|
-
content_tag :h1,
|
45
|
+
content_tag :h1, content_for(:title), html_options
|
46
46
|
end
|
47
47
|
|
48
48
|
def render_page_header(html_options = {})
|
49
|
-
render(:partial => 'bootstrap_leather/page_header', :locals => {:title =>
|
49
|
+
render(:partial => 'bootstrap_leather/page_header', :locals => {:title => content_for(:title), :subtitle => content_for(:subtitle), :html_options => html_options})
|
50
50
|
end
|
51
51
|
|
52
52
|
def responsive_meta_tag
|
data/bootstrap_leather.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: bootstrap_leather 0.
|
5
|
+
# stub: bootstrap_leather 0.7.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bootstrap_leather"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.7.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Karen Lundgren"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-06-09"
|
15
15
|
s.description = "BootstrapLeather is a collection of view helpers that makes it easier to create apps using Twitter Bootstrap"
|
16
16
|
s.email = "karen.e.lundgren@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_leather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Lundgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|