Sha256: a051cc5b3138e311bb124647fd54c0f88e9f1be1e0af21792c4b5038667d1e5f

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
google_web_translate-0.2.2 Gemfile
google_web_translate-0.2.1 Gemfile
google_web_translate-0.1.0 Gemfile