gloo-sqlite 1.2 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -0
  3. data/lib/sqlite.rb +30 -0
  4. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07c2aff69c51814c45cbb18e6abe7e7e68cbe36d6e72234adfb30e19f50fbf8b
4
- data.tar.gz: fc2ef2d8635193c75cc872a745cac7f3a6b6ff5ffb2f27aa1ed30183926af2ad
3
+ metadata.gz: e0618cc0d0cfa4cf69fc2929b6aa05d29c2ea667eae6ef2684eba7930629f3de
4
+ data.tar.gz: 1941e2dcde02d04070992b2878afb83a448fc7a01d7244e4d1d7bb11626d1eef
5
5
  SHA512:
6
- metadata.gz: 54756855c7395a59af155509526742413ed1a20f43ab74c144e0b554bf1fb75e516df2e0c57722a44d31745cf94c994fafcb7f4d7f6484dd32b5b5992fd3c98d
7
- data.tar.gz: 40e734998d3d905f58da2872b95ab135e2391d238464902e39cb89e8b222527b3a0115d00c7a2afd01694b479071355c21db901f6cce2a7f571208a50dd14889
6
+ metadata.gz: 62e685d1a278a08916b74eaa8bcb92a0d7cfc10c20b8909fe3c93c2651cf3560ebbf5ad63d22f9ac0946da2ee19130e864f176c54e616060b089a33d06b8acc8
7
+ data.tar.gz: 20388bb9c25c3ee40253603b0fceb110d5b49a64a34dc46dfa7fd746e2b6e2aa0ac270ba08720fd12f6723fe813045f97a740d3f6d9964d746fa960eff76631a
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # gloo-sqlite
2
+
3
+ A core gloo library for sqlite.
4
+
5
+ Use alongside `gloo-db` — this gem provides the SQLite driver, `gloo-db` provides `query`/`table`.
6
+
7
+ ## Usage
8
+
9
+ Load this library in a gloo script:
10
+
11
+ ```gloo
12
+ > load lib db
13
+ > load lib sqlite
14
+ ```
15
+
16
+ ## Objects
17
+
18
+ - `sqlite` — a SQLite3 database connection
19
+
20
+ ## Full Reference
21
+
22
+ The object's children and messages are documented in-app once the library is loaded — `help> object sqlite`.
data/lib/sqlite.rb CHANGED
@@ -167,4 +167,34 @@ class Sqlite < Gloo::Core::Obj
167
167
  return true
168
168
  end
169
169
 
170
+ # ---------------------------------------------------------------------
171
+ # Object Documentation
172
+ # ---------------------------------------------------------------------
173
+
174
+ #
175
+ # Get the object's documentation data.
176
+ #
177
+ def self.doc_data
178
+ {
179
+ :name => KEYWORD,
180
+ :shortcut => KEYWORD_SHORT,
181
+ :description => 'A Sqlite3 database connection.',
182
+ :children => [
183
+ "database (string) — Default: '#{DEFAULT_DB}'. The path to the database file."
184
+ ],
185
+ :messages => [
186
+ 'verify — Verify that the database connection can be established.'
187
+ ],
188
+ :examples => <<~EXAMPLES.strip
189
+ sqlite [can] :
190
+ on_load [script] : run sqlite.sql
191
+ db [sqlite] :
192
+ database : test.db
193
+ sql [query] :
194
+ database [alias] : sqlite.db
195
+ sql : SELECT id, key, value FROM key_values
196
+ EXAMPLES
197
+ }
198
+ end
199
+
170
200
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo-sqlite
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-01-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: sqlite3
@@ -37,14 +36,15 @@ executables: []
37
36
  extensions: []
38
37
  extra_rdoc_files: []
39
38
  files:
39
+ - README.md
40
40
  - lib/gloo-sqlite.rb
41
41
  - lib/sqlite.rb
42
- homepage: https://gloo.ecrane.us/
42
+ homepage: https://github.com/ecrane/gloo
43
43
  licenses:
44
44
  - MIT
45
45
  metadata:
46
46
  gloo.type: core-library
47
- post_install_message:
47
+ documentation_uri: https://github.com/ecrane/gloo
48
48
  rdoc_options: []
49
49
  require_paths:
50
50
  - lib
@@ -59,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
- rubygems_version: 3.5.16
63
- signing_key:
62
+ rubygems_version: 4.0.17
64
63
  specification_version: 4
65
64
  summary: Gloo core library. SQLite support.
66
65
  test_files: []