my-local-putio 4.0.1 → 4.0.2

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
  SHA256:
3
- metadata.gz: e77614c636e40aac8eaa665b6cf7882718895d553f5accce3e0f891b0ee1a4be
4
- data.tar.gz: 4b235f9cfa24f41313b6debec08330003a598d0a80f68990b148d249a791cc50
3
+ metadata.gz: 393e8f46747aad47a5ff3c0703087232990f9175e9d0b7f59eed319c0a239b8c
4
+ data.tar.gz: cce06ae923c94ad5b26828cdd007ac1aff6c6c3ab7127c755fa28d9da5f14ae7
5
5
  SHA512:
6
- metadata.gz: c967e8b27839ed548ec3ac63d7353e0f48b502901fca2a01d6fac93eeddeec290ebe739c1c8d9b6596f57cb9828d9e1057784037d018c81f159c9c23f7bfaf95
7
- data.tar.gz: 54300e2ac6a6e1b6f5041c6317b09296c5d65a38b6ed450b9a0f168a4085e8060e8e2d9def49571ebf5a6323ba50ccd2344c64b322dfa464b5e098f87197fb0b
6
+ metadata.gz: 44deeb7a0cdbabf3f9db78067c47a97634c949197a17802ce5391901983723922712fd1246d3fc01ddaad1f9b2f4ea37cc0b66126aa0c9b7f107abd42a7afe78
7
+ data.tar.gz: 48a2c3a717706c02a7a838bafce63d606637d73aded8c03ca83d9f879e7de91d4948b2aa6c7101f3570a12023f4a585476f0ba8c06d18ecea0f8d8f80ec84926
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v4.0.2
2
+
3
+ - More code refactoring
4
+ - Put.io api /files/<id>/download is deprecated. Replacing to /files/<id>/url
5
+
1
6
  # v4.0.1
2
7
 
3
8
  - More code refactoring
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my-local-putio (4.0.1)
4
+ my-local-putio (4.0.2)
5
5
  socksify (= 1.7.1)
6
6
 
7
7
  GEM
@@ -30,7 +30,7 @@ module MyLocalPutio
30
30
  if file.content_type == "application/x-directory"
31
31
  fetch_files(id: file.id, path: local_file_path)
32
32
  else
33
- url = cli.get_download_url(file.id)
33
+ url = cli.get_download_url(file.id)["url"]
34
34
  Downloader.new(@configuration).download(url, local_file_path) unless file_exists?(local_file_path, file)
35
35
  SubtitlesManager.new(configuration).fetch(file, path)
36
36
  end
@@ -25,9 +25,7 @@ module MyLocalPutio
25
25
  end
26
26
 
27
27
  def get_download_url(id)
28
- url = to_url("files/#{id}/download")
29
- url.query = URI.encode_www_form to_args()
30
- url
28
+ get("files/#{id}/url")
31
29
  end
32
30
 
33
31
  protected
@@ -1,3 +1,3 @@
1
1
  module MyLocalPutio
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my-local-putio
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Biriba