jekyll-assets 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.rubocop.yml +4 -0
- data/Gemfile +1 -1
- data/HISTORY.md +9 -0
- data/README.md +12 -0
- data/jekyll-assets.gemspec +7 -7
- data/lib/jekyll-assets/font-awesome.rb +6 -0
- data/lib/jekyll/assets_plugin/environment.rb +12 -0
- data/lib/jekyll/assets_plugin/patches/site_patch.rb +4 -4
- data/lib/jekyll/assets_plugin/version.rb +1 -1
- data/spec/lib/jekyll-assets/font-awesome_spec.rb +8 -0
- metadata +24 -5
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -325,6 +325,18 @@ require "jekyll-assets/bourbon"
|
|
325
325
|
Now you can add `@import "bourbon"` in your SASS assets to get Bourbon goodies.
|
326
326
|
|
327
327
|
|
328
|
+
#### Font Awesome
|
329
|
+
|
330
|
+
Require `jekyll-assets/font-awesome` to enable, e.g.:
|
331
|
+
|
332
|
+
``` ruby
|
333
|
+
require "jekyll-assets"
|
334
|
+
require "jekyll-assets/font-awesome"
|
335
|
+
```
|
336
|
+
|
337
|
+
Now you can add `@import "font-awesome"` in your SASS assets to get Font Awesome goodies.
|
338
|
+
|
339
|
+
|
328
340
|
#### Neat Support
|
329
341
|
|
330
342
|
Require `jekyll-assets/neat` to enable, e.g.:
|
data/jekyll-assets.gemspec
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
5
|
-
|
4
|
+
require "jekyll/assets_plugin/version"
|
6
5
|
|
7
6
|
Gem::Specification.new do |spec|
|
8
7
|
spec.name = "jekyll-assets"
|
9
8
|
spec.version = Jekyll::AssetsPlugin::VERSION
|
10
9
|
spec.homepage = "http://ixti.github.com/jekyll-assets"
|
11
10
|
spec.authors = ["Aleksey V Zapparov"]
|
12
|
-
spec.email = %w
|
11
|
+
spec.email = %w[ixti@member.fsf.org]
|
13
12
|
spec.license = "MIT"
|
14
13
|
spec.summary = "jekyll-assets-#{Jekyll::AssetsPlugin::VERSION}"
|
15
14
|
spec.description = <<-DESC
|
@@ -18,9 +17,9 @@ Gem::Specification.new do |spec|
|
|
18
17
|
them, respecting dependencies, minify and many more.
|
19
18
|
DESC
|
20
19
|
|
21
|
-
spec.files = `git ls-files`.split(
|
22
|
-
spec.executables = spec.files.grep(
|
23
|
-
spec.test_files = spec.files.grep(
|
20
|
+
spec.files = `git ls-files`.split($RS)
|
21
|
+
spec.executables = spec.files.grep(/^bin\//).map { |f| File.basename(f) }
|
22
|
+
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
|
24
23
|
spec.require_paths = ["lib"]
|
25
24
|
|
26
25
|
spec.add_dependency "jekyll", ">= 1.0.0", "< 3.0.0"
|
@@ -34,6 +33,7 @@ Gem::Specification.new do |spec|
|
|
34
33
|
spec.add_development_dependency "bourbon"
|
35
34
|
spec.add_development_dependency "neat"
|
36
35
|
spec.add_development_dependency "bootstrap-sass"
|
36
|
+
spec.add_development_dependency "font-awesome-sass"
|
37
37
|
|
38
38
|
# compass fails with SASS than 3.3+
|
39
39
|
# https://github.com/chriseppstein/compass/issues/1513
|
@@ -30,6 +30,9 @@ module Jekyll
|
|
30
30
|
self.cache = Sprockets::Cache::FileStore.new cache_path
|
31
31
|
end
|
32
32
|
|
33
|
+
# load css autoprefix post-processor
|
34
|
+
install_autoprefixer!
|
35
|
+
|
33
36
|
# reset cache if config changed
|
34
37
|
self.version = site.assets_config.marshal_dump
|
35
38
|
|
@@ -45,6 +48,15 @@ module Jekyll
|
|
45
48
|
def find_asset(path, *args)
|
46
49
|
super || fail(AssetNotFound, path)
|
47
50
|
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def install_autoprefixer!
|
55
|
+
require "autoprefixer-rails"
|
56
|
+
AutoprefixerRails.install(self)
|
57
|
+
rescue LoadError
|
58
|
+
nil
|
59
|
+
end
|
48
60
|
end
|
49
61
|
end
|
50
62
|
end
|
@@ -44,10 +44,10 @@ module Jekyll
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def bundle_asset!(asset)
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
47
|
+
return if asset_files.include? asset
|
48
|
+
|
49
|
+
asset_files << asset
|
50
|
+
asset.jekyll_assets.each { |path| bundle_asset! assets[path] }
|
51
51
|
end
|
52
52
|
|
53
53
|
def __wrap_write
|
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: 0.7.
|
4
|
+
version: 0.7.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -177,6 +177,22 @@ dependencies:
|
|
177
177
|
- - ! '>='
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: font-awesome-sass
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
none: false
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
192
|
+
requirements:
|
193
|
+
- - ! '>='
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
180
196
|
- !ruby/object:Gem::Dependency
|
181
197
|
name: sass
|
182
198
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,6 +235,7 @@ files:
|
|
219
235
|
- lib/jekyll-assets/bootstrap.rb
|
220
236
|
- lib/jekyll-assets/bourbon.rb
|
221
237
|
- lib/jekyll-assets/compass.rb
|
238
|
+
- lib/jekyll-assets/font-awesome.rb
|
222
239
|
- lib/jekyll-assets/neat.rb
|
223
240
|
- lib/jekyll/assets_plugin.rb
|
224
241
|
- lib/jekyll/assets_plugin/asset_path.rb
|
@@ -260,6 +277,7 @@ files:
|
|
260
277
|
- spec/lib/jekyll-assets/bootstrap_spec.rb
|
261
278
|
- spec/lib/jekyll-assets/bourbon_spec.rb
|
262
279
|
- spec/lib/jekyll-assets/compass_spec.rb
|
280
|
+
- spec/lib/jekyll-assets/font-awesome_spec.rb
|
263
281
|
- spec/lib/jekyll-assets/neat_spec.rb
|
264
282
|
- spec/lib/jekyll/assets_plugin/configuration_spec.rb
|
265
283
|
- spec/lib/jekyll/assets_plugin/environment_spec.rb
|
@@ -284,7 +302,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
284
302
|
version: '0'
|
285
303
|
segments:
|
286
304
|
- 0
|
287
|
-
hash:
|
305
|
+
hash: 3481509425775941281
|
288
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
307
|
none: false
|
290
308
|
requirements:
|
@@ -293,13 +311,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
311
|
version: '0'
|
294
312
|
segments:
|
295
313
|
- 0
|
296
|
-
hash:
|
314
|
+
hash: 3481509425775941281
|
297
315
|
requirements: []
|
298
316
|
rubyforge_project:
|
299
317
|
rubygems_version: 1.8.23.2
|
300
318
|
signing_key:
|
301
319
|
specification_version: 3
|
302
|
-
summary: jekyll-assets-0.7.
|
320
|
+
summary: jekyll-assets-0.7.9
|
303
321
|
test_files:
|
304
322
|
- spec/fixtures/.gitignore
|
305
323
|
- spec/fixtures/_assets/app.css.erb
|
@@ -326,6 +344,7 @@ test_files:
|
|
326
344
|
- spec/lib/jekyll-assets/bootstrap_spec.rb
|
327
345
|
- spec/lib/jekyll-assets/bourbon_spec.rb
|
328
346
|
- spec/lib/jekyll-assets/compass_spec.rb
|
347
|
+
- spec/lib/jekyll-assets/font-awesome_spec.rb
|
329
348
|
- spec/lib/jekyll-assets/neat_spec.rb
|
330
349
|
- spec/lib/jekyll/assets_plugin/configuration_spec.rb
|
331
350
|
- spec/lib/jekyll/assets_plugin/environment_spec.rb
|