c80_shared 0.1.44 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dd2465d133518a604b901bf6964c11b81c11354df473441261ecaef163d01d3
4
- data.tar.gz: 6b701995e133346953f8a2c005dd9c02222ddcc7c3ebd3916459a37c96da0333
3
+ metadata.gz: 7ad9a159f8c0b7d2237ab0ef5fd44ef9a7203b0bb157a55ec69f298ab8299b80
4
+ data.tar.gz: 53c0ca6c68b0fa10438daa3fd7b8b27f390bd04ab23d374aaec1aec7d5c488cd
5
5
  SHA512:
6
- metadata.gz: 33ca148eac5178f72b6b2546e7ace92d6e94038da06b3f238162b2fda034bf4adcf708b8d6405772a231ffac5836caf81829e7430c2eb7d783ae710236973318
7
- data.tar.gz: f0f6e99d2e70fec44b3c4ad6d42ed202e81d2e1b4a5a73b515b3c7118fda23d5f07f7e48475bd5cdb34e564fc70fcacb81e1bac81d7b7f6c68bc1144d6b15df5
6
+ metadata.gz: 0f596f69857088c26b03b68c524a13da7f3a0c7d3a8993edc3eb25f3beda3b8bbfeff344b2d0f6a860833f67fd286dce8347b0bd3e45afdecd5fc5813155fb0b
7
+ data.tar.gz: d6baa615f889442ef87c02ed14f4bfee186bb5e196ccecb0c9337cc9a4dd1b60753397daeadc03ab6620cab90f84bf250a40731a48cb38f2a50e5a7d4304af15
@@ -8,5 +8,16 @@ module Dicts
8
8
  CATAMARAN = new(12, 'catamaran')
9
9
  MEGA_YACHT = new(13, 'mega_yacht')
10
10
  EXPLORER = new(17, 'explorer')
11
+
12
+ ALL = [
13
+ BOAT_30FT,
14
+ PARTY_BOAT,
15
+ YACHT,
16
+ FISHING_BOAT,
17
+ SAILING,
18
+ CATAMARAN,
19
+ MEGA_YACHT,
20
+ EXPLORER
21
+ ]
11
22
  end
12
23
  end
@@ -0,0 +1,16 @@
1
+ module Dicts
2
+ class CharterCategory < ::Dict
3
+ attr_reader :slug
4
+
5
+ def initialize(id, index, slug)
6
+ @slug = slug
7
+ super id, index
8
+ end
9
+
10
+ DAY_TRIPS = new 1, 'day_trips', 'day-trips'
11
+ DESTINATIONS = new 2, 'destinations', 'destinations'
12
+ SPECIAL_DEALS = new 6, 'special_deals', 'special-deals'
13
+
14
+ ALL = [SPECIAL_DEALS, DAY_TRIPS, DESTINATIONS]
15
+ end
16
+ end
data/app/dicts/locale.rb CHANGED
@@ -2,5 +2,17 @@ module Dicts
2
2
  class Locale < ::Dict
3
3
  RU = new(1, 'ru')
4
4
  EN = new(2, 'en')
5
+ EL = new(3, 'el')
6
+ ES = new(4, 'es')
7
+ IT = new(5, 'it')
8
+ CS = new(6, 'cs')
9
+ FR = new(7, 'fr')
10
+
11
+ USED = [RU, EN, EL, IT, ES, CS, FR].freeze # эти локали допустимы на сайте
12
+ HAND = [RU, EN].freeze # то, что заполняется вручную
13
+
14
+ DEST = EN # из этой локали переводим во все остальные
15
+ TRANS = USED - HAND # в эти локали переводим
16
+
5
17
  end
6
18
  end
@@ -0,0 +1,6 @@
1
+ en:
2
+ dicts:
3
+ charter_category:
4
+ day_trips: Day trips
5
+ destinations: Destinations
6
+ special_deals: Special deals
@@ -0,0 +1,6 @@
1
+ ru:
2
+ dicts:
3
+ charter_category:
4
+ day_trips: Услуги
5
+ destinations: Направления
6
+ special_deals: Специальные предложения
@@ -1,3 +1,3 @@
1
1
  module C80Shared
2
- VERSION = "0.1.44"
2
+ VERSION = "0.1.45"
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.44
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - C80609A
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-11 00:00:00.000000000 Z
11
+ date: 2019-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,7 @@ files:
52
52
  - app/dicts/account_type.rb
53
53
  - app/dicts/boat_type.rb
54
54
  - app/dicts/business.rb
55
+ - app/dicts/charter_category.rb
55
56
  - app/dicts/charter_season.rb
56
57
  - app/dicts/charter_uom.rb
57
58
  - app/dicts/currency.rb
@@ -94,6 +95,8 @@ files:
94
95
  - config/locales/boat/ru.yml
95
96
  - config/locales/dicts/account_type/en.yml
96
97
  - config/locales/dicts/account_type/ru.yml
98
+ - config/locales/dicts/charter_category/en.yml
99
+ - config/locales/dicts/charter_category/ru.yml
97
100
  - config/locales/dicts/exterior_color/en.yml
98
101
  - config/locales/dicts/exterior_color/ru.yml
99
102
  - config/locales/dicts/hull_material/en.yml