jekyll-assets 0.10.0 → 0.10.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: 166cb1e3cc6725c829dfa2cf6936fa6598c4f2c3
4
- data.tar.gz: a6b7fefe00f1039dcfcd749ac54a9eb23057f78a
3
+ metadata.gz: ffaf188e4bc35cd2ba432d73e96d25586c655070
4
+ data.tar.gz: bbf744bd06c57413e959396644ad61bff01f7683
5
5
  SHA512:
6
- metadata.gz: ed52bd661c49400d4c5f88d2b88e92869dd2588c56a0e904be5e3c22796c12e47da27f2012f729ffd7b1f5101c81ac47b91064a7206a39b28d2c2cb0a1e2d21b
7
- data.tar.gz: e4eda01d82b244ea60c5185c8394ae36c71d2e348f891e0226e4097968d8f84a12f4e206f427d9aaa37ace4076dd408bd6f3673964011ae2a18ae125364f98fd
6
+ metadata.gz: 8ea009a04a48763d160daf5f1f592ef3e497214f1387017b887e712db3bcbe82a2b5e1b663b8a4e6bfb74a882e56f406b93668fe7afa9a62142ce513bec7c53e
7
+ data.tar.gz: 704ca0157f9120f200f972375f104a65137c6673de3f22f866f7f975790677a27a9dc52b4e6be3a0d53a233452ae91b3e8c05c054b03708aa5d60c05833dd83b
data/.rubocop.yml CHANGED
@@ -1,78 +1,43 @@
1
- # Avoid long parameter lists
2
- ParameterLists:
3
- Max: 3
4
- CountKeywordArgs: true
1
+ inherit_from: .rubocop_todo.yml
5
2
 
6
- MethodLength:
7
- CountComments: false
8
- Max: 15
3
+ ## Styles ######################################################################
9
4
 
10
- ClassLength:
11
- CountComments: false
12
- Max: 100
5
+ Style/AlignParameters:
6
+ EnforcedStyle: with_fixed_indentation
13
7
 
14
- CyclomaticComplexity:
15
- Max: 6
8
+ Style/BracesAroundHashParameters:
9
+ Enabled: false
16
10
 
17
- EmptyLineBetweenDefs:
11
+ Style/EmptyLineBetweenDefs:
18
12
  AllowAdjacentOneLineDefs: true
19
13
 
20
- BlockNesting:
21
- Max: 3
14
+ Style/Encoding:
15
+ EnforcedStyle: when_needed
22
16
 
23
- HashSyntax:
17
+ Style/HashSyntax:
24
18
  EnforcedStyle: hash_rockets
25
19
 
26
- StringLiterals:
27
- EnforcedStyle: double_quotes
28
-
29
- AlignParameters:
30
- EnforcedStyle: with_fixed_indentation
31
-
32
- IndentHash:
20
+ Style/IndentHash:
33
21
  EnforcedStyle: consistent
34
22
 
35
- PercentLiteralDelimiters:
36
- PreferredDelimiters:
37
- '%': ()
38
- '%i': ()
39
- '%q': ()
40
- '%Q': ()
41
- '%r': '{}'
42
- '%s': ()
43
- '%w': '[]'
44
- '%W': '[]'
45
- '%x': ()
46
-
47
- Encoding:
48
- Enabled: false
49
-
50
- BracesAroundHashParameters:
23
+ # New lambda syntax is as ugly to me as new syntax of Hash.
24
+ Style/Lambda:
51
25
  Enabled: false
52
26
 
53
- Documentation:
54
- Enabled: false
55
-
56
- # Not all trivial readers/writers can be defined with attr_* methods
57
- TrivialAccessors:
58
- Enabled: false
59
-
60
- # New lambda syntax is UGLY, don't enforce it
61
- Lambda:
62
- Enabled: false
63
-
64
- # Ridiculous (and IMHO useless) restriction, that makes impossible aligning
65
- # code like this:
27
+ # A bit useless restriction, that makes impossible aligning code like this:
66
28
  #
67
- # redis.hset :k1, now
68
- # redis.hincrby :k2, 123
29
+ # redis do |conn|
30
+ # conn.hset :k1, now
31
+ # conn.hincrby :k2, 123
32
+ # end
69
33
  SingleSpaceBeforeFirstArg:
