autoprefixer-rails 7.1.2.1 → 7.1.2.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
  SHA1:
3
- metadata.gz: 826f9c1316c29dcb569dc5227862fcf351db1740
4
- data.tar.gz: 88e202fe812d9b0ec3099043bd71b0b1efe50a4a
3
+ metadata.gz: dab3889b45df29786049c2ec2741cddf6ad1869f
4
+ data.tar.gz: 000fe1918eef2ce34ec8e48c68022ad92abf1d15
5
5
  SHA512:
6
- metadata.gz: 4f68f9a483ffaa446f2b1e122f3af9138e158b0ff0527786c0135bfea1a7d97e3449aa929a5651b62455d4f62f26434f95f52aefe3e67745ca870a40523285ea
7
- data.tar.gz: f6bd0a43bb260bf76f1b5005b264c0cdd41ba0e9301aebcc478d3c693f6b7768d1f39a3fdf960c25ca2051ebe7d701ea4ac77ce8d1a04db5e0e75a03ba2e38ca
6
+ metadata.gz: 24a28bdc9ddcb3d83c7f24d87b29d07e8d4e863aaaa5cd2b53c2b200d7d8e0e45690e80bb84adc63bef69dac143f949f109d8aab609011eb7326a0d1a9fb8267
7
+ data.tar.gz: 6a7aca5b9ede2094f78f3197a31a4a65f4e58cdbe6c87194d824cac1d067192b934cd44a6829dc1b3b0da902376ad5dcfbf322e31cac79c118e7123cc9b27712
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.1.2.2
4
+ * Fix working with empty `autoprefixer.yml` (by Murahashi Kenichi).
5
+
3
6
  ## 7.1.2.1
4
7
  * Fix loading `autoprefixer.yml` from engines (by Jim Ryan).
5
8
 
@@ -28,7 +28,9 @@ begin
28
28
  file = File.join(root, 'config/autoprefixer.yml')
29
29
 
30
30
  if File.exist?(file)
31
- params = ::YAML.load_file(file)
31
+ parsed = ::YAML.load_file(file)
32
+ next unless parsed
33
+ params = parsed
32
34
 
33
35
  break
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module AutoprefixerRails
2
- VERSION = '7.1.2.1'.freeze unless defined? AutoprefixerRails::VERSION
2
+ VERSION = '7.1.2.2'.freeze unless defined? AutoprefixerRails::VERSION
3
3
  end
@@ -0,0 +1,29 @@
1
+ require_relative 'spec_helper'
2
+
3
+ describe AutoprefixedRails::Railtie do
4
+ before do
5
+ @railtie = AutoprefixedRails::Railtie.instance
6
+ end
7
+
8
+ context 'with config/autoprefixer.yml' do
9
+ it 'works' do
10
+ expect(@railtie.config).to eq(cascade: false, supports: false, env: 'test')
11
+ end
12
+ end
13
+
14
+ context 'with empty config/autoprefixer.yml' do
15
+ before do
16
+ file_path = File.join(Rails.application.root, 'config/autoprefixer.yml')
17
+ allow(File).to receive(:exists?).with(file_path) { true }
18
+ allow(::YAML).to receive(:load_file).with(file_path) { false } # empty yaml
19
+ end
20
+
21
+ it 'skips empty yaml' do
22
+ expect { @railtie.config }.not_to raise_error
23
+ end
24
+
25
+ it 'works' do
26
+ expect(@railtie.config).to eq(env: 'test')
27
+ end
28
+ end
29
+ end
@@ -11144,7 +11144,7 @@ module.exports = { A: { A: { "1": "B A", "2": "J C G E TB" }, B: { "1": "D X g H
11144
11144
  },{}],155:[function(require,module,exports){
11145
11145
  "use strict";
11146
11146
 
11147
- module.exports = { A: { A: { "2": "J C G TB", "8": "E", "292": "B A" }, B: { "292": "D X g H", "2049": "L" }, C: { "1": "2 4 t s", "2": "1 RB F I J C G E B A D X g H L M N PB OB", "8": "O P Q R S T U V W u Y Z a b c d e f K h i", "584": "j k l m n o p q r w x v", "1025": "0 z" }, D: { "1": "8 DB AB SB BB", "2": "F I J C G E B A D X g H L M N O P Q R S T", "8": "U V W u", "200": "0 2 Y Z a b c d e f K h i j k l m n o p q r w x v z t s", "1025": "4" }, E: { "1": "A IB JB", "2": "7 F I CB EB", "8": "J C G E B FB GB HB" }, F: { "1": "n o p q r", "2": "5 6 E A D H L M N O P Q R S T U V W KB LB MB NB QB y", "200": "u Y Z a b c d e f K h i j k l m" }, G: { "1": "A bB", "2": "3 7 9 UB", "8": "G VB WB XB YB ZB aB" }, H: { "2": "cB" }, I: { "1": "s", "2": "1 F dB eB fB gB", "8": "3 hB iB" }, J: { "2": "C B" }, K: { "2": "5 6 B A D y", "8": "K" }, L: { "1": "8" }, M: { "1": "t" }, N: { "292": "B A" }, O: { "2": "jB" }, P: { "2": "I", "8": "F" }, Q: { "200": "kB" }, R: { "2": "lB" } }, B: 4, C: "CSS Grid Layout" };
11147
+ module.exports = { A: { A: { "2": "J C G TB", "8": "E", "292": "B A" }, B: { "1": "L", "292": "D X g H" }, C: { "1": "2 4 t s", "2": "1 RB F I J C G E B A D X g H L M N PB OB", "8": "O P Q R S T U V W u Y Z a b c d e f K h i", "584": "j k l m n o p q r w x v", "1025": "0 z" }, D: { "1": "8 DB AB SB BB", "2": "F I J C G E B A D X g H L M N O P Q R S T", "8": "U V W u", "200": "0 2 Y Z a b c d e f K h i j k l m n o p q r w x v z t s", "1025": "4" }, E: { "1": "A IB JB", "2": "7 F I CB EB", "8": "J C G E B FB GB HB" }, F: { "1": "n o p q r", "2": "5 6 E A D H L M N O P Q R S T U V W KB LB MB NB QB y", "200": "u Y Z a b c d e f K h i j k l m" }, G: { "1": "A bB", "2": "3 7 9 UB", "8": "G VB WB XB YB ZB aB" }, H: { "2": "cB" }, I: { "1": "s", "2": "1 F dB eB fB gB", "8": "3 hB iB" }, J: { "2": "C B" }, K: { "2": "5 6 B A D y", "8": "K" }, L: { "1": "8" }, M: { "1": "t" }, N: { "292": "B A" }, O: { "2": "jB" }, P: { "2": "I", "8": "F" }, Q: { "200": "kB" }, R: { "2": "lB" } }, B: 4, C: "CSS Grid Layout" };
11148
11148
 
11149
11149
  },{}],156:[function(require,module,exports){
11150
11150
  "use strict";
@@ -11654,7 +11654,7 @@ module.exports = { A: { A: { "2": "J C G E B A TB" }, B: { "1": "D X g H L" }, C
11654
11654
  },{}],257:[function(require,module,exports){
11655
11655
  "use strict";
11656
11656
 
11657
- module.exports = { A: { A: { "2": "J C G E B A TB" }, B: { "2": "D X g", "194": "H L" }, C: { "2": "0 1 RB F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z PB OB", "322": "2 4 t s" }, D: { "2": "0 2 4 8 F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z t s DB", "194": "AB SB BB" }, E: { "1": "A IB JB", "2": "7 F I J C G E B CB EB FB GB HB" }, F: { "2": "5 6 E A D H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p KB LB MB NB QB y", "194": "q r" }, G: { "1": "A bB", "2": "3 7 9 G UB VB WB XB YB ZB aB" }, H: { "2": "cB" }, I: { "2": "1 3 F s dB eB fB gB hB iB" }, J: { "2": "C B" }, K: { "2": "5 6 B A D K y" }, L: { "2": "8" }, M: { "2": "t" }, N: { "2": "B A" }, O: { "2": "jB" }, P: { "2": "F I" }, Q: { "2": "kB" }, R: { "2": "lB" } }, B: 1, C: "ES6 module" };
11657
+ module.exports = { A: { A: { "2": "J C G E B A TB" }, B: { "2": "D X g", "194": "H L" }, C: { "2": "0 1 RB F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z PB OB", "322": "2 4 t s" }, D: { "1": "SB BB", "2": "0 2 4 8 F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z t s DB", "194": "AB" }, E: { "1": "A IB JB", "2": "7 F I J C G E B CB EB FB GB HB" }, F: { "2": "5 6 E A D H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p KB LB MB NB QB y", "194": "q r" }, G: { "1": "A bB", "2": "3 7 9 G UB VB WB XB YB ZB aB" }, H: { "2": "cB" }, I: { "2": "1 3 F s dB eB fB gB hB iB" }, J: { "2": "C B" }, K: { "2": "5 6 B A D K y" }, L: { "2": "8" }, M: { "2": "t" }, N: { "2": "B A" }, O: { "2": "jB" }, P: { "2": "F I" }, Q: { "2": "kB" }, R: { "2": "lB" } }, B: 1, C: "ES6 module" };
11658
11658
 
11659
11659
  },{}],258:[function(require,module,exports){
11660
11660
  "use strict";
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: 7.1.2.1
4
+ version: 7.1.2.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: 2017-07-08 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs
@@ -133,6 +133,7 @@ files:
133
133
  - spec/compass_spec.rb
134
134
  - spec/processor_spec.rb
135
135
  - spec/rails_spec.rb
136
+ - spec/railtie_spec.rb
136
137
  - spec/spec_helper.rb
137
138
  - sprockets2.gemfile
138
139
  - sprockets3.gemfile