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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e8374de1dbc9db337701d8e37b4c30b1c3e4af0b
4
- data.tar.gz: 7e7f3627e61a3e3f97f3e38d290f3b561f7b13fe
2
+ SHA256:
3
+ metadata.gz: 066fb57f2552ab1537853e3133bcaaf887f15aa475192748c8ac14a5b69372f8
4
+ data.tar.gz: b2006f786cbe9d6c4f7e2fb300e34cecfb9e9244964f79e282386766fd3f48e2
5
5
  SHA512:
6
- metadata.gz: 00c364de5aa92dd3355a04ff74637846a309ac2a5391695ba14365f3ee8eae2b45536923c66ae84a97a9428c201c8f3709192bd766a2f677bcde519484ea31fe
7
- data.tar.gz: 403142445daf4b9fc1b53d910dbea31ff1637169bba3887fdaa6c21649743bac232e4c4bbe2a55a5a230d54c1fe0802f80a6bad3030a3619ba9a5dd633d0bdd6
6
+ metadata.gz: de2919ae4ef71a3a6f18f286ae746113963f3e7606a90da80b99650b1b7d7ab93775966548f0f29e106cbcb6cd01b97c2bc780fe38e2dd21208ec49029335255
7
+ data.tar.gz: 1a8c171793683cb954db7598324fa3982901e606144b1b34ef7c948ac84bc4ccc0b0abbb736acdd5c91aaa4f3b0e363af45409805709bd9dfa977e542d5f85e8
data/.gitignore CHANGED
@@ -3,6 +3,8 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .ruby-version
7
+ .ruby-gemset
6
8
  Gemfile.lock
7
9
  InstalledFiles
8
10
  _yardoc
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
8
+
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class DisableCSSAnimations
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -29,20 +29,15 @@ module Rack
29
29
  markup = <<-CSS
30
30
  <style>
31
31
  * {
32
- #{with_prefixes "animation-delay: 0s !important;"}
33
- #{with_prefixes "animation-duration: 0.01s !important;"}
34
- #{with_prefixes "transition-delay: 0s !important;"}
35
- #{with_prefixes "transition-duration: 0.01s !important;"}
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
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency "rack"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.6"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
25
  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.2.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: 2016-03-04 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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
- rubyforge_project:
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.