roadie 2.3.4 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,10 @@ module Roadie
16
16
  StyleDeclaration.new('color', 'green', false, 1).to_s.should == 'color:green'
17
17
  StyleDeclaration.new('font-size', '1.1em', false, 1).to_s.should == 'font-size:1.1em'
18
18
  end
19
+
20
+ it "contains the !important flag when set" do
21
+ StyleDeclaration.new('color', 'green', true, 1).to_s.should == 'color:green !important'
22
+ end
19
23
  end
20
24
 
21
25
  describe "comparing" do
@@ -69,6 +69,15 @@ describe Roadie do
69
69
  end
70
70
  end
71
71
 
72
+ context "with rails 4.0's asset pipeline enabled" do
73
+ before(:each) { config.assets.enabled = nil }
74
+
75
+ it "uses the AssetPipelineProvider" do
76
+ Roadie::AssetPipelineProvider.should_receive(:new).and_return(provider)
77
+ Roadie.current_provider.should == provider
78
+ end
79
+ end
80
+
72
81
  context "with rails' asset pipeline disabled" do
73
82
  before(:each) { config.assets.enabled = false }
74
83
 
@@ -78,4 +87,15 @@ describe Roadie do
78
87
  end
79
88
  end
80
89
  end
90
+
91
+ describe ".after_inlining_handler" do
92
+ let(:after_inlining_handler) { double("after inlining handler") }
93
+
94
+ it "returns the value of config.roadie.after_inlining_handler" do
95
+ config.roadie.after_inlining = after_inlining_handler
96
+ Roadie.after_inlining_handler.should == after_inlining_handler
97
+ config.roadie.after_inlining = nil
98
+ Roadie.after_inlining_handler.should == nil
99
+ end
100
+ end
81
101
  end
@@ -57,10 +57,13 @@ else
57
57
  Rails.application.initialize!
58
58
  end
59
59
 
60
- RSpec.configure do |c|
61
- c.before(:each) do
60
+ RSpec.configure do |config|
61
+ config.before(:each) do
62
62
  Rails.application.reset_test_config
63
63
  end
64
+
65
+ config.treat_symbols_as_metadata_keys_with_true_values = true
66
+ config.run_all_when_everything_filtered = true
64
67
  end
65
68
 
66
69
  Dir['./spec/support/**/*.rb'].each { |file| require file }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadie
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,40 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-06 00:00:00.000000000 Z
12
+ date: 2013-07-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.4.4
21
+ version: 1.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.4.4
29
+ version: 1.6.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: css_parser
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: 1.3.4
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '0'
45
+ version: 1.3.4
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: actionmailer
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: 3.0.0
54
54
  - - <
55
55
  - !ruby/object:Gem::Version
56
- version: 3.3.0
56
+ version: 5.0.0
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -64,7 +64,7 @@ dependencies:
64
64
  version: 3.0.0
65
65
  - - <
66
66
  - !ruby/object:Gem::Version
67
- version: 3.3.0
67
+ version: 5.0.0
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: sprockets
70
70
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +81,22 @@ dependencies:
81
81
  - - ! '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rake
86
+ requirement: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
84
100
  - !ruby/object:Gem::Dependency
85
101
  name: rails
86
102
  requirement: !ruby/object:Gem::Requirement
@@ -97,6 +113,22 @@ dependencies:
97
113
  - - ! '>='
98
114
  - !ruby/object:Gem::Version
99
115
  version: '0'
116
+ - !ruby/object:Gem::Dependency
117
+ name: rspec
118
+ requirement: !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
100
132
  - !ruby/object:Gem::Dependency
101
133
  name: rspec-rails
102
134
  requirement: !ruby/object:Gem::Requirement
@@ -146,20 +178,19 @@ files:
146
178
  - Appraisals
147
179
  - Changelog.md
148
180
  - Gemfile
149
- - Gemfile.lock
150
181
  - Guardfile
151
182
  - MIT-LICENSE
152
183
  - README.md
153
184
  - Rakefile
154
185
  - autotest/discover.rb
