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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03d91fe12e3d5c434a0011340978e9e32c449643
4
- data.tar.gz: 76ccde19fe677aef2977a08e0dd8a480d4502486
3
+ metadata.gz: 367b798e5df8a0626bd94dab43ce0f5ba9e88126
4
+ data.tar.gz: 58da90f53658ce79fdda794d667c912a12092420
5
5
  SHA512:
6
- metadata.gz: 3ad65603ff60d26128f6eed33b7d4a59352d009cc1f795f45827ebfb2b5dbde2b4f94bfb2f4bbaa439539a9a89740df1ecc15d0cf98400cd195712836d505232
7
- data.tar.gz: c3a1591e7c1e6a321c15c532d8bec901ab306b0395be89afd8e02f488de53e14a3995aef12accb1eb1e5b6a96903bcbba5c9c33c17eb8c7d71c2a38e829384e0
6
+ metadata.gz: 312b9d5bf6c7a1e72881e0292eb7f5776318b44511198e93acfcfab99299a1fbcb0c41a8e0d1dc631aab19a027321cf4cb64df397e76f8c7abbc22756fc455f4
7
+ data.tar.gz: 4b66a532d8390865d5ec87d698647585e4d87ac8a851986ebdcbca21476efd66932ad694271b39836a838b79e027e6f4fb77a3a8631b0851992b63a37ee3931c
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- script: bundle exec clash
4
+ script: clash
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ### 2.0.0.alpha.1
4
- - Now using Jekyll Hooks instead of Octopress Hooks.
5
- - Requires Jekyll 3.0
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
- class << self
12
-
13
- def process(site)
14
- find_stylesheets(site.config['destination']).each do |file|
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
- def find_stylesheets(dir)
20
- return [] unless Dir.exist? dir
21
- Find.find(dir).to_a.reject {|f| File.extname(f) != '.css' }
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
- def prefix(stylesheet)
25
- content = File.open(stylesheet).read
26
- File.open(stylesheet, 'w') do |f|
27
- f.write(AutoprefixerRails.process(content))
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
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  class Autoprefixer
3
- VERSION = "2.0.0.pre.1"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  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 = "octopress-autoprefixer"
7
+ gem.name = 'octopress-autoprefixer'
8
+ gem.description = 'Autoprefixer for Jekyll based sites'
8
9
  gem.version = Octopress::Autoprefixer::VERSION
9
- gem.authors = ["Brandon Mathis"]
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}
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 = "https://github.com/octopress/autoprefixer"
14
- gem.license = "MIT"
13
+ gem.homepage = 'https://github.com/octopress/autoprefixer'
14
+ gem.license = 'MIT'
15
15
 
16
- gem.add_runtime_dependency "autoprefixer-rails", "~> 2.2"
17
- gem.add_runtime_dependency 'jekyll', '>= 3.0.0.a', "< 4"
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 = ["lib"]
24
+ gem.require_paths = ['lib']
25
25
  end
data/test/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :path => '/gemspec/path', :path => '../'
@@ -0,0 +1,6 @@
1
+ @charset "UTF-8";
2
+ h2 {
3
+ background: -webkit-linear-gradient(#fff, #ccc);
4
+ background: linear-gradient(#fff, #ccc); }
5
+ h2:before {
6
+ content: "§"; }
data/test/utf8.scss ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ ---
3
+ @charset "utf-8";
4
+ h2 {
5
+ &:before { content: "§"; }
6
+ background: linear-gradient(#fff, #ccc);
7
+ }
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.pre.1
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-05-11 00:00:00.000000000 Z
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: '2.2'
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: '2.2'
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: '4'
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: '4'
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: octopress-debugger
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: rake
70
+ name: bundler
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - ">="
73
+ - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '0'
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: '0'
89
- description: Automatically adds CSS vender prefixes for all CSS and Sass files in
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: 1.3.1
127
+ version: '0'
132
128
  requirements: []
133
129
  rubyforge_project:
134
- rubygems_version: 2.4.6
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