rack-disable_css_animations 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rack/disable_css_animations.rb +10 -1
- data/lib/rack/disable_css_animations/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562ac48e28297edd4fee1121a64eda52e2c0d152
|
4
|
+
data.tar.gz: 27cd3b0f39313c443e8f8b76967ecaa449cee79d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 193f474c6e4d432cf29cdeade9c2ab052b9f369e5851698ebe14dd79ea8e61c2db47c944a959071675052137f24d2238e991d48c012034760f55f36c12037cf6
|
7
|
+
data.tar.gz: 2f2bbe357f796ab5e643154c5bcde8d78d8069d7bac968788b6fef5ed28825ae5417bf9a790435346784e74ec5c18c124fe3b618aa9fe54813fabac71da02ef3
|
data/README.md
CHANGED
@@ -26,7 +26,16 @@ module Rack
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def inject response
|
29
|
-
markup =
|
29
|
+
markup = <<-CSS
|
30
|
+
<style>
|
31
|
+
* {
|
32
|
+
transition-duration: 0 !important;
|
33
|
+
-webkit-transition-duration: 0 !important;
|
34
|
+
-moz-transition-duration: 0 !important;
|
35
|
+
-o-transitio-duration: 0 !important;
|
36
|
+
}
|
37
|
+
</style>
|
38
|
+
CSS
|
30
39
|
response.gsub(%r{</head>}, "#{markup}</head>")
|
31
40
|
end
|
32
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-disable_css_animations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|