Skip to content

Commit

Permalink
Let's use Bundler now that we have gem dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wu committed Oct 12, 2010
1 parent 25b81de commit bfd695a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ pkg
readme.html
.yardoc/
doc/
.bundle/
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source :rubygems

gemspec
17 changes: 17 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,17 @@
PATH
remote: .
specs:
slim (0.5.1)
escape_utils

GEM
remote: http://rubygems.org/
specs:
escape_utils (0.1.8)

PLATFORMS
ruby

DEPENDENCIES
escape_utils
slim!
1 change: 1 addition & 0 deletions lib/slim.rb
Expand Up @@ -2,6 +2,7 @@

$:.unshift File.dirname(__FILE__)

require 'bundler/setup'
require 'escape_utils'
require 'slim/compiler'
require 'slim/engine'
Expand Down
5 changes: 4 additions & 1 deletion slim.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Andrew Stone"]
s.date = %q{2010-10-08}
s.date = %q{2010-10-12}
s.description = %q{Slim is a template language whose goal is reduce the syntax to the essential parts without becoming cryptic.}
s.email = %q{andy@stonean.com}
s.extra_rdoc_files = [
Expand Down Expand Up @@ -50,9 +50,12 @@ Gem::Specification.new do |s|
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<escape_utils>, [">= 0"])
else
s.add_dependency(%q<escape_utils>, [">= 0"])
end
else
s.add_dependency(%q<escape_utils>, [">= 0"])
end
end

0 comments on commit bfd695a

Please sign in to comment.