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: c9e962a56e2ea05396af2694d5e1b76bd4d7a9b7
4
- data.tar.gz: e530fd53d2636b89b33f56b4e6165686b66caefa
3
+ metadata.gz: 5fdc398b27cedf84be860226e11d4d2de56f19f5
4
+ data.tar.gz: fe1671b80e6d5831844a48b2acd21c008fc49bf6
5
5
  SHA512:
6
- metadata.gz: 7793a52b1bcaf8bd80908e23fa4a1bb51a7724c55c44b140505ff1f713b2727db698a3b0aefd6d628bba6825b74c353b889cc9360d3fcbf627abe167a8ee5cc5
7
- data.tar.gz: e223e29a12f9d1c2b73b75c8ecc137fb1f4a93bc308d909600d63f1b5ca8b5f70bd3e1f4dec843081a5985ea4b368842879754b02b7022fb8864dbc78dd14508
6
+ metadata.gz: e83bb90c308e9497a5694c006275c44afb12991db55c69ad7783101f95f37d17bb060fc71b85723fbad4f7631884e41a91da3a8f34ef514f554f268753569acf
7
+ data.tar.gz: 67b4bc55cbb60365d02e4242daf6c0ea6008cf7c0998dc4201f8f9fd438802042e996786d59ceb76c279dc2bff970c1fa4de7e8f76cb585edcda2ad0d4e27146
data/HISTORY.md CHANGED
@@ -1,6 +1,13 @@
1
1
  ### master (unreleased)
2
2
 
3
3
 
4
+
5
+ ### 0.9.1 (2014-07-28)
6
+
7
+ * Fix path normalization when filename contains `dot`.
8
+ See #90. (Thanks @tomdiggle)
9
+
10
+
4
11
  ### 0.9.0 (2014-07-19)
5
12
 
6
13
  * Allow pass remote URIs to image/stylesheet/javascript tags/filters.
@@ -38,10 +38,10 @@ module Jekyll
38
38
 
39
39
  private
40
40
 
41
- def render_tag(template, extension = nil)
41
+ def render_tag(template, extension = "")
42
42
  return format(template, :path => @path, :attrs => @attrs) if remote?
43
43
 
44
- @path << extension if extension && File.extname(@path).empty?
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|
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AssetsPlugin
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
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.0
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-19 00:00:00.000000000 Z
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.0
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