0
I Use This!
Low Activity
Analyzed about 19 hours ago. based on code collected about 19 hours ago.

Project Summary

Load, parse and cascade CSS rule sets in Ruby.

Install the gem from RubyGems.

gem install css_parser

An example

require 'css_parser'
include CssParser

parser = CssParser::Parser.new
parser.load_file!('http://example.com/styles/style.css')

# lookup a rule by a selector
parser.find('#content')
#=> 'font-size: 13px; line-height: 1.2;'

# lookup a rule by a selector and media type
parser.find('#content', [:screen, :handheld])

# iterate through selectors by media type
parser.each_selector(:screen) do |selector, declarations, specificity|
...
end

Made on Vancouver Island.

Tags

css gem parser premailer ruby site_management

Badges

MIT License
Permitted

Commercial Use

Modify

Distribute

Sub-License

Private Use

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

Project Security

Vulnerabilities per Version ( last 10 releases )

There are no reported vulnerabilities

Project Vulnerability Report

Security Confidence Index

Poor security track-record
Favorable security track-record

Vulnerability Exposure Index

Many reported vulnerabilities
Few reported vulnerabilities

Did You Know...

  • ...
    there are over 3,000 projects on the Open Hub with security vulnerabilities reported against them
  • ...
    you can embed statistics from Open Hub on your site
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    you can subscribe to e-mail newsletters to receive update from the Open Hub blog
About Project Security

Languages

Languages?height=75&width=75
Ruby
88%
CSS
12%

30 Day Summary

Sep 26 2021 — Oct 26 2021

12 Month Summary

Oct 26 2020 — Oct 26 2021
  • 35 Commits
    Up + 25 (250%) from previous 12 months
  • 4 Contributors
    Down 0 (0%) from previous 12 months