css_parser 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/css_parser/rule_set.rb +2 -1
- data/lib/css_parser/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d5b5c79aede3d12a3344be3870321727fe767f6
|
4
|
+
data.tar.gz: 521049bab4d31bc8ae2540baee5915c055d34644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a833504d1b764b03ad05e1ded20dd7af5093905d40b0c4730c69317c434c26757380e485416db00921dbaadb7e21b342a801545d70f4643fa6e827554d9ab1af
|
7
|
+
data.tar.gz: 9ffb58947816d2b1daef923373da67c3f75944e52e7389b5fcc3547efbe9fd3b404c101a3973d013ce37cdb226ab429e6cfc1e6f41dfbf8ef5530f02ef03f7fa
|
data/lib/css_parser/rule_set.rb
CHANGED
@@ -241,6 +241,7 @@ module CssParser
|
|
241
241
|
end
|
242
242
|
|
243
243
|
value = @declarations['font'][:value]
|
244
|
+
value.gsub!(/\/\s+/, '/') # handle spaces between font size and height shorthand (e.g. 14px/ 16px)
|
244
245
|
is_important = @declarations['font'][:is_important]
|
245
246
|
order = @declarations['font'][:order]
|
246
247
|
|
@@ -340,7 +341,7 @@ module CssParser
|
|
340
341
|
# Leaves properties declared !important alone.
|
341
342
|
def create_background_shorthand! # :nodoc:
|
342
343
|
# When we have a background-size property we must separate it and distinguish it from
|
343
|
-
# background-position by
|
344
|
+
# background-position by preceding it with a backslash. In this case we also need to
|
344
345
|
# have a background-position property, so we set it if it's missing.
|
345
346
|
# http://www.w3schools.com/cssref/css3_pr_background.asp
|
346
347
|
if @declarations.has_key?('background-size') and not @declarations['background-size'][:is_important]
|
data/lib/css_parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.5.1
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Ruby CSS parser.
|