docomo_css 0.4.3 → 0.4.4

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.
@@ -6,7 +6,7 @@ require 'tiny_css'
6
6
  module DocomoCss
7
7
  class Filter
8
8
  def initialize(options = {})
9
- @options = {}
9
+ @options = options
10
10
  end
11
11
 
12
12
  def after(controller)
@@ -22,6 +22,7 @@ module DocomoCss
22
22
  doc = Nokogiri::HTML(body)
23
23
 
24
24
  stylesheet_link_node(doc).each do |linknode|
25
+ linknode.unlink
25
26
  stylesheet = DocomoCss::Stylesheet.new(linknode['href'])
26
27
  next unless stylesheet.valid?
27
28
  css = TinyCss.new.read(stylesheet.path)
@@ -1,3 +1,3 @@
1
1
  module DocomoCss
2
- Version = "0.4.3"
2
+ Version = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docomo_css
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - milk1000cc
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- hash: 31
44
+ hash: 29
45
45
  segments:
46
46
  - 0
47
47
  - 1
48
- - 2
49
- version: 0.1.2
48
+ - 3
49
+ version: 0.1.3
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency