dropthe 0.1.0 → 0.1.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/lib/dropthe.rb +42 -6
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53cc8119c732ab91ce3f8ea990ec877c0ff510061123e2ae776537f6bce91c3a
4
- data.tar.gz: 11c47bc99a99d8f6c012563ab88edcf397e1d05081eb320b66f93e3d261aa585
3
+ metadata.gz: '0125490c661ac52cca54eabac27ad45f16fc95e0369d716e27685bcb4ed9a7cf'
4
+ data.tar.gz: 3f6bfb6400cadb388a53235efe20d8f5b7498fa9d628497bc90819b6740a14b3
5
5
  SHA512:
6
- metadata.gz: aba729de59451900ec8bb2ad3a2746d97cd84f7c57f99e18c47f3c041459a6a474fbf1dee022a4024cb0ea38c2e5283dc4891a3b08d747057b39771ee8fade28
7
- data.tar.gz: 33f41b2e607c60b9e8bba74a77750063dcd2957af42a278e6df6c0313b2c05ec5072af434453409bb634c539140ddee6666a95f6a4862eb5364d4432306c1e57
6
+ metadata.gz: 9eb4cb9aac16dbcda6885e69da0913054a61988396de02728e66ac8bb77265df4d11b924faf5d12be48b6fbf6072853d525a2e8a4045effcc7729b26b6ae2898
7
+ data.tar.gz: 5d3dbac0f89291fab4071343a9174b8df5b393e66bdda38df630f2b07908eb531cc92a9a3609c089ce8d29c7fe632892e95a8d7aeb6d18b02e3cae5bb89d7f53
data/lib/dropthe.rb CHANGED
@@ -1,28 +1,64 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # DropThe - Ruby client for the DropThe open data platform
3
+ # DropThe - Ruby interface for the DropThe open data platform
4
4
  # https://dropthe.org
5
5
  #
6
- # Access open datasets for movies, series, crypto, companies, and people.
6
+ # Structured data for movies, series, crypto, companies, and people.
7
+ # 25,000+ movies, 1,800+ entities, 2.9M knowledge graph links.
7
8
 
8
9
  module DropThe
9
- VERSION = '0.1.0'
10
+ VERSION = '0.1.1'
10
11
 
11
12
  BASE_URL = 'https://dropthe.org'
12
13
 
14
+ DESCRIPTION = 'Data utility media platform aggregating entertainment, finance, and business datasets under a unified knowledge graph.'
15
+
16
+ ENTITY_TYPES = %w[movies series people cryptocurrencies companies].freeze
17
+
13
18
  ENDPOINTS = {
14
- movies: '/data/',
19
+ data: '/data/',
15
20
  studio: '/studio/',
16
21
  statistics: '/data/statistics/',
17
- methodology: '/good/methodology/'
22
+ methodology: '/good/methodology/',
23
+ transparency: '/good/transparency/'
18
24
  }.freeze
19
25
 
26
+ @config = {}
27
+
28
+ # Returns library metadata as a hash
29
+ def self.info
30
+ {
31
+ name: 'DropThe',
32
+ version: VERSION,
33
+ base_url: BASE_URL,
34
+ description: DESCRIPTION,
35
+ entity_types: ENTITY_TYPES,
36
+ endpoints: ENDPOINTS.keys
37
+ }
38
+ end
39
+
40
+ # Returns the available API endpoints
41
+ def self.endpoints
42
+ ENDPOINTS
43
+ end
44
+
45
+ # Block-based configuration
46
+ def self.configure
47
+ yield @config if block_given?
48
+ @config
49
+ end
50
+
51
+ # Read current configuration
52
+ def self.config
53
+ @config
54
+ end
55
+
20
56
  # Returns the current library version
21
57
  def self.version
22
58
  VERSION
23
59
  end
24
60
 
25
- # Returns the base API URL
61
+ # Returns the base URL
26
62
  def self.base_url
27
63
  BASE_URL
28
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropthe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Leroy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-28 00:00:00.000000000 Z
11
+ date: 2026-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Access open datasets for movies, series, crypto, companies, and people
14
14
  from DropThe. Query entities, streaming availability, and knowledge graph relationships.
@@ -23,10 +23,10 @@ licenses:
23
23
  - MIT
24
24
  metadata:
25
25
  homepage_uri: https://dropthe.org
26
- source_code_uri: https://github.com/BenchGecko/dropthe-ruby
26
+ source_code_uri: https://github.com/arnaudleroy-studio/dropthe-ruby
27
27
  documentation_uri: https://dropthe.org/data/
28
- bug_tracker_uri: https://github.com/BenchGecko/dropthe-ruby/issues
29
- changelog_uri: https://github.com/BenchGecko/dropthe-ruby/blob/main/CHANGELOG.md
28
+ bug_tracker_uri: https://github.com/arnaudleroy-studio/dropthe-ruby/issues
29
+ changelog_uri: https://github.com/arnaudleroy-studio/dropthe-ruby/blob/main/CHANGELOG.md
30
30
  post_install_message:
31
31
  rdoc_options: []
32
32
  require_paths: