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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f25fd167948f027d6ce055f3d3dd31ed504685e1
4
- data.tar.gz: 6abbcac48e21be5bed1b4798c6de39a7efd6cb6b
3
+ metadata.gz: 562ac48e28297edd4fee1121a64eda52e2c0d152
4
+ data.tar.gz: 27cd3b0f39313c443e8f8b76967ecaa449cee79d
5
5
  SHA512:
6
- metadata.gz: 203aa099dec3fbaef09867124bc55b8faf1be6f83d9a43f6c2d7cffa0da147116041342e54e3bbd50e2c012119c4206f0c44d6f382ced70dce1f892e058e7fbd
7
- data.tar.gz: 891cd3bcf48a9e0447ba98233186e2d64135d3814875843c236acf1245c54f7aa9e668d884cc2003d1819bb8bcdc130d1158559bebccb5840ea33ecd7977f5a7
6
+ metadata.gz: 193f474c6e4d432cf29cdeade9c2ab052b9f369e5851698ebe14dd79ea8e61c2db47c944a959071675052137f24d2238e991d48c012034760f55f36c12037cf6
7
+ data.tar.gz: 2f2bbe357f796ab5e643154c5bcde8d78d8069d7bac968788b6fef5ed28825ae5417bf9a790435346784e74ec5c18c124fe3b618aa9fe54813fabac71da02ef3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rack::DisableCssAnimations
1
+ # Rack::DisableCSSAnimations
2
2
 
3
3
  Rack middleware to disable CSS animations sitewide. Useful for making acceptance tests quicker and more deterministic.
4
4
 
@@ -26,7 +26,16 @@ module Rack
26
26
  end
27
27
 
28
28
  def inject response
29
- markup = %(<style>* { transition-duration: 0 !important; }</style>)
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
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class DisableCSSAnimations
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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-17 00:00:00.000000000 Z
11
+ date: 2014-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack