Skip to content

Commit

Permalink
move gem
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarrell committed Jan 26, 2024
1 parent 92a0025 commit 7d3c41b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
38 changes: 36 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
source 'https://rubygems.org'

# See https://github.com/rubygems/rubygems/issues/2731 for why we can't declare this the gemspec file
gem 'trln-chosen-rails', git: 'https://github.com/trln/chosen-rails', branch: 'rails-7'


# Declare your gem's dependencies in trln_argon.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
Expand Down Expand Up @@ -154,3 +153,38 @@ else
end
end
# END ENGINE_CART BLOCK
# BEGIN ENGINE_CART BLOCK
# engine_cart: 2.6.0
# engine_cart stanza: 2.5.0
# the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
if File.exist?(file)
begin
eval_gemfile file
rescue Bundler::GemfileError => e
Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
Bundler.ui.warn e.message
end
else
Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"

if ENV['RAILS_VERSION']
if ENV['RAILS_VERSION'] == 'edge'
gem 'rails', github: 'rails/rails'
ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
else
gem 'rails', ENV['RAILS_VERSION']
end

case ENV['RAILS_VERSION']
when /^6.0/
gem 'sass-rails', '>= 6'
gem 'webpacker', '~> 4.0'
when /^5.[12]/
gem 'sass-rails', '~> 5.0'
gem 'sprockets', '~> 3.7'
gem 'thor', '~> 0.20'
end
end
end
# END ENGINE_CART BLOCK
3 changes: 3 additions & 0 deletions trln_argon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
# Maintain your gem's version:
require 'trln_argon/version'

# See https://github.com/rubygems/rubygems/issues/2731 for why we can't declare this the specification below
gem 'trln-chosen-rails', git: 'https://github.com/trln/chosen-rails', branch: 'rails-7'

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = 'trln_argon'
Expand Down

0 comments on commit 7d3c41b

Please sign in to comment.