Skip to content

Commit

Permalink
Replace custom css parser with crass
Browse files Browse the repository at this point in the history
  • Loading branch information
stoivo committed May 27, 2024
1 parent e319458 commit ab52436
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 217 deletions.
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
css_parser (1.18.0)
addressable
crass (~> 1.0)

GEM
remote: https://rubygems.org/
Expand All @@ -12,6 +13,7 @@ GEM
ast (2.4.2)
benchmark-ips (2.13.0)
bump (0.10.0)
crass (1.0.6)
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
Expand Down Expand Up @@ -68,8 +70,8 @@ GEM
webrick (1.8.1)

PLATFORMS
arm64-darwin-22
java
ruby

DEPENDENCIES
benchmark-ips
Expand Down
3 changes: 2 additions & 1 deletion css_parser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Gem::Specification.new name, CssParser::VERSION do |s|
s.metadata['bug_tracker_uri'] = 'https://github.com/premailer/css_parser/issues'
s.metadata['rubygems_mfa_required'] = 'true'

s.add_runtime_dependency 'addressable'
s.add_dependency 'addressable'
s.add_dependency 'crass', '~> 1.0'
end
1 change: 1 addition & 0 deletions lib/css_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require 'zlib'
require 'stringio'
require 'iconv' unless String.method_defined?(:encode)
require 'crass'

require 'css_parser/version'
require 'css_parser/rule_set'
Expand Down
Loading

0 comments on commit ab52436

Please sign in to comment.