octopress-autoprefixer 2.0.0.pre.1 → 2.0.0
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 +12 -3
- data/lib/octopress-autoprefixer.rb +13 -15
- data/lib/octopress-autoprefixer/version.rb +1 -1
- data/octopress-autoprefixer.gemspec +10 -10
- data/test/Gemfile +3 -0
- data/test/_expected/utf8.css +6 -0
- data/test/utf8.scss +7 -0
- metadata +23 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 367b798e5df8a0626bd94dab43ce0f5ba9e88126
|
4
|
+
data.tar.gz: 58da90f53658ce79fdda794d667c912a12092420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312b9d5bf6c7a1e72881e0292eb7f5776318b44511198e93acfcfab99299a1fbcb0c41a8e0d1dc631aab19a027321cf4cb64df397e76f8c7abbc22756fc455f4
|
7
|
+
data.tar.gz: 4b66a532d8390865d5ec87d698647585e4d87ac8a851986ebdcbca21476efd66932ad694271b39836a838b79e027e6f4fb77a3a8631b0851992b63a37ee3931c
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
### 2.0.0
|
4
|
-
- Now
|
5
|
-
|
3
|
+
### 2.0.0 (2015-12-08)
|
4
|
+
- Now requiring Jekyll 3 (to reduce dependencies)
|
5
|
+
|
6
|
+
### 1.0.2 (2015-12-08)
|
7
|
+
- Updated to latest Autoprefixer, removed version lock.
|
8
|
+
|
9
|
+
### 1.0.1 (2015-05-12)
|
10
|
+
- Support for Jekyll 2 & 3
|
11
|
+
- Jekyll Hooks support
|
12
|
+
|
13
|
+
### 1.0.0
|
14
|
+
- initial release
|
@@ -4,28 +4,26 @@ require 'find'
|
|
4
4
|
|
5
5
|
module Octopress
|
6
6
|
module AutoPrefixer
|
7
|
+
|
7
8
|
Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
|
8
9
|
AutoPrefixer.process(site)
|
9
10
|
end
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
prefix(file)
|
16
|
-
end
|
17
|
-
end
|
12
|
+
def self.find_stylesheets(dir)
|
13
|
+
return [] unless Dir.exist? dir
|
14
|
+
Find.find(dir).to_a.reject {|f| File.extname(f) != '.css' }
|
15
|
+
end
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
def self.process(site)
|
18
|
+
find_stylesheets(site.config['destination']).each do |file|
|
19
|
+
prefix(file)
|
22
20
|
end
|
21
|
+
end
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
23
|
+
def self.prefix(stylesheet)
|
24
|
+
content = File.open(stylesheet).read
|
25
|
+
File.open(stylesheet, 'w') do |f|
|
26
|
+
f.write(AutoprefixerRails.process(content))
|
29
27
|
end
|
30
28
|
end
|
31
29
|
end
|
@@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'octopress-autoprefixer/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
|
-
gem.name =
|
7
|
+
gem.name = 'octopress-autoprefixer'
|
8
|
+
gem.description = 'Autoprefixer for Jekyll based sites'
|
8
9
|
gem.version = Octopress::Autoprefixer::VERSION
|
9
|
-
gem.authors = [
|
10
|
-
gem.email = [
|
11
|
-
gem.description = %q{Automatically adds CSS vender prefixes for all CSS and Sass files in any Jekyll blog}
|
10
|
+
gem.authors = ['Brandon Mathis']
|
11
|
+
gem.email = ['brandon@imathis.com']
|
12
12
|
gem.summary = %q{Automatically adds CSS vender prefixes for all CSS and Sass files in any Jekyll blog}
|
13
|
-
gem.homepage =
|
14
|
-
gem.license =
|
13
|
+
gem.homepage = 'https://github.com/octopress/autoprefixer'
|
14
|
+
gem.license = 'MIT'
|
15
15
|
|
16
|
-
gem.add_runtime_dependency
|
17
|
-
gem.add_runtime_dependency 'jekyll', '
|
16
|
+
gem.add_runtime_dependency 'autoprefixer-rails'
|
17
|
+
gem.add_runtime_dependency 'jekyll', '~> 3.0'
|
18
18
|
|
19
19
|
gem.add_development_dependency 'clash'
|
20
|
-
gem.add_development_dependency 'octopress-debugger'
|
21
20
|
gem.add_development_dependency 'rake'
|
21
|
+
gem.add_development_dependency 'bundler', '~> 1.7'
|
22
22
|
|
23
23
|
gem.files = `git ls-files`.split($/)
|
24
|
-
gem.require_paths = [
|
24
|
+
gem.require_paths = ['lib']
|
25
25
|
end
|
data/test/Gemfile
ADDED
data/test/utf8.scss
ADDED
metadata
CHANGED
@@ -1,49 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-autoprefixer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
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-12-09 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
|
-
version: '
|
19
|
+
version: '0'
|
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: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0.0.a
|
34
|
-
- - "<"
|
31
|
+
- - "~>"
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
33
|
+
version: '3.0'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - "
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 3.0.0.a
|
44
|
-
- - "<"
|
38
|
+
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '3.0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: clash
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +53,7 @@ dependencies:
|
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '0'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
56
|
+
name: rake
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - ">="
|
@@ -73,21 +67,20 @@ dependencies:
|
|
73
67
|
- !ruby/object:Gem::Version
|
74
68
|
version: '0'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
70
|
+
name: bundler
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
79
|
-
- - "
|
73
|
+
- - "~>"
|
80
74
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
75
|
+
version: '1.7'
|
82
76
|
type: :development
|
83
77
|
prerelease: false
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
85
79
|
requirements:
|
86
|
-
- - "
|
80
|
+
- - "~>"
|
87
81
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
89
|
-
description:
|
90
|
-
any Jekyll blog
|
82
|
+
version: '1.7'
|
83
|
+
description: Autoprefixer for Jekyll based sites
|
91
84
|
email:
|
92
85
|
- brandon@imathis.com
|
93
86
|
executables: []
|
@@ -105,12 +98,15 @@ files:
|
|
105
98
|
- lib/octopress-autoprefixer/version.rb
|
106
99
|
- octopress-autoprefixer.gemspec
|
107
100
|
- test/.gitignore
|
101
|
+
- test/Gemfile
|
108
102
|
- test/_clash.yml
|
109
103
|
- test/_config.yml
|
110
104
|
- test/_expected/test.css
|
111
105
|
- test/_expected/test2.css
|
106
|
+
- test/_expected/utf8.css
|
112
107
|
- test/test.css
|
113
108
|
- test/test2.scss
|
109
|
+
- test/utf8.scss
|
114
110
|
homepage: https://github.com/octopress/autoprefixer
|
115
111
|
licenses:
|
116
112
|
- MIT
|
@@ -126,12 +122,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
122
|
version: '0'
|
127
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
124
|
requirements:
|
129
|
-
- - "
|
125
|
+
- - ">="
|
130
126
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
127
|
+
version: '0'
|
132
128
|
requirements: []
|
133
129
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.4.
|
130
|
+
rubygems_version: 2.4.5
|
135
131
|
signing_key:
|
136
132
|
specification_version: 4
|
137
133
|
summary: Automatically adds CSS vender prefixes for all CSS and Sass files in any
|