bootstrap_leather 0.4.7 → 0.4.8

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: 7c520c24cef2554c2e171ea0d402dac054a0b50e
4
- data.tar.gz: c360e345739e7da5750c2590a14a7446386e7ccc
3
+ metadata.gz: 765e888c10158270e816a749c7bdccf4d5ffd25b
4
+ data.tar.gz: 22666c085eb8d10325711a51868bc6282fe94b39
5
5
  SHA512:
6
- metadata.gz: 4d6dcd1f7b392229e9d02f6a40f272e98f32305bdf300b9427b2699ab805e83414eaffcae169d5b19a45c259be5705ed8e77d7b4899694d4692be6ed07fd758a
7
- data.tar.gz: f3f620fa50f76b571a9b042e2d32be2e3eb26f98541a9a75df61781cd8a06ef21c0f591df06a1e4fe9c74b8609b98ff33179d0bab792a346f4a91b4cda0c5c08
6
+ metadata.gz: 5912364920b89d1b8dbaed531a3f25a142f8872d5b1297dec24106e657fc2d5d44444c1d63eef6d58b8f86519412d3074f782e3b0e033355cd9f7562981221e5
7
+ data.tar.gz: 92d376e5707f4cdfe6bd16d3fede8972a77cf12ad7a3a01a433c16417d95678f6a177a5cda04c520ca4b61f7d0949f846f99670f9137d33226747459ad3cb79e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
@@ -139,6 +139,11 @@ module BootstrapLeatherHelper
139
139
  render(:partial => 'bootstrap_leather/thumbnail', :locals => {:content => content ? content : capture(&block)})
140
140
  end
141
141
 
142
+ def icon_button_to(button_class, icon_type, text, link, html_options={})
143
+ html_options[:class] = 'btn ' + button_class
144
+ render(:partial => 'bootstrap_leather/icon_button_to', :locals => {:button_class => button_class, :icon_type => icon_type, :text => text, :link => link, :html_options => html_options})
145
+ end
146
+
142
147
  def icon(type)
143
148
  render(:partial => 'bootstrap_leather/icon', :locals => {:type => type})
144
149
  end
@@ -0,0 +1,3 @@
1
+ = button_to link, html_options do
2
+ %span{:class => 'glyphicon glyphicon-' + type}
3
+ = text
@@ -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.4.7 ruby lib
5
+ # stub: bootstrap_leather 0.4.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bootstrap_leather"
9
- s.version = "0.4.7"
9
+ s.version = "0.4.8"
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-08"
14
+ s.date = "2015-05-16"
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 = [
@@ -37,6 +37,7 @@ Gem::Specification.new do |s|
37
37
  "app/views/bootstrap_leather/_head_css.html.haml",
38
38
  "app/views/bootstrap_leather/_hero_unit.html.haml",
39
39
  "app/views/bootstrap_leather/_icon.html.haml",
40
+ "app/views/bootstrap_leather/_icon_button_to.html.haml",
40
41
  "app/views/bootstrap_leather/_logo_and_title.html.haml",
41
42
  "app/views/bootstrap_leather/_modal.html.haml",
42
43
  "app/views/bootstrap_leather/_nav_item.html.haml",
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.7
4
+ version: 0.4.8
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-08 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
@@ -177,6 +177,7 @@ files:
177
177
  - app/views/bootstrap_leather/_head_css.html.haml
178
178
  - app/views/bootstrap_leather/_hero_unit.html.haml
179
179
  - app/views/bootstrap_leather/_icon.html.haml
180
+ - app/views/bootstrap_leather/_icon_button_to.html.haml
180
181
  - app/views/bootstrap_leather/_logo_and_title.html.haml
181
182
  - app/views/bootstrap_leather/_modal.html.haml
182
183
  - app/views/bootstrap_leather/_nav_item.html.haml