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: 40016cde2e4bfde7fa826dfd41d7e5a1d2bfb87b
4
- data.tar.gz: 2c4aa4d4abb6313926b9b1963e2ab240d84e4edf
3
+ metadata.gz: 941f2f0034a79d492f3dd9fc3297d37a1353d4c8
4
+ data.tar.gz: 5c9505402d65a9ec079e012591ee21056957d8a3
5
5
  SHA512:
6
- metadata.gz: 2f61c7b4aa8a01ec432c3b8aca5334fbebb870c274859ee12697cf98e186c4d3947f05e412c6026f6dbdf902efbb3dca983ab50ad49cf6224338181a40d85a64
7
- data.tar.gz: 10076c54ca18e873dc0abd0a4c5d54329525b1eb8e56a28e61a473da129a24d43f3a6d2d60bf742f6022f6f615692c9ed3e07ebd91481c3eb7f5eff65c752d6e
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 { DateTime.parse((DateTime.now - rand(100)).strftime('%F')) }
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 { rand(1_000_000) + 1 }
4
- day { DateTime.parse((DateTime.now - rand(100)).strftime('%F')) }
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
@@ -4,7 +4,7 @@ FactoryGirl.define do
4
4
 
5
5
  factory :brainzz_published_video do
6
6
  title { FactoryGirl.generate :brainzz_video_title }
7
- published_at { DateTime.now - rand(1_500) }
7
+ published_at { Time.now - 60 * 60 * 24 * rand(1_500) }
8
8
  end
9
9
  end
10
10
  end
@@ -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 { DateTime.parse((DateTime.now - rand(100)).strftime('%F')) }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainzz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Herrick