jekyll_asset_pipeline 0.5.1 → 0.6.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: 6ecbca180339905b9bc06cf3490d19de5af2f5cc
4
- data.tar.gz: 8e6fa3d8f9b9290228907c706a46946b05cf076d
3
+ metadata.gz: 332d397c21907d51ca55646706e3fc0b0d13aeea
4
+ data.tar.gz: 4a78044bd43ca8a2bf21d0250d49e8f13e64ee6c
5
5
  SHA512:
6
- metadata.gz: 002b87529c6ba6c5409eba9c9e82696234aec6c009b0de5cf5cc69a38396f1b4222711d5e8646b79e68ec8675b8386b9b154c8d9586a462d9ada83b25b97d37a
7
- data.tar.gz: 5f6bdaf8987879ec58ea81740d211df8520493a03372b4d5b1fa9b983f2b84bae0044099a79933bc558dc3b28400c2924b99db93109a4c89340e9510a8a093e7
6
+ metadata.gz: 13173608ed882f26e9521bfe823e2053208b434caa4ff013b1faea90ec02db110d35ceec4159a67c9bd8cef8185df0e4557aedcd6a9f54f2f25cf0ffd74dad3d
7
+ data.tar.gz: e91ff0866f1dc952b67d9031cff64eb532b6952938745e31da91ad5b3af9b7de8aa6d85263b91dad8597a958a927137bcbdf0e6fdb06a057b40f1e6cf16337a8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ * Merged JAPR into Jekyll Asset Pipeline
6
+
7
+ ## 0.5.0, 0.5.1
8
+
9
+ * Test releases
10
+
3
11
  ## 0.4.1 (2017-12-08)
4
12
 
