jekyll-assets 2.2.7 → 2.2.8

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: b60091fd94e607aa756f20b2c108ef15882c4ab2
4
- data.tar.gz: af2a668f6dfe50e8f89fe8101c2e30d983582623
3
+ metadata.gz: de1aafb18ffbc5dd93d6cc939c6aee6ccb9ff656
4
+ data.tar.gz: 60f99c86d63f7ee293bbd9a92eb83c917c740705
5
5
  SHA512:
6
- metadata.gz: efb0bcc8f8ff2ca2590778644df54bd793f81225422fcf748df9ceca0a0d650d85bc390d220ab9c9223cade43b9c6ac93789008f3d50fe18a85cf935a4892590
7
- data.tar.gz: fb67b6f9a049fb19c499819f74c35d68b96ba0e6cf9c2aaf9fcf9065531cc6909d40f58c4de6fed2c446ca2692cec8af442db0d0ec03927cfecba211dbf743d7
6
+ metadata.gz: 0d49e408b902b4c23f961d175024bddb7d19cca7306d6337e85eebc5f78fd5796d8e59a246c18fd6bd7032dbd8ae980aeffe2f0c73c146ca5941faee8266af7f
7
+ data.tar.gz: 94c1f84f35918fbe1700083159ac974543ccad187d709408854d7247f720e621ae9d1ce8986da8f19a976944f7b2375c834c4876f0c5eceb8c3f5d856a815700
data/README.md CHANGED
@@ -115,7 +115,29 @@ folder as the sole source (base folder.)***
115
115
  * Disable compression by default in development.
116
116
  * Enable by default in production.
117
117
 
118
- ### Bower Components
118
+ ## Addons
119
+
120
+ * CSS Auto Prefixer - add "autoprefixer-rails" to your Gemfile and configure target browsers in `_config.yml`:
121
+
122
+ ```yml
123
+ assets:
124
+ autoprefixer:
125
+ browsers:
126
+ - "last 2 versions"
127
+ - "IE > 9"
128
+ ```
129
+
130
+ * ES6 Transpiler (through Babel) - add "sprockets-es6" to your Gemfile — any `.es6` files (e.g. `main.js.es6`) will be transpiled
131
+ * Bootstrap - add "bootstrap-sass" to your Gemfile, and `@import 'boostrap-sprockets'; @import 'bootstrap'`
132
+ * Font Awesome - add "font-awesome-sass" to your Gemfile, and `@import 'font-awesome-sprockets'; @import 'font-awesome'`
133
+ * Image Magick - add "mini_magick" to your Gemfile, only works with `img`, `image`.
134
+ * LESS - add "less" to your Gemfile
135
+
136
+ ***Please note that some of these (if not all) have trouble with Rhino --
137
+ `therubyrhino` so you would probably be best to just use Node.js or io.js at
138
+ that point rather than trying to fight it.***
139
+
140
+ ## Bower Components
119
141
 
120
142
  Modify your `.bowerrc` file and add:
121
143
 
@@ -268,21 +290,11 @@ end
268
290
  * image_url
269
291
  * font_url
270
292
 
271
- ## Addons
272
-
273
- * CSS Auto Prefixer - add "autoprefixer-rails" to your Gemfile.
274
- * ES6 Transpiler (through Babel) - add "sprockets-es6" to your Gemfile.
275
- * Bootstrap - add "bootstrap-sass" to your Gemfile, and `@import 'boostrap-sprockets'; @import 'bootstrap'`
276
- * Font Awesome - add "font-awesome-sass" to your Gemfile, and `@import 'font-awesome-sprockets'; @import 'font-awesome'`
277
- * Image Magick - add "mini_magick" to your Gemfile, only works with `img`, `image`.
278
- * LESS - add "less" to your Gemfile
279
-
280
- ***Please note that some of these (if not all) have trouble with Rhino --
281
- `therubyrhino` so you would probably be best to just use Node.js or io.js at
282
- that point rather than trying to fight it.***
283
-
284
293
  ### Image Magick Proxy arguments:
285
294
 
295
+ **NOTE: You'll need the `mini_magick` gem installed for these to work**
296
+ To install `mini_magick`, add `gem "mini_magick"` to your `Gemfile`
297
+
286
298
  * `magick:resize:<value>`
