yt-audit 0.5.0 → 0.5.1

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: 0216e2a6df4ed9bfa72fb129312ae525bf9667c0
4
- data.tar.gz: dcf7d49f8622f0a528e8b1c406d8f64d1d26d91f
3
+ metadata.gz: d22bc33b226ff56a2c57df3ce4f125106e10bdb3
4
+ data.tar.gz: d200f85fd658eb7d14c09affd9f18d92f50ff0e4
5
5
  SHA512:
6
- metadata.gz: e86ff64c3acd948024dd32e0f9f83324f9eb405505e9c0302a30e59a84fe0cc4f8f1bcc9304e460466b84d2ecd490358f6f9a3e33d341f9a850ff99f21684e3c
7
- data.tar.gz: 37bfcefe676f2d0040396894ce803ea76629eb2f8bdfe1c719d744dd87f084a99c3fd8a07d6e86b42560cfcd56537cc5c91205216dd4d16b990d9c4ee7679b8a
6
+ metadata.gz: 4ef9aee52398808058bac7b86a0deb1a8d55d504c6a7d2920ea27db42d99f9188f61934739eea39b634ec85ce54861abb796427108a77017735ae2ed4a7c56a4
7
+ data.tar.gz: 183d386266bf70a2978d17d5139175ed55d8abe559ed91221f01adc570853e85f80b515a55559bb3df2b409b94a2c660c9a6ff205fbb33504355769168683d8e
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
6
6
  [Keep a Changelog](http://keepachangelog.com) and
7
7
  [Vandamme](http://tech-angels.github.io/vandamme).
8
8
 
9
+ ## 0.5.1 - 2017-05-03
10
+
11
+ * [ENHANCEMENT] Reduce API calls to YouTube using .count, not .size
12
+
9
13
  ## 0.5.0 - 2017-04-03
10
14
 
11
15
  **How to upgrade**
@@ -1,5 +1,5 @@
1
1
  module Yt
2
2
  class Audit
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ module Yt
7
7
  end
8
8
 
9
9
  def total_count
10
- @playlists.size
10
+ @playlists.count
11
11
  end
12
12
 
13
13
  def valid_count
@@ -7,7 +7,7 @@ module Yt
7
7
 
8
8
  # @return [Fixnum] number of all given videos.
9
9
  def total_count
10
- @videos.size
10
+ @videos.count
11
11
  end
12
12
 
13
13
  # @return [Fixnum] number of videos satisfy given condition.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-04-03 00:00:00.000000000 Z
12
+ date: 2017-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yt-core