rack-disable_css_animations 0.3.0 → 0.4.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
2
  SHA256:
3
- metadata.gz: 066fb57f2552ab1537853e3133bcaaf887f15aa475192748c8ac14a5b69372f8
4
- data.tar.gz: b2006f786cbe9d6c4f7e2fb300e34cecfb9e9244964f79e282386766fd3f48e2
3
+ metadata.gz: 3f4f052828fc1eef129c74f3265617450794ee647433a6be7e1a424ede568d6e
4
+ data.tar.gz: 550bc940c02d553d40d4864b44750f924073b135d73e4aac7379d8d46350361d
5
5
  SHA512:
6
- metadata.gz: de2919ae4ef71a3a6f18f286ae746113963f3e7606a90da80b99650b1b7d7ab93775966548f0f29e106cbcb6cd01b97c2bc780fe38e2dd21208ec49029335255
7
- data.tar.gz: 1a8c171793683cb954db7598324fa3982901e606144b1b34ef7c948ac84bc4ccc0b0abbb736acdd5c91aaa4f3b0e363af45409805709bd9dfa977e542d5f85e8
6
+ metadata.gz: cccb5748d6830a131c60f0d8d350ca8fe3d388e97b07cbe94819dbfea2bc14cf684b39530709c5f5adc2ddfd83919b6c062231942793894b3804b6a835932a71
7
+ data.tar.gz: 51f0f41134048e3fc32865eab28dcf2492b5b09cfe9576fb31bef165a21e8ac109fa063f8028d534e2fff8543f691849d5031c06c8f0de7b8413b396b755cb55
data/README.md CHANGED
@@ -8,21 +8,9 @@ Add this line to your application's Gemfile:
8
8
 
9
9
  gem 'rack-disable_css_animations'
10
10
 
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install rack-disable_css_animations
18
-
19
11
  ## Usage
20
12
 
21
- If using Rails, add the middleware to your test environment in `config/environments/test.rb`:
22
-
23
- ```ruby
24
- config.middleware.use Rack::DisableCSSAnimations
25
- ```
13
+ If using Rails, this will be automatically added to your middleware stack when required after Rails, so only require it in the environments you want it in.
26
14
 
27
15
  ## Contributing
28
16
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class DisableCSSAnimations
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -2,6 +2,12 @@ require "rack/disable_css_animations/version"
2
2
 
3
3
  module Rack
4
4
  class DisableCSSAnimations
5
+ if defined?(Rails)
6
+ class Rails < Rails::Railtie
7
+ config.app_middleware.use DisableCSSAnimations
8
+ end
9
+ end
10
+
5
11
  def initialize app
6
12
  @app = app
7
13
  end
@@ -0,0 +1 @@
1
+ require "rack/disable_css_animations"
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.3.0
4
+ version: 0.4.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: 2022-09-22 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -67,6 +67,7 @@ files:
67
67
  - README.md
68
68
  - Rakefile
69
69
  - bin/setup
70
+ - lib/rack-disable_css_animations.rb
70
71
  - lib/rack/disable_css_animations.rb
71
72
  - lib/rack/disable_css_animations/version.rb
72
73
  - rack-disable_css_animations.gemspec