pocketdb 1.0.0 → 1.0.1

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/{1.0.0.rb → pocketdb.rb} +6 -2
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34fabe4f4fe561e779e8923ffbb027a31fb42c3fde5cd38894357c5ea9c62169
4
- data.tar.gz: 46b0170c348a6d80c3422739db35d9bc42ff86c688458174b540f3f26f5a01f2
3
+ metadata.gz: 94aa236c31b4a67dfc00bd49160b3ea32c36aae6cc529d106c0fef80877b6f2d
4
+ data.tar.gz: d5d8392f2d20151803fbcfc78a270a1b2262fbc0727d07bd08cb2476813b72dc
5
5
  SHA512:
6
- metadata.gz: b42414ce47cbed246fa26cda6a22444ce6d3d0a02f82abacc933a3d736e711e884315fb5e256be14625fcfcd7f87ee548d4558614905475087fe4a1ab08056c9
7
- data.tar.gz: 1e7fbb53b4b26ecbb959d1d329fac547f3dd752cfcf5f3c8634884117ddd5b11c561021c6a62f67fc9fa5369c1fa17850e6f4211fcb28fb1418fb1c263762350
6
+ metadata.gz: d4e270208f146e72a901f685dbd3c1486cf7f7b3799b199fcd38f36aa0efb54a5c209781711657d96e5ecdb8f1809dea878a57a164c149d0d186245c831074ab
7
+ data.tar.gz: f8e37b3beab334197da0b568352f44f27bf2c0b3d875f6eb98caff530bf8f0e4e4d77d8c95ff39e3eae8113d8cead8293789838cba44d4a0166e684babad2cd3
@@ -2,8 +2,8 @@ require 'net/http'
2
2
  require 'json'
3
3
  require 'uri'
4
4
 
5
- class TelegraphDB
6
- def initialize(token=nil)
5
+ class PocketDatabase
6
+ def initialize(token: token=nil)
7
7
  @cache = []
8
8
  @collections = []
9
9
  if token.nil?
@@ -30,6 +30,10 @@ class TelegraphDB
30
30
  end
31
31
  end
32
32
 
33
+ def records
34
+ @collections.clone
35
+ end
36
+
33
37
  def token
34
38
  @token.clone
35
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pocketdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - trulyursdelv
@@ -10,14 +10,15 @@ cert_chain: []
10
10
  date: 2025-05-08 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: 'Pocket Database is a lightweight tool that utilizes Telegraph API as
13
- a database. It is limitless, public, and on-the-go.
13
+ a database. It is limitless, public, and on-the-go. For more information, please
14
+ visit github.com/trulyursdelv/pocketdb
14
15
 
15
16
  '
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
- - 1.0.0.rb
21
+ - pocketdb.rb
21
22
  homepage: https://rubygemspec.org/gems/pocketdb
22
23
  licenses:
23
24
  - CC0-1.0