seatsio 26.0.0 → 26.1.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seatsio/domain.rb +9 -7
- data/lib/seatsio/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 88ee98c7b310f64dc09c357d9f52d18d0438751b35db4c121228a76503b71c3e
         | 
| 4 | 
            +
              data.tar.gz: 90211a4df7b4ee70999ef223d07179b5618c99704c94b299c64e174788371be0
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2365ccc24f348c702c3c6fd5605af42db1f22e7d9b4ffbbd179b83f2fe673998f1745cff5a7536f95f7d064150c2c00fbfab9e253b116230744c21f0a5dfa571
         | 
| 7 | 
            +
              data.tar.gz: 7d9ae6eeae803f450055262b02cfaaa839d4048a793b0eb72c912558887b708f054b2a047ef10ebe3d9efa022126db464ef1c50227843fd66a26647f900eba9d
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/lib/seatsio/domain.rb
    CHANGED
    
    | @@ -24,7 +24,7 @@ module Seatsio::Domain | |
| 24 24 | 
             
                  @social_distancing_rulesets = data['socialDistancingRulesets'].map {
         | 
| 25 25 | 
             
                      |key, r| [key, SocialDistancingRuleset.new(r['name'], r['numberOfDisabledSeatsToTheSides'], r['disableSeatsInFrontAndBehind'],
         | 
| 26 26 | 
             
                                                                 r['numberOfDisabledAisleSeats'], r['maxGroupSize'],
         | 
| 27 | 
            -
                                                                 r['maxOccupancyAbsolute'], r['maxOccupancyPercentage'], r['fixedGroupLayout'],
         | 
| 27 | 
            +
                                                                 r['maxOccupancyAbsolute'], r['maxOccupancyPercentage'], r['oneGroupPerTable'], r['fixedGroupLayout'],
         | 
| 28 28 | 
             
                                                                 r['disabledSeats'], r['enabledSeats'], r['index'])]
         | 
| 29 29 | 
             
                  }.to_h
         | 
| 30 30 | 
             
                end
         | 
| @@ -476,11 +476,11 @@ module Seatsio::Domain | |
| 476 476 | 
             
              class SocialDistancingRuleset
         | 
| 477 477 | 
             
                attr_reader :name, :number_of_disabled_seats_to_the_sides, :disable_seats_in_front_and_behind,
         | 
| 478 478 | 
             
                            :number_of_disabled_aisle_seats, :max_group_size, :max_occupancy_absolute,
         | 
| 479 | 
            -
                            :max_occupancy_percentage, :fixed_group_layout, :disabled_seats, :enabled_seats, :index
         | 
| 479 | 
            +
                            :max_occupancy_percentage, :one_group_per_table, :fixed_group_layout, :disabled_seats, :enabled_seats, :index
         | 
| 480 480 |  | 
| 481 481 | 
             
                def initialize(name, number_of_disabled_seats_to_the_sides = 0, disable_seats_in_front_and_behind = false, number_of_disabled_aisle_seats = 0,
         | 
| 482 | 
            -
                               max_group_size = 0, max_occupancy_absolute = 0, max_occupancy_percentage = 0,  | 
| 483 | 
            -
                               disabled_seats = [], enabled_seats = [], index = 0)
         | 
| 482 | 
            +
                               max_group_size = 0, max_occupancy_absolute = 0, max_occupancy_percentage = 0, one_group_per_table = false,
         | 
| 483 | 
            +
                               fixed_group_layout = false, disabled_seats = [], enabled_seats = [], index = 0)
         | 
| 484 484 | 
             
                  @name = name
         | 
| 485 485 | 
             
                  @number_of_disabled_seats_to_the_sides = number_of_disabled_seats_to_the_sides
         | 
| 486 486 | 
             
                  @disable_seats_in_front_and_behind = disable_seats_in_front_and_behind
         | 
| @@ -488,6 +488,7 @@ module Seatsio::Domain | |
| 488 488 | 
             
                  @max_group_size = max_group_size
         | 
| 489 489 | 
             
                  @max_occupancy_absolute = max_occupancy_absolute
         | 
| 490 490 | 
             
                  @max_occupancy_percentage = max_occupancy_percentage
         | 
| 491 | 
            +
                  @one_group_per_table = one_group_per_table
         | 
| 491 492 | 
             
                  @fixed_group_layout = fixed_group_layout
         | 
| 492 493 | 
             
                  @disabled_seats = disabled_seats
         | 
| 493 494 | 
             
                  @enabled_seats = enabled_seats
         | 
| @@ -495,15 +496,15 @@ module Seatsio::Domain | |
| 495 496 | 
             
                end
         | 
| 496 497 |  | 
| 497 498 | 
             
                def self.fixed(name, disabled_seats = [], index = 0)
         | 
| 498 | 
            -
                  SocialDistancingRuleset.new(name, 0, false, 0, 0, 0, 0, true, disabled_seats, [], index)
         | 
| 499 | 
            +
                  SocialDistancingRuleset.new(name, 0, false, 0, 0, 0, 0, false, true, disabled_seats, [], index)
         | 
| 499 500 | 
             
                end
         | 
| 500 501 |  | 
| 501 502 | 
             
                def self.rule_based(name, number_of_disabled_seats_to_the_sides = 0, disable_seats_in_front_and_behind = false, number_of_disabled_aisle_seats = 0,
         | 
| 502 | 
            -
                                    max_group_size = 0, max_occupancy_absolute = 0, max_occupancy_percentage = 0,
         | 
| 503 | 
            +
                                    max_group_size = 0, max_occupancy_absolute = 0, max_occupancy_percentage = 0, one_group_per_table = false,
         | 
| 503 504 | 
             
                                    disabled_seats = [], enabled_seats = [], index = 0)
         | 
| 504 505 | 
             
                  SocialDistancingRuleset.new(name, number_of_disabled_seats_to_the_sides, disable_seats_in_front_and_behind, number_of_disabled_aisle_seats,
         | 
| 505 506 | 
             
                                              max_group_size, max_occupancy_absolute, max_occupancy_percentage,
         | 
| 506 | 
            -
                                              false, disabled_seats, enabled_seats, index)
         | 
| 507 | 
            +
                                              one_group_per_table, false, disabled_seats, enabled_seats, index)
         | 
| 507 508 | 
             
                end
         | 
| 508 509 |  | 
| 509 510 | 
             
                def == (other)
         | 
| @@ -514,6 +515,7 @@ module Seatsio::Domain | |
| 514 515 | 
             
                      self.max_group_size == other.max_group_size &&
         | 
| 515 516 | 
             
                      self.max_occupancy_absolute == other.max_occupancy_absolute &&
         | 
| 516 517 | 
             
                      self.max_occupancy_percentage == other.max_occupancy_percentage &&
         | 
| 518 | 
            +
                      self.one_group_per_table == other.one_group_per_table &&
         | 
| 517 519 | 
             
                      self.fixed_group_layout == other.fixed_group_layout &&
         | 
| 518 520 | 
             
                      self.disabled_seats == other.disabled_seats &&
         | 
| 519 521 | 
             
                      self.enabled_seats == other.enabled_seats &&
         | 
    
        data/lib/seatsio/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: seatsio
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 26. | 
| 4 | 
            +
              version: 26.1.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Seats.io
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020-10- | 
| 11 | 
            +
            date: 2020-10-19 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         |