oulu-rails 0.5.8 → 0.5.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5794f3a8b21a31dc083f1238d17198c6b4180ac3
|
4
|
+
data.tar.gz: da59d3199013343d34ec4e9312775a19674b99ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9897d1022caa69cef853cb795d0aeb53d55880628238cb8fad14d5152166b37449797a3e57ff1e801444a8ed11737992f695f329cabacdba7cdaffb50bcfbd6f
|
7
|
+
data.tar.gz: a37809e777d5ebcb248962efd1c61b63a80f327c839032035ab93c0ca15c3de0e321b7565fdee5512c56c94d8b5ef91afe793a28e4a65dac2ff96fafcf8f7e81
|
data/lib/oulu-rails/version.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
@function image($value)
|
2
2
|
@if string($value)
|
3
|
-
$
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
@else
|
8
|
-
@return null
|
3
|
+
@if number(str-index(to-lower-case($value), '.jpg')) or number(str-index(to-lower-case($value), '.jpeg')) or number(str-index(to-lower-case($value), '.gif')) or number(str-index(to-lower-case($value), '.png')) or number(str-index(to-lower-case($value), '.tiff')) or number(str-index(to-lower-case($value), '.tif')) or number(str-index(to-lower-case($value), '.bmp')) or number(str-index(to-lower-case($value), '.pct')) or number(str-index(to-lower-case($value), '.jpe')) or number(str-index(to-lower-case($value), '.jfif')) or number(str-index(to-lower-case($value), '.dib'))
|
4
|
+
@return true
|
5
|
+
@else
|
6
|
+
@return null
|
9
7
|
@else
|
10
8
|
@return null
|