70
34
  Enabled: false
71
35
 
72
- AllCops:
73
- Include:
74
- - Gemfile
36
+ Style/StringLiterals:
37
+ EnforcedStyle: double_quotes
75
38
 
76
- # TODO: Rename all files and modules :D
77
- FileName:
78
- Enabled: false
39
+ ## Metrics #####################################################################
40
+
41
+ Metrics/MethodLength:
42
+ CountComments: false
43
+ Max: 15
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,10 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2014-09-20 21:12:28 +0200 using RuboCop version 0.26.0.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 17
9
+ Style/Documentation:
10
+ Enabled: false
data/.travis.yml CHANGED
@@ -4,9 +4,3 @@ rvm:
4
4
  - 1.9.3
5
5
  - 2.0.0
6
6
  - 2.1.2
7
-
8
- gemfile:
9
- - Gemfile
10
- - gemfiles/Gemfile.bootstrap-pre-3.2
11
- - gemfiles/Gemfile.fontawesome-pre-4.2
12
- - gemfiles/Gemfile.jekyll-1.0
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ gem "font-awesome-sass", "~> 4.2"
10
10
  # https://github.com/chriseppstein/compass/issues/1513
11
11
  gem "sass", "~> 3.2.13"
12
12
 
13
- gem "rubocop", "~> 0.24.0"
13
+ gem "rubocop", "~> 0.26.0"
14
14
  gem "rake"
15
15
  gem "rspec"
16
16
 
data/Guardfile CHANGED
@@ -1,8 +1,7 @@
1
1
  notification :off
2
2
 
3
- guard 'rspec' do
4
- watch(%r{^spec/.+_spec\.rb$})
5
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
6
- watch('spec/spec_helper.rb') { "spec" }
3
+ guard "rspec" do
4
+ watch(/^spec\/.+_spec\.rb$/)
5
+ watch(/^lib\/(.+)\.rb$/) { |m| "spec/lib/#{m[1]}_spec.rb" }
6
+ watch("spec/spec_helper.rb") { "spec" }
7
7
  end
8
-
data/HISTORY.md CHANGED
@@ -1,6 +1,13 @@
1
1
  ### master (unreleased)
2
2
 
3
3
 
