From 6da31f797d371839e1a732a718276d2c06bc5c69 Mon Sep 17 00:00:00 2001 From: Patrick Honkonen <1883101+SaintPatrck@users.noreply.github.com> Date: Fri, 3 May 2024 16:14:01 -0400 Subject: [PATCH] Declare ruby version globally (#80) --- .github/workflows/build.yml | 3 --- .ruby-version | 1 + Gemfile | 3 ++- Gemfile.lock | 6 +++++- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .ruby-version diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 408d341ff0..b642ed966c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,6 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JAVA_VERSION: 17 - RUBY_VERSION: 3.3.1 jobs: check: @@ -60,7 +59,6 @@ jobs: uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 with: bundler-cache: true - ruby-version: ${{ env.RUBY_VERSION }} - name: Install Fastlane run: | @@ -120,7 +118,6 @@ jobs: uses: ruby/setup-ruby@1198b074305f9356bd56dd4b311757cc0dab2f1c # v1.175.1 with: bundler-cache: true - ruby-version: ${{ env.RUBY_VERSION }} - name: Install Fastlane run: | diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000000..bea438e9ad --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.3.1 diff --git a/Gemfile b/Gemfile index 3b443f2fb1..7221442f83 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,8 @@ source "https://rubygems.org" -ruby '3.3.1' +ruby File.read(".ruby-version").strip gem "fastlane" +gem "time" plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') eval_gemfile(plugins_path) if File.exist?(plugins_path) diff --git a/Gemfile.lock b/Gemfile.lock index 9031046dcb..31acdc6f40 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,7 +10,7 @@ GEM artifactory (3.0.17) atomos (0.1.3) aws-eventstream (1.3.0) - aws-partitions (1.922.0) + aws-partitions (1.923.0) aws-sdk-core (3.194.0) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.651.0) @@ -32,6 +32,7 @@ GEM colored2 (3.1.2) commander (4.6.0) highline (~> 2.0.0) + date (3.3.4) declarative (0.0.20) digest-crc (0.6.5) rake (>= 12.0.0, < 14.0.0) @@ -194,6 +195,8 @@ GEM terminal-notifier (2.0.0) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) + time (0.3.0) + date trailblazer-option (0.1.2) tty-cursor (0.7.1) tty-screen (0.8.2) @@ -221,6 +224,7 @@ PLATFORMS DEPENDENCIES fastlane fastlane-plugin-firebase_app_distribution + time RUBY VERSION ruby 3.3.1p55