jekyll-assets 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,7 @@ module Jekyll
18
18
 
19
19
 
20
20
  def asset_path pathname, *args
21
+ return "" if pathname.to_s.strip.empty?
21
22
  asset = resolve(pathname.to_s[/^[^#?]+/]).to_s
22
23
  jekyll_assets << asset
23
24
  (site.asset_path asset, *args) + (pathname.to_s[/[#?].+/] || '')
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AssetsPlugin
3
- VERSION = "0.7.4"
3
+ VERSION = "0.7.5"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ body { background-image: url(<%= image_path '' %>) }
@@ -40,6 +40,13 @@ module Jekyll::AssetsPlugin
40
40
  site.assets["app.css"].to_s.should match(noise_img_re)
41
41
  end
42
42
  end
43
+
44
+ context "when passed a blank path" do
45
+ it "should be blank" do
46
+ css = site.assets["should_be_blank.css"].to_s
47
+ css.should =~ /url\(\)/
48
+ end
49
+ end
43
50
  end
44
51
  end
45
52
 
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Aleksey V Zapparov
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-25 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: jekyll
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: sprockets
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: bundler
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rake
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rspec
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ! '>='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ! '>='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: guard-rspec
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ! '>='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ! '>='
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: compass
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: bourbon
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ! '>='
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ! '>='
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: neat
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ! '>='
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ! '>='
137
156
  - !ruby/object:Gem::Version
@@ -184,6 +203,7 @@ files:
184
203
  - spec/fixtures/_assets/fonts/vapor.woff
185
204
  - spec/fixtures/_assets/lib/relative.css.scss
186
205
  - spec/fixtures/_assets/noise.png
206
+ - spec/fixtures/_assets/should_be_blank.css.erb
187
207
  - spec/fixtures/_assets/should_fail.css.erb
188
208
  - spec/fixtures/_assets/vapor.css.scss
189
209
  - spec/fixtures/_assets/vapor.js
@@ -210,27 +230,34 @@ files:
210
230
  homepage: http://ixti.github.com/jekyll-assets
211
231
  licenses:
212
232
  - MIT
213
- metadata: {}
214
233
  post_install_message:
215
234
  rdoc_options: []
216
235
  require_paths:
217
236
  - lib
218
237
  required_ruby_version: !ruby/object:Gem::Requirement
238
+ none: false
219
239
  requirements:
220
240
  - - ! '>='
221
241
  - !ruby/object:Gem::Version
222
242
  version: '0'
243
+ segments:
244
+ - 0
245
+ hash: -3186594766388563324
223
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
+ none: false
224
248
  requirements:
225
249
  - - ! '>='
226
250
  - !ruby/object:Gem::Version
227
251
  version: '0'
252
+ segments:
253
+ - 0
254
+ hash: -3186594766388563324
228
255
  requirements: []
229
256
  rubyforge_project:
230
- rubygems_version: 2.1.8
257
+ rubygems_version: 1.8.23
231
258
  signing_key:
232
- specification_version: 4
233
- summary: jekyll-assets-0.7.4
259
+ specification_version: 3
260
+ summary: jekyll-assets-0.7.5
234
261
  test_files:
235
262
  - spec/fixtures/.gitignore
236
263
  - spec/fixtures/_assets/app.css.erb
@@ -241,6 +268,7 @@ test_files:
241
268
  - spec/fixtures/_assets/fonts/vapor.woff
242
269
  - spec/fixtures/_assets/lib/relative.css.scss
243
270
  - spec/fixtures/_assets/noise.png
271
+ - spec/fixtures/_assets/should_be_blank.css.erb
244
272
  - spec/fixtures/_assets/should_fail.css.erb
245
273
  - spec/fixtures/_assets/vapor.css.scss
246
274
  - spec/fixtures/_assets/vapor.js
@@ -264,4 +292,3 @@ test_files:
264
292
  - spec/lib/jekyll/assets_plugin/tag_spec.rb
265
293
  - spec/spec_helper.rb
266
294
  - spec/support/fixtures_path.rb
267
- has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Zjk3MTMwZWI5OTI0YmY1NDY5MzM2OTAxMDM2OWRjYjE1M2RhM2ViMA==
5
- data.tar.gz: !binary |-
6
- YzhlMmJhZmRhNDY0OGEyMWFhM2ZhZTllN2VhM2NmNjcyOTBiYTdjMA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- ZDM4MWQyNzVkYmY5ZGU3NmYzNWUxMDlmODczOWMyYjIxZjhlZWQ3ODQzZTRj
10
- NDc5ZTFhYmJhZjk2ZGMwZmMxZmQ2NTU0MDU2MWIxM2Y5MWMyODcxNzU2ZmNm
11
- OTljNmUzYTc4ODA3OTYwMWM0ZjhkYWRjOTg4MTNhMjMwZTE2MmI=
12
- data.tar.gz: !binary |-
13
- OTBkYTQ4NWQ2M2EyODdkN2UzOWM3MDU5YmJiZWYxOWM1NGFjMDU3ODE3NmM0
14
- NzUxNjcxMDlkODU0NDE5NTk5YTkyNDQ1ZmE4MjA2NGM5NjBiMzJlOTQ2MDg5
15
- ZDEwY2IzNjQ3NGNmYTZkZTI3YjNhYjY0MmJkMWY2MDYwNzEzMmU=