-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
36 lines (28 loc) · 1.04 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
source 'https://rubygems.org'
git_source(:github) { |_repo| 'https://github.com/smugglys/translatomatic' }
def gem_installed?(args)
name, *version = *args
dependency = Gem::Dependency.new(name, *version)
specs = dependency.matching_specs
specs && !specs.empty?
end
def optional_gem(*args)
gem(*args) if gem_installed?(args)
end
# javascript runtimes
optional_gem 'therubyracer', platform: :ruby
optional_gem 'therubyrhino', platform: :jruby
# database adapters
optional_gem 'mysql2', platform: :ruby
optional_gem 'postgresql', platform: :ruby
optional_gem 'ruby-oci8', platform: :ruby
gem 'sqlite3', '~> 1.4', platform: :ruby
# bigdecimal required by crack-0.4.3 on cygwin
optional_gem 'bigdecimal'
# jruby database adapters
optional_gem 'activerecord-jdbc-adapter', platform: :jruby
optional_gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
optional_gem 'activerecord-jdbcmysql-adapter', platform: :jruby
optional_gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
# Specify your gem's dependencies in translatomatic.gemspec
gemspec