amaranth 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41fff3b6c316afb752696d0db23b7cd10cae4153
4
- data.tar.gz: e8c54802636ba6bb9629f5e225549d52d3849a20
3
+ metadata.gz: bac1af1abfd0668929232ee46dd33c5c6e02f688
4
+ data.tar.gz: 73706e49ac12f37398dc0eae5fc21972de32305a
5
5
  SHA512:
6
- metadata.gz: 49a652968e6e700828e540419bd8551a4646b1a94677a4c5563611d28958950759dc2b53af2bfd69e959a34b26b2c79bc64ec8de9198f2b80198ea79de4488b4
7
- data.tar.gz: 4826f362323dd59581e7b64d41c14a138b47470a050bdd01cc8d511d4e377e1300820b88ea254f94b7139ea70b82e9eef15f81237d40d1c37d078f56d1952d96
6
+ metadata.gz: 3c3cbed124b5ddaea373553bec70ba3d8ebcd0724036abb0f238421f6a59ee2783995e45210e3894981778120cee18826880432710c60fc22081eff51e4e3c1a
7
+ data.tar.gz: df4ddbdd1c0087c396bbc3d8511512809083031684ada8fc0cd46a625b2fa347a2374744ad352c5658eb2f9843897949a550ab222fecfa6d85547c39c5204eb8
@@ -27,7 +27,7 @@ module Amaranth
27
27
  end
28
28
 
29
29
  def self.request req, body = nil
30
- Net::HTTP.start("www.amara.org", use_ssl: true) do |http|
30
+ Net::HTTP.start("amara.org", use_ssl: true) do |http|
31
31
  req["Content-Type"] = "application/json"
32
32
  req["X-api-username"] = Amaranth.api_username
33
33
  req["X-api-key"] = Amaranth.api_key
@@ -1,3 +1,3 @@
1
1
  module Amaranth
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -4,7 +4,7 @@ require "open-uri"
4
4
  module Amaranth
5
5
  class Video < Struct.new(:id, :title, :description, :duration, :primary_audio_language_code, :thumbnail, :team, :project, :all_urls, :languages)
6
6
  def self.all team_slug: nil, project_slug: nil
7
- url = "https://www.amara.org/api/videos/?limit=100"
7
+ url = "https://amara.org/api/videos/?limit=100"
8
8
  url += "&team=#{team_slug}" if team_slug
9
9
  url += "&project=#{project_slug}" if project_slug
10
10
  fetch(url).map do |attributes|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amaranth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-01 00:00:00.000000000 Z
11
+ date: 2017-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake