Sha256: d937972af8751e9499d3ec11f671d0272b3641ef3b79ab0e0e0671c066d27cc2

Contents?: true

Size: 967 Bytes

Versions: 1

Compression:

Stored size: 967 Bytes

Contents

current_ruby = Gem::Version.new(RUBY_VERSION)
ruby_2_5_0 = Gem::Version.new('2.5.0')
ruby_2_7_0 = Gem::Version.new('2.7.0')

ENV['OPAL_VERSION'] = nil # ensure the env is clean

github = -> repo_name { "https://github.com/#{repo_name}.git" }

{
  opal_1_4: -> gemfile do
    gemfile.gem 'opal', '~> 1.4.0'
    gemfile.gem 'opal-sprockets'
  end,

  opal_1_3: -> gemfile do
    gemfile.gem 'opal', '~> 1.3.0'
    gemfile.gem 'opal-sprockets'
  end,

  opal_1_0: -> gemfile do
    gemfile.gem 'opal', '~> 1.0.0'
    gemfile.gem 'opal-sprockets'
  end,

}.each do |opal_version, gem_opal|
  appraise "rails_6_0_#{opal_version}" do
    gem "rails", "~> 6.0.0"
    gem_opal[self]
  end if current_ruby >= ruby_2_5_0

  appraise "rails_6_1_#{opal_version}" do
    gem "rails", "~> 6.1.0"
    gem_opal[self]
  end if current_ruby >= ruby_2_5_0

  appraise "rails_7_0_#{opal_version}" do
    gem "rails", "~> 7.0.0"
    gem_opal[self]
  end if current_ruby >= ruby_2_7_0
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-rails-2.0.2 Appraisals