Skip to content

Commit

Permalink
Only support Ruby 1.9. Time to let 1.8 rest in peace.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 21, 2011
1 parent 1e97ab6 commit 8e02258
Show file tree
Hide file tree
Showing 415 changed files with 13 additions and 40,293 deletions.
21 changes: 10 additions & 11 deletions kitabu.gemspec
Expand Up @@ -3,14 +3,15 @@ $:.push File.expand_path("../lib", __FILE__)
require "kitabu/version"

Gem::Specification.new do |s|
s.name = "kitabu"
s.version = Kitabu::Version::STRING
s.platform = Gem::Platform::RUBY
s.authors = ["Nando Vieira"]
s.email = ["fnando.vieira@gmail.com"]
s.homepage = "http://rubygems.org/gems/kitabu"
s.summary = "A framework that generates PDF and e-Pub from Markdown, Textile, and HTML files."
s.description = s.summary
s.name = "kitabu"
s.version = Kitabu::Version::STRING
s.platform = Gem::Platform::RUBY
s.required_ruby_version = "~> 1.9"
s.authors = ["Nando Vieira"]
s.email = ["fnando.vieira@gmail.com"]
s.homepage = "http://rubygems.org/gems/kitabu"
s.summary = "A framework that generates PDF and e-Pub from Markdown, Textile, and HTML files."
s.description = s.summary

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand All @@ -30,7 +31,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec", "~> 2.4.0"
s.add_development_dependency "ZenTest", "~> 4.4.1"
s.add_development_dependency "test_notifier", "~> 0.3.6"
s.add_development_dependency "ruby-debug19" if RUBY_VERSION >= "1.9"

s.requirements << "oniguruma gem, if you're running Kitabu over Ruby 1.8"
s.add_development_dependency "ruby-debug19"
end
10 changes: 3 additions & 7 deletions lib/kitabu.rb
Expand Up @@ -24,15 +24,11 @@
end
end

dir = RUBY_VERSION =~ /^1.9/ ? "ruby1.9" : "ruby1.8"

if defined?(Encoding)
Encoding.default_internal = "utf-8"
Encoding.default_external = "utf-8"
end
Encoding.default_internal = "utf-8"
Encoding.default_external = "utf-8"

%w[plist textpow uv].each do |lib|
$LOAD_PATH.unshift File.dirname(__FILE__) + "/kitabu/vendor/#{dir}/#{lib}"
$LOAD_PATH.unshift File.dirname(__FILE__) + "/kitabu/vendor/#{lib}"
require lib
end

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions lib/kitabu/vendor/ruby1.8/plist/plist.rb

This file was deleted.

224 changes: 0 additions & 224 deletions lib/kitabu/vendor/ruby1.8/plist/plist/generator.rb

This file was deleted.

0 comments on commit 8e02258

Please sign in to comment.