brainzz 0.0.6 → 0.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 941f2f0034a79d492f3dd9fc3297d37a1353d4c8
|
4
|
+
data.tar.gz: 5c9505402d65a9ec079e012591ee21056957d8a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0f203efc33589c83ad5b1a71a84d4eb96f4513efd66af3ad4014f925d864aa4f26bf3ca56aed1973f422a88ba4482adec36c8bc0ae8137a19d52d42ef84bdaf
|
7
|
+
data.tar.gz: 9c52a93199b8ee6597c411318ec2a5e55e723510489e5d960a2cba9a7254a51522719e84f23fdbc6f44b4c6cd9b1899e7f3270d03b5c0bea0642203eb8872868
|
@@ -2,7 +2,7 @@ module Brainzz
|
|
2
2
|
class ViewTotalsCommand < VideoStatsCommand
|
3
3
|
class << self
|
4
4
|
def execute(video_id, start_date, end_date)
|
5
|
-
video_stats_params = VideoStatsParams.new
|
5
|
+
video_stats_params = VideoStatsParams.new({
|
6
6
|
:video_id => video_id,
|
7
7
|
:start_date => start_date,
|
8
8
|
:end_date => end_date,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
FactoryGirl.define do
|
2
2
|
factory :brainzz_like_count, :class => Brainzz::LikeCount do
|
3
3
|
likes { rand(1_000_000) + 1 }
|
4
|
-
day {
|
4
|
+
day { Time.parse (DateTime.now - rand(100)).strftime('%F') }
|
5
5
|
|
6
6
|
factory :brainzz_aggregate_like_count do
|
7
7
|
day nil
|
@@ -1,7 +1,7 @@
|
|
1
1
|
FactoryGirl.define do
|
2
2
|
factory :brainzz_share_count, :class => Brainzz::ShareCount do
|
3
|
-
shares
|
4
|
-
day {
|
3
|
+
shares { rand(1_000_000) + 1 }
|
4
|
+
day { Time.parse (DateTime.now - rand(100)).strftime('%F') }
|
5
5
|
|
6
6
|
factory :brainzz_aggregate_share_count do
|
7
7
|
day nil
|
@@ -1,7 +1,7 @@
|
|
1
1
|
FactoryGirl.define do
|
2
2
|
factory :brainzz_view_count, :class => Brainzz::ViewCount do
|
3
3
|
views { rand(1_000_000) + 1 }
|
4
|
-
day {
|
4
|
+
day { Time.parse (DateTime.now - rand(100)).strftime('%F') }
|
5
5
|
source { generate :brainzz_view_count_source }
|
6
6
|
|
7
7
|
factory :brainzz_aggregate_view_count do
|