bucket_cake 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bucket_cake/base.rb +10 -7
- data/lib/bucket_cake/entities.rb +10 -10
- data/lib/bucket_cake/facts.rb +10 -10
- data/lib/bucket_cake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c49d5fcb0e7b7afd013221cc3eb3d078d95f847e
|
4
|
+
data.tar.gz: 9211b8214070bd70608afc0ba858b5b2b9840bac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed546c03fe1bf34954aaa2ab9e03c4f8186382ab61b8421ada8a5ff09e92eabdcc604ac73f15df4c21f544907795b5e2ff660804f40e6ad28f8dd8f5478de1e9
|
7
|
+
data.tar.gz: f4a4362fe3ffad0f703ddda93408f348e96aaeb74c29e873ee83c8446d83a6a1478aa6acb1ec5003f7d8f92427c25f37a50d22e6619b0e1b7fe75cec15730a49
|
data/lib/bucket_cake/base.rb
CHANGED
@@ -17,20 +17,23 @@ module BucketCake
|
|
17
17
|
'Use Rails.cache if you are not sure.'
|
18
18
|
end
|
19
19
|
|
20
|
-
def latest(type, klass
|
21
|
-
get Source::Latest.new(type, cache), klass
|
20
|
+
def latest(type, klass)
|
21
|
+
get Source::Latest.new(type, cache), klass
|
22
22
|
end
|
23
23
|
|
24
|
-
def range(type, klass
|
25
|
-
get Source::Range.new(type, cache), klass
|
24
|
+
def range(type, klass)
|
25
|
+
get Source::Range.new(type, cache), klass
|
26
26
|
end
|
27
27
|
|
28
28
|
def get(source, klass)
|
29
29
|
return unless source.new_data?
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
Enumerator.new do |y|
|
32
|
+
Decoder.new(source.zip_files, klass).items.each do |item|
|
33
|
+
y << item
|
34
|
+
end
|
35
|
+
source.confirm!
|
36
|
+
end
|
34
37
|
end
|
35
38
|
end
|
36
39
|
end
|
data/lib/bucket_cake/entities.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module BucketCake
|
3
3
|
class Entities < Base
|
4
|
-
def advertisers
|
5
|
-
latest 'advertisers', Cakeproto::Advertiser
|
4
|
+
def advertisers
|
5
|
+
latest 'advertisers', Cakeproto::Advertiser
|
6
6
|
end
|
7
7
|
|
8
|
-
def affiliates
|
9
|
-
latest 'affiliates', Cakeproto::Affiliate
|
8
|
+
def affiliates
|
9
|
+
latest 'affiliates', Cakeproto::Affiliate
|
10
10
|
end
|
11
11
|
|
12
|
-
def campaigns
|
13
|
-
latest 'campaigns', Cakeproto::Campaign
|
12
|
+
def campaigns
|
13
|
+
latest 'campaigns', Cakeproto::Campaign
|
14
14
|
end
|
15
15
|
|
16
|
-
def creatives
|
17
|
-
latest 'creatives', Cakeproto::Creative
|
16
|
+
def creatives
|
17
|
+
latest 'creatives', Cakeproto::Creative
|
18
18
|
end
|
19
19
|
|
20
|
-
def offers
|
21
|
-
latest 'offers', Cakeproto::Offer
|
20
|
+
def offers
|
21
|
+
latest 'offers', Cakeproto::Offer
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/lib/bucket_cake/facts.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module BucketCake
|
3
3
|
class Facts < Base
|
4
|
-
def clicks
|
5
|
-
range 'clicks', Cakeproto::Click
|
4
|
+
def clicks
|
5
|
+
range 'clicks', Cakeproto::Click
|
6
6
|
end
|
7
7
|
|
8
|
-
def conversions
|
9
|
-
range 'conversions', Cakeproto::Conversion
|
8
|
+
def conversions
|
9
|
+
range 'conversions', Cakeproto::Conversion
|
10
10
|
end
|
11
11
|
|
12
|
-
def conversion_changes
|
13
|
-
range 'conversion_changes', Cakeproto::ConversionChange
|
12
|
+
def conversion_changes
|
13
|
+
range 'conversion_changes', Cakeproto::ConversionChange
|
14
14
|
end
|
15
15
|
|
16
|
-
def cap_states
|
17
|
-
range 'cap_states', Cakeproto::CapState
|
16
|
+
def cap_states
|
17
|
+
range 'cap_states', Cakeproto::CapState
|
18
18
|
end
|
19
19
|
|
20
|
-
def latest_cap_states
|
21
|
-
latest 'cap_states', Cakeproto::CapState
|
20
|
+
def latest_cap_states
|
21
|
+
latest 'cap_states', Cakeproto::CapState
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/lib/bucket_cake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bucket_cake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|