jekyll-assets 0.9.0 → 0.9.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fdc398b27cedf84be860226e11d4d2de56f19f5
|
4
|
+
data.tar.gz: fe1671b80e6d5831844a48b2acd21c008fc49bf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e83bb90c308e9497a5694c006275c44afb12991db55c69ad7783101f95f37d17bb060fc71b85723fbad4f7631884e41a91da3a8f34ef514f554f268753569acf
|
7
|
+
data.tar.gz: 67b4bc55cbb60365d02e4242daf6c0ea6008cf7c0998dc4201f8f9fd438802042e996786d59ceb76c279dc2bff970c1fa4de7e8f76cb585edcda2ad0d4e27146
|
data/HISTORY.md
CHANGED
@@ -38,10 +38,10 @@ module Jekyll
|
|
38
38
|
|
39
39
|
private
|
40
40
|
|
41
|
-
def render_tag(template, extension =
|
41
|
+
def render_tag(template, extension = "")
|
42
42
|
return format(template, :path => @path, :attrs => @attrs) if remote?
|
43
43
|
|
44
|
-
@path << extension if extension
|
44
|
+
@path << extension if extension.to_s != File.extname(@path)
|
45
45
|
|
46
46
|
asset = @site.assets[@path]
|
47
47
|
tags = (@site.assets_config.debug ? asset.to_a : [asset]).map do |a|
|
File without changes
|
File without changes
|
@@ -44,6 +44,11 @@ RSpec.describe Jekyll::AssetsPlugin::Tag do
|
|
44
44
|
it { is_expected.to match tag_re("app") }
|
45
45
|
end
|
46
46
|
|
47
|
+
context "when <file> name has multiple dots" do
|
48
|
+
subject { render("{% stylesheet app.min %}") }
|
49
|
+
it { is_expected.to match tag_re("app.min") }
|
50
|
+
end
|
51
|
+
|
47
52
|
context "when <file> extension is omited" do
|
48
53
|
subject { render("{% stylesheet app %}") }
|
49
54
|
it { is_expected.to match tag_re("app") }
|
@@ -66,6 +71,11 @@ RSpec.describe Jekyll::AssetsPlugin::Tag do
|
|
66
71
|
it { is_expected.to match tag_re("app") }
|
67
72
|
end
|
68
73
|
|
74
|
+
context "when <file> name has multiple dots" do
|
75
|
+
subject { render("{% javascript app.min %}") }
|
76
|
+
it { is_expected.to match tag_re("app.min") }
|
77
|
+
end
|
78
|
+
|
69
79
|
context "when <file> extension omited" do
|
70
80
|
subject { render("{% javascript app %}") }
|
71
81
|
it { is_expected.to match tag_re("app") }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksey V Zapparov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -148,6 +148,8 @@ files:
|
|
148
148
|
- spec/fixtures/_assets/alert.js
|
149
149
|
- spec/fixtures/_assets/app.css.erb
|
150
150
|
- spec/fixtures/_assets/app.js
|
151
|
+
- spec/fixtures/_assets/app.min.css
|
152
|
+
- spec/fixtures/_assets/app.min.js
|
151
153
|
- spec/fixtures/_assets/fonts/vapor.eot
|
152
154
|
- spec/fixtures/_assets/fonts/vapor.svg
|
153
155
|
- spec/fixtures/_assets/fonts/vapor.ttf
|
@@ -203,12 +205,14 @@ rubyforge_project:
|
|
203
205
|
rubygems_version: 2.2.2
|
204
206
|
signing_key:
|
205
207
|
specification_version: 4
|
206
|
-
summary: jekyll-assets-0.9.
|
208
|
+
summary: jekyll-assets-0.9.1
|
207
209
|
test_files:
|
208
210
|
- spec/fixtures/.gitignore
|
209
211
|
- spec/fixtures/_assets/alert.js
|
210
212
|
- spec/fixtures/_assets/app.css.erb
|
211
213
|
- spec/fixtures/_assets/app.js
|
214
|
+
- spec/fixtures/_assets/app.min.css
|
215
|
+
- spec/fixtures/_assets/app.min.js
|
212
216
|
- spec/fixtures/_assets/fonts/vapor.eot
|
213
217
|
- spec/fixtures/_assets/fonts/vapor.svg
|
214
218
|
- spec/fixtures/_assets/fonts/vapor.ttf
|