nanoc-filters-autoprefixer 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e1ca137385b831fadd6c204dda9cc94e9d26de3041b12d79bab57e151ba81fac
4
+ data.tar.gz: aa04ceb74be79c869234adbdfca11686199ad7a08fb77ed0a017d47ec6b01568
5
+ SHA512:
6
+ metadata.gz: 46bbc3fa5cb5e873cf82b09e05b72d9e0d9c70e74bad38ce05063b02cf70cdef731e71f9eafef8509849692643346b549ba0be881cc48435fc8e521021393561
7
+ data.tar.gz: 2bd985f30195cc86cdcb6bcd4daeab43f09928ccfad364f2ae3d04fc978bd8c70e23d015c2f7f2d01bcc72a2719ca0f636272ee76afe5bc40a0235794d9062e5
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "rake", "~> 12.0"
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Roger Que
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,57 @@
1
+ # Nanoc::Filters::Autoprefixer
2
+
3
+ A [nanoc filter][nanoc-filter] that processes CSS with [Autoprefixer
4
+ Rails][autoprefixer-rails].
5
+
6
+ [nanoc-filter]: https://nanoc.ws/doc/filters/
7
+ [autoprefixer-rails]: https://github.com/ai/autoprefixer-rails
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'nanoc-filters-autoprefixer'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle install
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install nanoc-filters-autoprefixer
24
+
25
+ ## Usage
26
+
27
+ Add this line to a Ruby file inside your site's `lib` directory:
28
+
29
+ ```ruby
30
+ require 'nanoc/filters/autoprefixer'
31
+ ```
32
+
33
+ Then use the `:autoprefixer` filter in your `Rules` file:
34
+
35
+ ```ruby
36
+ compile '/**/*.css' do
37
+ filter :autoprefixer, cascade: false
38
+ write :css
39
+ end
40
+ ```
41
+
42
+ The Autoprefixer documentation has [a list of available
43
+ options][autoprefixer-options].
44
+
45
+ [autoprefixer-options]: https://github.com/postcss/autoprefixer#options
46
+
47
+ ## Contributing
48
+
49
+ Bug reports and pull requests are welcome on GitHub at
50
+ <https://github.com/query/nanoc-filters-autoprefixer>.
51
+
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License][mit].
56
+
57
+ [mit]: https://opensource.org/licenses/MIT
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,13 @@
1
+ module Nanoc
2
+ module Filters
3
+ class Autoprefixer < ::Nanoc::Core::Filter
4
+ identifier :autoprefixer
5
+
6
+ requires 'autoprefixer-rails'
7
+
8
+ def run(content, params={})
9
+ AutoprefixerRails.process(content.dup, params.dup).css
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,24 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "nanoc-filters-autoprefixer"
3
+ spec.version = "1.0.0"
4
+ spec.authors = ["Roger Que"]
5
+ spec.email = ["git@alerante.net"]
6
+
7
+ spec.summary = "A nanoc filter that processes CSS with Autoprefixer."
8
+ spec.homepage = "https://github.com/query/nanoc-filters-autoprefixer"
9
+ spec.license = "MIT"
10
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
11
+
12
+ spec.metadata["homepage_uri"] = spec.homepage
13
+ spec.metadata["source_code_uri"] = spec.homepage
14
+
15
+ spec.add_dependency "autoprefixer-rails"
16
+ spec.add_dependency "nanoc-core", "~> 4.11.13"
17
+
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nanoc-filters-autoprefixer
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Roger Que
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-06-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: autoprefixer-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nanoc-core
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 4.11.13
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 4.11.13
41
+ description:
42
+ email:
43
+ - git@alerante.net
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - lib/nanoc/filters/autoprefixer.rb
54
+ - nanoc-filters-autoprefixer.gemspec
55
+ homepage: https://github.com/query/nanoc-filters-autoprefixer
56
+ licenses:
57
+ - MIT
58
+ metadata:
59
+ homepage_uri: https://github.com/query/nanoc-filters-autoprefixer
60
+ source_code_uri: https://github.com/query/nanoc-filters-autoprefixer
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 2.3.0
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubygems_version: 3.1.2
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: A nanoc filter that processes CSS with Autoprefixer.
80
+ test_files: []