octopress-autoprefixer 1.0.2 → 2.0.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -9
- data/lib/octopress-autoprefixer/version.rb +1 -1
- data/lib/octopress-autoprefixer.rb +15 -24
- data/octopress-autoprefixer.gemspec +4 -4
- metadata +24 -34
- data/test/Gemfile +0 -3
- data/test/_expected/utf8.css +0 -6
- data/test/utf8.scss +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03d91fe12e3d5c434a0011340978e9e32c449643
|
4
|
+
data.tar.gz: 76ccde19fe677aef2977a08e0dd8a480d4502486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad65603ff60d26128f6eed33b7d4a59352d009cc1f795f45827ebfb2b5dbde2b4f94bfb2f4bbaa439539a9a89740df1ecc15d0cf98400cd195712836d505232
|
7
|
+
data.tar.gz: c3a1591e7c1e6a321c15c532d8bec901ab306b0395be89afd8e02f488de53e14a3995aef12accb1eb1e5b6a96903bcbba5c9c33c17eb8c7d71c2a38e829384e0
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
###
|
4
|
-
-
|
5
|
-
|
6
|
-
### 1.0.1 (2015-05-12)
|
7
|
-
- Support for Jekyll 2 & 3
|
8
|
-
- Jekyll Hooks support
|
9
|
-
|
10
|
-
### 1.0.0
|
11
|
-
- initial release
|
3
|
+
### 2.0.0.alpha.1
|
4
|
+
- Now using Jekyll Hooks instead of Octopress Hooks.
|
5
|
+
- Requires Jekyll 3.0
|
@@ -4,37 +4,28 @@ require 'find'
|
|
4
4
|
|
5
5
|
module Octopress
|
6
6
|
module AutoPrefixer
|
7
|
+
Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
|
8
|
+
AutoPrefixer.process(site)
|
9
|
+
end
|
7
10
|
|
8
|
-
|
9
|
-
Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
|
10
|
-
AutoPrefixer.process(site)
|
11
|
-
end
|
12
|
-
else
|
13
|
-
require 'octopress-hooks'
|
14
|
-
class SiteHooks < Hooks::Site
|
15
|
-
priority :low
|
11
|
+
class << self
|
16
12
|
|
17
|
-
|
18
|
-
|
13
|
+
def process(site)
|
14
|
+
find_stylesheets(site.config['destination']).each do |file|
|
15
|
+
prefix(file)
|
19
16
|
end
|
20
17
|
end
|
21
|
-
end
|
22
18
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
def self.process(site)
|
29
|
-
find_stylesheets(site.config['destination']).each do |file|
|
30
|
-
prefix(file)
|
19
|
+
def find_stylesheets(dir)
|
20
|
+
return [] unless Dir.exist? dir
|
21
|
+
Find.find(dir).to_a.reject {|f| File.extname(f) != '.css' }
|
31
22
|
end
|
32
|
-
end
|
33
23
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
24
|
+
def prefix(stylesheet)
|
25
|
+
content = File.open(stylesheet).read
|
26
|
+
File.open(stylesheet, 'w') do |f|
|
27
|
+
f.write(AutoprefixerRails.process(content))
|
28
|
+
end
|
38
29
|
end
|
39
30
|
end
|
40
31
|
end
|
@@ -8,17 +8,17 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Octopress::Autoprefixer::VERSION
|
9
9
|
gem.authors = ["Brandon Mathis"]
|
10
10
|
gem.email = ["brandon@imathis.com"]
|
11
|
+
gem.description = %q{Automatically adds CSS vender prefixes for all CSS and Sass files in any Jekyll blog}
|
11
12
|
gem.summary = %q{Automatically adds CSS vender prefixes for all CSS and Sass files in any Jekyll blog}
|
12
13
|
gem.homepage = "https://github.com/octopress/autoprefixer"
|
13
14
|
gem.license = "MIT"
|
14
15
|
|
15
|
-
gem.add_runtime_dependency
|
16
|
-
gem.add_runtime_dependency "
|
17
|
-
gem.add_runtime_dependency 'jekyll', '>= 2.0'
|
16
|
+
gem.add_runtime_dependency "autoprefixer-rails", "~> 2.2"
|
17
|
+
gem.add_runtime_dependency 'jekyll', '>= 3.0.0.a', "< 4"
|
18
18
|
|
19
19
|
gem.add_development_dependency 'clash'
|
20
|
+
gem.add_development_dependency 'octopress-debugger'
|
20
21
|
gem.add_development_dependency 'rake'
|
21
|
-
gem.add_development_dependency 'bundler', "~> 1.7"
|
22
22
|
|
23
23
|
gem.files = `git ls-files`.split($/)
|
24
24
|
gem.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,57 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-autoprefixer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: autoprefixer-rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.2'
|
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
|
-
version: '2.
|
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'
|
26
|
+
version: '2.2'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: jekyll
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
33
|
+
version: 3.0.0.a
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '4'
|
48
37
|
type: :runtime
|
49
38
|
prerelease: false
|
50
39
|
version_requirements: !ruby/object:Gem::Requirement
|
51
40
|
requirements:
|
52
41
|
- - ">="
|
53
42
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
43
|
+
version: 3.0.0.a
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4'
|
55
47
|
- !ruby/object:Gem::Dependency
|
56
48
|
name: clash
|
57
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +59,7 @@ dependencies:
|
|
67
59
|
- !ruby/object:Gem::Version
|
68
60
|
version: '0'
|
69
61
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
62
|
+
name: octopress-debugger
|
71
63
|
requirement: !ruby/object:Gem::Requirement
|
72
64
|
requirements:
|
73
65
|
- - ">="
|
@@ -81,20 +73,21 @@ dependencies:
|
|
81
73
|
- !ruby/object:Gem::Version
|
82
74
|
version: '0'
|
83
75
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
76
|
+
name: rake
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
86
78
|
requirements:
|
87
|
-
- - "
|
79
|
+
- - ">="
|
88
80
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
81
|
+
version: '0'
|
90
82
|
type: :development
|
91
83
|
prerelease: false
|
92
84
|
version_requirements: !ruby/object:Gem::Requirement
|
93
85
|
requirements:
|
94
|
-
- - "
|
86
|
+
- - ">="
|
95
87
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
97
|
-
description:
|
88
|
+
version: '0'
|
89
|
+
description: Automatically adds CSS vender prefixes for all CSS and Sass files in
|
90
|
+
any Jekyll blog
|
98
91
|
email:
|
99
92
|
- brandon@imathis.com
|
100
93
|
executables: []
|
@@ -112,15 +105,12 @@ files:
|
|
112
105
|
- lib/octopress-autoprefixer/version.rb
|
113
106
|
- octopress-autoprefixer.gemspec
|
114
107
|
- test/.gitignore
|
115
|
-
- test/Gemfile
|
116
108
|
- test/_clash.yml
|
117
109
|
- test/_config.yml
|
118
110
|
- test/_expected/test.css
|
119
111
|
- test/_expected/test2.css
|
120
|
-
- test/_expected/utf8.css
|
121
112
|
- test/test.css
|
122
113
|
- test/test2.scss
|
123
|
-
- test/utf8.scss
|
124
114
|
homepage: https://github.com/octopress/autoprefixer
|
125
115
|
licenses:
|
126
116
|
- MIT
|
@@ -136,12 +126,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
126
|
version: '0'
|
137
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
128
|
requirements:
|
139
|
-
- - "
|
129
|
+
- - ">"
|
140
130
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
131
|
+
version: 1.3.1
|
142
132
|
requirements: []
|
143
133
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.4.
|
134
|
+
rubygems_version: 2.4.6
|
145
135
|
signing_key:
|
146
136
|
specification_version: 4
|
147
137
|
summary: Automatically adds CSS vender prefixes for all CSS and Sass files in any
|
data/test/Gemfile
DELETED
data/test/_expected/utf8.css
DELETED