4
+ ### 0.10.1 (2014-10-13)
5
+
6
+ * Fix regression in assets finder (#104), appeared after introducing tag
7
+ attributes (#52). To specify asset path containing spaces, wrap it into
8
+ single or doube qotes: `{% javascript_tag "my app.js" async %}`.
9
+
10
+
4
11
  ### 0.10.0 (2014-09-14)
5
12
 
6
13
  * Drop support of `bootstrap-sass < 3.2`, `font-awesome-sass < 4.2`
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Jekyll::AssetsPlugin::VERSION
9
9
  spec.homepage = "http://ixti.github.com/jekyll-assets"
10
10
  spec.authors = ["Aleksey V Zapparov"]
11
- spec.email = %w[ixti@member.fsf.org]
11
+ spec.email = %w(ixti@member.fsf.org)
12
12
  spec.license = "MIT"
13
13
  spec.summary = "jekyll-assets-#{Jekyll::AssetsPlugin::VERSION}"
14
14
  spec.description = <<-DESC
@@ -2,6 +2,6 @@ require "sprockets"
2
2
 
3
3
  gemspec = Gem::Specification.find_by_name "bootstrap-sass"
4
4
 
5
- %w[images fonts javascripts stylesheets].each do |asset|
5
+ %w(images fonts javascripts stylesheets).each do |asset|
6
6
  Sprockets.append_path File.join(gemspec.gem_dir, "assets", asset)
7
7
  end
@@ -1,7 +1,8 @@
1
+ # rubocop: disable Style/FileName
1
2
  require "sprockets"
2
3
 
3
4
  gemspec = Gem::Specification.find_by_name "font-awesome-sass"
4
5
 
5
- %w[fonts stylesheets].each do |asset|
6
+ %w(fonts stylesheets).each do |asset|
6
7
  Sprockets.append_path File.join(gemspec.gem_dir, "assets", asset)
7
8
  end
@@ -6,14 +6,14 @@ module Jekyll
6
6
  class Configuration
7
7
  DEFAULTS = {
8
8
  :dirname => "assets",
9
- :sources => %w[_assets/javascripts
9
+ :sources => %w(_assets/javascripts
10
10
  _assets/stylesheets
11
- _assets/images],
11
+ _assets/images),
12
12
  :js_compressor => nil,
13
13
  :css_compressor => nil,
14
14
  :cachebust => :hard,
15
15
  :cache => false,
16
- :gzip => %w[text/css application/javascript],
16
+ :gzip => %w(text/css application/javascript),
17
17
  :debug => false,
18
18
  :version => 1
19
19
  }.freeze
@@ -4,7 +4,7 @@ require "jekyll/assets_plugin/renderer"
4
4
  module Jekyll
5
5
  module AssetsPlugin
6
6
  module Filters
7
- %w[asset asset_path image javascript stylesheet].each do |name|
7
+ %w(asset asset_path image javascript stylesheet).each do |name|
8
8
  module_eval <<-RUBY, __FILE__, __LINE__
9
9
  def #{name} path # def stylesheet logical_path
10
10
  r = Renderer.new @context, path # r = Renderer.new @context, path
@@ -6,23 +6,29 @@ module Jekyll
6
6
  IMAGE = '<img src="%{path}"%{attrs}>'
7
7
 
8
8
  URI_RE = %r{^(?:[^:]+:)?//(?:[^./]+\.)+[^./]+/}
9
+ PARAMS_RE = / (?: "(?<path>[^"]+)" | '(?<path>[^']+)' | (?<path>[^ ]+) )
10
+ (?<attrs>.*)
11
+ /x
9
12
 
10
- def initialize(context, logical_path)
11
- @site = context.registers[:site]
12
- @path = logical_path.strip
13
+ attr_reader :site, :path, :attrs
13
14
 
14
- @path, _, @attrs = @path.partition(" ") if @path[" "]
15
- @attrs.prepend(" ") if @attrs
15
+ def initialize(context, params)
16
+ @site = context.registers[:site]
17
+
18
+ match = params.strip.match PARAMS_RE
19
+
20
+ @path = match["path"]
21
+ @attrs = match["attrs"]
16
22
  end
17
23
 
18
24
  def render_asset
19
- fail "Can't render remote asset: #{@path}" if remote?
20
- @site.assets[@path].to_s
25
+ fail "Can't render remote asset: #{path}" if remote?
26
+ site.assets[path].to_s
21
27
  end
22
28
 
23
29
  def render_asset_path
24
- return @path if remote?
25
- @site.asset_path @path
30
+ return path if remote?
31
+ site.asset_path path
26
32
  end
27
33
 
28
34
  def render_javascript
@@ -40,20 +46,20 @@ module Jekyll
40
46
  private
41
47
 
42
48
  def render_tag(template, extension = "")
43
- return format(template, :path => @path, :attrs => @attrs) if remote?
49
+ return format(template, :path => path, :attrs => attrs) if remote?
44
50
 
45
- @path << extension if extension.to_s != File.extname(@path)
51
+ path << extension if extension.to_s != File.extname(path)
46
52
 
47
- asset = @site.assets[@path]
48
- tags = (@site.assets_config.debug ? asset.to_a : [asset]).map do |a|
49
- format template, :path => AssetPath.new(a).to_s, :attrs => @attrs
53
+ asset = site.assets[path]
54
+ tags = (site.assets_config.debug ? asset.to_a : [asset]).map do |a|
55
+ format template, :path => AssetPath.new(a).to_s, :attrs => attrs
50
56
  end
51
57
 
52
58
  tags.join "\n"
53
59
  end
54
60
 
55
61
  def remote?
56
- @path =~ URI_RE
62
+ path =~ URI_RE
57
63
  end
58
64
  end
59
65
  end
@@ -14,6 +14,6 @@ module Jekyll
14
14
  end
15
15
  end
16
16
 
17
- %w[asset asset_path image javascript stylesheet].each do |tag|
17
+ %w(asset asset_path image javascript stylesheet).each do |tag|
18
18
  Liquid::Template.register_tag tag, Jekyll::AssetsPlugin::Tag
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AssetsPlugin
3
- VERSION = "0.10.0"
3
+ VERSION = "0.10.1"
4
4
  end
5
5
  end
@@ -1,3 +1,5 @@
1
+ # rubocop: disable Style/FileName
2
+
1
3
  require "spec_helper"
2
4
  require "jekyll-assets/font-awesome"
3
5
 
@@ -36,7 +36,7 @@ RSpec.describe Jekyll::AssetsPlugin::Configuration do
36
36
 
37
37
  context "gzip" do
38
38
  subject { config.gzip }
39
- it { is_expected.to match_array %w[text/css application/javascript] }
39
+ it { is_expected.to match_array %w(text/css application/javascript) }
40
40
  end
41
41
 
42
42
  context "cache_assets?" do
@@ -58,12 +58,12 @@ RSpec.describe Jekyll::AssetsPlugin::Configuration do
58
58
 
59
59
  it "overrides specified options and leave defaults for missing" do
60
60
  config = described_class.new({
61
- :sources => %w[abc],
61
+ :sources => %w(abc),
62
62
  :css_compressor => "sass"
63
63
  })
64
64
 
65
65
  expect(config.dirname).to eq "assets"
66
- expect(config.sources).to eq %w[abc]
66
+ expect(config.sources).to eq %w(abc)
67
67
  expect(config.js_compressor).to be_nil
68
68
  expect(config.css_compressor).to be :sass
69
69
  end
@@ -8,7 +8,7 @@ RSpec.describe Jekyll::AssetsPlugin::Patches::SitePatch do
8
8
  "source" => fixtures_path.to_s,
9
9
  "dirname" => "foobar",
10
10
  "assets" => {
11
- "sources" => %w[foobar _assets]
11
+ "sources" => %w(foobar _assets)
12
12
  }
13
13
  })