287
299
  * `magick:format:<value>`
288
300
  * `magick:quality:<value>`
@@ -1,8 +1,6 @@
1
- # ----------------------------------------------------------------------------
2
1
  # Frozen-string-literal: true
3
2
  # Copyright: 2012 - 2016 - MIT License
4
3
  # Encoding: utf-8
5
- # ----------------------------------------------------------------------------
6
4
 
7
5
  try_require_if_javascript "autoprefixer-rails" do
8
6
  Jekyll::Assets::Hook.register :env, :init do |env|
@@ -273,10 +273,16 @@ module Jekyll
273
273
  def write_all
274
274
  assets = manifest.all.to_a.compact
275
275
  if assets.size != manifest.all.size
276
- Jekyll.logger.error "", "Asset inconsitency, expected "
277
- "#{manifest.all.size}, can only write #{
278
- assets.size
279
- }"
276
+ begin
277
+ Jekyll.logger.error "", "Asset inconsistency, expected " +
278
+ "#{manifest.all.size}, can only write #{
279
+ assets.size
280
+ }"
281
+ rescue
282
+ # When a serious error happens in the upstream manifest.
283
+ Jekyll.logger.error "", "Asset inconsistency, unable to " \
284
+ "determine the problem, please clear your cache."
285
+ end
280
286
  end
281
287
 
282
288
  assets = manifest.all.group_by do |v|
@@ -23,7 +23,7 @@ Jekyll::Assets::Hook.register :env, :init do
23
23
  end
24
24
 
25
25
  else
26
- Jekyll.logger.info "", "Caching disabled however, " \
27
- "if you use proxies it could still possibly be created."
26
+ Jekyll.logger.info "", "Caching is disabled by configuration. " \
27
+ "However, if you're using proxies, a cache might still be created."
28
28
  end
29
29
  end
@@ -24,10 +24,8 @@ module Jekyll
24
24
  # --
25
25
  def all
26
26
  used | (files.map do |_, v|
27
- find(v[
28
- "logical_path"
29
- ]).first
30
- end)
27
+ find(v["logical_path"]).first if v
28
+ end).compact
31
29
  end
32
30
 
33
31
  # --
@@ -62,7 +62,9 @@ try_require_if_javascript "less" do
62
62
  )
63
63
  else
64
64
  Sprockets.register_engine(
65
- ".less", Jekyll::Assets::Processors::LESS
65
+ ".less", Jekyll::Assets::Processors::LESS, {
66
+ :silence_deprecation => true
67
+ }
66
68
  )
67
69
  end
68
70
  end
@@ -32,9 +32,9 @@ end
32
32
  # ----------------------------------------------------------------------------
33
33
 
34
34
  Jekyll::Assets::Processors::Liquid::EXT.each do |ext|
35
- Sprockets.register_engine(
36
- ext, Jekyll::Assets::Processors::Liquid
37
- )
35
+ Sprockets.register_engine(ext, Jekyll::Assets::Processors::Liquid, {
36
+ :silence_deprecation => true
37
+ })
38
38
  end
39
39
 
40
40
  # ----------------------------------------------------------------------------
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  module Assets
7
- VERSION="2.2.7"
7
+ VERSION="2.2.8"
8
8
  end
9
9
  end
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: 2.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
@@ -10,8 +10,28 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-21 00:00:00.000000000 Z
13
+ date: 2016-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rack
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">"
20
+ - !ruby/object:Gem::Version
21
+ version: '1'
22
+ - - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: '2'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">"
30
+ - !ruby/object:Gem::Version
31
+ version: '1'
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: '2'
15
35
  - !ruby/object:Gem::Dependency
16
36
  name: sprockets
17
37
  requirement: !ruby/object:Gem::Requirement
@@ -19,6 +39,9 @@ dependencies:
19
39
  - - "~>"
20
40
  - !ruby/object:Gem::Version
21
41
  version: '3.3'
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: '3.7'
22
45
  type: :runtime
23
46
  prerelease: false
24
47
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,6 +49,9 @@ dependencies:
26
49
  - - "~>"
27
50
  - !ruby/object:Gem::Version
28
51
  version: '3.3'
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.7'
29
55
  - !ruby/object:Gem::Dependency
30
56
  name: fastimage
31
57
  requirement: !ruby/object:Gem::Requirement