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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f37de2f47134897299b6ff54a77057b97fa0723
4
- data.tar.gz: 4f0a21a5156634d56a97acd198a98af458d05c4d
3
+ metadata.gz: 3d5b5c79aede3d12a3344be3870321727fe767f6
4
+ data.tar.gz: 521049bab4d31bc8ae2540baee5915c055d34644
5
5
  SHA512:
6
- metadata.gz: e3e9cf6debd7bf20cf7121aa949a7700ecd1bf5704c9324cf7fb078741f8793423acf7a199b32bc3222e4d60b03f23094184a8b3e00b6a5ae32184e0734ddb09
7
- data.tar.gz: ede24d16d33effc05b2b0d55fb61630f224729430256928685210a3ea75aaf1de7c1ac61aa47e58931b496d04a444f8a00490b80677362c0a86177325ec7d98b
6
+ metadata.gz: a833504d1b764b03ad05e1ded20dd7af5093905d40b0c4730c69317c434c26757380e485416db00921dbaadb7e21b342a801545d70f4643fa6e827554d9ab1af
7
+ data.tar.gz: 9ffb58947816d2b1daef923373da67c3f75944e52e7389b5fcc3547efbe9fd3b404c101a3973d013ce37cdb226ab429e6cfc1e6f41dfbf8ef5530f02ef03f7fa
@@ -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 preceeding it with a backslash. In this case we also need to
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]
@@ -1,3 +1,3 @@
1
1
  module CssParser
2
- VERSION = "1.5.0".freeze
2
+ VERSION = "1.6.0".freeze
3
3
  end
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.5.0
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-04-19 00:00:00.000000000 Z
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.6.11
59
+ rubygems_version: 2.5.1
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Ruby CSS parser.