c80_shared 0.1.76 → 0.1.77

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
  SHA256:
3
- metadata.gz: e311a9f49c938b6bf11b840fa071f7d5c00ed81389ca5049eaeb9fc700f578e2
4
- data.tar.gz: 62d8897cafb57b53d2f5a72fdbdba605abc96ba6977e205a2e9104537fb68541
3
+ metadata.gz: b6007026b4a59acfbb0e492305b17c17c1cefe6806cb78a819629bc0d42c103e
4
+ data.tar.gz: ab66cc90c98a146ca90088d84da857694c67f2289675923fd84dbb8a10997649
5
5
  SHA512:
6
- metadata.gz: 0acef74dcaf9f36a692b3ecdd89ec1a1e4f836bc2ff05a857b57967c806dae664636c3ed4542a21de00e7433bb7a7d66c7911ae7f2d9e34040d86b9315fc12ac
7
- data.tar.gz: d360eeb2a00d7fdcadee44d2f5f1b8bba1558202f8d8e7e1e7084dabeae595852ac524ad1887b6a38554d83d12b3b2a6ad4cf83e17e2e2584daac777134fc35c
6
+ metadata.gz: 9e4ff3045e9e89dd6b351774afe69ef823e6506b39f07a93c949106ca0395e6915b505827fb8277fb3013adba686a440dcf9b55203f1d6b1e03ae654bda7c83e
7
+ data.tar.gz: 28b2b30e026263f1e5de8074e96f7177dc9193032559c2bbf06a6bb4e61b345dba9c3f866c3276dafb22301af0b9fc74d25b09821c5fa9c830055a37641b846d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- c80_shared (0.1.75)
4
+ c80_shared (0.1.76)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -45,13 +45,25 @@ module Lease
45
45
  end
46
46
 
47
47
  def boat(bid)
48
- boat = bid.boat
48
+ boat = bid.boat
49
+ boat_serialized = BoatSerializer.serialize boat, attributes: %i[
50
+ name
51
+ boat_length
52
+ guests_total
53
+ guest_cabins
54
+ crew_total
55
+ boat_stars
56
+ builder
57
+ built_year
58
+ boat_beam_metrics
59
+ ]
60
+ boat_serialized[:boat_length][:value] = boat_serialized[:boat_length][:value].to_i
49
61
  {
50
62
  boat: {
51
- id: boat.id,
52
- img_url: (boat.boat_photo.picture.url(:thumb) if boat.boat_photo.present?),
53
- name: boat.name,
54
- type: (boat.boat_type.name rescue nil)
63
+ img_url: (boat.boat_photo.picture.url(:thumb) if boat.boat_photo.present?),
64
+ gallery_img_url: (boat.boat_photo.picture.url(:gallery) if boat.boat_photo.present?),
65
+ type: (boat.boat_type.name rescue nil),
66
+ **boat_serialized
55
67
  }
56
68
  }
57
69
  end
@@ -1,3 +1,3 @@
1
1
  module C80Shared
2
- VERSION = "0.1.76"
2
+ VERSION = "0.1.77"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c80_shared
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.76
4
+ version: 0.1.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - C80609A
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-01 00:00:00.000000000 Z
11
+ date: 2020-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler