jekyll-assets 3.0.11 → 3.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -0
- data/Rakefile +3 -32
- data/lib/jekyll/assets/utils.rb +2 -1
- data/lib/jekyll/assets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e737c9505d43dc2de9832a2d5bb4a23ac96482ae7faf00aa6f1b589ad11f597
|
4
|
+
data.tar.gz: 2222dcfbcf85a8f0d11f35b69a3bf3c48ce3e4ffe3f6d4c48d75b72b31b79eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b1af7dbd3bf7cbfa53a82799fe6c21d87d8a2add9d6cca6a609bf19978f7d7a883d57052eaf594ed97e218cda23a3060fa2675a1c58da162b54a1f9dcd45f26
|
7
|
+
data.tar.gz: b48cf3c2292e7d5201ccc9c5fee218dc70cf0f3b745c4a981bbffece8caae653cbdbca6c3694a87006bf749dc5851f7f639d81843d3402e5ef734fa2a6a36e4e
|
data/Gemfile
CHANGED
@@ -7,8 +7,14 @@ gemspec
|
|
7
7
|
|
8
8
|
sv = "~> 4.0.beta"
|
9
9
|
gem "sprockets", ENV["SPROCKETS_VERSION"] || sv, require: false
|
10
|
+
# rubocop:disable Bundler/DuplicatedGem
|
10
11
|
if ENV["JEKYLL_VERSION"]
|
11
12
|
gem "jekyll", ENV["JEKYLL_VERSION"], {
|
12
13
|
require: false,
|
13
14
|
}
|
15
|
+
elsif ENV["JEKYLL_BRANCH"]
|
16
|
+
gem "jekyll", {
|
17
|
+
git: "https://github.com/jekyll/jekyll",
|
18
|
+
branch: ENV["JEKYLL_BRANCH"],
|
19
|
+
}
|
14
20
|
end
|
data/Rakefile
CHANGED
@@ -4,38 +4,9 @@
|
|
4
4
|
# Author: Jordon Bedwell
|
5
5
|
# Encoding: utf-8
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
# --
|
11
|
-
task :spec do
|
12
|
-
exec "script/test"
|
13
|
-
end
|
14
|
-
# --
|
15
|
-
# 🔖
|
16
|
-
# RSpec, MiniTest, Whatever.
|
17
|
-
# --
|
18
|
-
task :test do
|
19
|
-
exec "script/test"
|
20
|
-
end
|
21
|
-
# --
|
22
|
-
# 🔖
|
23
|
-
# @see .rubocop.yml
|
24
|
-
# Rubocop.
|
25
|
-
# --
|
26
|
-
task :rubocop do
|
27
|
-
exec "script/lint"
|
28
|
-
end
|
29
|
-
# --
|
30
|
-
# 🔖
|
31
|
-
# @see .rubocop.yml
|
32
|
-
# Rubocop.
|
33
|
-
# --
|
34
|
-
task :lint do
|
35
|
-
exec "script/lint"
|
36
|
-
end
|
37
|
-
|
38
|
-
# --
|
7
|
+
task default: [:spec]
|
8
|
+
task(:spec) { exec "script/test" }
|
9
|
+
task(:test) { exec "script/test" }
|
39
10
|
Dir.glob("script/rake.d/*.rake").each do |v|
|
40
11
|
load v
|
41
12
|
end
|
data/lib/jekyll/assets/utils.rb
CHANGED
@@ -182,7 +182,8 @@ module Jekyll
|
|
182
182
|
})
|
183
183
|
end
|
184
184
|
when obj.is_a?(String)
|
185
|
-
|
185
|
+
k = Digest::SHA256.hexdigest(obj)[0, 6]
|
186
|
+
ctx.registers[:site].liquid_renderer.file("(asset:var:#{k})")
|
186
187
|
.parse(obj).render!(ctx)
|
187
188
|
else
|
188
189
|
obj
|
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: 3.0.
|
4
|
+
version: 3.0.12
|
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: 2018-
|
13
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: execjs
|
@@ -505,7 +505,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
505
505
|
version: '0'
|
506
506
|
requirements: []
|
507
507
|
rubyforge_project:
|
508
|
-
rubygems_version: 2.7.
|
508
|
+
rubygems_version: 2.7.7
|
509
509
|
signing_key:
|
510
510
|
specification_version: 4
|
511
511
|
summary: Assets for Jekyll
|