Add Stripe as an optional package

This commit is contained in:
Jyri-Petteri Paloposki 2024-07-18 16:00:02 +03:00
parent 11ef1b6f6b
commit 5940fe10a6
3 changed files with 11 additions and 5 deletions

View file

@ -2,6 +2,7 @@ FROM ruby:3.3
# throw errors if Gemfile has been modified since Gemfile.lock # throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1 RUN bundle config --global frozen 1
RUN bundle config set --local without test development stripe
WORKDIR /app WORKDIR /app

11
Gemfile
View file

@ -28,6 +28,11 @@ gem 'sanitize', '~> 6.1'
gem 'tracks-chartjs-ror' gem 'tracks-chartjs-ror'
gem 'will_paginate' gem 'will_paginate'
group :layout do
gem 'listen'
gem 'tolk', '~> 5.0.1'
end
# See https://github.com/sstephenson/execjs#readme for more supported runtimes # See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'mini_racer', group: :therubyracer gem 'mini_racer', group: :therubyracer
@ -40,8 +45,6 @@ group :development do
gem 'spring', '~> 4' gem 'spring', '~> 4'
gem 'yard' gem 'yard'
gem 'tolk', '~> 5.0.1'
gem 'bullet' gem 'bullet'
gem 'rack-mini-profiler' gem 'rack-mini-profiler'
gem 'solargraph' gem 'solargraph'
@ -51,12 +54,10 @@ end
group :development, :test do group :development, :test do
gem 'byebug' gem 'byebug'
gem 'listen'
gem 'rubocop', '~> 1.65', require: false gem 'rubocop', '~> 1.65', require: false
end end
group :test do group :test do
# get test coverage info on codeclimate # get test coverage info on codeclimate
gem 'codeclimate-test-reporter', '1.0.9', group: :test, require: nil gem 'codeclimate-test-reporter', '1.0.9', group: :test, require: nil
gem 'database_cleaner', '~> 1' gem 'database_cleaner', '~> 1'
@ -68,3 +69,5 @@ group :test do
gem 'rspec-expectations' gem 'rspec-expectations'
gem 'simplecov' gem 'simplecov'
end end
gem 'stripe', "~> 5.24.0", group: :stripe

View file

@ -304,7 +304,7 @@ GEM
tilt (~> 2.0) tilt (~> 2.0)
yard (~> 0.9, >= 0.9.24) yard (~> 0.9, >= 0.9.24)
spring (4.2.1) spring (4.2.1)
sprockets (4.2.0) sprockets (4.2.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4) rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2) sprockets-rails (3.4.2)
@ -313,6 +313,7 @@ GEM
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sqlite3 (1.6.9) sqlite3 (1.6.9)
mini_portile2 (~> 2.8.0) mini_portile2 (~> 2.8.0)
stripe (5.24.0)
strscan (3.1.0) strscan (3.1.0)
terminal-table (3.0.2) terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3) unicode-display_width (>= 1.1.1, < 3)
@ -383,6 +384,7 @@ DEPENDENCIES
solargraph solargraph
spring (~> 4) spring (~> 4)
sqlite3 sqlite3
stripe (~> 5.24.0)
tolk (~> 5.0.1) tolk (~> 5.0.1)
tracks-chartjs-ror tracks-chartjs-ror
uglifier (>= 1.3.0) uglifier (>= 1.3.0)