torba 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/torba/css_url_to_erb_asset_path.rb +2 -1
- data/test/css_url_to_erb_asset_path_test.rb +11 -0
- data/torba.gemspec +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: 0878e9a6c25f1fceb393accb9e2a96aaec4bcf55
|
4
|
+
data.tar.gz: 3b2b74f577118a0c8c029d3b2164571138914e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fa8a769f0755c370e4f21ff6bd9872e5d407ed74def48264bb835eba144227bdac4d1c7c5b68effd5b5b22613274e0b9f7a59cd63455aa51aa49d862407a931
|
7
|
+
data.tar.gz: 595971c2856af882d28734f64555e6845420859c23c0118722f52b72049812a8432080f3837a084bdfaa9696f56a0f76a30fc6d2bef835f52d286f9d30ab5c5e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -14,6 +14,17 @@ module Torba
|
|
14
14
|
def test_url_with_data
|
15
15
|
css = "background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaskip);"
|
16
16
|
assert_equal css, filter.call(css, "/current/file")
|
17
|
+
css = "background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaskip');"
|
18
|
+
assert_equal css, filter.call(css, "/current/file")
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_http_url
|
22
|
+
url = 'http://example.com/example.png'
|
23
|
+
url_https = url.gsub('http', 'https')
|
24
|
+
css = "background-image: url('#{url}');"
|
25
|
+
css_https = "background-image: url('#{url_https}');"
|
26
|
+
assert_equal css, filter.call(css, url)
|
27
|
+
assert_equal css_https, filter.call(css_https, url_https)
|
17
28
|
end
|
18
29
|
|
19
30
|
def test_absolute_url
|
data/torba.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrii Malyshko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|