rack-disable_css_animations 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/bin/setup +8 -0
- data/lib/rack/disable_css_animations/version.rb +1 -1
- data/lib/rack/disable_css_animations.rb +5 -10
- data/rack-disable_css_animations.gemspec +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 066fb57f2552ab1537853e3133bcaaf887f15aa475192748c8ac14a5b69372f8
|
4
|
+
data.tar.gz: b2006f786cbe9d6c4f7e2fb300e34cecfb9e9244964f79e282386766fd3f48e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de2919ae4ef71a3a6f18f286ae746113963f3e7606a90da80b99650b1b7d7ab93775966548f0f29e106cbcb6cd01b97c2bc780fe38e2dd21208ec49029335255
|
7
|
+
data.tar.gz: 1a8c171793683cb954db7598324fa3982901e606144b1b34ef7c948ac84bc4ccc0b0abbb736acdd5c91aaa4f3b0e363af45409805709bd9dfa977e542d5f85e8
|
data/.gitignore
CHANGED
data/bin/setup
ADDED
@@ -29,20 +29,15 @@ module Rack
|
|
29
29
|
markup = <<-CSS
|
30
30
|
<style>
|
31
31
|
* {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
animation-delay: 0s !important;
|
33
|
+
animation-duration: 0.01s !important;
|
34
|
+
transition-delay: 0s !important;
|
35
|
+
transition-duration: 0.01s !important;
|
36
|
+
scroll-behavior: auto !important;
|
36
37
|
}
|
37
38
|
</style>
|
38
39
|
CSS
|
39
40
|
response.gsub(%r{</head>}, "#{markup}</head>")
|
40
41
|
end
|
41
|
-
|
42
|
-
def with_prefixes rule, prefixes = ["", "-webkit-", "-moz-", "-o-"]
|
43
|
-
prefixes.map do |prefix|
|
44
|
-
prefix + rule
|
45
|
-
end.join("\n")
|
46
|
-
end
|
47
42
|
end
|
48
43
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,8 @@ description: Rack middleware to disable CSS animations sitewide. Useful for maki
|
|
56
56
|
acceptance tests quicker and more deterministic.
|
57
57
|
email:
|
58
58
|
- micah@botandrose.com
|
59
|
-
executables:
|
59
|
+
executables:
|
60
|
+
- setup
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
62
63
|
files:
|
@@ -65,6 +66,7 @@ files:
|
|
65
66
|
- LICENSE.txt
|
66
67
|
- README.md
|
67
68
|
- Rakefile
|
69
|
+
- bin/setup
|
68
70
|
- lib/rack/disable_css_animations.rb
|
69
71
|
- lib/rack/disable_css_animations/version.rb
|
70
72
|
- rack-disable_css_animations.gemspec
|
@@ -87,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
89
|
- !ruby/object:Gem::Version
|
88
90
|
version: '0'
|
89
91
|
requirements: []
|
90
|
-
|
91
|
-
rubygems_version: 2.4.6
|
92
|
+
rubygems_version: 3.2.32
|
92
93
|
signing_key:
|
93
94
|
specification_version: 4
|
94
95
|
summary: Rack middleware to disable CSS animations sitewide.
|