jekyll-autoprefixer 1.0.0 → 1.0.1

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: 687d6a17f9f4012f3bf862f5da7c10b7bacd97c1
4
- data.tar.gz: 3ba7635dd2e9b301993006a149cf4a56dcb5b6a6
3
+ metadata.gz: b8c621bb5f25a67c5f5fdec0cb6aebf695ceb467
4
+ data.tar.gz: 1a1f1a41c6b13ae8a7bd25421e58c1ebf0a8dd3e
5
5
  SHA512:
6
- metadata.gz: 2ac2af0c3193d713948b547478e4b87c35fb421e1cb7e2236857aafcf8b5528bc183f145cc4d27fbe244ef549aedd05839cdd229bc21f0675c60d424078c2de7
7
- data.tar.gz: f4e7ddf629c4ab972fe051e117e53272bc99fcb903b37e6f4595900944965b9cb644f2742cbcd96bca884c0b8824c41cdebebf9bde26bccb029e9d1aebb9983c
6
+ metadata.gz: 070179f6d9e01b7ce4e53de82c8eb75b50492e57ab84d0d69687b1ad42974c5b220f56453e3309a6cec2b52b5cca5870e37c99be8c808fe6010847d1327822eb
7
+ data.tar.gz: 22e487482b01dc31d799e3e98beffff5bba880c800d1364c50425ac95d046f62d72d06f7ceaacf89c050458c8e3171659e28e1176a09f480c9dba79484c53112
data/README.md CHANGED
@@ -42,6 +42,13 @@ autoprefixer:
42
42
  - last 2 versions
43
43
  ```
44
44
 
45
+ You can also specify that autoprefixer should only work in production mode:
46
+
47
+ ```
48
+ autoprefixer:
49
+ only_production: true
50
+ ```
51
+
45
52
  # Contribute
46
53
 
47
54
  Fork this repository, make your changes and then issue a pull request. If you find bugs or have new ideas that you do not want to implement yourself, file a bug report.
@@ -16,14 +16,16 @@ module Jekyll
16
16
  def process()
17
17
  options = @site.config['autoprefixer'] || {}
18
18
 
19
- @batch.each do |item|
20
- path = item.destination(@site.dest)
19
+ if !options['only_production'] || Jekyll.env == "production"
20
+ @batch.each do |item|
21
+ path = item.destination(@site.dest)
21
22
 
22
- File.open(path, 'r+') do |file|
23
- content = file.read
24
- file.truncate(0)
25
- file.rewind
26
- file.write(AutoprefixerRails.process(content, options))
23
+ File.open(path, 'r+') do |file|
24
+ content = file.read
25
+ file.truncate(0)
26
+ file.rewind
27
+ file.write(AutoprefixerRails.process(content, options))
28
+ end
27
29
  end
28
30
  end
29
31
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Autoprefixer
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-autoprefixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Wochnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-16 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 6.3.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 6.3.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.1.2
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
40
  version: 3.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.6'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.6'
55
55
  description: Autoprefixer integration for Jekyll
@@ -59,14 +59,14 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - LICENSE.md
63
+ - README.md
64
+ - lib/jekyll-autoprefixer.rb
65
+ - lib/jekyll/autoprefixer.rb
62
66
  - lib/jekyll/autoprefixer/autoprefixer.rb
63
67
  - lib/jekyll/autoprefixer/version.rb
64
- - lib/jekyll/autoprefixer.rb
65
- - lib/jekyll/patches/jekyll/site.rb
66
68
  - lib/jekyll/patches.rb
67
- - lib/jekyll-autoprefixer.rb
68
- - README.md
69
- - LICENSE.md
69
+ - lib/jekyll/patches/jekyll/site.rb
70
70
  homepage: https://github.com/vwochnik/jekyll-autoprefixer
71
71
  licenses:
72
72
  - MIT
@@ -77,17 +77,17 @@ require_paths:
77
77
  - lib
78
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.9.3
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.0.14.1
90
+ rubygems_version: 2.5.1
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: This plugin provides simple autoprefixer support for Jekyll.