14
14
  end
@@ -4,6 +4,8 @@ require "ostruct"
4
4
  require "spec_helper"
5
5
 
6
6
  RSpec.describe Jekyll::AssetsPlugin::Renderer do
7
+ let(:assets_config) { Hash.new }
8
+
7
9
  let(:site) do
8
10
  Jekyll::Site.new Jekyll.configuration({
9
11
  "source" => fixtures_path.to_s,
@@ -12,12 +14,85 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
12
14
  })
13
15
  end
14
16
 
15
- let(:renderer) do
16
- context = OpenStruct.new(:registers => { :site => site })
17
- described_class.new context, asset
17
+ let(:params) { "app" }
18
+ let(:context) { OpenStruct.new(:registers => { :site => site }) }
19
+ let(:renderer) { described_class.new context, params }
20
+
21
+ describe "#path" do
22
+ subject { renderer.path }
23
+
24
+ context "with logical path only" do
25
+ context "when logical path contains no spaces" do
26
+ let(:params) { "app" }
27
+ it { is_expected.to eq "app" }
28
+ end
29
+
30
+ context "when logical path contains spaces and double quoted" do
31
+ let(:params) { '"my app"' }
32
+ it { is_expected.to eq "my app" }
33
+ end
34
+
35
+ context "when logical path contains spaces and single quoted" do
36
+ let(:params) { "'my app'" }
37
+ it { is_expected.to eq "my app" }
38
+ end
39
+ end
40
+
41
+ context "with logical path and params" do
42
+ context "when logical path contains no spaces" do
43
+ let(:params) { 'app foo bar="baz"' }
44
+ it { is_expected.to eq "app" }
45
+ end
46
+
47
+ context "when logical path contains spaces and double quoted" do
48
+ let(:params) { '"my app" foo bar="baz"' }
49
+ it { is_expected.to eq "my app" }
50
+ end
51
+
52
+ context "when logical path contains spaces and single quoted" do
53
+ let(:params) { %q('my app' foo bar="baz") }
54
+ it { is_expected.to eq "my app" }
55
+ end
56
+ end
18
57
  end
19
58
 
