amaranth 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amaranth/version.rb +1 -1
- data/lib/amaranth/video.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 632c3345186c7238891ec515cebc8826239f0516
|
4
|
+
data.tar.gz: 39a80499a4b7c599c047c32a382548c28411b4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8dd7aad21e6b1e1c2e0a8311fc71cea38312dc52f5e338c8fba11e338c27e23660dca39147e1a5ce0a1b0b1087d85ba897ec4debd92d791581e73583efd1bfb
|
7
|
+
data.tar.gz: 99ba6744c34f24e94eb4c78e40a90acb44edc45d085cd2990e67c4bb36cc3f957bdd8fd6db1b30f2272432d3bcaf73e55f80f10b73c3feeaa5e54efe115f0c22
|
data/lib/amaranth/version.rb
CHANGED
data/lib/amaranth/video.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require "amaranth/request"
|
2
|
-
require "open-uri"
|
3
2
|
|
4
3
|
module Amaranth
|
5
4
|
class Video < Struct.new(:id, :title, :description, :duration, :primary_audio_language_code, :thumbnail, :team, :project, :all_urls, :languages)
|
@@ -13,7 +12,7 @@ module Amaranth
|
|
13
12
|
end
|
14
13
|
|
15
14
|
private_class_method def self.fetch url
|
16
|
-
json =
|
15
|
+
json = Request.get(url)
|
17
16
|
objects = json["objects"]
|
18
17
|
next_url = json["meta"]["next"]
|
19
18
|
objects += fetch(next_url) if next_url
|