Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5 from blambeau/master

Conditional inclusion of unicode dependency
  • Loading branch information...
commit 510f8db22bce693f3672bf17f4a70140e1aa4dcb 2 parents bff752f + 3a67125
Sylvester Keil authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 latex-decode.gemspec
View
8 latex-decode.gemspec
@@ -7,7 +7,6 @@ require 'latex/decode/version'
Gem::Specification.new do |s|
s.name = 'latex-decode'
s.version = LaTeX::Decode::VERSION.dup
- s.platform = Gem::Platform::RUBY
s.authors = ['Sylvester Keil']
s.email = ['http://sylvester.keil.or.at']
s.homepage = 'http://github.com/inukshuk/latex-decode'
@@ -15,6 +14,13 @@ Gem::Specification.new do |s|
s.description = 'Decodes strings formatted in LaTeX to equivalent Unicode strings.'
s.license = 'GPL-3'
+ if RUBY_PLATFORM =~ /java/
+ s.platform = 'java'
+ else
+ s.add_dependency('unicode', '~> 0.4')
+ s.platform = 'ruby'
+ end
+
s.add_development_dependency('rake', '~> 0.8')
s.add_development_dependency('bundler', '~> 1.0')
s.add_development_dependency('rdoc', '~> 3.6')
Please sign in to comment.
Something went wrong with that request. Please try again.