docomo_css 0.2.0 → 0.2.1
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.
- data/docomo_css.gemspec +1 -1
- data/lib/docomo_css.rb +1 -0
- metadata +3 -3
data/docomo_css.gemspec
CHANGED
data/lib/docomo_css.rb
CHANGED
|
@@ -16,6 +16,7 @@ module DocomoCss
|
|
|
16
16
|
class DocomoCssFilter
|
|
17
17
|
def after(controller)
|
|
18
18
|
return unless controller.response.content_type == 'application/xhtml+xml'
|
|
19
|
+
return unless controller.request.user_agent =~ /docomo/i
|
|
19
20
|
body = escape_numeric_character_reference controller.response.body
|
|
20
21
|
body = embed_css remove_xml_declare(body)
|
|
21
22
|
controller.response.body = unescape_numeric_character_reference body
|
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:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.2.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- milk1000cc
|