bootstrap_leather 0.6.3 → 0.7.0

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: 675264016d0f80c9044a18ffccb1380d3f55d7dd
4
- data.tar.gz: c95581f8095646d11133e88bb57aa0241bf2fc55
3
+ metadata.gz: cd153c4868115ab2d541d7b6dd214cc4ba241ca4
4
+ data.tar.gz: 048dcedda985490c8edc96050645ddb699343367
5
5
  SHA512:
6
- metadata.gz: 60118de4b51a3148ace47031e29b53b5cfcd10ad7fe2d20949136450cf0abafae691574f793f4803a9e02b7fdcf9676228683d28d0ad66076d1c9af9ee8bc9b6
7
- data.tar.gz: ad1fe234e7c784d188b99781b3030db3bcaec6de9534f2084905e9c522a166434a6b6d99eb37eca59fe38d8afb129a868c6ac9704ec254c53563d05ec9e63055
6
+ metadata.gz: 7dc54c5af458c2e816fd288237b1f7770cdd880119d423a559dd696936c231ff62579d591dc4fbfa8bff5a947235380d07874cdb97e63a3d1a54db85e1bdfe09
7
+ data.tar.gz: f1fa57fc5aa4921bc12e4b798175906696961882428183ab9376ab02bdc7fea2124d85e42039a9b1d4d455760709099db10a64da942e572d06ae55393d3ed961
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.3
1
+ 0.7.0
@@ -1,19 +1,19 @@
1
1
  module BootstrapLeatherHelper
2
2
 
3
3
  def add_title(title)
4
- @title = title
4
+ content_for :title, title
5
5
  end
6
6
 
7
7
  def add_subtitle(subtitle)
8
- @subtitle = subtitle
8
+ content_for :subtitle, subtitle
9
9
  end
10
10
 
11
11
  def add_description(description)
12
- @description = description
12
+ content_for :description, description
13
13
  end
14
14
 
15
15
  def add_keywords(keywords)
16
- @keywords = keywords
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 => @keywords || BootstrapLeather.configuration.application_keywords
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 => @description || BootstrapLeather.configuration.application_keywords
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 << @title
38
- page_title << @subtitle
37
+ page_title << content_for(:title)
38
+ page_title << content_for(:subtitle)
39
39
  page_title << BootstrapLeather.configuration.application_title
40
- page_title << @keywords
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, @title, html_options
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 => @title, :subtitle => @subtitle, :html_options => html_options})
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
@@ -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.6.3 ruby lib
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.6.3"
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-05-28"
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.6.3
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-05-28 00:00:00.000000000 Z
11
+ date: 2015-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass