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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de2886771d43c86f9e539738f95fec5bf37ed239
4
- data.tar.gz: dc3e50cd910f84b6a39e59bbd5b3aaf17ec425db
3
+ metadata.gz: 9f110ceec832023ab706c978ccc006509d2796ff
4
+ data.tar.gz: 13399289c80e169fb230dedbdb15fc7250a491a1
5
5
  SHA512:
6
- metadata.gz: a8fe17eebe51bad3c9a9542af52d2ddd70ac298326fc3899ada6da09f385f239c6ffe8a2ca86a80e0d224df3054ec50f37eba75ce5c8004c72236d783524de42
7
- data.tar.gz: 58024f0c828e296c9021f415e603d4043f6fec89e437d9f47ea00901f7cd6ff9819762b3eb161364e86b5679f7c5c37a91952ad22abc42e898c3be9a88f35770
6
+ metadata.gz: ae786997482e3be5e536f3657e3335936a82ffc12bd775db4356f926608ced717ae6eceb7f5751d430dff6c41e0850eed69af91e28ab1eb4288caad5d3af9b0b
7
+ data.tar.gz: f0e6a0565fea804e9c3c36a9f367f60ef467eb0a4b6288be24abfadbb6a6dd45ea284fbd2f76dc7ea54188b23b79703749b7b9d3eb6da7a3acc9be1ad39785ba
data/lib/bucket_cake.rb CHANGED
@@ -16,5 +16,6 @@ require 'bucket_cake/proto/offers.pb'
16
16
  require 'bucket_cake/proto_ext/time_with_zone'
17
17
 
18
18
  require 'bucket_cake/entities'
19
+ require 'bucket_cake/values'
19
20
 
20
21
  Protobuf.ignore_unknown_fields = false
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BucketCake
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
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.1.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-26 00:00:00.000000000 Z
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: