rails_bootstrap_helper 1.5.2 → 1.6.0

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: 56681808a3065f54942a7360565be7d004130443
4
- data.tar.gz: 118d72604302fbbcbfb0a4db2ac0452fbdaca3f9
3
+ metadata.gz: 9299b1880cfc055864e7f52d4c4a0c5464fd5fdd
4
+ data.tar.gz: '0912ed92c2349058634d863a4190b817002767ed'
5
5
  SHA512:
6
- metadata.gz: aa8d27483e504d1ae5f1c76951c89c07bf97df7e48223ff04ae46fa3d8dd50a081d1593f03e92f7a732df8ce94f8ac3938409635a1c28cf6432f75c88cc09665
7
- data.tar.gz: a18f35866eb7841055ecacb10ea2c235792dc54a682711bb8bc804d6c7d19a3a49433f5e8bbbcace1f61255346958d73b0c30e0caaae9aa66eb233af10c114d4
6
+ metadata.gz: 42c1142ab86af10283f3df3717547b06e19c678a1b2d30563171895f4808ec1acf2de956377f8bb4dc88fc0fbc4970a799a5f48c0f5a8631f7194eb64c792573
7
+ data.tar.gz: 29629e27f2b51eeef155692ddc81c0b0af576510f1fd27baa1379567781c44488e3260136ca22bd704f12351801d06b779e59fb936538b44bccf515fff4cb44c
@@ -99,5 +99,10 @@ module RailsBootstrapHelper
99
99
  def icon_tag(icon)
100
100
  content_tag(:span, '', class: "icon icon-#{icon}")
101
101
  end
102
+
103
+ def inline_svg(path)
104
+ file = File.open("app/assets/images/#{path}", "rb")
105
+ raw file.read
106
+ end
102
107
  end
103
108
  end
@@ -1,3 +1,3 @@
1
1
  module RailsBootstrapHelper
2
- VERSION = "1.5.2"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  # coding: utf-8
3
2
  lib = File.expand_path('../lib', __FILE__)
4
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -9,7 +8,7 @@ Gem::Specification.new do |gem|
9
8
  gem.email = ["hoangnghiem1711@gmail.com"]
10
9
  gem.description = %q{Bootstrap Helpers for Ruby on Rails}
11
10
  gem.summary = %q{Bootstrap Helpers for Ruby on Rails}
12
- gem.homepage = "https://github.com/hoangnghiem/rails_bootstrap_helper"
11
+ gem.homepage = "https://github.com/olimart/rails_bootstrap_helper"
13
12
 
14
13
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
14
  gem.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_bootstrap_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hoang Nghiem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-21 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -149,7 +149,7 @@ files:
149
149
  - test/dummy/script/rails
150
150
  - test/dummy/test/helpers/rails_bootstrap_helper_test.rb
151
151
  - test/test_helper.rb
152
- homepage: https://github.com/hoangnghiem/rails_bootstrap_helper
152
+ homepage: https://github.com/olimart/rails_bootstrap_helper
153
153
  licenses: []
154
154
  metadata: {}
155
155
  post_install_message: