fanforce-plugin-factory 0.29.2 → 0.29.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWQ0Njk1NjBiZWRjNWRkNjE2NTdjMWY3YTk4MDhkZTE0YzhlZWU1ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjYyMjhkNGUzZTEzYjljYWRmMjE1ZTM3ZDdhMzExZTE3Y2JlODFjMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjEyYzZiODJiZWNlNDIyZjNiZjI1Njg2ODg2ZmYzZDE5MDBlMjY4MDk5OWIx
|
10
|
+
MGMzM2ZmOGU4M2YxMDIzMDA2NjI3MWE0YjIwNmY2NTdmMzA4MWU2OWExNzcw
|
11
|
+
YjE1ZGQzMTY2ODI2YjQ1ODk2NGQ5MzQzMjdlZmQ2N2E4NTdhYzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2RmODYyNjIxNmM5MjQwNGNkMTU0N2I1YmFhYzk5YWQ0YmY3NmIxMjNiNjU3
|
14
|
+
NDRkNGE1MzIyNTlmOTdjNTVlNWY3N2E2Mjc5MWU3NDI1YmUzZTc5NmI1YTNl
|
15
|
+
ZTYxOTI3ZjllMjY4ZGE3MjM4ZTg3N2IxY2FiOWRmNjgzOTNjZTQ=
|
@@ -2,13 +2,13 @@ module Sinatra::AssetHelpers
|
|
2
2
|
|
3
3
|
def stylesheet(s)
|
4
4
|
s += '.css' unless s.include?('.css')
|
5
|
-
s = asset_path(s) unless s =~ /^https?:\// or s =~
|
5
|
+
s = asset_path(s) unless s =~ /^https?:\// or s =~ /^\/\/.+/
|
6
6
|
"<link rel='stylesheet' href='#{s}' />"
|
7
7
|
end
|
8
8
|
|
9
9
|
def javascript(s)
|
10
10
|
s += '.js' unless s.include?('.js')
|
11
|
-
s = asset_path(s) unless s =~ /^https?:\// or s =~
|
11
|
+
s = asset_path(s) unless s =~ /^https?:\// or s =~ /^\/\/.+/
|
12
12
|
"<script type='text/javascript' src='#{s}'></script>"
|
13
13
|
end
|
14
14
|
|