jekyll-assets 1.0.0.pre.alpha1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +11 -1
- data/Appraisals +7 -0
- data/Gemfile +2 -1
- data/README.md +6 -6
- data/gemfiles/jekyll_2.gemfile +17 -0
- data/gemfiles/jekyll_3.gemfile +17 -0
- data/jekyll-assets.gemspec +1 -1
- data/lib/jekyll/assets/version.rb +1 -1
- data/spec/fixtures/.jekyll-metadata +0 -0
- data/spec/lib/jekyll/assets/patches/site_patch_spec.rb +5 -8
- data/spec/spec_helper.rb +2 -0
- metadata +15 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 058024b6cab174fb532c02c4d3e08b7402c439c6
|
4
|
+
data.tar.gz: a6af4b2d17c61481cbcb005a7e68b7f6714d7ffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5868a43430640668b1656280ed95a683d0ab4289993b862502505171a2c77498b9f0989a3a6dd549c5b454fbed9b7d8c24b7226103a1af75f257325989890c9e
|
7
|
+
data.tar.gz: 1fbddde69c2034155c6cc7ed7efb7fc69e841825b7ad8eac1758bba63fcf64d55871b88cdeae712a774b897b548ed008131138173abfa229205a64e86265d955
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Appraisals
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Jekyll::Assets
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/jekyll-assets.svg)](http://badge.fury.io/rb/jekyll-assets)
|
4
|
-
[![Build Status](https://travis-ci.org/
|
5
|
-
[![Dependency Status](https://gemnasium.com/
|
6
|
-
[![Code Climate](https://codeclimate.com/github/
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/
|
4
|
+
[![Build Status](https://travis-ci.org/jekyll-assets/jekyll-assets.svg?branch=master)](http://travis-ci.org/jekyll-assets/jekyll-assets)
|
5
|
+
[![Dependency Status](https://gemnasium.com/jekyll-assets/jekyll-assets.svg)](https://gemnasium.com/jekyll-assets/jekyll-assets)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/jekyll-assets/jekyll-assets.svg)](https://codeclimate.com/github/jekyll-assets/jekyll-assets)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/jekyll-assets/jekyll-assets/badge.svg?branch=master)](https://coveralls.io/r/jekyll-assets/jekyll-assets?branch=master)
|
8
8
|
|
9
9
|
Jekyll plugin, that adds Rails-alike assets pipeline, that means that:
|
10
10
|
|
@@ -70,7 +70,7 @@ First of all make sure to require it. Common practice is to add following line
|
|
70
70
|
into `_plugins/ext.rb` file:
|
71
71
|
|
72
72
|
``` ruby
|
73
|
-
require "jekyll
|
73
|
+
require "jekyll-assets"
|
74
74
|
```
|
75
75
|
|
76
76
|
Once plugin installed, you'll have following Liquid tags available:
|
@@ -310,7 +310,7 @@ but copyrights info. In this case you can define and use your own compressor.
|
|
310
310
|
To do so, first let's define new compressor in `_plugins/ext.rb`:
|
311
311
|
|
312
312
|
``` ruby
|
313
|
-
require "jekyll
|
313
|
+
require "jekyll-assets"
|
314
314
|
require "sprockets"
|
315
315
|
|
316
316
|
Sprockets.register_compressor 'application/javascript',
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "jekyll", "~>2.0"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "rubocop", "~>0.29.1"
|
9
|
+
gem "rake"
|
10
|
+
gem "rspec"
|
11
|
+
gem "appraisal"
|
12
|
+
gem "guard-rspec"
|
13
|
+
gem "coveralls", :require => false
|
14
|
+
gem "simplecov", :require => false
|
15
|
+
end
|
16
|
+
|
17
|
+
gemspec :path => "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "jekyll", "~>3.0.pre"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "rubocop", "~>0.29.1"
|
9
|
+
gem "rake"
|
10
|
+
gem "rspec"
|
11
|
+
gem "appraisal"
|
12
|
+
gem "guard-rspec"
|
13
|
+
gem "coveralls", :require => false
|
14
|
+
gem "simplecov", :require => false
|
15
|
+
end
|
16
|
+
|
17
|
+
gemspec :path => "../"
|
data/jekyll-assets.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_dependency "jekyll", "
|
25
|
+
spec.add_dependency "jekyll", ">= 2"
|
26
26
|
spec.add_dependency "sass", "~> 3.2"
|
27
27
|
spec.add_dependency "fastimage", "~> 1.6"
|
28
28
|
spec.add_dependency "mini_magick", "~> 4.1"
|
Binary file
|
@@ -137,20 +137,17 @@ RSpec.describe Jekyll::Assets::Patches::SitePatch do
|
|
137
137
|
end
|
138
138
|
|
139
139
|
context "with cache" do
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
"assets" => { "cache" => true, "cachebust" => :none },
|
144
|
-
"destination" => @dest.to_s
|
145
|
-
}))
|
140
|
+
before do
|
141
|
+
@site.assets_config.cache = true
|
142
|
+
@site.assets_config.cachebust = :none
|
146
143
|
end
|
147
144
|
|
148
145
|
after do
|
149
|
-
site.assets.cache_path.rmtree if site.assets.cache_path.exist?
|
146
|
+
@site.assets.cache_path.rmtree if site.assets.cache_path.exist?
|
150
147
|
end
|
151
148
|
|
152
149
|
it "regenerates static assets upon multiple #process" do
|
153
|
-
2.times { site.process }
|
150
|
+
2.times { @site.process }
|
154
151
|
expect(@dest.join "assets", "noise.png").to exist
|
155
152
|
end
|
156
153
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksey V Zapparov
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '2
|
20
|
+
version: '2'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '2
|
27
|
+
version: '2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: sass
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,12 +140,15 @@ files:
|
|
140
140
|
- ".rubocop_todo.yml"
|
141
141
|
- ".travis.yml"
|
142
142
|
- ".yardopts"
|
143
|
+
- Appraisals
|
143
144
|
- Gemfile
|
144
145
|
- Guardfile
|
145
146
|
- HISTORY.md
|
146
147
|
- LICENSE
|
147
148
|
- README.md
|
148
149
|
- Rakefile
|
150
|
+
- gemfiles/jekyll_2.gemfile
|
151
|
+
- gemfiles/jekyll_3.gemfile
|
149
152
|
- jekyll-assets.gemspec
|
150
153
|
- lib/jekyll-assets.rb
|
151
154
|
- lib/jekyll/assets.rb
|
@@ -164,6 +167,7 @@ files:
|
|
164
167
|
- lib/jekyll/assets/tag.rb
|
165
168
|
- lib/jekyll/assets/version.rb
|
166
169
|
- spec/fixtures/.gitignore
|
170
|
+
- spec/fixtures/.jekyll-metadata
|
167
171
|
- spec/fixtures/_assets/alert.js
|
168
172
|
- spec/fixtures/_assets/app.css.erb
|
169
173
|
- spec/fixtures/_assets/app.js
|
@@ -214,17 +218,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
218
|
version: '0'
|
215
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
220
|
requirements:
|
217
|
-
- - "
|
221
|
+
- - ">="
|
218
222
|
- !ruby/object:Gem::Version
|
219
|
-
version:
|
223
|
+
version: '0'
|
220
224
|
requirements: []
|
221
225
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.4.8
|
223
227
|
signing_key:
|
224
228
|
specification_version: 4
|
225
|
-
summary: jekyll-assets-1.0.0
|
229
|
+
summary: jekyll-assets-1.0.0
|
226
230
|
test_files:
|
227
231
|
- spec/fixtures/.gitignore
|
232
|
+
- spec/fixtures/.jekyll-metadata
|
228
233
|
- spec/fixtures/_assets/alert.js
|
229
234
|
- spec/fixtures/_assets/app.css.erb
|
230
235
|
- spec/fixtures/_assets/app.js
|