From 3fbb0454b2e158339961e44783392655cb264e95 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Wed, 24 Jan 2024 16:48:46 +0000 Subject: [PATCH] Gemfile refactoring --- Gemfile | 40 +++++++++++++++++++++++++++------------- Gemfile.lock | 9 +++++++++ 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index d85c678e..22bf8463 100644 --- a/Gemfile +++ b/Gemfile @@ -1,24 +1,38 @@ # frozen_string_literal: true -source "https://rubygems.org" +source 'https://rubygems.org' git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } -gem 'cocoapods' -gem 'danger' -gem 'danger-commit_lint' -gem 'fastlane' -gem 'fastlane-plugin-lizard' +gem 'danger', group: :danger_dependencies +gem 'fastlane', group: :fastlane_dependencies gem 'jazzy' gem 'json' -gem 'plist' -gem 'rubocop', '1.38' -gem 'rubocop-performance' -gem 'rubocop-require_tools' -gem 'sinatra' +gem 'rubocop', '1.38', group: :rubocop_dependencies +gem 'sinatra', group: :sinatra_dependencies gem 'slather' -gem 'xcode-install' -gem 'xctest_list' plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') eval_gemfile(plugins_path) if File.exist?(plugins_path) + +group :fastlane_dependencies do + gem 'cocoapods' + gem 'fastlane-plugin-lizard' + gem 'plist' + gem 'xcode-install' + gem 'xctest_list' +end + +group :sinatra_dependencies do + gem 'puma' + gem 'rackup' +end + +group :rubocop_dependencies do + gem 'rubocop-performance' + gem 'rubocop-require_tools' +end + +group :danger_dependencies do + gem 'danger-commit_lint' +end diff --git a/Gemfile.lock b/Gemfile.lock index b8f011c9..ec314681 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -285,6 +285,7 @@ GEM nap (1.1.0) naturally (2.2.1) netrc (0.11.0) + nio4r (2.7.0) no_proxy_fix (0.1.2) nokogiri (1.16.0) mini_portile2 (~> 2.8.2) @@ -304,6 +305,8 @@ GEM coderay (~> 1.1) method_source (~> 1.0) public_suffix (4.0.7) + puma (6.4.2) + nio4r (~> 2.0) racc (1.7.3) rack (3.0.8) rack-protection (4.0.0) @@ -311,6 +314,9 @@ GEM rack (>= 3.0.0, < 4) rack-session (2.0.0) rack (>= 3.0.0) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) rainbow (3.1.1) rake (13.1.0) rchardet (1.8.0) @@ -387,6 +393,7 @@ GEM concurrent-ruby (~> 1.0) uber (0.1.0) unicode-display_width (2.5.0) + webrick (1.8.1) word_wrap (1.0.0) xcinvoke (0.3.0) liferaft (~> 0.0.6) @@ -422,6 +429,8 @@ DEPENDENCIES jazzy json plist + puma + rackup rubocop (= 1.38) rubocop-performance rubocop-require_tools