jekyll-assets-autoprefixer 1.0.0.pre.alpha3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.rubocop.yml +72 -0
- data/Gemfile +6 -0
- data/HISTORY.md +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +53 -0
- data/Rakefile +9 -0
- data/jekyll-assets-autoprefixer.gemspec +26 -0
- data/lib/jekyll-assets-autoprefixer.rb +2 -0
- data/lib/jekyll/assets/autoprefixer.rb +41 -0
- data/lib/jekyll/assets/autoprefixer/version.rb +7 -0
- data/spec/lib/jekyll/assets/autoprefixer_spec.rb +3 -0
- data/spec/spec_helper.rb +72 -0
- metadata +116 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ba040d850f598507f5d312719ef5a39a957b417e
|
4
|
+
data.tar.gz: b56ef8a3ebd240346b6da03963dd4ad5b3a350e9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 327860bbeb5d2eea4ec64c11a60d74f1fa03995ea8f087360c0949f672969c0e2079f7c6d769177e622f6284f92ce2c9d82b4478c63b09d84331ac2241478f88
|
7
|
+
data.tar.gz: 864eef37309bb120d453ef7dde778fcd0e9f7bc6360e1b72abfa7e48e69e3673ae2638a3792152f5de47b7387e35cd0f672587494130ab89f1abc11d6a455408
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
## Styles ######################################################################
|
2
|
+
|
3
|
+
Style/AlignParameters:
|
4
|
+
EnforcedStyle: with_fixed_indentation
|
5
|
+
|
6
|
+
Style/BracesAroundHashParameters:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
# Broken (2014-12-15). Use `yardstick` gem instead.
|
10
|
+
# See: https://github.com/bbatsov/rubocop/issues/947
|
11
|
+
# TODO: Enable back once cop is fixed.
|
12
|
+
Style/Documentation:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Style/EmptyLineBetweenDefs:
|
16
|
+
AllowAdjacentOneLineDefs: true
|
17
|
+
|
18
|
+
Style/Encoding:
|
19
|
+
EnforcedStyle: when_needed
|
20
|
+
|
21
|
+
Style/HashSyntax:
|
22
|
+
EnforcedStyle: hash_rockets
|
23
|
+
|
24
|
+
Style/IndentHash:
|
25
|
+
EnforcedStyle: consistent
|
26
|
+
|
27
|
+
# New lambda syntax is as ugly to me as new syntax of Hash.
|
28
|
+
Style/Lambda:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Style/MultilineOperationIndentation:
|
32
|
+
EnforcedStyle: indented
|
33
|
+
|
34
|
+
# IMHO `%r{foo/bar}` looks way more cleaner than `/foo\/bar/`.
|
35
|
+
# Enabling this cop also makes Guardfile (which is full of pathname regexps)
|
36
|
+
# look absolutley (style) inconsistent and terrible. Thus it should be on
|
37
|
+
# developer's choice whenever to user `%r` or not. Just like we don't enforce
|
38
|
+
# to use `["foo"]` over `%w(foo)` and so on.
|
39
|
+
Style/RegexpLiteral:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
# A bit useless restriction, that makes impossible aligning code like this:
|
43
|
+
#
|
44
|
+
# redis do |conn|
|
45
|
+
# conn.hset :k1, now
|
46
|
+
# conn.hincrby :k2, 123
|
47
|
+
# end
|
48
|
+
Style/SingleSpaceBeforeFirstArg:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Style/StringLiterals:
|
52
|
+
EnforcedStyle: double_quotes
|
53
|
+
|
54
|
+
# Not all trivial readers/writers can be defined with attr_* methods
|
55
|
+
#
|
56
|
+
# class Example < SimpleDelegator
|
57
|
+
# def __getobj__
|
58
|
+
# @obj
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# def __setobj__(obj)
|
62
|
+
# @obj = obj
|
63
|
+
# end
|
64
|
+
# end
|
65
|
+
Style/TrivialAccessors:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
## Metrics #####################################################################
|
69
|
+
|
70
|
+
Metrics/MethodLength:
|
71
|
+
CountComments: false
|
72
|
+
Max: 15
|
data/Gemfile
ADDED
data/HISTORY.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Alexey V Zapparov
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Jekyll::Assets::Autoprefixer
|
2
|
+
|
3
|
+
<img src="http://postcss.github.io/autoprefixer/logo.svg"
|
4
|
+
title="Autoprefixer logo by Anton Lovchikov"
|
5
|
+
width="94" height="71" align="right" />
|
6
|
+
|
7
|
+
[Autoprefixer] is a tool to parse CSS and add vendor prefixes to CSS rules
|
8
|
+
using values from the [Can I Use]. This gem provides [Jekyll Assets]
|
9
|
+
integration with this JavaScript tool.
|
10
|
+
|
11
|
+
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
12
|
+
[Can I Use]: http://caniuse.com/
|
13
|
+
[Jekyll Assets]: https://github.com/jekyll-assets/jekyll-assets
|
14
|
+
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your `Gemfile`:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
group :jekyll_plugins do
|
22
|
+
gem "jekyll-assets-autoprefixer"
|
23
|
+
end
|
24
|
+
```
|
25
|
+
|
26
|
+
And then execute:
|
27
|
+
|
28
|
+
$ bundle
|
29
|
+
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
|
33
|
+
When installed, it will automatically process all your CSS files with
|
34
|
+
Autoprefixer. You can configure Autoprefixer by creating `autoprefixer.yml` or
|
35
|
+
`_autoprefixer.yml` file in your site's `source` directory (by default your
|
36
|
+
jekyll's website root):
|
37
|
+
|
38
|
+
``` yaml
|
39
|
+
:safe: false
|
40
|
+
:browsers:
|
41
|
+
- "last 1 version"
|
42
|
+
- "> 1%"
|
43
|
+
- "Explorer 10"
|
44
|
+
```
|
45
|
+
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
1. Fork it ( https://github.com/[my-github-username]/jekyll-assets-autoprefixer/fork )
|
50
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
51
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
52
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
53
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "jekyll/assets/autoprefixer/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "jekyll-assets-autoprefixer"
|
8
|
+
spec.version = Jekyll::Assets::Autoprefixer::VERSION
|
9
|
+
spec.authors = ["Alexey V Zapparov"]
|
10
|
+
spec.email = ["ixti@member.fsf.org"]
|
11
|
+
spec.summary = "jekyll-assets autoprefixer integration"
|
12
|
+
spec.description = "Hooks autoprefixer into jekyll-assets"
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "jekyll-assets", "~>1.0.0-alpha0"
|
22
|
+
spec.add_dependency "autoprefixer-rails"
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# 3rd-party
|
2
|
+
require "jekyll/assets"
|
3
|
+
require "autoprefixer-rails"
|
4
|
+
|
5
|
+
# internal
|
6
|
+
require "jekyll/assets/autoprefixer/version"
|
7
|
+
|
8
|
+
module Jekyll
|
9
|
+
module Assets
|
10
|
+
module Autoprefixer
|
11
|
+
CONFIG_FILES = %w(autoprefixer.yml _autoprefixer.yml)
|
12
|
+
|
13
|
+
class << self
|
14
|
+
def setup!
|
15
|
+
::Jekyll::Assets.configure do |assets|
|
16
|
+
config = read_config(assets)
|
17
|
+
options = { :safe => config.delete(:safe) }
|
18
|
+
|
19
|
+
::AutoprefixerRails.install(assets, config, options)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def read_config(assets)
|
26
|
+
config_file = CONFIG_FILES
|
27
|
+
.map { |f| Pathname.new(assets.site.source).join f }
|
28
|
+
.find(&:exist?)
|
29
|
+
|
30
|
+
return {} unless config_file
|
31
|
+
|
32
|
+
YAML.load_file(config_file).reduce({}) do |h, (k, v)|
|
33
|
+
h.update k.to_sym => v
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
setup!
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
require "jekyll/assets/autoprefixer"
|
2
|
+
|
3
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
4
|
+
RSpec.configure do |config|
|
5
|
+
# rspec-expectations config goes here. You can use an alternate
|
6
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
7
|
+
# assertions if you prefer.
|
8
|
+
config.expect_with :rspec do |expectations|
|
9
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
10
|
+
# and `failure_message` of custom matchers include text for helper methods
|
11
|
+
# defined using `chain`, e.g.:
|
12
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
13
|
+
# # => "be bigger than 2 and smaller than 4"
|
14
|
+
# ...rather than:
|
15
|
+
# # => "be bigger than 2"
|
16
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
17
|
+
end
|
18
|
+
|
19
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
20
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
21
|
+
config.mock_with :rspec do |mocks|
|
22
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
23
|
+
# a real object. This is generally recommended, and will default to
|
24
|
+
# `true` in RSpec 4.
|
25
|
+
mocks.verify_partial_doubles = true
|
26
|
+
end
|
27
|
+
|
28
|
+
# These two settings work together to allow you to limit a spec run
|
29
|
+
# to individual examples or groups you care about by tagging them with
|
30
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
31
|
+
# get run.
|
32
|
+
config.filter_run :focus
|
33
|
+
config.run_all_when_everything_filtered = true
|
34
|
+
|
35
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
36
|
+
# recommended. For more details, see:
|
37
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
38
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
39
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
40
|
+
config.disable_monkey_patching!
|
41
|
+
|
42
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
43
|
+
# be too noisy due to issues in dependencies.
|
44
|
+
config.warnings = true
|
45
|
+
|
46
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
47
|
+
# file, and it's useful to allow more verbose output when running an
|
48
|
+
# individual spec file.
|
49
|
+
if config.files_to_run.one?
|
50
|
+
# Use the documentation formatter for detailed output,
|
51
|
+
# unless a formatter has already been configured
|
52
|
+
# (e.g. via a command-line flag).
|
53
|
+
config.default_formatter = "doc"
|
54
|
+
end
|
55
|
+
|
56
|
+
# Print the 10 slowest examples and example groups at the
|
57
|
+
# end of the spec run, to help surface which specs are running
|
58
|
+
# particularly slow.
|
59
|
+
config.profile_examples = 10
|
60
|
+
|
61
|
+
# Run specs in random order to surface order dependencies. If you find an
|
62
|
+
# order dependency and want to debug it, you can fix the order by providing
|
63
|
+
# the seed, which is printed after each run.
|
64
|
+
# --seed 1234
|
65
|
+
config.order = :random
|
66
|
+
|
67
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
68
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
69
|
+
# test failures related to randomization by passing the same `--seed` value
|
70
|
+
# as the one that triggered the failure.
|
71
|
+
Kernel.srand config.seed
|
72
|
+
end
|
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-assets-autoprefixer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.pre.alpha3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexey V Zapparov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll-assets
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0.pre.alpha0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0.pre.alpha0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: autoprefixer-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
description: Hooks autoprefixer into jekyll-assets
|
70
|
+
email:
|
71
|
+
- ixti@member.fsf.org
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".rubocop.yml"
|
79
|
+
- Gemfile
|
80
|
+
- HISTORY.md
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- jekyll-assets-autoprefixer.gemspec
|
85
|
+
- lib/jekyll-assets-autoprefixer.rb
|
86
|
+
- lib/jekyll/assets/autoprefixer.rb
|
87
|
+
- lib/jekyll/assets/autoprefixer/version.rb
|
88
|
+
- spec/lib/jekyll/assets/autoprefixer_spec.rb
|
89
|
+
- spec/spec_helper.rb
|
90
|
+
homepage: ''
|
91
|
+
licenses:
|
92
|
+
- MIT
|
93
|
+
metadata: {}
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options: []
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 1.3.1
|
108
|
+
requirements: []
|
109
|
+
rubyforge_project:
|
110
|
+
rubygems_version: 2.2.2
|
111
|
+
signing_key:
|
112
|
+
specification_version: 4
|
113
|
+
summary: jekyll-assets autoprefixer integration
|
114
|
+
test_files:
|
115
|
+
- spec/lib/jekyll/assets/autoprefixer_spec.rb
|
116
|
+
- spec/spec_helper.rb
|