roadie 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd4e9bce46c7a228c3bf830fa355cece328f7f20
4
- data.tar.gz: 702ae383ac06b11cec36e355d396bc099862fd37
3
+ metadata.gz: f4f6223eab7dab406f618cdc4de6561112c38883
4
+ data.tar.gz: 2ecab891c4958a775437dae141628055982591ff
5
5
  SHA512:
6
- metadata.gz: 5b4d2d872d94aacd77c4625b37e8459b1bef7bc931f8487207d52c22529ec9a16160d53f5c3822abc39edd694f42f41a58bcb114e33eb351931dfa8c178f61c9
7
- data.tar.gz: 55001582e4b9f3e673ca2418fae5e0a18cbac73bb9ed5b9bbda849f3df8c717e2f33069b90275a876eb91949058e40c16acdd35f7cbd5de753ba3c3377ef5df8
6
+ metadata.gz: 7c04785fd8b911957558447ca928e7001e6602ee2e98a659124b8173b7238f5e4f9ff7ee9dea71b1dade51720e007a44d142310989d5996db63845ec4316dbad
7
+ data.tar.gz: 2e4e7ac1b09251ec08f1af1024b6614ea6c3663752066241063d8827faebc8782752abc6e51f140b047edcea62b9877e49520193e809b020563a20a96101aeb6
data/Changelog.md CHANGED
@@ -1,10 +1,17 @@
1
1
  ### dev
2
2
 
3
- [full changelog](https://github.com/Mange/roadie/compare/v3.0.2...master)
3
+ [full changelog](https://github.com/Mange/roadie/compare/v3.0.3...master)
4
4
 
5
5
  * Nothing yet.
6
6
 
7
- ### 3.0.1
7
+ ### 3.0.3
8
+
9
+ [full changelog](https://github.com/Mange/roadie/compare/v3.0.2...v3.0.3)
10
+
11
+ * Bug fixes:
12
+ * CSS was mutated when parsed, breaking caches and memoized sources - [Brendan Mulholland (bmulholland)](https://github.com/bmulholland) (Mange/roadie-rails#32)
13
+
14
+ ### 3.0.2
8
15
 
9
16
  [full changelog](https://github.com/Mange/roadie/compare/v3.0.1...v3.0.2)
10
17
 
data/README.md CHANGED
@@ -260,22 +260,22 @@ Instructions on how to do this on most platforms, see [Nokogiri's official insta
260
260
 
261
261
  ### My `:hover` selectors don't work. How can I fix them? ###
262
262
 
263
- Put any styles using `:hover` in a separate stylesheet and make sure it is ignored. (See "Ignoring stylesheets" above)
263
+ Put any styles using `:hover` in a separate stylesheet and make sure it is ignored. (See `data-roadie-ignore` under [Referenced Stylesheets](https://github.com/Mange/roadie/blob/master/README.md#referenced-stylesheets) above)
264
264
 
265
265
  ### My `@media` queries don't work. How can I fix them? ###
266
266
 
267
- Put any styles using them in a separate stylesheet and make sure it is ignored. (See "Ignoring stylesheets" above)
267
+ Put any styles using them in a separate stylesheet and make sure it is ignored. (See `data-roadie-ignore` under [Referenced Stylesheets](https://github.com/Mange/roadie/blob/master/README.md#referenced-stylesheets) above)
268
268
 
269
269
  ### My vendor-specific styles don't work. How can I fix them? ###
270
270
 
271
- Put any styles using them in a separate stylesheet and make sure it is ignored. (See "Ignoring stylesheets" above)
271
+ Put any styles using them in a separate stylesheet and make sure it is ignored. (See `data-roadie-ignore` under [Referenced Stylesheets](https://github.com/Mange/roadie/blob/master/README.md#referenced-stylesheets) above)
272
272
 
273
273
  Documentation
274
274
  -------------
275
275
 
276
- * [Online documentation for gem](http://rubydoc.info/gems/roadie/frames)
277
- * [Online documentation for master](http://rubydoc.info/github/Mange/roadie/master/frames)
278
- * [Online documentation for Roadie 2.4.3](http://rubydoc.info/gems/roadie/2.4.3/frames)
276
+ * [Online documentation for gem](https://www.omniref.com/ruby/gems/roadie)
277
+ * [Online documentation for master](https://www.omniref.com/github/Mange/roadie)
278
+ * [Online documentation for Roadie 2.4.3](https://www.omniref.com/ruby/gems/roadie/2.4.3)
279
279
  * [Changelog](https://github.com/Mange/roadie/blob/master/Changelog.md)
280
280
 
281
281
  Running specs
@@ -64,7 +64,8 @@ module Roadie
64
64
 
65
65
  def setup_parser(css)
66
66
  parser = CssParser::Parser.new
67
- parser.add_block! css
67
+ # CssParser::Parser#add_block! mutates input parameter
68
+ parser.add_block! css.dup
68
69
  parser
69
70
  end
70
71
  end
@@ -1,3 +1,3 @@
1
1
  module Roadie
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
@@ -51,5 +51,13 @@ module Roadie
51
51
  "h1{background-image:url(data:image/gif;base64,R0lGODl)}"
52
52
  ])
53
53
  end
54
+
55
+ it "does not mutate the input CSS" do
56
+ input = "/* comment */ body { color: green; }"
57
+ input_copy = input.dup
58
+ expect {
59
+ Stylesheet.new("name", input)
60
+ }.to_not change { input }.from(input_copy)
61
+ end
54
62
  end
55
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadie
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Bergmark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri