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.
- checksums.yaml +4 -4
- data/lib/dropthe.rb +42 -6
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0125490c661ac52cca54eabac27ad45f16fc95e0369d716e27685bcb4ed9a7cf'
|
|
4
|
+
data.tar.gz: 3f6bfb6400cadb388a53235efe20d8f5b7498fa9d628497bc90819b6740a14b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
3
|
+
# DropThe - Ruby interface for the DropThe open data platform
|
|
4
4
|
# https://dropthe.org
|
|
5
5
|
#
|
|
6
|
-
#
|
|
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.
|
|
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
|
-
|
|
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
|
|
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.
|
|
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-
|
|
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/
|
|
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/
|
|
29
|
-
changelog_uri: https://github.com/
|
|
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:
|