gemini_craft 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gemini_craft/configuration.rb +1 -1
- data/lib/gemini_craft/version.rb +1 -1
- data/lib/gemini_craft.rb +1 -8
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ca17b0695b9bb2cffdd54a24c3917847e3a36204c834632fe091b6cbd215961
|
4
|
+
data.tar.gz: 5b10b4d47c3a22002710f2715272893807d369d47d38d43ab7aeb80c95826828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9b0fb526c4467481ef3c7a67da5c9ab46d014d7169adbda92b1edc267d2deb7124d856c58e2a95b468dc2216de848bdf8047d85b6c3d44c37ed26f2f0298d78
|
7
|
+
data.tar.gz: 8c87f8d0f7ced231b77285a660be315ec9177025a4f2aa1f017e8f1eaab0933a075d24e6cbbbef0558d16789db4c860488853769b13413359e8b649869e4c37f
|
@@ -7,7 +7,7 @@ module GeminiCraft
|
|
7
7
|
|
8
8
|
# Initialize a new configuration with default values
|
9
9
|
def initialize
|
10
|
-
@api_key = ENV
|
10
|
+
@api_key = ENV.fetch("GEMINI_API_KEY", nil)
|
11
11
|
@api_base_url = "https://generativelanguage.googleapis.com/v1beta"
|
12
12
|
@model = "gemini-2.0-flash"
|
13
13
|
@timeout = 30
|
data/lib/gemini_craft/version.rb
CHANGED
data/lib/gemini_craft.rb
CHANGED
@@ -1,16 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "gemini_craft/version"
|
4
|
-
|
5
|
-
module GeminiCraft
|
6
|
-
class Error < StandardError; end
|
7
|
-
# Your code goes here...
|
8
|
-
end
|
9
|
-
# frozen_string_literal: true
|
10
|
-
|
4
|
+
require_relative "gemini_craft/error"
|
11
5
|
require_relative "gemini_craft/configuration"
|
12
6
|
require_relative "gemini_craft/client"
|
13
|
-
require_relative "gemini_craft/error"
|
14
7
|
require_relative "gemini_craft/cache"
|
15
8
|
|
16
9
|
# GeminiCraft is a Ruby gem for generating content using Google's Gemini AI
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemini_craft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shobhit Jain
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
10
|
date: 2025-03-23 00:00:00.000000000 Z
|
@@ -175,7 +174,7 @@ metadata:
|
|
175
174
|
homepage_uri: https://github.com/shobhits7/gemini_craft
|
176
175
|
source_code_uri: https://github.com/shobhits7/gemini_craft
|
177
176
|
changelog_uri: https://github.com/shobhits7/gemini_craft/blob/main/CHANGELOG.md
|
178
|
-
|
177
|
+
rubygems_mfa_required: 'true'
|
179
178
|
rdoc_options: []
|
180
179
|
require_paths:
|
181
180
|
- lib
|
@@ -183,15 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
182
|
requirements:
|
184
183
|
- - ">="
|
185
184
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
185
|
+
version: 3.1.0
|
187
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
187
|
requirements:
|
189
188
|
- - ">="
|
190
189
|
- !ruby/object:Gem::Version
|
191
190
|
version: '0'
|
192
191
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
194
|
-
signing_key:
|
192
|
+
rubygems_version: 3.6.6
|
195
193
|
specification_version: 4
|
196
194
|
summary: A Ruby gem for generating content using Google's Gemini AI
|
197
195
|
test_files: []
|