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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8784ac1f28c797b6d47252eba9f4193529a4e831
4
- data.tar.gz: b1f02c4c062292540558b19fc361a23b7ca661af
3
+ metadata.gz: 058024b6cab174fb532c02c4d3e08b7402c439c6
4
+ data.tar.gz: a6af4b2d17c61481cbcb005a7e68b7f6714d7ffb
5
5
  SHA512:
6
- metadata.gz: fcc0a34679f0ce402163592d282c46abfdd5f7e611415aa3d1c22ac63cfd3f6478f5383686b181910ab738e44b9c595f19e7165c9ade657044283cf776c737f3
7
- data.tar.gz: 9909c3b2b2b6a95e4d66238cb375d375fc998be50e259f122f76e8c3bb96c419a7bc5989c7882e8b0f595b0e42967607c184419422b659563899017904527be2
6
+ metadata.gz: 5868a43430640668b1656280ed95a683d0ab4289993b862502505171a2c77498b9f0989a3a6dd549c5b454fbed9b7d8c24b7226103a1af75f257325989890c9e
7
+ data.tar.gz: 1fbddde69c2034155c6cc7ed7efb7fc69e841825b7ad8eac1758bba63fcf64d55871b88cdeae712a774b897b548ed008131138173abfa229205a64e86265d955
data/.gitignore CHANGED
@@ -22,3 +22,6 @@ tags
22
22
  # Vim
23
23
  *.swp
24
24
  *.swo
25
+ gemfiles/jekyll_2.gemfile.lock
26
+ gemfiles/jekyll_3.gemfile.lock
27
+ /vendor
data/.travis.yml CHANGED
@@ -3,4 +3,14 @@ language: ruby
3
3
  rvm:
4
4
  - 1.9.3
5
5
  - 2.0.0
6
- - 2.1.2
6
+ - 2.1.6
7
+ - 2.2.2
8
+
9
+ gemfile:
10
+ - gemfiles/jekyll_2.gemfile
11
+ - gemfiles/jekyll_3.gemfile
12
+
13
+ matrix:
14
+ exclude:
15
+ - rvm: 1.9.3
16
+ gemfile: gemfiles/jekyll_3.gemfile
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "jekyll-2" do
2
+ gem "jekyll", "~>2.0"
3
+ end
4
+
5
+ appraise "jekyll-3" do
6
+ gem "jekyll", "~>3.0.pre"
7
+ end
data/Gemfile CHANGED
@@ -1,9 +1,10 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  group :development do
4
- gem "rubocop"
4
+ gem "rubocop", "~>0.29.1"
5
5
  gem "rake"
6
6
  gem "rspec"
7
+ gem "appraisal"
7
8
 
8
9
  gem "guard-rspec"
9
10
 
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/ixti/jekyll-assets.svg?branch=master)](http://travis-ci.org/ixti/jekyll-assets)
5
- [![Dependency Status](https://gemnasium.com/ixti/jekyll-assets.svg)](https://gemnasium.com/ixti/jekyll-assets)
6
- [![Code Climate](https://codeclimate.com/github/ixti/jekyll-assets.svg)](https://codeclimate.com/github/ixti/jekyll-assets)
7
- [![Coverage Status](https://coveralls.io/repos/ixti/jekyll-assets/badge.svg?branch=master)](https://coveralls.io/r/ixti/jekyll-assets?branch=master)
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/assets"
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/assets"
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 => "../"
@@ -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", "~> 2.0"
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"
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Assets
3
- VERSION = "1.0.0-alpha1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
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
- def site
141
- Jekyll::Site.new(Jekyll.configuration({
142
- "source" => fixtures_path.to_s,
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
@@ -42,6 +42,8 @@ end
42
42
  RSpec.configure do |config|
43
43
  config.include FixturesHelpers
44
44
  config.extend FixturesHelpers
45
+ config.filter_run :focus => true
46
+ config.run_all_when_everything_filtered = true
45
47
 
46
48
  config.disable_monkey_patching!
47
49
 
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.pre.alpha1
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-03-14 00:00:00.000000000 Z
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.0'
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.0'
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: 1.3.1
223
+ version: '0'
220
224
  requirements: []
221
225
  rubyforge_project:
222
- rubygems_version: 2.2.2
226
+ rubygems_version: 2.4.8
223
227
  signing_key:
224
228
  specification_version: 4
225
- summary: jekyll-assets-1.0.0-alpha1
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