Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
adds platform switch (ruby, jruby) for rmagick
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dreher committed Jan 26, 2012
1 parent 7cc969c commit cf01185
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source "http://rubygems.org"

gemspec
gemspec
14 changes: 8 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ PATH
remote: .
specs:
easy_captcha (0.4.6)
bundler (~> 1.0.0)
rails (>= 3.0.0)
rmagick (>= 2.13.1)
rspec (~> 2.6.0)
simplecov (>= 0.3.8)
yard (>= 0.7.0)

GEM
remote: http://rubygems.org/
Expand Down Expand Up @@ -47,7 +52,7 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.17.2)
multi_json (1.0.3)
multi_json (1.0.4)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.1)
Expand All @@ -74,6 +79,7 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
rmagick (2.13.1)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
Expand All @@ -96,15 +102,11 @@ GEM
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.31)
yard (0.7.2)
yard (0.7.3)

PLATFORMS
java
ruby

DEPENDENCIES
bundler (~> 1.0.0)
easy_captcha!
rspec (~> 2.6.0)
simplecov (>= 0.3.8)
yard (>= 0.7.0)
32 changes: 11 additions & 21 deletions easy_captcha.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,20 @@ Gem::Specification.new do |s|
s.summary = %q{Captcha-Plugin for Rails}

s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.test_files = `git ls-files -- {spec}/*`.split("\n")
s.require_paths = ["lib"]

if s.respond_to? :specification_version then
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_development_dependency(%q<simplecov>, [">= 0.3.8"])
s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
s.add_development_dependency(%q<yard>, [">= 0.7.0"])
else
s.add_dependency(%q<rails>, [">= 3.0.0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<simplecov>, [">= 0.3.8"])
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
s.add_dependency(%q<yard>, [">= 0.7.0"])
end
s.add_dependency('rails', [">= 3.0.0"])
s.add_dependency('bundler', ["~> 1.0.0"])
s.add_dependency('simplecov', [">= 0.3.8"])
s.add_dependency('rspec', ["~> 2.6.0"])
s.add_dependency('yard', [">= 0.7.0"])


if defined?(PLATFORM) && PLATFORM == 'java'
s.add_runtime_dependency('rmagick4j','>= 0.3.7')
else
s.add_dependency(%q<rails>, [">= 3.0.0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<simplecov>, [">= 0.3.8"])
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
s.add_dependency(%q<yard>, [">= 0.7.0"])
s.add_runtime_dependency('rmagick','>= 2.13.1')
end
end

0 comments on commit cf01185

Please sign in to comment.