Sha256: b11dbef33d0648c581de299115302f1a2637144f3a53bb4bc21b093d97bae982

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 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

2 entries across 2 versions & 1 rubygems

Version Path
google_web_translate-0.2.5 Gemfile
google_web_translate-0.2.4 Gemfile