5
13
  * [#6] __Test coverage increased to 100%__
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Jekyll Asset Pipeline
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/jekyll-asset-pipeline.png)](http://badge.fury.io/rb/jekyll-asset-pipeline)
4
- [![Build Status](https://travis-ci.org/matthodan/jekyll-asset-pipeline.svg?branch=master)](https://travis-ci.org/matthodan/jekyll-asset-pipeline)
5
- [![Coverage Status](https://coveralls.io/repos/matthodan/jekyll-asset-pipeline/badge.png?branch=master)](https://coveralls.io/r/matthodan/jekyll-asset-pipeline?branch=master)
6
- [![Dependency Status](https://gemnasium.com/matthodan/jekyll-asset-pipeline.png)](https://gemnasium.com/matthodan/jekyll-asset-pipeline)
3
+ [![Gem Version](https://img.shields.io/gem/v/jekyll_asset_pipeline.svg)](https://rubygems.org/gems/jekyll_asset_pipeline)
4
+ [![Build Status](https://img.shields.io/travis/matthodan/jekyll-asset-pipeline.svg)](https://travis-ci.org/matthodan/jekyll-asset-pipeline)
5
+ [![Coveralls Status](https://img.shields.io/coveralls/github/matthodan/jekyll-asset-pipeline/master.svg)](https://coveralls.io/r/matthodan/jekyll-asset-pipeline?branch=master)
6
+ [![Dependency Status](https://img.shields.io/gemnasium/matthodan/jekyll-asset-pipeline.svg)](https://gemnasium.com/matthodan/jekyll-asset-pipeline)
7
7
 
8
8
  [Jekyll Asset Pipeline](http://www.matthodan.com/2012/11/22/jekyll-asset-pipeline.html) is a powerful asset pipeline that automatically collects, converts and compresses / minifies your site's JavaScript and CSS assets when you compile your [Jekyll](http://jekyllrb.com/) site.
9
9
 
@@ -50,13 +50,13 @@ Jekyll Asset Pipeline's workflow can be summarized as follows:
50
50
 
51
51
  Jekyll Asset Pipeline is extremely easy to add to your Jekyll project and has no incremental dependencies beyond those required by Jekyll. Once you have a basic Jekyll site up and running, follow the steps below to install and configure Jekyll Asset Pipeline.
52
52
 
53
- 1. Install the `jekyll-asset-pipeline` gem via [Rubygems](http://rubygems.org/).
53
+ 1. Install the `jekyll_asset_pipeline` gem via [Rubygems](http://rubygems.org/).
54
54
 
55
55
  ``` bash
56
- $ gem install jekyll-asset-pipeline
56
+ $ gem install jekyll_asset_pipeline
57
57
  ```
58
58
 
59
- If you are using [Bundler](http://gembundler.com/) to manage your project's gems, you can just add `jekyll-asset-pipeline` to your Gemfile and run `bundle install`.
59
+ If you are using [Bundler](http://gembundler.com/) to manage your project's gems, you can just add `jekyll_asset_pipeline` to your Gemfile and run `bundle install`.
60
60
 
61
61
  2. Add a `_plugins` folder to your project if you do not already have one. Within the `_plugins` folder, add a file named `jekyll_asset_pipeline.rb` with the following require statement as its contents.
62
62
 
@@ -336,7 +336,7 @@ Setting | Default | Description
336
336
 
337
337
  [Octopress](http://octopress.org/) is a popular framework for Jekyll that can help you get a blog up and running quickly. Jekyll Asset Pipeline can be added to an Octopress site using the [Getting Started](#getting-started) steps above with the following modifications:
338
338
 
339
- 1. Octopress uses Bundler to manage your site's dependencies. You should add `gem jekyll-asset-pipeline` to your Gemfile and then run `bundle install` to install.
339
+ 1. Octopress uses Bundler to manage your site's dependencies. You should add `gem jekyll_asset_pipeline` to your Gemfile and then run `bundle install` to install.
340
340
 
341
341
  2. Instead of adding a `_plugins` folder, you should put `jekyll_asset_pipeline.rb` in the `plugins` folder included by default in the root of your Octopress site.
342
342
 
@@ -20,7 +20,7 @@ module JekyllAssetPipeline
20
20
 
21
21
  # Finds a converter class based on a filename
22
22
  def self.klass(filename)
23
- JekyllAssetPipeline::Converter.subclasses.select do |c|
23
+ ::JekyllAssetPipeline::Converter.subclasses.select do |c|
24
24
  c.filetype == File.extname(filename).downcase
25
25
  end.last
26
26
  end
@@ -90,7 +90,7 @@ module JekyllAssetPipeline
90
90
  @source = source
91
91
  @destination = destination
92
92
  @type = type
93
- @options = JekyllAssetPipeline::DEFAULTS.merge(options)
93
+ @options = ::JekyllAssetPipeline::DEFAULTS.merge(options)
94
94
 
95
95
  process
96
96
  end
@@ -115,8 +115,8 @@ module JekyllAssetPipeline
115
115
  @assets = YAML.safe_load(@manifest).map! do |path|
116
116
  full_path = File.join(@source, path)
117
117
  File.open(File.join(@source, path)) do |file|
118
- JekyllAssetPipeline::Asset.new(file.read, File.basename(path),
119
- File.dirname(full_path))
118
+ ::JekyllAssetPipeline::Asset.new(file.read, File.basename(path),
119
+ File.dirname(full_path))
120
120
  end
121
121
  end
122
122
  rescue StandardError => se
@@ -132,7 +132,7 @@ module JekyllAssetPipeline
132
132
  finished = false
133
133
  while finished == false
134
134
  # Find a converter to use
135
- klass = JekyllAssetPipeline::Converter.klass(asset.filename)
135
+ klass = ::JekyllAssetPipeline::Converter.klass(asset.filename)
136
136
 
137
137
  # Convert asset if converter is found
138
138
  if klass.nil?
@@ -167,9 +167,9 @@ module JekyllAssetPipeline
167
167
  def bundle
168
168
  content = @assets.map(&:content).join("\n")
169
169
 
170
- hash = JekyllAssetPipeline::Pipeline.hash(@source, @manifest, @options)
170
+ hash = ::JekyllAssetPipeline::Pipeline.hash(@source, @manifest, @options)
171
171
  @assets = [
172
- JekyllAssetPipeline::Asset.new(content, "#{@prefix}-#{hash}#{@type}")
172
+ ::JekyllAssetPipeline::Asset.new(content, "#{@prefix}-#{hash}#{@type}")
173
173
  ]
174
174
  end
175
175
 
@@ -177,7 +177,7 @@ module JekyllAssetPipeline
177
177
  def compress
178
178
  @assets.each do |asset|
179
179
  # Find a compressor to use
180
- klass = JekyllAssetPipeline::Compressor.subclasses.select do |c|
180
+ klass = ::JekyllAssetPipeline::Compressor.subclasses.select do |c|
181
181
  c.filetype == @type
182
182
  end.last
183
183
 
@@ -199,7 +199,7 @@ module JekyllAssetPipeline
199
199
  gzip_content = Zlib::Deflate.deflate(asset.content)
200
200
  [
201
201
  asset,
202
- JekyllAssetPipeline::Asset
202
+ ::JekyllAssetPipeline::Asset
203
203
  .new(gzip_content, "#{asset.filename}.gz", asset.dirname)
204
204
  ]
205
205
  end.flatten!
@@ -240,7 +240,7 @@ module JekyllAssetPipeline
240
240
  display_path = @options['display_path'] || @options['output_path']
241
241
 
242
242
  @html = @assets.map do |asset|
243
- klass = JekyllAssetPipeline::Template.klass(asset.filename)
243
+ klass = ::JekyllAssetPipeline::Template.klass(asset.filename)
244
244
  html = klass.new(display_path, asset.filename).html unless klass.nil?
245
245
 
246
246
  html
@@ -1,3 +1,3 @@
1
1
  module JekyllAssetPipeline
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_asset_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hodan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-18 00:00:00.000000000 Z
12
+ date: 2017-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll