From 176346c7fde5a0bcf298aac1a8ff3688a63ca042 Mon Sep 17 00:00:00 2001 From: gbaptista Date: Sun, 19 May 2024 13:58:23 -0300 Subject: [PATCH] bump to 4.0.0 --- Gemfile | 4 ++-- Gemfile.lock | 40 ++++++++++++++++++++++------------------ README.md | 8 ++++---- gemini-ai.gemspec | 4 ++++ static/gem.rb | 2 +- template.md | 8 ++++---- 6 files changed, 37 insertions(+), 29 deletions(-) diff --git a/Gemfile b/Gemfile index b4ecae1..9d322d0 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ source 'https://rubygems.org' gemspec group :test, :development do - gem 'dotenv', '~> 2.8', '>= 2.8.1' + gem 'dotenv', '~> 3.1', '>= 3.1.2' gem 'pry-byebug', '~> 3.10', '>= 3.10.1' - gem 'rubocop', '~> 1.60', '>= 1.60.1' + gem 'rubocop', '~> 1.63', '>= 1.63.5' end diff --git a/Gemfile.lock b/Gemfile.lock index 3e1de92..74a0a9d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - gemini-ai (3.2.0) + gemini-ai (4.0.0) event_stream_parser (~> 1.0) faraday (~> 2.9) faraday-typhoeus (~> 1.1) @@ -14,9 +14,10 @@ GEM addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) + base64 (0.2.0) byebug (11.1.3) coderay (1.1.3) - dotenv (2.8.1) + dotenv (3.1.2) ethon (0.16.0) ffi (>= 1.15.0) event_stream_parser (1.0.0) @@ -28,25 +29,26 @@ GEM faraday (~> 2.0) typhoeus (~> 1.4) ffi (1.16.3) - google-cloud-env (2.1.0) + google-cloud-env (2.1.1) faraday (>= 1.0, < 3.a) - googleauth (1.9.1) + googleauth (1.11.0) faraday (>= 1.0, < 3.a) google-cloud-env (~> 2.1) jwt (>= 1.4, < 3.0) multi_json (~> 1.11) os (>= 0.9, < 2.0) signet (>= 0.16, < 2.a) - json (2.7.1) - jwt (2.7.1) + json (2.7.2) + jwt (2.8.1) + base64 language_server-protocol (3.17.0.3) - method_source (1.0.0) + method_source (1.1.0) multi_json (1.15.0) net-http (0.4.1) uri os (1.1.4) parallel (1.24.0) - parser (3.3.0.5) + parser (3.3.1.0) ast (~> 2.4.1) racc pry (0.14.2) @@ -55,12 +57,13 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - public_suffix (5.0.4) + public_suffix (5.0.5) racc (1.7.3) rainbow (3.1.1) - regexp_parser (2.9.0) - rexml (3.2.6) - rubocop (1.60.1) + regexp_parser (2.9.2) + rexml (3.2.8) + strscan (>= 3.0.9) + rubocop (1.63.5) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -68,17 +71,18 @@ GEM rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.30.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.30.0) - parser (>= 3.2.1.0) + rubocop-ast (1.31.3) + parser (>= 3.3.1.0) ruby-progressbar (1.13.0) - signet (0.18.0) + signet (0.19.0) addressable (~> 2.8) faraday (>= 0.17.5, < 3.a) jwt (>= 1.5, < 3.0) multi_json (~> 1.10) + strscan (3.1.0) typhoeus (1.4.1) ethon (>= 0.9.0) unicode-display_width (2.5.0) @@ -88,10 +92,10 @@ PLATFORMS x86_64-linux DEPENDENCIES - dotenv (~> 2.8, >= 2.8.1) + dotenv (~> 3.1, >= 3.1.2) gemini-ai! pry-byebug (~> 3.10, >= 3.10.1) - rubocop (~> 1.60, >= 1.60.1) + rubocop (~> 1.63, >= 1.63.5) BUNDLED WITH 2.4.22 diff --git a/README.md b/README.md index 7f82890..585898a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A Ruby Gem for interacting with [Gemini](https://deepmind.google/technologies/ge ## TL;DR and Quick Start ```ruby -gem 'gemini-ai', '~> 3.2.0' +gem 'gemini-ai', '~> 4.0.0' ``` ```ruby @@ -121,11 +121,11 @@ Result: ### Installing ```sh -gem install gemini-ai -v 3.2.0 +gem install gemini-ai -v 4.0.0 ``` ```sh -gem 'gemini-ai', '~> 3.2.0' +gem 'gemini-ai', '~> 4.0.0' ``` ### Credentials @@ -1148,7 +1148,7 @@ gem build gemini-ai.gemspec gem signin -gem push gemini-ai-3.2.0.gem +gem push gemini-ai-4.0.0.gem ``` ### Updating the README diff --git a/gemini-ai.gemspec b/gemini-ai.gemspec index 54371ac..009fbb3 100644 --- a/gemini-ai.gemspec +++ b/gemini-ai.gemspec @@ -32,7 +32,11 @@ Gem::Specification.new do |spec| spec.add_dependency 'event_stream_parser', '~> 1.0' spec.add_dependency 'faraday', '~> 2.9' spec.add_dependency 'faraday-typhoeus', '~> 1.1' + + # Before upgrading, check this: + # https://github.com/gbaptista/gemini-ai/pull/10 spec.add_dependency 'googleauth', '~> 1.8' + spec.add_dependency 'typhoeus', '~> 1.4', '>= 1.4.1' spec.metadata['rubygems_mfa_required'] = 'true' diff --git a/static/gem.rb b/static/gem.rb index 0513b77..5acfb2c 100644 --- a/static/gem.rb +++ b/static/gem.rb @@ -3,7 +3,7 @@ module Gemini GEM = { name: 'gemini-ai', - version: '3.2.0', + version: '4.0.0', author: 'gbaptista', summary: "Interact with Google's Gemini AI.", description: "A Ruby Gem for interacting with Gemini through Vertex AI, Generative Language API, or AI Studio, Google's generative AI services.", diff --git a/template.md b/template.md index 3d11914..cfb744d 100644 --- a/template.md +++ b/template.md @@ -9,7 +9,7 @@ A Ruby Gem for interacting with [Gemini](https://deepmind.google/technologies/ge ## TL;DR and Quick Start ```ruby -gem 'gemini-ai', '~> 3.2.0' +gem 'gemini-ai', '~> 4.0.0' ``` ```ruby @@ -77,11 +77,11 @@ Result: ### Installing ```sh -gem install gemini-ai -v 3.2.0 +gem install gemini-ai -v 4.0.0 ``` ```sh -gem 'gemini-ai', '~> 3.2.0' +gem 'gemini-ai', '~> 4.0.0' ``` ### Credentials @@ -1104,7 +1104,7 @@ gem build gemini-ai.gemspec gem signin -gem push gemini-ai-3.2.0.gem +gem push gemini-ai-4.0.0.gem ``` ### Updating the README