Skip to content

Commit

Permalink
Drop official support for outdated gems
Browse files Browse the repository at this point in the history
- Bootstrap ~> 3.2
- FontAwesome ~> 4.2
- Jekyll ~> 2.0
  • Loading branch information
ixti committed Sep 14, 2014
1 parent ba17244 commit 98bd7af
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ source "https://rubygems.org"
gem "compass"
gem "bourbon"
gem "neat"
gem "bootstrap-sass"
gem "font-awesome-sass"
gem "bootstrap-sass", "~> 3.2"
gem "font-awesome-sass", "~> 4.2"

# compass fails with SASS than 3.3+
# https://github.com/chriseppstein/compass/issues/1513
Expand Down
2 changes: 0 additions & 2 deletions gemfiles/Gemfile.bootstrap-pre-3.2

This file was deleted.

2 changes: 0 additions & 2 deletions gemfiles/Gemfile.fontawesome-pre-4.2

This file was deleted.

2 changes: 0 additions & 2 deletions gemfiles/Gemfile.jekyll-1.0

This file was deleted.

2 changes: 1 addition & 1 deletion jekyll-assets.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
spec.require_paths = ["lib"]

spec.add_dependency "jekyll", ">= 1.0.0", "< 3.0.0"
spec.add_dependency "jekyll", "~> 2.0"

This comment has been minimized.

Copy link
@davetapley

davetapley May 9, 2015

@ixti so, since this change jekyll-assets is no longer compatible with the Jekyll 3 prerelease, was that intentional?
If so, then are then plans to start working on support for Jekyll 3? I didn't see an issue open.

(also, FYI looking in to this change prompted me to write a blog post, so thanks for the inspiration 😉 )

This comment has been minimized.

Copy link
@ixti

ixti May 9, 2015

Author Contributor

It was intentional, as with accordance to SemVer, major bump introduces backward incompatible changes.
I don't know when I will have spare time to jump on Jekyll 3 support. If you have time/wish to help - that will speed thing up ;))

This comment has been minimized.

Copy link
@ixti

ixti May 9, 2015

Author Contributor

I'm actually would like to see Jekyll-Assets 1.0.0 release coming soon. With support of Jekyll 3+. And Sprockets 3+... :D

spec.add_dependency "sprockets", "~> 2.10"
spec.add_dependency "sprockets-sass"
spec.add_dependency "sprockets-helpers"
Expand Down
3 changes: 1 addition & 2 deletions lib/jekyll-assets/bootstrap.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require "sprockets"

gemspec = Gem::Specification.find_by_name "bootstrap-sass"
subpath = Gem::Version.new("3.2") <= gemspec.version ? "" : "vendor"

%w[images fonts javascripts stylesheets].each do |asset|
Sprockets.append_path File.join(gemspec.gem_dir, subpath, "assets", asset)
Sprockets.append_path File.join(gemspec.gem_dir, "assets", asset)
end
3 changes: 1 addition & 2 deletions lib/jekyll-assets/font-awesome.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require "sprockets"

gemspec = Gem::Specification.find_by_name "font-awesome-sass"
subpath = Gem::Version.new("4.2") <= gemspec.version ? "" : "vendor"

%w[fonts stylesheets].each do |asset|
Sprockets.append_path File.join(gemspec.gem_dir, subpath, "assets", asset)
Sprockets.append_path File.join(gemspec.gem_dir, "assets", asset)
end
1 change: 1 addition & 0 deletions spec/fixtures/_assets/vendor/with_bootstrap.css.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "bootstrap"
3 changes: 2 additions & 1 deletion spec/lib/jekyll-assets/bootstrap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

RSpec.describe "Bootstrap integration" do
it "globally appends bootstrap paths into Sprockets environment" do
expect(@site.assets["bootstrap.css"].to_s).to match(/bootstrap\//)
expect(@site.assets["vendor/with_bootstrap.css"].to_s)
.to match(/bootstrap\//)
end
end

0 comments on commit 98bd7af

Please sign in to comment.