bucket_cake 3.1.0 → 4.0.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: b6218b2fa3893f182b7496439e44f8949bf7aee7
4
- data.tar.gz: f95f2be1fb21ec64e39a9339f05f5df3a396ec0b
3
+ metadata.gz: 22f025faf42512d5898c9e5937c839072bd92bd5
4
+ data.tar.gz: 7f22328a60b9880adf55053dc8d88c9d2445128c
5
5
  SHA512:
6
- metadata.gz: c5e792fdfaff1ba571d1a2281b33b956ddc371d70e48f2e8c90ff3071ae1c3ccbeb64ec2688e36d35a05de20c5097907701e4ec596f05b4f3a58ce1dc6809942
7
- data.tar.gz: 09ca866b49a3dc26741e612fa4b124f6d35e3c3b2f93c0af29eb9a9a9c79fbcf74a5ecd144ac048c2d49d05773f56d57c79bec7a4686f8b068224f15e18e01da
6
+ metadata.gz: 001b1b56fa08f99116250c2a0b102c9cd5a83973a3d4fd28a1647b85eb76962edd0b0cebc675901e223fd7bb2942e370eee66f5d979f57f908536449a3e507e8
7
+ data.tar.gz: f0952ab6ae93dfa002d4ec0d3e08908d98358241b14a4adbf05aa90c1374cc6b0c8d0bb42af9959215c315d9da5f44efb7510cd1f8d557d1b97685d594a57189
data/lib/bucket_cake.rb CHANGED
@@ -21,6 +21,7 @@ require 'bucket_cake/proto/conversion_changes.pb'
21
21
  require 'bucket_cake/proto/cap_states.pb'
22
22
 
23
23
  require 'bucket_cake/proto_ext/time_with_zone'
24
+ require 'bucket_cake/proto_ext/maybe_int'
24
25
 
25
26
  require 'bucket_cake/entities'
26
27
  require 'bucket_cake/values'
@@ -33,7 +33,8 @@ module Cakeproto
33
33
  optional ::Cakeproto::TimeWithZone, :start_date, 10
34
34
  optional ::Cakeproto::TimeWithZone, :end_date, 11
35
35
  optional :int64, :current, 12
36
- optional :int64, :limit, 13
36
+ optional ::Cakeproto::MaybeInt, :limit, 14
37
+ optional :int64, :limit_DEPRECATED, 13
37
38
  end
38
39
 
39
40
  end
@@ -27,6 +27,7 @@ module Cakeproto
27
27
  class Upsell < ::Protobuf::Message; end
28
28
  class ExchangeRate < ::Protobuf::Message; end
29
29
  class Disposition < ::Protobuf::Message; end
30
+ class MaybeInt < ::Protobuf::Message; end
30
31
 
31
32
 
32
33
  ##
@@ -172,5 +173,10 @@ module Cakeproto
172
173
  optional ::Cakeproto::TimeWithZone, :disposition_date, 5
173
174
  end
174
175
 
176
+ class MaybeInt
177
+ optional :int64, :value, 1
178
+ optional :bool, :has_value, 2
179
+ end
180
+
175
181
  end
176
182
 
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ module Cakeproto
3
+ class MaybeInt
4
+ def value_if_present
5
+ value if has_value?
6
+ end
7
+ end
8
+ end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module BucketCake
3
- VERSION = '3.1.0'
3
+ VERSION = '4.0.0'
4
4
  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: 3.1.0
4
+ version: 4.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-08-23 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -172,6 +172,7 @@ files:
172
172
  - lib/bucket_cake/proto/conversions.pb.rb
173
173
  - lib/bucket_cake/proto/creatives.pb.rb
174
174
  - lib/bucket_cake/proto/offers.pb.rb
175
+ - lib/bucket_cake/proto_ext/maybe_int.rb
175
176
  - lib/bucket_cake/proto_ext/time_with_zone.rb
176
177
  - lib/bucket_cake/source.rb
177
178
  - lib/bucket_cake/values.rb