stylesheet 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +20 -0
- data/Gemfile +4 -0
- data/Guardfile +9 -0
- data/LICENSE.txt +22 -0
- data/README.md +63 -0
- data/Rakefile +22 -0
- data/features/document_styles.feature +15 -0
- data/features/rule_declarations.feature +9 -0
- data/features/step_definitions/document_steps.rb +39 -0
- data/features/step_definitions/rule_declaration_steps.rb +13 -0
- data/features/step_definitions/style_rule_steps.rb +31 -0
- data/features/style_rules.feature +15 -0
- data/features/support/env.rb +6 -0
- data/lib/stylesheet.rb +35 -0
- data/lib/stylesheet/css_charset_rule.rb +24 -0
- data/lib/stylesheet/css_font_face_rule.rb +26 -0
- data/lib/stylesheet/css_import_rule.rb +41 -0
- data/lib/stylesheet/css_media_rule.rb +30 -0
- data/lib/stylesheet/css_rule.rb +57 -0
- data/lib/stylesheet/css_rule_list.rb +30 -0
- data/lib/stylesheet/css_style_declaration.rb +41 -0
- data/lib/stylesheet/css_style_rule.rb +29 -0
- data/lib/stylesheet/css_style_sheet.rb +100 -0
- data/lib/stylesheet/document.rb +63 -0
- data/lib/stylesheet/errors.rb +5 -0
- data/lib/stylesheet/inflector.rb +11 -0
- data/lib/stylesheet/location.rb +113 -0
- data/lib/stylesheet/media_list.rb +26 -0
- data/lib/stylesheet/request.rb +23 -0
- data/lib/stylesheet/style_sheet_list.rb +15 -0
- data/lib/stylesheet/version.rb +3 -0
- data/spec/css_charset_rule_spec.rb +39 -0
- data/spec/css_font_face_rule_spec.rb +47 -0
- data/spec/css_import_rule_spec.rb +178 -0
- data/spec/css_media_rule_spec.rb +57 -0
- data/spec/css_rule_list_spec.rb +74 -0
- data/spec/css_rule_spec.rb +102 -0
- data/spec/css_style_declaration_spec.rb +71 -0
- data/spec/css_style_rule_spec.rb +53 -0
- data/spec/css_style_sheet_spec.rb +157 -0
- data/spec/document_spec.rb +99 -0
- data/spec/fixtures/css/absolute_path.html +14 -0
- data/spec/fixtures/css/charset.html +13 -0
- data/spec/fixtures/css/font_face.html +13 -0
- data/spec/fixtures/css/full_url.html +14 -0
- data/spec/fixtures/css/html4.html +15 -0
- data/spec/fixtures/css/html5.html +14 -0
- data/spec/fixtures/css/inline.html +33 -0
- data/spec/fixtures/css/inline_import.html +15 -0
- data/spec/fixtures/css/invalid.html +14 -0
- data/spec/fixtures/css/media.html +13 -0
- data/spec/fixtures/css/relative_path.html +14 -0
- data/spec/fixtures/css/stylesheets/charset.css +5 -0
- data/spec/fixtures/css/stylesheets/colors.css +0 -0
- data/spec/fixtures/css/stylesheets/font_face.css +6 -0
- data/spec/fixtures/css/stylesheets/fonts.css +0 -0
- data/spec/fixtures/css/stylesheets/media.css +3 -0
- data/spec/fixtures/css/stylesheets/print.css +3 -0
- data/spec/fixtures/css/stylesheets/screen.css +16 -0
- data/spec/fixtures/css_import/index.html +14 -0
- data/spec/fixtures/css_import/stylesheets/import1.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import2.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import3.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import4.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import5.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import6.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import7.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import8.css +3 -0
- data/spec/fixtures/css_import/stylesheets/import9.css +3 -0
- data/spec/fixtures/css_import/stylesheets/print.css +3 -0
- data/spec/fixtures/css_import/stylesheets/screen.css +15 -0
- data/spec/fixtures/fonts/VeraSeBd.ttf +0 -0
- data/spec/inflector_spec.rb +17 -0
- data/spec/location_spec.rb +260 -0
- data/spec/media_list_spec.rb +108 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/stubs/fake_request.rb +19 -0
- data/spec/style_sheet_list_spec.rb +53 -0
- data/spec/version_spec.rb +9 -0
- data/stylesheet.gemspec +34 -0
- metadata +294 -0
@@ -0,0 +1,108 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MediaList do
|
4
|
+
|
5
|
+
describe ".new" do
|
6
|
+
it "should parse media list string with no media" do
|
7
|
+
media = MediaList.new("")
|
8
|
+
expect(media.length).to eq 0
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should parse media list string with single media" do
|
12
|
+
media = MediaList.new("screen")
|
13
|
+
expect(media[0]).to eq "screen"
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should parse media list string with multiple media" do
|
17
|
+
media = MediaList.new("screen, projection")
|
18
|
+
expect(media[0]).to eq "screen"
|
19
|
+
expect(media[1]).to eq "projection"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "#[]" do
|
24
|
+
it "finds a media value at the given index" do
|
25
|
+
media = MediaList.new("screen, projection")
|
26
|
+
expect(media[0]).to eq "screen"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "#each" do
|
31
|
+
it "iterates over each media" do
|
32
|
+
media = MediaList.new("screen, projection")
|
33
|
+
|
34
|
+
i = 0
|
35
|
+
media.each {|media| i += 1 }
|
36
|
+
expect(i).to eq 2
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "#length" do
|
41
|
+
it "returns number of items" do
|
42
|
+
media = MediaList.new("screen, projection")
|
43
|
+
expect(media.length).to eq 2
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "#item" do
|
48
|
+
it "finds a media value at the given index" do
|
49
|
+
media = MediaList.new("screen, projection")
|
50
|
+
expect(media.item(0)).to eq "screen"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
describe "#media_text" do
|
56
|
+
it "gives the media string value" do
|
57
|
+
media = MediaList.new("screen,projection")
|
58
|
+
expect(media.media_text).to eq "screen, projection"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe "#to_s" do
|
63
|
+
it "gives the media string value" do
|
64
|
+
media = MediaList.new("screen,projection")
|
65
|
+
expect(media.to_s).to eq "screen, projection"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe "#delete_medium" do
|
70
|
+
it "deletes a medium from the list of media types" do
|
71
|
+
media = MediaList.new("screen,projection")
|
72
|
+
media.delete_medium("screen")
|
73
|
+
expect(media.media_text).to eq "projection"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe "#delete" do
|
78
|
+
it "deletes a medium from the list of media types" do
|
79
|
+
media = MediaList.new("screen,projection")
|
80
|
+
media.delete("screen")
|
81
|
+
expect(media.media_text).to eq "projection"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe "#append_medium" do
|
86
|
+
it "appends a medium to the list of media types" do
|
87
|
+
media = MediaList.new("screen")
|
88
|
+
media.append_medium("projection")
|
89
|
+
expect(media.media_text).to eq "screen, projection"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "#<<" do
|
94
|
+
it "appends a medium to the list of media types" do
|
95
|
+
media = MediaList.new("screen")
|
96
|
+
media << "projection"
|
97
|
+
expect(media.media_text).to eq "screen, projection"
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe "#push" do
|
102
|
+
it "appends a medium to the list of media types" do
|
103
|
+
media = MediaList.new("screen")
|
104
|
+
media.push "projection"
|
105
|
+
expect(media.media_text).to eq "screen, projection"
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
module Stylesheet
|
2
|
+
class FakeRequest
|
3
|
+
def initialize(params={})
|
4
|
+
end
|
5
|
+
|
6
|
+
# Read in fixture file instead of url
|
7
|
+
def get(url)
|
8
|
+
begin
|
9
|
+
uri = URI.parse(url.strip)
|
10
|
+
rescue URI::InvalidURIError
|
11
|
+
uri = URI.parse(URI.escape(url.strip))
|
12
|
+
end
|
13
|
+
|
14
|
+
# simple hack to read in fixtures instead of url for tests
|
15
|
+
fixture = "#{File.dirname(__FILE__)}/../fixtures#{uri.path}"
|
16
|
+
File.read(fixture) if File.exist?(fixture)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe StyleSheetList do
|
4
|
+
before(:each) do
|
5
|
+
Stylesheet.request = FakeRequest.new
|
6
|
+
end
|
7
|
+
|
8
|
+
let(:external) do
|
9
|
+
{ href: "http://example.com/css/stylesheets/colors.css", media: "screen" }
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:inline) do
|
13
|
+
{ content: "div {\n background-color: #aaa;\n border: 1px solid #ccc;\n}" }
|
14
|
+
end
|
15
|
+
|
16
|
+
describe ".new" do
|
17
|
+
it "should initialize a new style sheet list " do
|
18
|
+
stylesheets = StyleSheetList.new([external, inline])
|
19
|
+
expect(stylesheets).to be_kind_of(StyleSheetList)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "#[]" do
|
24
|
+
it "finds a css style sheet at the given index" do
|
25
|
+
stylesheets = StyleSheetList.new([external, inline])
|
26
|
+
expect(stylesheets[0]).to be_kind_of(CssStyleSheet)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "#each" do
|
31
|
+
it "iterates over each style sheet" do
|
32
|
+
stylesheets = StyleSheetList.new([external, inline])
|
33
|
+
|
34
|
+
i = 0
|
35
|
+
stylesheets.each {|stylesheet| i += 1 }
|
36
|
+
expect(i).to eq 2
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "#length" do
|
41
|
+
it "returns number of items" do
|
42
|
+
stylesheets = StyleSheetList.new([external, inline])
|
43
|
+
expect(stylesheets.length).to eq 2
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "#item" do
|
48
|
+
it "finds a css style sheet at the given index" do
|
49
|
+
stylesheets = StyleSheetList.new([external, inline])
|
50
|
+
expect(stylesheets.item(0)).to be_kind_of(CssStyleSheet)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/stylesheet.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'stylesheet/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "stylesheet"
|
8
|
+
gem.version = Stylesheet::VERSION
|
9
|
+
gem.summary = %q{Stylesheet is a CSS style sheet parser}
|
10
|
+
gem.description = gem.summary
|
11
|
+
|
12
|
+
gem.required_ruby_version = '>= 1.9.3'
|
13
|
+
gem.license = "MIT"
|
14
|
+
|
15
|
+
gem.authors = ["Derek DeVries"]
|
16
|
+
gem.email = ["derek@sportspyder.com"]
|
17
|
+
gem.homepage = "https://github.com/devrieda/stylesheet"
|
18
|
+
|
19
|
+
gem.files = `git ls-files`.split($/)
|
20
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
21
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
22
|
+
gem.require_paths = ["lib"]
|
23
|
+
|
24
|
+
gem.add_runtime_dependency("curb", "~> 0.8")
|
25
|
+
gem.add_runtime_dependency("nokogiri", "~> 1.5")
|
26
|
+
|
27
|
+
gem.add_development_dependency("rspec", "~> 2.9")
|
28
|
+
gem.add_development_dependency("cucumber", "~> 1.2")
|
29
|
+
|
30
|
+
# guard
|
31
|
+
gem.add_development_dependency("guard", "~> 1.7")
|
32
|
+
gem.add_development_dependency("guard-rspec", "~> 2.5")
|
33
|
+
gem.add_development_dependency("rb-fsevent", "~> 0.9")
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,294 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stylesheet
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Derek DeVries
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: curb
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.8'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: nokogiri
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.5'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.5'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '2.9'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.9'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: cucumber
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.2'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.2'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: guard
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '1.7'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.7'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: guard-rspec
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '2.5'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '2.5'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rb-fsevent
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.9'
|
126
|
+
description: Stylesheet is a CSS style sheet parser
|
127
|
+
email:
|
128
|
+
- derek@sportspyder.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- .gitignore
|
134
|
+
- Gemfile
|
135
|
+
- Guardfile
|
136
|
+
- LICENSE.txt
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- features/document_styles.feature
|
140
|
+
- features/rule_declarations.feature
|
141
|
+
- features/step_definitions/document_steps.rb
|
142
|
+
- features/step_definitions/rule_declaration_steps.rb
|
143
|
+
- features/step_definitions/style_rule_steps.rb
|
144
|
+
- features/style_rules.feature
|
145
|
+
- features/support/env.rb
|
146
|
+
- lib/stylesheet.rb
|
147
|
+
- lib/stylesheet/css_charset_rule.rb
|
148
|
+
- lib/stylesheet/css_font_face_rule.rb
|
149
|
+
- lib/stylesheet/css_import_rule.rb
|
150
|
+
- lib/stylesheet/css_media_rule.rb
|
151
|
+
- lib/stylesheet/css_rule.rb
|
152
|
+
- lib/stylesheet/css_rule_list.rb
|
153
|
+
- lib/stylesheet/css_style_declaration.rb
|
154
|
+
- lib/stylesheet/css_style_rule.rb
|
155
|
+
- lib/stylesheet/css_style_sheet.rb
|
156
|
+
- lib/stylesheet/document.rb
|
157
|
+
- lib/stylesheet/errors.rb
|
158
|
+
- lib/stylesheet/inflector.rb
|
159
|
+
- lib/stylesheet/location.rb
|
160
|
+
- lib/stylesheet/media_list.rb
|
161
|
+
- lib/stylesheet/request.rb
|
162
|
+
- lib/stylesheet/style_sheet_list.rb
|
163
|
+
- lib/stylesheet/version.rb
|
164
|
+
- spec/css_charset_rule_spec.rb
|
165
|
+
- spec/css_font_face_rule_spec.rb
|
166
|
+
- spec/css_import_rule_spec.rb
|
167
|
+
- spec/css_media_rule_spec.rb
|
168
|
+
- spec/css_rule_list_spec.rb
|
169
|
+
- spec/css_rule_spec.rb
|
170
|
+
- spec/css_style_declaration_spec.rb
|
171
|
+
- spec/css_style_rule_spec.rb
|
172
|
+
- spec/css_style_sheet_spec.rb
|
173
|
+
- spec/document_spec.rb
|
174
|
+
- spec/fixtures/css/absolute_path.html
|
175
|
+
- spec/fixtures/css/charset.html
|
176
|
+
- spec/fixtures/css/font_face.html
|
177
|
+
- spec/fixtures/css/full_url.html
|
178
|
+
- spec/fixtures/css/html4.html
|
179
|
+
- spec/fixtures/css/html5.html
|
180
|
+
- spec/fixtures/css/inline.html
|
181
|
+
- spec/fixtures/css/inline_import.html
|
182
|
+
- spec/fixtures/css/invalid.html
|
183
|
+
- spec/fixtures/css/media.html
|
184
|
+
- spec/fixtures/css/relative_path.html
|
185
|
+
- spec/fixtures/css/stylesheets/charset.css
|
186
|
+
- spec/fixtures/css/stylesheets/colors.css
|
187
|
+
- spec/fixtures/css/stylesheets/font_face.css
|
188
|
+
- spec/fixtures/css/stylesheets/fonts.css
|
189
|
+
- spec/fixtures/css/stylesheets/media.css
|
190
|
+
- spec/fixtures/css/stylesheets/print.css
|
191
|
+
- spec/fixtures/css/stylesheets/screen.css
|
192
|
+
- spec/fixtures/css_import/index.html
|
193
|
+
- spec/fixtures/css_import/stylesheets/import1.css
|
194
|
+
- spec/fixtures/css_import/stylesheets/import2.css
|
195
|
+
- spec/fixtures/css_import/stylesheets/import3.css
|
196
|
+
- spec/fixtures/css_import/stylesheets/import4.css
|
197
|
+
- spec/fixtures/css_import/stylesheets/import5.css
|
198
|
+
- spec/fixtures/css_import/stylesheets/import6.css
|
199
|
+
- spec/fixtures/css_import/stylesheets/import7.css
|
200
|
+
- spec/fixtures/css_import/stylesheets/import8.css
|
201
|
+
- spec/fixtures/css_import/stylesheets/import9.css
|
202
|
+
- spec/fixtures/css_import/stylesheets/print.css
|
203
|
+
- spec/fixtures/css_import/stylesheets/screen.css
|
204
|
+
- spec/fixtures/fonts/VeraSeBd.ttf
|
205
|
+
- spec/inflector_spec.rb
|
206
|
+
- spec/location_spec.rb
|
207
|
+
- spec/media_list_spec.rb
|
208
|
+
- spec/spec_helper.rb
|
209
|
+
- spec/stubs/fake_request.rb
|
210
|
+
- spec/style_sheet_list_spec.rb
|
211
|
+
- spec/version_spec.rb
|
212
|
+
- stylesheet.gemspec
|
213
|
+
homepage: https://github.com/devrieda/stylesheet
|
214
|
+
licenses:
|
215
|
+
- MIT
|
216
|
+
post_install_message:
|
217
|
+
rdoc_options: []
|
218
|
+
require_paths:
|
219
|
+
- lib
|
220
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
221
|
+
none: false
|
222
|
+
requirements:
|
223
|
+
- - ! '>='
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: 1.9.3
|
226
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
|
+
none: false
|
228
|
+
requirements:
|
229
|
+
- - ! '>='
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '0'
|
232
|
+
requirements: []
|
233
|
+
rubyforge_project:
|
234
|
+
rubygems_version: 1.8.25
|
235
|
+
signing_key:
|
236
|
+
specification_version: 3
|
237
|
+
summary: Stylesheet is a CSS style sheet parser
|
238
|
+
test_files:
|
239
|
+
- features/document_styles.feature
|
240
|
+
- features/rule_declarations.feature
|
241
|
+
- features/step_definitions/document_steps.rb
|
242
|
+
- features/step_definitions/rule_declaration_steps.rb
|
243
|
+
- features/step_definitions/style_rule_steps.rb
|
244
|
+
- features/style_rules.feature
|
245
|
+
- features/support/env.rb
|
246
|
+
- spec/css_charset_rule_spec.rb
|
247
|
+
- spec/css_font_face_rule_spec.rb
|
248
|
+
- spec/css_import_rule_spec.rb
|
249
|
+
- spec/css_media_rule_spec.rb
|
250
|
+
- spec/css_rule_list_spec.rb
|
251
|
+
- spec/css_rule_spec.rb
|
252
|
+
- spec/css_style_declaration_spec.rb
|
253
|
+
- spec/css_style_rule_spec.rb
|
254
|
+
- spec/css_style_sheet_spec.rb
|
255
|
+
- spec/document_spec.rb
|
256
|
+
- spec/fixtures/css/absolute_path.html
|
257
|
+
- spec/fixtures/css/charset.html
|
258
|
+
- spec/fixtures/css/font_face.html
|
259
|
+
- spec/fixtures/css/full_url.html
|
260
|
+
- spec/fixtures/css/html4.html
|
261
|
+
- spec/fixtures/css/html5.html
|
262
|
+
- spec/fixtures/css/inline.html
|
263
|
+
- spec/fixtures/css/inline_import.html
|
264
|
+
- spec/fixtures/css/invalid.html
|
265
|
+
- spec/fixtures/css/media.html
|
266
|
+
- spec/fixtures/css/relative_path.html
|
267
|
+
- spec/fixtures/css/stylesheets/charset.css
|
268
|
+
- spec/fixtures/css/stylesheets/colors.css
|
269
|
+
- spec/fixtures/css/stylesheets/font_face.css
|
270
|
+
- spec/fixtures/css/stylesheets/fonts.css
|
271
|
+
- spec/fixtures/css/stylesheets/media.css
|
272
|
+
- spec/fixtures/css/stylesheets/print.css
|
273
|
+
- spec/fixtures/css/stylesheets/screen.css
|
274
|
+
- spec/fixtures/css_import/index.html
|
275
|
+
- spec/fixtures/css_import/stylesheets/import1.css
|
276
|
+
- spec/fixtures/css_import/stylesheets/import2.css
|
277
|
+
- spec/fixtures/css_import/stylesheets/import3.css
|
278
|
+
- spec/fixtures/css_import/stylesheets/import4.css
|
279
|
+
- spec/fixtures/css_import/stylesheets/import5.css
|
280
|
+
- spec/fixtures/css_import/stylesheets/import6.css
|
281
|
+
- spec/fixtures/css_import/stylesheets/import7.css
|
282
|
+
- spec/fixtures/css_import/stylesheets/import8.css
|
283
|
+
- spec/fixtures/css_import/stylesheets/import9.css
|
284
|
+
- spec/fixtures/css_import/stylesheets/print.css
|
285
|
+
- spec/fixtures/css_import/stylesheets/screen.css
|
286
|
+
- spec/fixtures/fonts/VeraSeBd.ttf
|
287
|
+
- spec/inflector_spec.rb
|
288
|
+
- spec/location_spec.rb
|
289
|
+
- spec/media_list_spec.rb
|
290
|
+
- spec/spec_helper.rb
|
291
|
+
- spec/stubs/fake_request.rb
|
292
|
+
- spec/style_sheet_list_spec.rb
|
293
|
+
- spec/version_spec.rb
|
294
|
+
has_rdoc:
|