octopress-autoprefixer 1.0.0 → 1.0.1

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: 04be8ba61e950be92f64ad5833a2ab32638284aa
4
- data.tar.gz: de99c2fa13d1b5c305db82206e65827e2ca66f9c
3
+ metadata.gz: 6fce45efff3adba88626364d86305ac73dc99926
4
+ data.tar.gz: 3ce4a4583c00048b083475a9d83c75d6c1ef635c
5
5
  SHA512:
6
- metadata.gz: f97ff70a2b9ed6f9f136be21388e2c4a7153aebe2bf8e7f832cc67da66a5f5feae3f7a0202d63793456b0c7dbde1de384de2396ddc316b2e1b240f95676531fe
7
- data.tar.gz: bb926cf988a5f93e7dfd508adddad52f8924addf7f25164891bf3fab808b2be00ecd1cf3d3be1304112a498f12f7054c191dc343baa55555b1205b4fe2aeab16
6
+ metadata.gz: 4f2213beb217d2c6ed07f2001d6c9b820580c99ebf1cd94860bb7ff707cbd4be46d6a59475e8ddb976d3750ec703465371d4f434a2577ab6568699b0a3f4d0cf
7
+ data.tar.gz: b53c54fa28b63d55d2d7a3f5c52ea2368d8d1921da98760e6bfcb5b2e0f62a30e63c1c2be4c36543bd2bb30978e4f670bdfab4860aa8f27e9442133ee3b8691a
data/.travis.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 1.9.3
5
4
  script: cd test && bundle exec clash
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ### 1.0.1 (2015-05-12)
4
+ - Support for Jekyll 2 & 3
5
+ - Jekyll Hooks support
6
+
7
+ ### 1.0.0
8
+ - initial release
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Octopress Date Format
1
+ # Octopress Autoprefixer
2
2
 
3
3
  Automatically adds CSS vendor prefixes to CSS and Sass files in any Jekyll site. This plugin uses the
4
4
  [Autoprefixer-rails](https://github.com/ai/autoprefixer-rails) gem.
@@ -1,16 +1,23 @@
1
- require 'octopress-hooks'
2
1
  require 'octopress-autoprefixer/version'
3
2
  require 'autoprefixer-rails'
4
3
  require 'find'
5
4
 
6
5
  module Octopress
7
6
  module AutoPrefixer
8
- class SiteHooks < Hooks::Site
9
- @priority = :low
10
7
 
11
- def post_write(site)
8
+ if defined?(Jekyll::Hooks)
9
+ Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
12
10
  AutoPrefixer.process(site)
13
11
  end
12
+ else
13
+ require 'octopress-hooks'
14
+ class SiteHooks < Hooks::Site
15
+ @priority = :low
16
+
17
+ def post_write(site)
18
+ AutoPrefixer.process(site)
19
+ end
20
+ end
14
21
  end
15
22
 
16
23
  def self.find_stylesheets(dir)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  class Autoprefixer
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  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}
12
11
  gem.summary = %q{Automatically adds CSS vender prefixes for all CSS and Sass files in any Jekyll blog}
13
12
  gem.homepage = "https://github.com/octopress/autoprefixer"
14
13
  gem.license = "MIT"
15
14
 
16
15
  gem.add_runtime_dependency 'octopress-hooks', '~> 2.0'
17
16
  gem.add_runtime_dependency "autoprefixer-rails", "~> 2.2"
18
- gem.add_runtime_dependency 'jekyll', '~> 2.0'
17
+ gem.add_runtime_dependency 'jekyll', '>= 2.0'
19
18
 
20
- gem.add_development_dependency 'clash', '~> 1.0'
21
- gem.add_development_dependency 'pry-debugger'
19
+ gem.add_development_dependency 'clash'
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
24
  gem.require_paths = ["lib"]
@@ -0,0 +1,4 @@
1
+ ---
2
+ "/Users/imathis/workspace/octodev/autoprefixer/test/test.css":
3
+ mtime: 2014-08-03 18:58:56.000000000 +00:00
4
+ deps: []
File without changes
@@ -1,4 +1,3 @@
1
1
  body {
2
- -webkit-box-shadow: #000 0px 0px 3px inset;
3
- box-shadow: #000 0px 0px 3px inset;
2
+ box-shadow: #ec0 0px 0px 3px inset;
4
3
  }
@@ -1,4 +1,3 @@
1
1
  body article {
2
- background-image: -webkit-gradient(linear, left top, left bottom, from(white), to(#eeeeee));
3
- background-image: -webkit-linear-gradient(white, #eeeeee);
4
- background-image: linear-gradient(white, #eeeeee); }
2
+ background-image: -webkit-linear-gradient(#cba, #abc);
3
+ background-image: linear-gradient(#cba, #abc); }
data/test/test.css CHANGED
@@ -1,3 +1,3 @@
1
1
  body {
2
- box-shadow: #000 0px 0px 3px inset;
2
+ box-shadow: #ec0 0px 0px 3px inset;
3
3
  }
data/test/test2.scss CHANGED
@@ -2,6 +2,6 @@
2
2
  ---
3
3
  body {
4
4
  article {
5
- background-image: linear-gradient(#fff, #eee)
5
+ background-image: linear-gradient(#cba, #abc)
6
6
  }
7
7
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-autoprefixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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: 2014-08-03 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks
@@ -42,32 +42,32 @@ dependencies:
42
42
  name: jekyll
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: clash
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry-debugger
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -80,8 +80,21 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Automatically adds CSS vender prefixes for all CSS and Sass files in
84
- any Jekyll blog
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.7'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.7'
97
+ description:
85
98
  email:
86
99
  - brandon@imathis.com
87
100
  executables: []
@@ -90,6 +103,7 @@ extra_rdoc_files: []
90
103
  files:
91
104
  - ".gitignore"
92
105
  - ".travis.yml"
106
+ - CHANGELOG.md
93
107
  - Gemfile
94
108
  - LICENSE.txt
95
109
  - README.md
@@ -97,9 +111,10 @@ files:
97
111
  - lib/octopress-autoprefixer.rb
98
112
  - lib/octopress-autoprefixer/version.rb
99
113
  - octopress-autoprefixer.gemspec
100
- - test/.clash.yml
101
114
  - test/.gitignore
115
+ - test/.jekyll-metadata
102
116
  - test/Gemfile
117
+ - test/_clash.yml
103
118
  - test/_config.yml
104
119
  - test/_expected/test.css
105
120
  - test/_expected/test2.css
@@ -125,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
140
  version: '0'
126
141
  requirements: []
127
142
  rubyforge_project:
128
- rubygems_version: 2.2.2
143
+ rubygems_version: 2.4.6
129
144
  signing_key:
130
145
  specification_version: 4
131
146
  summary: Automatically adds CSS vender prefixes for all CSS and Sass files in any