bucket_cake 0.1.0 → 0.2.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.rb +1 -0
- data/lib/bucket_cake/proto/common.pb.rb +9 -0
- data/lib/bucket_cake/values.rb +35 -0
- data/lib/bucket_cake/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f110ceec832023ab706c978ccc006509d2796ff
|
4
|
+
data.tar.gz: 13399289c80e169fb230dedbdb15fc7250a491a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae786997482e3be5e536f3657e3335936a82ffc12bd775db4356f926608ced717ae6eceb7f5751d430dff6c41e0850eed69af91e28ab1eb4288caad5d3af9b0b
|
7
|
+
data.tar.gz: f0e6a0565fea804e9c3c36a9f367f60ef467eb0a4b6288be24abfadbb6a6dd45ea284fbd2f76dc7ea54188b23b79703749b7b9d3eb6da7a3acc9be1ad39785ba
|
data/lib/bucket_cake.rb
CHANGED
@@ -23,6 +23,7 @@ module Cakeproto
|
|
23
23
|
class HistorizedMoney < ::Protobuf::Message; end
|
24
24
|
class EventOverride < ::Protobuf::Message; end
|
25
25
|
class Upsell < ::Protobuf::Message; end
|
26
|
+
class ExchangeRate < ::Protobuf::Message; end
|
26
27
|
|
27
28
|
|
28
29
|
##
|
@@ -141,5 +142,13 @@ module Cakeproto
|
|
141
142
|
optional :bool, :prepop_link, 6
|
142
143
|
end
|
143
144
|
|
145
|
+
class ExchangeRate
|
146
|
+
optional ::Cakeproto::Currency, :base_currency, 1
|
147
|
+
optional ::Cakeproto::Currency, :quote_currency, 2
|
148
|
+
optional ::Cakeproto::TimeWithZone, :start_date, 3
|
149
|
+
optional ::Cakeproto::TimeWithZone, :end_date, 4
|
150
|
+
optional :double, :rate, 5
|
151
|
+
end
|
152
|
+
|
144
153
|
end
|
145
154
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module BucketCake
|
2
|
+
class Values
|
3
|
+
def affiliate_tiers
|
4
|
+
Stream.new('affiliate_tiers', Cakeproto::IdName).get
|
5
|
+
end
|
6
|
+
|
7
|
+
def blacklist_reasons
|
8
|
+
Stream.new('blacklist_reasons', Cakeproto::IdName).get
|
9
|
+
end
|
10
|
+
|
11
|
+
def countries
|
12
|
+
Stream.new('countries', Cakeproto::Country).get
|
13
|
+
end
|
14
|
+
|
15
|
+
def currencies
|
16
|
+
Stream.new('currencies', Cakeproto::Currency).get
|
17
|
+
end
|
18
|
+
|
19
|
+
def exchange_rates
|
20
|
+
Stream.new('exchange_rates', Cakeproto::ExchangeRate).get
|
21
|
+
end
|
22
|
+
|
23
|
+
def media_types
|
24
|
+
Stream.new('media_types', Cakeproto::IdName).get
|
25
|
+
end
|
26
|
+
|
27
|
+
def payment_types
|
28
|
+
Stream.new('payment_types', Cakeproto::IdName).get
|
29
|
+
end
|
30
|
+
|
31
|
+
def verticals
|
32
|
+
Stream.new('verticals', Cakeproto::IdName).get
|
33
|
+
end
|
34
|
+
end
|
35
|
+
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: 0.
|
4
|
+
version: 0.2.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: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -181,6 +181,7 @@ files:
|
|
181
181
|
- lib/bucket_cake/proto/offers.pb.rb
|
182
182
|
- lib/bucket_cake/proto_ext/time_with_zone.rb
|
183
183
|
- lib/bucket_cake/stream.rb
|
184
|
+
- lib/bucket_cake/values.rb
|
184
185
|
- lib/bucket_cake/version.rb
|
185
186
|
homepage: https://github.com/ad2games/bucket_cake
|
186
187
|
licenses:
|