jekyll-assets 2.1.1 → 2.1.2

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: 55112e9aa0134697067401814539f487be8db493
4
- data.tar.gz: d42d993d1a69e459a50bab146c520f14f4793588
3
+ metadata.gz: e60cdfaf7d596d389bbcec21a66107d67ccfbe90
4
+ data.tar.gz: 63f5eb9b6403c796ecfaada67cff9be970010926
5
5
  SHA512:
6
- metadata.gz: 8fe4c81711e2f9749e2bd7e72ae8b46529d4d63daf3eae2ef9ac175ec7e0b506fd058c219896857da0f165a05ec4494a5659ed93a63f7cc94adc05652223dddd
7
- data.tar.gz: 4109021863986920fb1319b75b17d088583a52023a3e2cc40418eb8abfa1665cab3840590d36c525f289759c9f1816a1c0a15c408b4e6ab3e4d749e50a7c319d
6
+ metadata.gz: 242655cdc3b881ec265a3bc30ee3db55f13d96faff90c854c5027da88226faf13fe8d9657b58a9b915b511adb3c44cb4fd8e8726e26f4af1cf050a143eb02d53
7
+ data.tar.gz: aa748e44f62d26348ea837b172dce3d3abb352fd051834af124bd3f1d0b94aa3087c3aa9051b9474a6fec75232670b16d8e05b4b15de8a56d0697f458caeb35c
data/lib/jekyll/assets.rb CHANGED
@@ -2,23 +2,21 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
- autoload :Tilt, "tilt"
5
+ require "tilt"
6
6
  require "sprockets"
7
7
  require "jekyll"
8
8
 
9
- require "jekyll/assets/patches"
10
- require "jekyll/assets/version"
11
-
12
9
  module Jekyll
13
10
  module Assets
14
- autoload :Hook, "jekyll/assets/hook"
15
- autoload :Cached, "jekyll/assets/cached"
16
- autoload :Config, "jekyll/assets/config"
17
- autoload :Logger, "jekyll/assets/logger"
18
- autoload :Liquid, "jekyll/assets/liquid"
19
- autoload :Env, "jekyll/assets/env"
20
-
21
- require "jekyll/assets/hooks"
22
- require "jekyll/assets/addons"
11
+ require_relative "assets/version"
12
+ require_relative "assets/patches"
13
+ require_relative "assets/cached"
14
+ require_relative "assets/config"
15
+ require_relative "assets/env"
16
+ require_relative "assets/hook"
17
+ require_relative "assets/logger"
18
+ require_relative "assets/hooks"
19
+ require_relative "assets/liquid"
20
+ require_relative "assets/addons"
23
21
  end
24
22
  end
@@ -2,10 +2,10 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
- require "jekyll/assets/addons/compass"
6
- require "jekyll/assets/addons/bootstrap"
7
- require "jekyll/assets/addons/autoprefixer"
8
- require "jekyll/assets/addons/processors/liquid"
9
- require "jekyll/assets/addons/proxies/magick"
10
- require "jekyll/assets/addons/font_awesome"
11
- require "jekyll/assets/addons/js_es6"
5
+ require_relative "addons/compass"
6
+ require_relative "addons/bootstrap"
7
+ require_relative "addons/autoprefixer"
8
+ require_relative "addons/processors/liquid"
9
+ require_relative "addons/proxies/magick"
10
+ require_relative "addons/font_awesome"
11
+ require_relative "addons/js_es6"
@@ -2,17 +2,17 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
- require "jekyll/assets/hooks/jekyll/drops"
6
- require "jekyll/assets/hooks/jekyll/setup"
7
- require "jekyll/assets/hooks/jekyll/write"
5
+ require_relative "hooks/jekyll/drops"
6
+ require_relative "hooks/jekyll/setup"
7
+ require_relative "hooks/jekyll/write"
8
8
 
