nifty-utils 1.1.6 → 1.1.7
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 +4 -4
- data/lib/nifty/utils/version.rb +1 -1
- data/lib/nifty/utils/view_helpers.rb +7 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f43ab7bf985adc936f4f3d5af7d9aeed18f5874
|
4
|
+
data.tar.gz: 8f219e2ad9b79506674ab44989fd62c281d8b933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e12d189131662b24b3b31e0c17eb94d339b68fd419e8eaecb4d6a43551d369297cbf3d7c45cd6d58b65898e15b399d0be54a09c52d87436eab365be939e8bf
|
7
|
+
data.tar.gz: fe8b782a9f0538d2764b954b4fdc25ba23b5f2dee681859d801745cbbca1b1b45389ea9dc1c5f11b9c96631d8291fb5de237215f60a35fedeec78306d6c4a9d3
|
data/lib/nifty/utils/version.rb
CHANGED
@@ -88,6 +88,13 @@ module Nifty
|
|
88
88
|
image_tag(url, :alt => 'Google Authenticator QRCode', :width => 200, :height => 200)
|
89
89
|
end
|
90
90
|
|
91
|
+
# Return a Google Fonts tag
|
92
|
+
def google_fonts(sets = {})
|
93
|
+
sets = sets.each_with_object([]) do |(name, weights), array|
|
94
|
+
array << "#{name}:#{weights.join(',')}"
|
95
|
+
end.join('|')
|
96
|
+
"<link href='https://fonts.googleapis.com/css?family=#{sets}' rel='stylesheet' type='text/css'>".html_safe
|
97
|
+
end
|
91
98
|
|
92
99
|
end
|
93
100
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nifty-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A set of useful utilties for Rails applications.
|
14
14
|
email:
|
@@ -53,9 +53,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.4.5
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: A collection of functions which expand upon ActiveRecord and ActionView.
|
60
60
|
test_files: []
|
61
|
-
has_rdoc:
|