hamloft 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hamloft/helpers.rb +1 -4
- data/lib/hamloft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113c06e824ad187b4ff9ff2fa781d18bac54f295
|
4
|
+
data.tar.gz: 017326d8fb0800435c70542c8994241634c607f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f379f89815e31ec317928f7a2dfec30809206fba71caac6f30ed5bdf8bdc2c9b95ebca5e7e622de103526a97994465beb6fa6e5e06e33f02f2d542449a897bdf
|
7
|
+
data.tar.gz: 063e1da499ad39faf8f8840483ab2651816942fcdfdd6102885efef39b6052d26ac2c4c7161a95c48043410e547c26962553f2b99aa09420ef3318943b85a842
|
data/lib/hamloft/helpers.rb
CHANGED
@@ -41,10 +41,7 @@ module Hamloft
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def link(href,
|
45
|
-
if referrer && !referrer.empty? && !href.include?('referrer=')
|
46
|
-
href = "#{href}#{href.include?('?') ? '&' : '?'}referrer=#{referrer}"
|
47
|
-
end
|
44
|
+
def link(href, &block)
|
48
45
|
haml_tag :a, href: href do
|
49
46
|
yield if block
|
50
47
|
end
|
data/lib/hamloft/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamloft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|