9
- require "jekyll/assets/hooks/compression"
10
- require "jekyll/assets/hooks/configuration"
11
- require "jekyll/assets/hooks/context_patches"
12
- require "jekyll/assets/hooks/disable_erb"
13
- require "jekyll/assets/hooks/helpers"
14
- require "jekyll/assets/hooks/logger"
15
- require "jekyll/assets/hooks/sources"
16
- require "jekyll/assets/hooks/sprockets"
17
- require "jekyll/assets/hooks/version"
18
- require "jekyll/assets/hooks/cache"
9
+ require_relative "hooks/compression"
10
+ require_relative "hooks/configuration"
11
+ require_relative "hooks/context_patches"
12
+ require_relative "hooks/disable_erb"
13
+ require_relative "hooks/helpers"
14
+ require_relative "hooks/logger"
15
+ require_relative "hooks/sources"
16
+ require_relative "hooks/sprockets"
17
+ require_relative "hooks/version"
18
+ require_relative "hooks/cache"
@@ -5,9 +5,9 @@
5
5
  module Jekyll
6
6
  module Assets
7
7
  module Liquid
8
- require "jekyll/assets/liquid/tag"
9
- require "jekyll/assets/liquid/filters"
10
- require "jekyll/assets/liquid/drop"
8
+ require_relative "liquid/drop"
9
+ require_relative "liquid/filters"
10
+ require_relative "liquid/tag"
11
11
  end
12
12
  end
13
13
  end
@@ -2,7 +2,7 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
- autoload :FastImage, "fastimage"
5
+ require "fastimage"
6
6
 
7
7
  module Jekyll
8
8
  module Assets
@@ -6,13 +6,20 @@ module Jekyll
6
6
  module Assets
7
7
  module Liquid
8
8
  module Filters
9
- ACCEPTABLE_FILTERS = %W(css image asset_path stylesheet
10
- javascript style img js)
9
+ ACCEPTABLE_FILTERS = %W(
10
+ css
11
+ image
12
+ asset_path
13
+ stylesheet
14
+ javascript
15
+ style
16
+ img
17
+ js
18
+ )
11
19
 
12
20
  ACCEPTABLE_FILTERS.each do |val|
13
21
  define_method val do |path, args = ""|
14
- tag = Tag.send(:new, val, "#{path} #{args}", "")
15
- tag.render(@context)
22
+ Tag.send(:new, val, "#{path} #{args}", "").render(@context)
16
23
  end
17
24
  end
18
25
  end
@@ -2,14 +2,16 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
+ require "fastimage"
6
+
5
7
  module Jekyll
6
8
  module Assets
7
9
  module Liquid
8
10
  class Tag < ::Liquid::Tag
9
- autoload :Proxies, "jekyll/assets/liquid/tag/proxies"
10
- autoload :ProxiedAsset, "jekyll/assets/liquid/tag/proxied_asset"
11
- autoload :Defaults, "jekyll/assets/liquid/tag/defaults"
12
- autoload :Parser, "jekyll/assets/liquid/tag/parser"
11
+ require_relative "tag/proxies"
12
+ require_relative "tag/proxied_asset"
13
+ require_relative "tag/defaults"
14
+ require_relative "tag/parser"
13
15
  attr_reader :args
14
16
 
15
17
  class << self
@@ -3,7 +3,8 @@ module Jekyll
3
3
  module Liquid
4
4
  class Tag
5
5
  module Defaults
6
- autoload :Image, "jekyll/assets/liquid/tag/defaults/image"
6
+ require_relative "defaults/image"
7
+
7
8
  # TODO: In 3.0 env needs to be enforced, right now it's not
8
9
  # because it's maintain 2.0 API.
9
10
 
@@ -2,6 +2,9 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
+ require_relative "proxies"
6
+ require "forwardable"
7
+
5
8
  module Jekyll
6
9
  module Assets
7
10
  module Liquid
@@ -2,6 +2,8 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
+ require "forwardable"
6
+
5
7
  module Jekyll
6
8
  module Assets
7
9
  module Liquid
@@ -2,7 +2,7 @@
2
2
  # Copyright: 2012-2015 - MIT License
3
3
  # Encoding: utf-8
4
4
 
5
- require "jekyll/assets/patches/jekyll/cleaner"
6
- require "jekyll/assets/patches/sprockets/asset"
7
- require "jekyll/assets/patches/jekyll/site"
8
- require "jekyll/assets/patches/kernel"
5
+ require_relative "patches/jekyll/cleaner"
6
+ require_relative "patches/sprockets/asset"
7
+ require_relative "patches/jekyll/site"
8
+ require_relative "patches/kernel"
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  module Assets
7
- VERSION="2.1.1"
7
+ VERSION="2.1.2"
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-12-09 00:00:00.000000000 Z
13
+ date: 2015-12-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sprockets