20
- let(:asset) { "app" }
59
+ describe "#attrs" do
60
+ subject { renderer.attrs }
61
+
62
+ context "with logical path only" do
63
+ context "when logical path contains no spaces" do
64
+ let(:params) { "app" }
65
+ it { is_expected.to eq "" }
66
+ end
67
+
68
+ context "when logical path contains spaces and double quoted" do
69
+ let(:params) { '"my app"' }
70
+ it { is_expected.to eq "" }
71
+ end
72
+
73
+ context "when logical path contains spaces and single quoted" do
74
+ let(:params) { "'my app'" }
75
+ it { is_expected.to eq "" }
76
+ end
77
+ end
78
+
79
+ context "with logical path and params" do
80
+ context "when logical path contains no spaces" do
81
+ let(:params) { 'app foo bar="baz"' }
82
+ it { is_expected.to eq ' foo bar="baz"' }
83
+ end
84
+
85
+ context "when logical path contains spaces and double quoted" do
86
+ let(:params) { '"my app" foo bar="baz"' }
87
+ it { is_expected.to eq ' foo bar="baz"' }
88
+ end
89
+
90
+ context "when logical path contains spaces and single quoted" do
91
+ let(:params) { %q('my app' foo bar="baz") }
92
+ it { is_expected.to eq ' foo bar="baz"' }
93
+ end
94
+ end
95
+ end
21
96
 
22
97
  describe "#render_javascript" do
23
98
  subject { renderer.render_javascript }
