nifty-utils 1.1.6 → 1.1.7

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: b5ad6e02aa55b0bb3a010db44422451fec700911
4
- data.tar.gz: f8d9d4533a371c32e8b9297154527356ed8c1f30
3
+ metadata.gz: 0f43ab7bf985adc936f4f3d5af7d9aeed18f5874
4
+ data.tar.gz: 8f219e2ad9b79506674ab44989fd62c281d8b933
5
5
  SHA512:
6
- metadata.gz: 85cb12e84b04661e4639e43e06825114049e8e2e99d5ad000a9db549d88a9b09336d8af4c682329ade4111748fac70e21a5b06307f2aeee0fed3e24426ddd92e
7
- data.tar.gz: 675edba523278254391200fb39f4fc8a4408dfd37dd329cda57d88d0b595875bac676b5cc4315d4eb714dd179a95db060dfeb064e04e12d4ce1375d7cbf963d0
6
+ metadata.gz: 01e12d189131662b24b3b31e0c17eb94d339b68fd419e8eaecb4d6a43551d369297cbf3d7c45cd6d58b65898e15b399d0be54a09c52d87436eab365be939e8bf
7
+ data.tar.gz: fe8b782a9f0538d2764b954b4fdc25ba23b5f2dee681859d801745cbbca1b1b45389ea9dc1c5f11b9c96631d8291fb5de237215f60a35fedeec78306d6c4a9d3
@@ -1,5 +1,5 @@
1
1
  module Nifty
2
2
  module Utils
3
- VERSION = '1.1.6'
3
+ VERSION = '1.1.7'
4
4
  end
5
5
  end
@@ -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.6
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-05-14 00:00:00.000000000 Z
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.2.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: