vimeo_ruby 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: 7ddc19e27ceb164c54d03fcc8a551873a3c69eb783969cafc95ce644a8f9dfdb
4
- data.tar.gz: 407f36cb900c6434cc06190abaf196c5ca1cf5b86a3254da7e49c9da2408c79d
3
+ metadata.gz: 6e322bad016985f2258e442017837049fd62007364cc6338ca4e705f7b573b5d
4
+ data.tar.gz: 12fd20df10e0df161bb757931079f9d53aeb8468795a7ffac3f20b7ea4ed2228
5
5
  SHA512:
6
- metadata.gz: ae1f15845f9ab6d34ca9deb873df7632ea549df34e571983b49db4740722a0cff2dfd7c4ac437954d0e8413cbed8a47782d8eee969c0d964aa29fbfb905b2c0d
7
- data.tar.gz: ca9d147f701953220ca9add1f8a7d46d31212aefa6da269de66c0ea230884d5a7882b45d1643222090af9d051ad3b02c73821c202c0c10823a39c3f68c62b7f8
6
+ metadata.gz: c0b0eb5766fa016c12d1992e3a67e063559ac3b48c53e053d04b8897ecf3f75f79ba693200b29301b032e32e145baeec2f8e15548ab099e63ac5b288818967ef
7
+ data.tar.gz: 5f9507375cac59c5c9ccb88f4f40cef547fadee3e680319652585a62a247df7966e54c1750380d7a92b9c7215ea3ca53948c97428ef645707c8fbfccaf2c35c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.2] - 2022-12-29
4
+
5
+ - Refactor `VimeoRuby::User#uploaded_videos` method
6
+
7
+ ## [0.4.1] - 2022-12-29
8
+
9
+ - Fix erroneous minor version release (yanked 0.4.0)
10
+
3
11
  ## [0.4.0] - 2022-12-29
4
12
 
5
13
  - Save unnecessary call to get a users uploaded video collection if we already have it and no additional query params are passed in to `VimeoRuby::User#uploaded_videos`.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vimeo_ruby (0.4.1)
4
+ vimeo_ruby (0.4.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # VimeoRuby 0.3.0
1
+ # VimeoRuby 0.4.2
2
2
 
3
3
  Welcome to VimeoRuby!
4
4
 
@@ -25,9 +25,7 @@ module VimeoRuby
25
25
 
26
26
  def uploaded_videos(query_params: {})
27
27
  if @video_collection.nil? || !query_params.empty?
28
- uploaded_videos_response = self.class.get("#{base_uri}/users/#{vimeo_id}/videos", query_params: query_params)
29
- uploaded_videos = uploaded_videos_response["data"]
30
- @video_collection = UploadedVideoCollection.new(uploaded_videos)
28
+ @video_collection = retrieve_video_collection(query_params)
31
29
  else
32
30
  @video_collection
33
31
  end
@@ -40,5 +38,13 @@ module VimeoRuby
40
38
  def can_work_remotely?
41
39
  @can_work_remotely
42
40
  end
41
+
42
+ private
43
+
44
+ def retrieve_video_collection(query_params)
45
+ uploaded_videos_response = self.class.get("#{base_uri}/users/#{vimeo_id}/videos", query_params: query_params)
46
+ uploaded_videos = uploaded_videos_response["data"]
47
+ UploadedVideoCollection.new(uploaded_videos)
48
+ end
43
49
  end
44
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VimeoRuby
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimeo_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collin Jilbert