155
- - gemfiles/rails-3.0.gemfile
156
- - gemfiles/rails-3.0.gemfile.lock
157
- - gemfiles/rails-3.0.x.Gemfile.lock
158
- - gemfiles/rails-3.1.gemfile
159
- - gemfiles/rails-3.1.gemfile.lock
160
- - gemfiles/rails-3.1.x.Gemfile.lock
161
- - gemfiles/rails-3.2.gemfile
162
- - gemfiles/rails-3.2.gemfile.lock
186
+ - gemfiles/rails_3.0.gemfile
187
+ - gemfiles/rails_3.0.gemfile.lock
188
+ - gemfiles/rails_3.1.gemfile
189
+ - gemfiles/rails_3.1.gemfile.lock
190
+ - gemfiles/rails_3.2.gemfile
191
+ - gemfiles/rails_3.2.gemfile.lock
192
+ - gemfiles/rails_4.0.gemfile
193
+ - gemfiles/rails_4.0.gemfile.lock
163
194
  - lib/roadie.rb
164
195
  - lib/roadie/action_mailer_extensions.rb
165
196
  - lib/roadie/asset_pipeline_provider.rb
@@ -168,6 +199,7 @@ files:
168
199
  - lib/roadie/filesystem_provider.rb
169
200
  - lib/roadie/inliner.rb
170
201
  - lib/roadie/railtie.rb
202
+ - lib/roadie/selector.rb
171
203
  - lib/roadie/style_declaration.rb
172
204
  - lib/roadie/version.rb
173
205
  - roadie.gemspec
@@ -182,6 +214,7 @@ files:
182
214
  - spec/lib/roadie/css_file_not_found_spec.rb
183
215
  - spec/lib/roadie/filesystem_provider_spec.rb
184
216
  - spec/lib/roadie/inliner_spec.rb
217
+ - spec/lib/roadie/selector_spec.rb
185
218
  - spec/lib/roadie/style_declaration_spec.rb
186
219
  - spec/lib/roadie_spec.rb
187
220
  - spec/shared_examples/asset_provider_examples.rb
@@ -207,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
240
  version: '0'
208
241
  segments:
209
242
  - 0
210
- hash: -214488827015921512
243
+ hash: 4328383910543071990
211
244
  required_rubygems_version: !ruby/object:Gem::Requirement
212
245
  none: false
213
246
  requirements:
@@ -216,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
249
  version: '0'
217
250
  segments:
218
251
  - 0
219
- hash: -214488827015921512
252
+ hash: 4328383910543071990
220
253
  requirements: []
221
254
  rubyforge_project:
222
255
  rubygems_version: 1.8.24
@@ -235,6 +268,7 @@ test_files:
235
268
  - spec/lib/roadie/css_file_not_found_spec.rb
236
269
  - spec/lib/roadie/filesystem_provider_spec.rb
237
270
  - spec/lib/roadie/inliner_spec.rb
271
+ - spec/lib/roadie/selector_spec.rb
238
272
  - spec/lib/roadie/style_declaration_spec.rb
239
273
  - spec/lib/roadie_spec.rb
240
274
  - spec/shared_examples/asset_provider_examples.rb
@@ -1,121 +0,0 @@
1
- PATH
2
- remote: /Users/mange/Projects/roadie
3
- specs:
4
- roadie (2.3.3)
5
- actionmailer (> 3.0.0, < 3.3.0)
6
- css_parser
7
- nokogiri (>= 1.4.4)
8
- sprockets
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- specs:
13
- abstract (1.0.0)
14
- actionmailer (3.0.12)
15
- actionpack (= 3.0.12)
16
- mail (~> 2.2.19)
17
- actionpack (3.0.12)
18
- activemodel (= 3.0.12)
19
- activesupport (= 3.0.12)
20
- builder (~> 2.1.2)
21
- erubis (~> 2.6.6)
22
- i18n (~> 0.5.0)
23
- rack (~> 1.2.5)
24
- rack-mount (~> 0.6.14)
25
- rack-test (~> 0.5.7)
26
- tzinfo (~> 0.3.23)
27
- activemodel (3.0.12)
28
- activesupport (= 3.0.12)
29
- builder (~> 2.1.2)
30
- i18n (~> 0.5.0)
31
- activerecord (3.0.12)
32
- activemodel (= 3.0.12)
33
- activesupport (= 3.0.12)
34
- arel (~> 2.0.10)
35
- tzinfo (~> 0.3.23)
36
- activeresource (3.0.12)
37
- activemodel (= 3.0.12)
38
- activesupport (= 3.0.12)
39
- activesupport (3.0.12)
40
- addressable (2.3.2)
41
- appraisal (0.4.1)
42
- bundler
43
- rake
44
- arel (2.0.10)
45
- builder (2.1.2)
46
- css_parser (1.2.6)
47
- addressable
48
- rdoc
49
- diff-lcs (1.1.3)
50
- erubis (2.6.6)
51
- abstract (>= 1.0.0)
52
- hike (1.2.1)
53
- i18n (0.5.0)
54
- json (1.6.5)
55
- json (1.6.5-java)
56
- mail (2.2.19)
57
- activesupport (>= 2.3.6)
58
- i18n (>= 0.4.0)
59
- mime-types (~> 1.16)
60
- treetop (~> 1.4.8)
61
- mime-types (1.18)
62
- multi_json (1.3.7)
63
- nokogiri (1.5.5)
64
- nokogiri (1.5.5-java)
65
- polyglot (0.3.3)
66
- rack (1.2.5)
67
- rack-mount (0.6.14)
68
- rack (>= 1.0.0)
69
- rack-test (0.5.7)
70
- rack (>= 1.0)
71
- rails (3.0.12)
72
- actionmailer (= 3.0.12)
73
- actionpack (= 3.0.12)
74
- activerecord (= 3.0.12)
75
- activeresource (= 3.0.12)
76
- activesupport (= 3.0.12)
77
- bundler (~> 1.0)
78
- railties (= 3.0.12)
79
- railties (3.0.12)
80
- actionpack (= 3.0.12)
81
- activesupport (= 3.0.12)
82
- rake (>= 0.8.7)
83
- rdoc (~> 3.4)
84
- thor (~> 0.14.4)
85
- rake (0.9.2.2)
86
- rdoc (3.12)
87
- json (~> 1.4)
88
- rspec (2.9.0)
89
- rspec-core (~> 2.9.0)
90
- rspec-expectations (~> 2.9.0)
91
- rspec-mocks (~> 2.9.0)
92
- rspec-core (2.9.0)
93
- rspec-expectations (2.9.0)
94
- diff-lcs (~> 1.1.3)
95
- rspec-mocks (2.9.0)
96
- rspec-rails (2.9.0)
97
- actionpack (>= 3.0)
98
- activesupport (>= 3.0)
99
- railties (>= 3.0)
100
- rspec (~> 2.9.0)
101
- sprockets (2.3.1)
102
- hike (~> 1.2)
103
- multi_json (~> 1.0)
104
- rack (~> 1.0)
105
- tilt (~> 1.1, != 1.3.0)
106
- thor (0.14.6)
107
- tilt (1.3.3)
108
- treetop (1.4.10)
109
- polyglot
110
- polyglot (>= 0.3.1)
111
- tzinfo (0.3.32)
112
-
113
- PLATFORMS
114
- java
115
- ruby
116
-
117
- DEPENDENCIES
118
- appraisal
119
- rails (~> 3.0.0)
120
- roadie!
121
- rspec-rails
@@ -1,76 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.10)
6
- actionpack (= 3.0.10)
7
- mail (~> 2.2.19)
8
- actionpack (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.5.0)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.14)
16
- rack-test (~> 0.5.7)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.10)
19
- activesupport (= 3.0.10)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.5.0)
22
- activesupport (3.0.10)
23
- builder (2.1.2)
24
- css_parser (1.1.9)
25
- diff-lcs (1.1.2)
26
- erubis (2.6.6)
27
- abstract (>= 1.0.0)
28
- i18n (0.5.0)
29
- mail (2.2.19)
30
- activesupport (>= 2.3.6)
31
- i18n (>= 0.4.0)
32
- mime-types (~> 1.16)
33
- treetop (~> 1.4.8)
34
- mime-types (1.16)
35
- nokogiri (1.5.0)
36
- polyglot (0.3.2)
37
- rack (1.2.3)
38
- rack-mount (0.6.14)
39
- rack (>= 1.0.0)
40
- rack-test (0.5.7)
41
- rack (>= 1.0)
42
- railties (3.0.10)
43
- actionpack (= 3.0.10)
44
- activesupport (= 3.0.10)
45
- rake (>= 0.8.7)
46
- rdoc (~> 3.4)
47
- thor (~> 0.14.4)
48
- rake (0.9.2)
49
- rdoc (3.9.2)
50
- rspec (2.6.0)
51
- rspec-core (~> 2.6.0)
52
- rspec-expectations (~> 2.6.0)
53
- rspec-mocks (~> 2.6.0)
54
- rspec-core (2.6.4)
55
- rspec-expectations (2.6.0)
56
- diff-lcs (~> 1.1.2)
57
- rspec-mocks (2.6.0)
58
- rspec-rails (2.6.1)
59
- actionpack (~> 3.0)
60
- activesupport (~> 3.0)
61
- railties (~> 3.0)
62
- rspec (~> 2.6.0)
63
- thor (0.14.6)
64
- treetop (1.4.10)
65
- polyglot
66
- polyglot (>= 0.3.1)
67
- tzinfo (0.3.29)
68
-
69
- PLATFORMS
70
- ruby
71
-
72
- DEPENDENCIES
73
- actionmailer (~> 3.0.0)
74
- css_parser
75
- nokogiri (>= 1.4.4)
76
- rspec-rails
@@ -1,73 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- actionmailer (3.1.0.rc6)
5
- actionpack (= 3.1.0.rc6)
6
- mail (~> 2.3.0)
7
- actionpack (3.1.0.rc6)
8
- activemodel (= 3.1.0.rc6)
9
- activesupport (= 3.1.0.rc6)
10
- builder (~> 3.0.0)
11
- erubis (~> 2.7.0)
12
- i18n (~> 0.6)
13
- rack (~> 1.3.2)
14
- rack-cache (~> 1.0.2)
15
- rack-mount (~> 0.8.1)
16
- rack-test (~> 0.6.0)
17
- sprockets (~> 2.0.0.beta.12)
18
- activemodel (3.1.0.rc6)
19
- activesupport (= 3.1.0.rc6)
20
- bcrypt-ruby (~> 2.1.4)
21
- builder (~> 3.0.0)
22
- i18n (~> 0.6)
23
- activesupport (3.1.0.rc6)
24
- multi_json (~> 1.0)
25
- bcrypt-ruby (2.1.4)
26
- builder (3.0.0)
27
- css_parser (1.1.9)
28
- diff-lcs (1.1.2)
29
- erubis (2.7.0)
30
- hike (1.2.1)
31
- i18n (0.6.0)
32
- mail (2.3.0)
33
- i18n (>= 0.4.0)
34
- mime-types (~> 1.16)
35
- treetop (~> 1.4.8)
36
- mime-types (1.16)
37
- multi_json (1.0.3)
38
- nokogiri (1.5.0)
39
- polyglot (0.3.2)
40
- rack (1.3.2)
41
- rack-cache (1.0.2)
42
- rack (>= 0.4)
43
- rack-mount (0.8.2)
44
- rack (>= 1.0.0)
45
- rack-test (0.6.1)
46
- rack (>= 1.0)
47
- rspec (2.1.0)
48
- rspec-core (~> 2.1.0)
49
- rspec-expectations (~> 2.1.0)
50
- rspec-mocks (~> 2.1.0)
51
- rspec-core (2.1.0)
52
- rspec-expectations (2.1.0)
53
- diff-lcs (~> 1.1.2)
54
- rspec-mocks (2.1.0)
55
- rspec-rails (2.1.0)
56
- rspec (~> 2.1.0)
57
- sprockets (2.0.0.beta.14)
58
- hike (~> 1.2)
59
- rack (~> 1.0)
60
- tilt (~> 1.1, != 1.3.0)
61
- tilt (1.3.2)
62
- treetop (1.4.10)
63
- polyglot
64
- polyglot (>= 0.3.1)
65
-
66
- PLATFORMS
67
- ruby
68
-
69
- DEPENDENCIES
70
- actionmailer (~> 3.1.0.rc6)
71
- css_parser
72
- nokogiri (>= 1.4.4)
73
- rspec-rails