Sha256: ff66a24a578b9b07942d7860cade7af6cdd3882a4350d5f83b1490a4a4f27c01

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

source 'https://rubygems.org'

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

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

# database adapters
optional_gem 'therubyracer', platform: :ruby
optional_gem 'therubyrhino', platform: :jruby

# optional c extensions
optional_gem 'concurrent-ruby-ext', platform: :ruby

# Specify your gem's dependencies in google-web-translate.gemspec
gemspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_web_translate-0.2.3 Gemfile