@@ -27,12 +102,12 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
27
102
  it { is_expected.to match(/^(\s*<script src="[^"]+"><\/script>\s*){3}$/) }
28
103
 
29
104
  context "and URI given" do
30
- let(:asset) { "http://example.com/app.js" }
31
- it { is_expected.to match(/^<script src="#{asset}"><\/script>$/) }
105
+ let(:params) { "http://example.com/app.js" }
106
+ it { is_expected.to match(/^<script src="#{params}"><\/script>$/) }
32
107
  end
33
108
 
34
109
  context "and path contains attributes" do
35
- let(:asset) { "app data-test=true" }
110
+ let(:params) { "app data-test=true" }
36
111
  it { is_expected.to include "data-test=true" }
37
112
  end
38
113
  end
@@ -42,12 +117,12 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
42
117
  it { is_expected.to match(/^(\s*<script src="[^"]+"><\/script>\s*){1}$/) }
43
118
 
44
119
  context "and URI given" do
45
- let(:asset) { "http://example.com/app.js" }
46
- it { is_expected.to match(/^<script src="#{asset}"><\/script>$/) }
120
+ let(:params) { "http://example.com/app.js" }
121
+ it { is_expected.to match(/^<script src="#{params}"><\/script>$/) }
47
122
  end
48
123
 
49
124
  context "and path contains attributes" do
50
- let(:asset) { "app data-test=true" }
125
+ let(:params) { "app data-test=true" }
51
126
  it { is_expected.to include "data-test=true" }
52
127
  end
53
128
  end
@@ -55,33 +130,34 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
55
130
 
56
131
  describe "#render_stylesheet" do
57
132
  subject { renderer.render_stylesheet }
133
+ let(:tag_prefix) { '<link rel="stylesheet"' }
58
134
 
59
135
  context "when debug mode enabled" do
60
136
  let(:assets_config) { Hash[:debug, true] }
61
- it { is_expected.to match(/^(\s*<link rel="stylesheet" [^>]+>\s*){3}$/) }
137
+ it { is_expected.to match(/^(\s*#{tag_prefix} [^>]+>\s*){3}$/) }
62
138
 
63
139
  context "and URI given" do
64
- let(:asset) { "http://example.com/style.css" }
65
- it { is_expected.to match(/^<link rel="stylesheet" href="#{asset}">$/) }
140
+ let(:params) { "http://example.com/style.css" }
141
+ it { is_expected.to match(/^#{tag_prefix} href="#{params}">$/) }
66
142
  end
67
143
 
68
144
  context "and path contains attributes" do
69
- let(:asset) { "app data-test=true" }
145
+ let(:params) { "app data-test=true" }
70
146
  it { is_expected.to include "data-test=true" }
71
147
  end
72
148
  end
73
149
 
74
150
  context "when debug mode disabled" do
75
151
  let(:assets_config) { Hash[:debug, false] }
76
- it { is_expected.to match(/^(\s*<link rel="stylesheet" [^>]+>\s*){1}$/) }
152
+ it { is_expected.to match(/^(\s*#{tag_prefix} [^>]+>\s*){1}$/) }
77
153
 
78
154
  context "and URI given" do
79
- let(:asset) { "http://example.com/style.css" }
80
- it { is_expected.to match(/^<link rel="stylesheet" href="#{asset}">$/) }
155
+ let(:params) { "http://example.com/style.css" }
156
+ it { is_expected.to match(/^#{tag_prefix} href="#{params}">$/) }
81
157
  end
82
158
 
83
159
  context "and path contains attributes" do
84
- let(:asset) { "app data-test=true" }
160
+ let(:params) { "app data-test=true" }
85
161
  it { is_expected.to include "data-test=true" }
86
162
  end
87
163
  end
@@ -90,19 +166,19 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
90
166
  describe "#render_image" do
91
167
  subject { renderer.render_image }
92
168
 
93
- let(:asset) { "noise.png" }
169
+ let(:params) { "noise.png" }
94
170
 
95
171
  context "when debug mode enabled" do
96
172
  let(:assets_config) { Hash[:debug, true] }
97
173
  it { is_expected.to match(%r{^<img src="/assets/noise-[^.]+\.png">$}) }
98
174
 
99
175
  context "and URI given" do
100
- let(:asset) { "http://example.com/style.css" }
101
- it { is_expected.to match(/^<img src="#{asset}">$/) }
176
+ let(:params) { "http://example.com/style.css" }
177
+ it { is_expected.to match(/^<img src="#{params}">$/) }
102
178
  end
103
179
 
104
180
  context "and path contains attributes" do
105
- let(:asset) { "noise.png data-test=true" }
181
+ let(:params) { "noise.png data-test=true" }
106
182
  it { is_expected.to include "data-test=true" }
107
183
  end
108
184
  end
@@ -112,12 +188,12 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
112
188
  it { is_expected.to match(%r{^<img src="/assets/noise-[^.]+\.png">$}) }
113
189
 
114
190
  context "and URI given" do
115
- let(:asset) { "http://example.com/style.css" }
116
- it { is_expected.to match(/^<img src="#{asset}">$/) }
191
+ let(:params) { "http://example.com/style.css" }
192
+ it { is_expected.to match(/^<img src="#{params}">$/) }
117
193
  end
118
194
 
119
195
  context "and path contains attributes" do
120
- let(:asset) { "noise.png data-test=true" }
196
+ let(:params) { "noise.png data-test=true" }
121
197
  it { is_expected.to include "data-test=true" }
122
198
  end
123
199
  end
@@ -125,15 +201,15 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
125
201
 
126
202
  describe "#render_asset" do
127
203
  subject { renderer.render_asset }
128
- let(:asset) { "alert.js" }
204
+ let(:params) { "alert.js" }
129
205
 
130
206
  context "when debug mode enabled" do
131
207
  let(:assets_config) { Hash[:debug, true] }
132
208
  it { is_expected.to eq "alert('test');\n" }
133
209
 
134
210
  context "and URI given" do
135
- let(:asset) { "http://example.com/style.css" }
136
- it { expect { subject }.to raise_error(/#{asset}/) }
211
+ let(:params) { "http://example.com/style.css" }
212
+ it { expect { subject }.to raise_error(/#{params}/) }
137
213
  end
138
214
  end
139
215
 
@@ -142,8 +218,8 @@ RSpec.describe Jekyll::AssetsPlugin::Renderer do
142
218
  it { is_expected.to eq "alert('test');\n" }
143
219
 
144
220
  context "and URI given" do
145
- let(:asset) { "http://example.com/style.css" }
146
- it { expect { subject }.to raise_error(/#{asset}/) }
221
+ let(:params) { "http://example.com/style.css" }
222
+ it { expect { subject }.to raise_error(/#{params}/) }
147
223
  end
148
224
  end
149
225
  end
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.10.0
4
+ version: 0.10.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-09-14 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -107,6 +107,7 @@ files:
107
107
  - ".gitignore"
108
108
  - ".rspec"
109
109
  - ".rubocop.yml"
110
+ - ".rubocop_todo.yml"
110
111
  - ".travis.yml"
111
112
  - ".yardopts"
112
113
  - Gemfile
@@ -199,7 +200,7 @@ rubyforge_project:
199
200
  rubygems_version: 2.4.1
200
201
  signing_key:
201
202
  specification_version: 4
202
- summary: jekyll-assets-0.10.0
203
+ summary: jekyll-assets-0.10.1
203
204
  test_files:
204
205
  - spec/fixtures/.gitignore
205
206
  - spec/fixtures/_assets/alert.js