autoprefixer-rails 9.8.6.1 → 9.8.6.2

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: cadb9ae491291f76f95ea31d344dbdcfcdd29a474ad4db7dcdca7064f8321eae
4
- data.tar.gz: 4f38f4eb249e131e20ada2b32e275d7cb7c714499e6d6dd3d54b0da7b8cc2b79
3
+ metadata.gz: 7ba3f0942a7f5eb8d5a6aa3b97f181373f341b51da51b9492b59fcf8d0200c39
4
+ data.tar.gz: 94c9475c55a54ca4247ba1def1786da6817df33782900d2d9cb5b986b162c4ae
5
5
  SHA512:
6
- metadata.gz: 78a5df87211a22455d97d2c513a92d362f4164b8af9e0f72b2034e4fadd55dae2bfb3c233405ee4e1bfa1933d71f2443ffcc7c4fbddbc1f77e0ba7bb25f62314
7
- data.tar.gz: 9b7c1768d664eb7c0cd5f79fd65adc05fc1b00286227e1a2605914d7fe91a571854465ed4d888d36d6b3ea7319840387c16bfa0c4dc4caf0e3df66b02534d1fb
6
+ metadata.gz: 8914a057f4aafea8d3e5d955aa834f3540272653e2010e1e6393f350ea8c637398665366c11105701d9aa40840586de20201185eb1f0927fcf6376f66286ea4c
7
+ data.tar.gz: b66e90fb6a17ed111685d1ffc7121c764707308fba6404b9b23721d2341ad1aaf1030584a8e50af3c64d225d3a54039d94c3f6c2602bc77ad84a8da6ad0cd287
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.8.6.2
4
+ * Print deprecation warning only once.
5
+
3
6
  ## 9.8.6.1
4
7
  * Improve deprecated warnings.
5
8
 
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  src="http://postcss.github.io/autoprefixer/logo.svg"
5
5
  title="Autoprefixer logo by Anton Lovchikov">
6
6
 
7
- **DEPECATED. [Migration Guide.]**
7
+ **DEPRECATED. [Migration Guide.]**
8
8
 
9
9
  [Autoprefixer] is a tool to parse CSS and add vendor prefixes to CSS rules
10
10
  using values from the [Can I Use] database. This gem provides Ruby
@@ -14,12 +14,12 @@ and Ruby on Rails integration with this JavaScript tool.
14
14
  <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
15
15
  </a>
16
16
 
17
- [Migration Guide]: https://github.com/ai/autoprefixer-rails/wiki/Deprecated
18
- [Autoprefixer]: https://github.com/postcss/autoprefixer
19
- [Can I Use]: http://caniuse.com/
20
- [PostCSS]: https://postcss.org/
21
- [ci-img]: https://travis-ci.org/ai/autoprefixer-rails.svg
22
- [ci]: https://travis-ci.org/ai/autoprefixer-rails
17
+ [Migration Guide.]: https://github.com/ai/autoprefixer-rails/wiki/Deprecated
18
+ [Autoprefixer]: https://github.com/postcss/autoprefixer
19
+ [Can I Use]: http://caniuse.com/
20
+ [PostCSS]: https://postcss.org/
21
+ [ci-img]: https://travis-ci.org/ai/autoprefixer-rails.svg
22
+ [ci]: https://travis-ci.org/ai/autoprefixer-rails
23
23
 
24
24
  ## Differences
25
25
 
@@ -32,6 +32,19 @@ module AutoprefixerRails
32
32
  def self.processor(params = {})
33
33
  Processor.new(params)
34
34
  end
35
+
36
+ def self.show_deprecation_message!
37
+ return unless defined?(ActiveSupport::Deprecation)
38
+
39
+ return if defined?(@deprecation_shown)
40
+
41
+ ActiveSupport::Deprecation.warn(
42
+ "autoprefixer-rails was deprected. Migration guide:\n" \
43
+ "https://github.com/ai/autoprefixer-rails/wiki/Deprecated"
44
+ )
45
+
46
+ @deprecation_shown = true
47
+ end
35
48
  end
36
49
 
37
50
  require_relative "autoprefixer-rails/result"
@@ -20,12 +20,8 @@ module AutoprefixerRails
20
20
  # * `to` with output CSS file name.
21
21
  # * `map` with true to generate new source map or with previous map.
22
22
  def process(css, opts = {})
23
- if defined?(ActiveSupport::Deprecation)
24
- ActiveSupport::Deprecation.warn(
25
- "autoprefixer-rails was deprected. Migration guide:\n" \
26
- "https://github.com/ai/autoprefixer-rails/wiki/Deprecated"
27
- )
28
- end
23
+ AutoprefixerRails.show_deprecation_message!
24
+
29
25
  opts = convert_options(opts)
30
26
 
31
27
  apply_wrapper =
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AutoprefixerRails # :nodoc:
4
- VERSION = "9.8.6.1" unless defined? AutoprefixerRails::VERSION
4
+ VERSION = "9.8.6.2" unless defined? AutoprefixerRails::VERSION
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoprefixer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.8.6.1
4
+ version: 9.8.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-01 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs