ruby-miradore 3.3.10 → 3.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby/miradore/version.rb +1 -1
- data/lib/ruby/miradore.rb +2 -7
- 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: b06855a6dc337daa1aed5959b18747ca839af28dc5b3c5b6660f266c8e287a34
|
4
|
+
data.tar.gz: 2a23544c9191c9a40392797dfb6d4dda501887ef3a155370180114a2675ce150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0f2abc784e0d960bff77731a71cbcbfec6e0550f7bec84b568eed85bda639532e2332cf7d9c0177da111f6fcfaa821ef3d8b6263497ca23a20b19f16fe5f60e
|
7
|
+
data.tar.gz: 67f139f86fee3d1102cd42f973d078705cad2ad277a13526137396b0003277e555cd3b0bc092b42d9b4b522239241105c8fd5caa172205843303ce12183de7fb
|
data/Gemfile.lock
CHANGED
data/lib/ruby/miradore.rb
CHANGED
@@ -61,19 +61,14 @@ module Ruby
|
|
61
61
|
@json
|
62
62
|
end
|
63
63
|
|
64
|
-
|
65
|
-
# all call will happen the same way, creating a new instance.
|
66
|
-
# class << self
|
67
|
-
protected
|
68
|
-
|
69
|
-
def version
|
64
|
+
def api_version
|
70
65
|
superclass == Object ? :request_v1 : :item_v1
|
71
66
|
end
|
72
67
|
|
73
68
|
private
|
74
69
|
|
75
70
|
def http_method_v1(**args)
|
76
|
-
url = Miradore.url[
|
71
|
+
url = Miradore.url[api_version] % args.merge(
|
77
72
|
subdomain: @subdomain || args[:subdomain],
|
78
73
|
auth: args.fetch(:auth, @auth),
|
79
74
|
item: self.class.to_s.split("::").last,
|