greeenboii 0.1.8 → 0.1.9
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/.idea/workspace.xml +14 -9
- data/lib/greeenboii/version.rb +1 -1
- data/lib/greeenboii.rb +9 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a40a33ed919a7f4b60cc8581e3a7d592cd1a39a9b7e3459941e6acf97ba03a0
|
4
|
+
data.tar.gz: bec431371da5ccdd954030c0065bfefcdac60c41e4cfacdf1c0aa97724a64d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8301770c9c21b1641a95fd094d3f04d55759c65bb5b7d36b6a112baaf27f4c11638ce9fdf62685c934c3ce9c22e85d8a0742c12871a8186e023d24d730d1373
|
7
|
+
data.tar.gz: b8fdd7ae887e9c08acd87fc0b6c3bfb826812daa144b4bd0104f2a04bea1aaab94db9c9571b1e6ffad9f0a96e2c566f52f0f50773f8bd416aba4a5488d6685cd
|
data/.idea/workspace.xml
CHANGED
@@ -4,13 +4,8 @@
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
5
5
|
</component>
|
6
6
|
<component name="ChangeListManager">
|
7
|
-
<list default="true" id="0fa98f61-8369-4575-be76-5316c7df88b7" name="Changes" comment="feat: Update
|
7
|
+
<list default="true" id="0fa98f61-8369-4575-be76-5316c7df88b7" name="Changes" comment="feat: Update dotenv dependency to version 2.8.1 in Gemfile and Gemfile.lock">
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
|
-
<change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
|
10
|
-
<change beforePath="$PROJECT_DIR$/greeenboii.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/greeenboii.gemspec" afterDir="false" />
|
11
|
-
<change beforePath="$PROJECT_DIR$/lib/greeenboii.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/greeenboii.rb" afterDir="false" />
|
12
|
-
<change beforePath="$PROJECT_DIR$/logs/turso_requests.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/turso_requests.log" afterDir="false" />
|
13
|
-
<change beforePath="$PROJECT_DIR$/logs/turso_responses.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/turso_responses.log" afterDir="false" />
|
14
9
|
</list>
|
15
10
|
<option name="SHOW_DIALOG" value="false" />
|
16
11
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -106,7 +101,8 @@
|
|
106
101
|
<workItem from="1746506150953" duration="1391000" />
|
107
102
|
<workItem from="1746509214519" duration="691000" />
|
108
103
|
<workItem from="1746513257984" duration="172000" />
|
109
|
-
<workItem from="1746513447860" duration="
|
104
|
+
<workItem from="1746513447860" duration="3083000" />
|
105
|
+
<workItem from="1746546267759" duration="340000" />
|
110
106
|
</task>
|
111
107
|
<task id="LOCAL-00001" summary="update branch for push events from master to production">
|
112
108
|
<option name="closed" value="true" />
|
@@ -196,7 +192,15 @@
|
|
196
192
|
<option name="project" value="LOCAL" />
|
197
193
|
<updated>1746514728060</updated>
|
198
194
|
</task>
|
199
|
-
<
|
195
|
+
<task id="LOCAL-00012" summary="feat: Update dotenv dependency to version 2.8.1 in Gemfile and Gemfile.lock">
|
196
|
+
<option name="closed" value="true" />
|
197
|
+
<created>1746516235833</created>
|
198
|
+
<option name="number" value="00012" />
|
199
|
+
<option name="presentableId" value="LOCAL-00012" />
|
200
|
+
<option name="project" value="LOCAL" />
|
201
|
+
<updated>1746516235833</updated>
|
202
|
+
</task>
|
203
|
+
<option name="localTasksCounter" value="13" />
|
200
204
|
<servers />
|
201
205
|
</component>
|
202
206
|
<component name="TypeScriptGeneratedFilesManager">
|
@@ -214,7 +218,8 @@
|
|
214
218
|
<MESSAGE value="chore: Update Gemfile to comment out Sorbet and add dotenv gem" />
|
215
219
|
<MESSAGE value="feat: Update dependencies and bump required Ruby version to 3.3.0" />
|
216
220
|
<MESSAGE value="feat: Update .gitignore to exclude .env and enhance CHANGELOG with initial release details" />
|
217
|
-
<
|
221
|
+
<MESSAGE value="feat: Update dotenv dependency to version 2.8.1 in Gemfile and Gemfile.lock" />
|
222
|
+
<option name="LAST_COMMIT_MESSAGE" value="feat: Update dotenv dependency to version 2.8.1 in Gemfile and Gemfile.lock" />
|
218
223
|
</component>
|
219
224
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
220
225
|
<SUITE FILE_PATH="coverage/greeenboii@greeenboii.rcov" NAME="greeenboii Coverage Results" MODIFIED="1743160185076" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="greeenboii" />
|
data/lib/greeenboii/version.rb
CHANGED
data/lib/greeenboii.rb
CHANGED
@@ -427,14 +427,14 @@ module Greeenboii
|
|
427
427
|
end
|
428
428
|
|
429
429
|
private def ensure_connection
|
430
|
-
return
|
430
|
+
return if ENV['TURSO_DATABASE_URL'] && ENV['TURSO_AUTH_TOKEN']
|
431
431
|
|
432
432
|
CLI::UI.puts(CLI::UI.fmt("{{yellow:⚠}} Turso credentials not found"))
|
433
433
|
manage_credentials
|
434
434
|
end
|
435
435
|
|
436
436
|
def add_gist
|
437
|
-
unless
|
437
|
+
unless ENV['TURSO_DATABASE_URL'] && ENV['TURSO_AUTH_TOKEN']
|
438
438
|
CLI::UI.puts(CLI::UI.fmt("{{red:✗}} Cloud credentials required"))
|
439
439
|
return
|
440
440
|
end
|
@@ -473,7 +473,7 @@ module Greeenboii
|
|
473
473
|
end
|
474
474
|
|
475
475
|
def list_gists
|
476
|
-
unless
|
476
|
+
unless ENV['TURSO_DATABASE_URL'] && ENV['TURSO_AUTH_TOKEN']
|
477
477
|
CLI::UI.puts(CLI::UI.fmt("{{red:✗}} Cloud credentials required"))
|
478
478
|
return
|
479
479
|
end
|
@@ -516,7 +516,7 @@ module Greeenboii
|
|
516
516
|
end
|
517
517
|
|
518
518
|
def search_gists
|
519
|
-
unless
|
519
|
+
unless ENV['TURSO_DATABASE_URL'] && ENV['TURSO_AUTH_TOKEN']
|
520
520
|
CLI::UI.puts(CLI::UI.fmt("{{red:✗}} Cloud credentials required"))
|
521
521
|
return
|
522
522
|
end
|
@@ -614,8 +614,8 @@ module Greeenboii
|
|
614
614
|
def manage_credentials
|
615
615
|
CLI::UI::Frame.divider("{{v}} Cloud Credentials")
|
616
616
|
|
617
|
-
current_url = '
|
618
|
-
current_token = "[Hidden]"
|
617
|
+
current_url = ENV['TURSO_DATABASE_URL'] || "Not set"
|
618
|
+
current_token = ENV['TURSO_AUTH_TOKEN'] ? "[Hidden]" : "Not set"
|
619
619
|
|
620
620
|
CLI::UI.puts(CLI::UI.fmt("Current settings:"))
|
621
621
|
CLI::UI.puts(CLI::UI.fmt("Database URL: {{cyan:#{current_url}}}"))
|
@@ -673,7 +673,7 @@ module Greeenboii
|
|
673
673
|
private def test_connection
|
674
674
|
CLI::UI::Spinner.spin("Testing Turso connection...") do |spinner|
|
675
675
|
begin
|
676
|
-
unless
|
676
|
+
unless ENV['TURSO_DATABASE_URL'] && ENV['TURSO_AUTH_TOKEN']
|
677
677
|
spinner.update_title("Cloud credentials not found")
|
678
678
|
next
|
679
679
|
end
|
@@ -702,8 +702,8 @@ module Greeenboii
|
|
702
702
|
end
|
703
703
|
|
704
704
|
private def turso_execute(sql, params = [])
|
705
|
-
url = '
|
706
|
-
auth_token = '
|
705
|
+
url = ENV['TURSO_DATABASE_URL']
|
706
|
+
auth_token = ENV['TURSO_AUTH_TOKEN']
|
707
707
|
|
708
708
|
# Ensure URL has the correct endpoint path for v2 pipeline
|
709
709
|
url = url.end_with?('/v2/pipeline') ? url : "#{url}/v2/pipeline"
|