amaranth 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa621e8b4782b30c0ea8ccc1be401742872345b5
4
- data.tar.gz: 79c3ba3a21f95d6575e446c192074c643f68f9e2
3
+ metadata.gz: 632c3345186c7238891ec515cebc8826239f0516
4
+ data.tar.gz: 39a80499a4b7c599c047c32a382548c28411b4c1
5
5
  SHA512:
6
- metadata.gz: cf78e074b04fe63d972a07b19527007cb2f1100dfdcfb5fd3822cf2437590b0a78385891ad07e663217198a8e2560b0b720ce7ac8f0f5f24042fb0d834ee932b
7
- data.tar.gz: 9042283ef886c732d2317677a5278246520a5669771ef07a7af5e5fabec25713555e551d431a5c98f0381346e6c1a079a1c8fd306dca3d51c7b5cae4b75110c8
6
+ metadata.gz: d8dd7aad21e6b1e1c2e0a8311fc71cea38312dc52f5e338c8fba11e338c27e23660dca39147e1a5ce0a1b0b1087d85ba897ec4debd92d791581e73583efd1bfb
7
+ data.tar.gz: 99ba6744c34f24e94eb4c78e40a90acb44edc45d085cd2990e67c4bb36cc3f957bdd8fd6db1b30f2272432d3bcaf73e55f80f10b73c3feeaa5e54efe115f0c22
@@ -1,3 +1,3 @@
1
1
  module Amaranth
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -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 = JSON.parse(open(url).read)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amaranth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel