bookingsync_portal 0.8.5 → 3.0.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 +5 -5
 - data/README.md +2 -2
 - data/app/assets/config/manifest.js +3 -0
 - data/app/assets/javascripts/bookingsync_portal/admin/application.js.coffee +2 -3
 - data/app/assets/javascripts/bookingsync_portal/admin/lib/list-filter.js.coffee +4 -4
 - data/app/assets/stylesheets/bookingsync_portal/admin/{application.css.scss → application.scss} +4 -1
 - data/app/controllers/bookingsync_portal/admin/base_controller.rb +2 -2
 - data/app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb +1 -1
 - data/app/controllers/bookingsync_portal/admin/rentals_controller.rb +1 -1
 - data/app/helpers/bookingsync_portal/admin/application_helper.rb +1 -1
 - data/app/models/bookingsync_portal/account.rb +1 -1
 - data/app/models/bookingsync_portal/connection.rb +2 -3
 - data/app/synchronizers/bookingsync_portal/write/source.rb +1 -1
 - data/app/views/bookingsync_portal/admin/help/index.html.erb +1 -1
 - data/app/views/bookingsync_portal/admin/rentals/_connected_rental.html.erb +1 -1
 - data/app/views/bookingsync_portal/admin/rentals/_remote_rental.html.erb +1 -2
 - data/app/views/bookingsync_portal/admin/rentals/index.html.erb +4 -3
 - data/app/views/bookingsync_portal/admin/rentals/show.js.erb +1 -1
 - data/app/views/layouts/bookingsync_portal/_menu.html.erb +1 -1
 - data/config/locales/en.yml +2 -2
 - data/db/migrate/20150222172825_create_accounts.rb +1 -1
 - data/db/migrate/20150222173413_create_rentals.rb +1 -1
 - data/db/migrate/20150222173711_create_remote_accounts.rb +1 -1
 - data/db/migrate/20150222174023_create_remote_rentals.rb +1 -1
 - data/db/migrate/20150222174234_create_connections.rb +1 -1
 - data/db/migrate/20150520134912_create_photos.rb +1 -1
 - data/db/migrate/20150521091056_create_rates.rb +1 -1
 - data/db/migrate/20151210164752_add_synced_source_id_to_account.rb +1 -1
 - data/db/migrate/20160301141356_create_bookings.rb +9 -0
 - data/lib/bookingsync_portal.rb +0 -11
 - data/lib/bookingsync_portal/booking_map.rb +1 -1
 - data/lib/bookingsync_portal/engine.rb +9 -0
 - data/lib/bookingsync_portal/version.rb +1 -1
 - data/lib/generators/templates/models/rental.rb +6 -1
 - metadata +122 -31
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6d421d75ad1576b846c1193f95a99cbdccfc69c3a2e425ce277f9b0f1ee5da96
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: ca119adacdf8c98acb2e307ecb220b74741a3a066ba46531f764b686976f9ae8
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e943963710bb782ba8bf3f970115a07298de7cd98c5b1bdbd3d59705dc829070ad00f2499584fb33a8b2a1a423a36e554799d6072727d4a6b68671e2901a676a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ab637cea334141163a8672ccf1c4d7c6936f8e402babedf5ca52ce5675d7c400e2fab9273662e5726a8fabc502aec963e520412bb58b07e1417fd81953fea539
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -7,7 +7,7 @@ A Rails engine to simplify building BookingSync Portal Applications. 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            ## Requirements
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
            This engine requires Rails `>=  
     | 
| 
      
 10 
     | 
    
         
            +
            This engine requires Rails `>= 5.2.0` and Ruby `>= 2.5.0`.
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            ## Documentation
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
         @@ -15,7 +15,7 @@ This engine requires Rails `>= 4.0.0` and Ruby `>= 2.1.0`. 
     | 
|
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
            ## Installation
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            BookingSync Portal works with Rails  
     | 
| 
      
 18 
     | 
    
         
            +
            BookingSync Portal works with Rails 5.2 onwards and Ruby 2.5 onwards. To get started, add it to your Gemfile with:
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
20 
     | 
    
         
             
            ```ruby
         
     | 
| 
       21 
21 
     | 
    
         
             
            gem 'bookingsync_portal'
         
     | 
| 
         @@ -12,8 +12,8 @@ 
     | 
|
| 
       12 
12 
     | 
    
         
             
            #
         
     | 
| 
       13 
13 
     | 
    
         
             
            #= require jquery
         
     | 
| 
       14 
14 
     | 
    
         
             
            #= require jquery_ujs
         
     | 
| 
       15 
     | 
    
         
            -
            #= require jquery-ui/draggable
         
     | 
| 
       16 
     | 
    
         
            -
            #= require jquery-ui/droppable
         
     | 
| 
      
 15 
     | 
    
         
            +
            #= require jquery-ui/widgets/draggable
         
     | 
| 
      
 16 
     | 
    
         
            +
            #= require jquery-ui/widgets/droppable
         
     | 
| 
       17 
17 
     | 
    
         
             
            #= require handlebars.runtime
         
     | 
| 
       18 
18 
     | 
    
         
             
            #= require message-bus
         
     | 
| 
       19 
19 
     | 
    
         
             
            #= require bootstrap/alert
         
     | 
| 
         @@ -58,7 +58,6 @@ $.fn.extend 
     | 
|
| 
       58 
58 
     | 
    
         
             
                    rentalId = extractIdFromDomId($(ui.draggable).attr("id"))
         
     | 
| 
       59 
59 
     | 
    
         
             
                    remoteRentalId = extractIdFromDomId(remoteRentalDropZone.attr("id"))
         
     | 
| 
       60 
60 
     | 
    
         
             
                    remoteAccountId = remoteRentalDropZone.data("remote-account-id")
         
     | 
| 
       61 
     | 
    
         
            -
                    remoteRentalUid = remoteRentalDropZone.data("uid")
         
     | 
| 
       62 
61 
     | 
    
         | 
| 
       63 
62 
     | 
    
         
             
                    if remoteRentalId
         
     | 
| 
       64 
63 
     | 
    
         
             
                      postData = { "rental_id": rentalId, "remote_rental_id": remoteRentalId }
         
     | 
| 
         @@ -14,15 +14,15 @@ class @ListFilter 
     | 
|
| 
       14 
14 
     | 
    
         
             
              observeInputChanges: ->
         
     | 
| 
       15 
15 
     | 
    
         
             
                @input.change( =>
         
     | 
| 
       16 
16 
     | 
    
         
             
                  filter = $(event.target).val()
         
     | 
| 
       17 
     | 
    
         
            -
                  @ 
     | 
| 
       18 
     | 
    
         
            -
                  @ 
     | 
| 
      
 17 
     | 
    
         
            +
                  @hideElements @listFilterable + ":not(:Contains(" + filter + "))"
         
     | 
| 
      
 18 
     | 
    
         
            +
                  @showElements @listFilterable + ":Contains(" + filter + ")"
         
     | 
| 
       19 
19 
     | 
    
         
             
                  false
         
     | 
| 
       20 
20 
     | 
    
         
             
                ).keyup =>
         
     | 
| 
       21 
21 
     | 
    
         
             
                  # fire the above change event after every letter
         
     | 
| 
       22 
22 
     | 
    
         
             
                  @input.change()
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
              showElements: (elements) ->
         
     | 
| 
       25 
     | 
    
         
            -
                @list.find(elements).parents(@listElement). 
     | 
| 
      
 25 
     | 
    
         
            +
                @list.find(elements).parents(@listElement).show()
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
              hideElements: (elements) ->
         
     | 
| 
       28 
     | 
    
         
            -
                @list.find(elements).parents(@listElement). 
     | 
| 
      
 28 
     | 
    
         
            +
                @list.find(elements).parents(@listElement).hide()
         
     | 
    
        data/app/assets/stylesheets/bookingsync_portal/admin/{application.css.scss → application.scss}
    RENAMED
    
    | 
         @@ -14,7 +14,6 @@ body.fullscreen { 
     | 
|
| 
       14 
14 
     | 
    
         
             
            }
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
            body > .footer {
         
     | 
| 
       17 
     | 
    
         
            -
              padding-bottom: 20px;
         
     | 
| 
       18 
17 
     | 
    
         
             
              clear: both;
         
     | 
| 
       19 
18 
     | 
    
         
             
            }
         
     | 
| 
       20 
19 
     | 
    
         | 
| 
         @@ -199,6 +198,10 @@ body > .footer { 
     | 
|
| 
       199 
198 
     | 
    
         
             
                right: 3px;
         
     | 
| 
       200 
199 
     | 
    
         
             
                top: 8px;
         
     | 
| 
       201 
200 
     | 
    
         | 
| 
      
 201 
     | 
    
         
            +
                .btn-xs {
         
     | 
| 
      
 202 
     | 
    
         
            +
                  border-radius: 11px;
         
     | 
| 
      
 203 
     | 
    
         
            +
                }
         
     | 
| 
      
 204 
     | 
    
         
            +
             
     | 
| 
       202 
205 
     | 
    
         
             
                .remove-connection {
         
     | 
| 
       203 
206 
     | 
    
         
             
                  .hover_show {
         
     | 
| 
       204 
207 
     | 
    
         
             
                    display: none;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'bookingsync_application/ 
     | 
| 
      
 1 
     | 
    
         
            +
            require 'bookingsync_application/controllers/common_base'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module BookingsyncPortal
         
     | 
| 
       4 
4 
     | 
    
         
             
              module Admin
         
     | 
| 
         @@ -6,7 +6,7 @@ module BookingsyncPortal 
     | 
|
| 
       6 
6 
     | 
    
         
             
                  helper BookingsyncPortal::Admin::ApplicationHelper
         
     | 
| 
       7 
7 
     | 
    
         
             
                  layout 'bookingsync_portal/admin'
         
     | 
| 
       8 
8 
     | 
    
         
             
                  respond_to :html
         
     | 
| 
       9 
     | 
    
         
            -
                  include BookingsyncApplication:: 
     | 
| 
      
 9 
     | 
    
         
            +
                  include BookingsyncApplication::Controllers::CommonBase
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
                  before_action :enforce_remote_account!
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -10,7 +10,7 @@ module BookingsyncPortal 
     | 
|
| 
       10 
10 
     | 
    
         
             
                  def create
         
     | 
| 
       11 
11 
     | 
    
         
             
                    BookingsyncPortal::Write::EnsureSourceExists.new(current_account).call
         
     | 
| 
       12 
12 
     | 
    
         
             
                    @remote_account = scope.create(params_remote_account)
         
     | 
| 
       13 
     | 
    
         
            -
                    respond_with @remote_account, location:  
     | 
| 
      
 13 
     | 
    
         
            +
                    respond_with @remote_account, location: admin_rentals_path
         
     | 
| 
       14 
14 
     | 
    
         
             
                  end
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
                  private
         
     | 
| 
         @@ -9,7 +9,7 @@ module BookingsyncPortal 
     | 
|
| 
       9 
9 
     | 
    
         
             
                    @visible_rentals = current_account.rentals.visible
         
     | 
| 
       10 
10 
     | 
    
         
             
                    @remote_accounts = current_account.remote_accounts
         
     | 
| 
       11 
11 
     | 
    
         
             
                    @remote_rentals_by_account = current_account.remote_rentals.ordered
         
     | 
| 
       12 
     | 
    
         
            -
                      .includes(:remote_account).group_by(&:remote_account)
         
     | 
| 
      
 12 
     | 
    
         
            +
                      .includes(:remote_account, :rental).group_by(&:remote_account)
         
     | 
| 
       13 
13 
     | 
    
         
             
                  end
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
                  def show
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            class BookingsyncPortal::Account < ActiveRecord::Base
         
     | 
| 
       2 
2 
     | 
    
         
             
              self.table_name = 'accounts'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
              include BookingSync::Engine:: 
     | 
| 
      
 4 
     | 
    
         
            +
              include BookingSync::Engine::Models::Account
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
              has_many :remote_accounts, class_name: BookingsyncPortal.remote_account_model, dependent: :destroy
         
     | 
| 
       7 
7 
     | 
    
         
             
              has_many :remote_rentals, class_name: BookingsyncPortal.remote_rental_model, through: :remote_accounts
         
     | 
| 
         @@ -9,12 +9,11 @@ class BookingsyncPortal::Connection < ActiveRecord::Base 
     | 
|
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
              validate :matching_accounts, if: -> { rental && remote_rental }
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
               
     | 
| 
       13 
     | 
    
         
            -
              after_destroy :notify_via_message_bus
         
     | 
| 
      
 12 
     | 
    
         
            +
              after_commit :notify_via_message_bus
         
     | 
| 
       14 
13 
     | 
    
         | 
| 
       15 
14 
     | 
    
         
             
              def notify_via_message_bus
         
     | 
| 
       16 
15 
     | 
    
         
             
                MessageBus.publish "/account-#{rental.account_id}", { refresh_from:
         
     | 
| 
       17 
     | 
    
         
            -
                  BookingsyncPortal:: 
     | 
| 
      
 16 
     | 
    
         
            +
                  BookingsyncPortal::Engine.routes.url_helpers.admin_rental_path(rental, format: :js)
         
     | 
| 
       18 
17 
     | 
    
         
             
                }
         
     | 
| 
       19 
18 
     | 
    
         
             
              end
         
     | 
| 
       20 
19 
     | 
    
         | 
| 
         @@ -21,7 +21,7 @@ class BookingsyncPortal::Write::Source 
     | 
|
| 
       21 
21 
     | 
    
         
             
              end
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
              def find_source
         
     | 
| 
       24 
     | 
    
         
            -
                api.sources.find { | 
     | 
| 
      
 24 
     | 
    
         
            +
                api.sources.find { |source| source.name.downcase == BookingsyncPortal.source_name.downcase }
         
     | 
| 
       25 
25 
     | 
    
         
             
              end
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
              def create_source
         
     | 
| 
         @@ -13,7 +13,7 @@ 
     | 
|
| 
       13 
13 
     | 
    
         
             
                      <small><%= remote_rental.display_name %></small>
         
     | 
| 
       14 
14 
     | 
    
         
             
                  </h4>
         
     | 
| 
       15 
15 
     | 
    
         
             
                  <div class="status">
         
     | 
| 
       16 
     | 
    
         
            -
                    <%= link_to  
     | 
| 
      
 16 
     | 
    
         
            +
                    <%= link_to BookingsyncPortal::Engine.routes.url_helpers.admin_connection_path(rental.connection),
         
     | 
| 
       17 
17 
     | 
    
         
             
                      class: ["btn", "btn-xs", "remove-connection", rental.remote_rental.synchronized? ? "btn-success" : "btn-warning"],
         
     | 
| 
       18 
18 
     | 
    
         
             
                      data: { disable_with: t('.disconnecting_rental') }, method: :delete, remote: true do %>
         
     | 
| 
       19 
19 
     | 
    
         
             
                      <% unless rental.remote_rental.synchronized? %>
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <%- content_for :navbar_right do -%>
         
     | 
| 
       2 
2 
     | 
    
         
             
              <ul class="nav navbar-nav">
         
     | 
| 
       3 
     | 
    
         
            -
                <li><%= link_to icon("life-ring", t('.help')),  
     | 
| 
      
 3 
     | 
    
         
            +
                <li><%= link_to icon("life-ring", t('.help')), admin_help_path %></li>
         
     | 
| 
       4 
4 
     | 
    
         
             
              </ul>
         
     | 
| 
       5 
5 
     | 
    
         
             
            <%- end -%>
         
     | 
| 
       6 
6 
     | 
    
         
             
            <div class="rentals-container row">
         
     | 
| 
         @@ -10,13 +10,14 @@ 
     | 
|
| 
       10 
10 
     | 
    
         
             
                    <legend class="text-center"><%= image_tag('bookingsync_portal/bookingsync.png', alt: 'BookingSync') %></legend>
         
     | 
| 
       11 
11 
     | 
    
         
             
                  </div>
         
     | 
| 
       12 
12 
     | 
    
         
             
                  <div class="rentals-list-scroll">
         
     | 
| 
       13 
     | 
    
         
            -
                    <%= render "rentals", visible_rentals: @visible_rentals, 
     | 
| 
      
 13 
     | 
    
         
            +
                    <%= render "rentals", visible_rentals: @visible_rentals,
         
     | 
| 
      
 14 
     | 
    
         
            +
                      not_connected_rentals: @not_connected_rentals %>
         
     | 
| 
       14 
15 
     | 
    
         
             
                  </div>
         
     | 
| 
       15 
16 
     | 
    
         
             
                </div>
         
     | 
| 
       16 
17 
     | 
    
         
             
              </div>
         
     | 
| 
       17 
18 
     | 
    
         
             
              <div class="col-xs-6">
         
     | 
| 
       18 
19 
     | 
    
         
             
                <div class="remote-rentals-list rentals-list"
         
     | 
| 
       19 
     | 
    
         
            -
                  data-connect-url="<%=  
     | 
| 
      
 20 
     | 
    
         
            +
                  data-connect-url="<%= BookingsyncPortal::Engine.routes.url_helpers.admin_connections_path %>">
         
     | 
| 
       20 
21 
     | 
    
         
             
                  <div class="rentals-list-header">
         
     | 
| 
       21 
22 
     | 
    
         
             
                    <legend class="text-center">
         
     | 
| 
       22 
23 
     | 
    
         
             
                      <%= image_tag("#{BookingsyncPortal.portal_name.parameterize}.png",
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            $("#<%= dom_id @rental %>").replaceWith(
         
     | 
| 
       2 
2 
     | 
    
         
             
              <%- if @rental.connected? %>
         
     | 
| 
       3 
3 
     | 
    
         
             
               "<%=j render 'connected_rental', rental: @rental, remote_rental: @rental.remote_rental,
         
     | 
| 
       4 
     | 
    
         
            -
                  disconnect_url:  
     | 
| 
      
 4 
     | 
    
         
            +
                  disconnect_url: BookingsyncPortal::Engine.routes.url_helpers.admin_connection_path(@rental.connection) %>");
         
     | 
| 
       5 
5 
     | 
    
         
             
              <%- else %>
         
     | 
| 
       6 
6 
     | 
    
         
             
               "<%=j render 'rental', rental: @rental %>");
         
     | 
| 
       7 
7 
     | 
    
         
             
              <%- end %>
         
     | 
| 
         @@ -13,7 +13,7 @@ 
     | 
|
| 
       13 
13 
     | 
    
         
             
                    </button>
         
     | 
| 
       14 
14 
     | 
    
         
             
                  <%- end -%>
         
     | 
| 
       15 
15 
     | 
    
         
             
                  <div>
         
     | 
| 
       16 
     | 
    
         
            -
                    <%= link_to icon("globe", BookingsyncPortal.portal_name),  
     | 
| 
      
 16 
     | 
    
         
            +
                    <%= link_to icon("globe", BookingsyncPortal.portal_name), admin_root_path,
         
     | 
| 
       17 
17 
     | 
    
         
             
                      class: "navbar-brand h1",
         
     | 
| 
       18 
18 
     | 
    
         
             
                      data: { toggle: "dropdown" } %>
         
     | 
| 
       19 
19 
     | 
    
         
             
                    </a>
         
     | 
    
        data/config/locales/en.yml
    CHANGED
    
    | 
         @@ -65,8 +65,8 @@ en: 
     | 
|
| 
       65 
65 
     | 
    
         
             
                        other: '<strong>%{count}</strong> People'
         
     | 
| 
       66 
66 
     | 
    
         
             
                      surface_html:
         
     | 
| 
       67 
67 
     | 
    
         
             
                        zero: ''
         
     | 
| 
       68 
     | 
    
         
            -
                        one: '<span>Surface</span> <strong>%{count} 
     | 
| 
       69 
     | 
    
         
            -
                        other: '<span>Surface</span> <strong>%{count} 
     | 
| 
      
 68 
     | 
    
         
            +
                        one: '<span>Surface</span> <strong>%{count}%{unit}</strong>'
         
     | 
| 
      
 69 
     | 
    
         
            +
                        other: '<span>Surface</span> <strong>%{count}%{unit}</strong>'
         
     | 
| 
       70 
70 
     | 
    
         
             
                      no_name: Unnamed rental
         
     | 
| 
       71 
71 
     | 
    
         
             
                    remote_rental:
         
     | 
| 
       72 
72 
     | 
    
         
             
                      no_name: Unnamed remote rental
         
     | 
    
        data/lib/bookingsync_portal.rb
    CHANGED
    
    | 
         @@ -74,15 +74,4 @@ module BookingsyncPortal 
     | 
|
| 
       74 
74 
     | 
    
         
             
                  message_bus_channel_scope
         
     | 
| 
       75 
75 
     | 
    
         
             
                end
         
     | 
| 
       76 
76 
     | 
    
         
             
              end
         
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
              # use this until migrated to ruby 2.3, https://bugs.ruby-lang.org/issues/10871, https://github.com/puma/puma/issues/647
         
     | 
| 
       79 
     | 
    
         
            -
              module Routes
         
     | 
| 
       80 
     | 
    
         
            -
                module UrlHelpers
         
     | 
| 
       81 
     | 
    
         
            -
                  include BookingsyncPortal::Engine.routes.url_helpers
         
     | 
| 
       82 
     | 
    
         
            -
                end
         
     | 
| 
       83 
     | 
    
         
            -
                extend UrlHelpers
         
     | 
| 
       84 
     | 
    
         
            -
                def self.default_url_options
         
     | 
| 
       85 
     | 
    
         
            -
                  {}
         
     | 
| 
       86 
     | 
    
         
            -
                end
         
     | 
| 
       87 
     | 
    
         
            -
              end
         
     | 
| 
       88 
77 
     | 
    
         
             
            end
         
     | 
| 
         @@ -24,7 +24,7 @@ class BookingsyncPortal::BookingMap 
     | 
|
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
                bookings.each do |booking|
         
     | 
| 
       26 
26 
     | 
    
         
             
                  (booking.start_at.to_date...booking.end_at.to_date).each do |day|
         
     | 
| 
       27 
     | 
    
         
            -
                    if day >= from && day  
     | 
| 
      
 27 
     | 
    
         
            +
                    if day >= from && day < to
         
     | 
| 
       28 
28 
     | 
    
         
             
                      days[day] = statuses[booking.status.downcase.to_sym]
         
     | 
| 
       29 
29 
     | 
    
         
             
                    end
         
     | 
| 
       30 
30 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -5,5 +5,14 @@ module BookingsyncPortal 
     | 
|
| 
       5 
5 
     | 
    
         
             
                config.generators do |g|
         
     | 
| 
       6 
6 
     | 
    
         
             
                  g.install :install
         
     | 
| 
       7 
7 
     | 
    
         
             
                end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                if defined?(Sprockets) && Sprockets::VERSION.chr.to_i >= 3
         
     | 
| 
      
 10 
     | 
    
         
            +
                  initializer 'bookingsync_portal.assets.precompile' do |app|
         
     | 
| 
      
 11 
     | 
    
         
            +
                    app.config.assets.precompile += %w(
         
     | 
| 
      
 12 
     | 
    
         
            +
                      bookingsync_portal/help/connect.gif
         
     | 
| 
      
 13 
     | 
    
         
            +
                      bookingsync_portal/bookingsync.png
         
     | 
| 
      
 14 
     | 
    
         
            +
                    )
         
     | 
| 
      
 15 
     | 
    
         
            +
                  end
         
     | 
| 
      
 16 
     | 
    
         
            +
                end
         
     | 
| 
       8 
17 
     | 
    
         
             
              end
         
     | 
| 
       9 
18 
     | 
    
         
             
            end
         
     | 
| 
         @@ -2,5 +2,10 @@ class Rental < BookingsyncPortal::Rental 
     | 
|
| 
       2 
2 
     | 
    
         
             
              synced associations: [:photos, :rates],
         
     | 
| 
       3 
3 
     | 
    
         
             
                local_attributes: [:position, :published_at],
         
     | 
| 
       4 
4 
     | 
    
         
             
                include: [:availability],
         
     | 
| 
       5 
     | 
    
         
            -
                delegate_attributes: [:name, :sleeps, :sleeps_max, :bedrooms_count, :bathrooms_count, 
     | 
| 
      
 5 
     | 
    
         
            +
                delegate_attributes: [:name, :sleeps, :sleeps_max, :bedrooms_count, :bathrooms_count,
         
     | 
| 
      
 6 
     | 
    
         
            +
                  :surface, :surface_symbol]
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              def surface_unit_symbol
         
     | 
| 
      
 9 
     | 
    
         
            +
                surface_unit == "imperial" ? "ft²" : "m²"
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
       6 
11 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: bookingsync_portal
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Piotr Marciniak
         
     | 
| 
         @@ -10,10 +10,24 @@ authors: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       11 
11 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       12 
12 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       13 
     | 
    
         
            -
            date:  
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2020-07-21 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: rails
         
     | 
| 
      
 17 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 18 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 19 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 20 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 21 
     | 
    
         
            +
                    version: '5.2'
         
     | 
| 
      
 22 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 25 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 26 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 27 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 28 
     | 
    
         
            +
                    version: '5.2'
         
     | 
| 
      
 29 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 30 
     | 
    
         
            +
              name: sprockets-rails
         
     | 
| 
       17 
31 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       18 
32 
     | 
    
         
             
                requirements:
         
     | 
| 
       19 
33 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -27,49 +41,55 @@ dependencies: 
     | 
|
| 
       27 
41 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       28 
42 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       29 
43 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       30 
     | 
    
         
            -
              name: sprockets 
     | 
| 
      
 44 
     | 
    
         
            +
              name: sprockets
         
     | 
| 
       31 
45 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       32 
46 
     | 
    
         
             
                requirements:
         
     | 
| 
       33 
     | 
    
         
            -
                - - " 
     | 
| 
      
 47 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       34 
48 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       35 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 49 
     | 
    
         
            +
                    version: '4'
         
     | 
| 
       36 
50 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       37 
51 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       38 
52 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       39 
53 
     | 
    
         
             
                requirements:
         
     | 
| 
       40 
     | 
    
         
            -
                - - " 
     | 
| 
      
 54 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       41 
55 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       42 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 56 
     | 
    
         
            +
                    version: '4'
         
     | 
| 
       43 
57 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       44 
58 
     | 
    
         
             
              name: responders
         
     | 
| 
       45 
59 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       46 
60 
     | 
    
         
             
                requirements:
         
     | 
| 
       47 
     | 
    
         
            -
                - - " 
     | 
| 
      
 61 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       48 
62 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       49 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 63 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       50 
64 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       51 
65 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       52 
66 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       53 
67 
     | 
    
         
             
                requirements:
         
     | 
| 
       54 
     | 
    
         
            -
                - - " 
     | 
| 
      
 68 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       55 
69 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       56 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 70 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       57 
71 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       58 
72 
     | 
    
         
             
              name: bookingsync_application
         
     | 
| 
       59 
73 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       60 
74 
     | 
    
         
             
                requirements:
         
     | 
| 
       61 
     | 
    
         
            -
                - - " 
     | 
| 
      
 75 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 76 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 77 
     | 
    
         
            +
                    version: '4'
         
     | 
| 
      
 78 
     | 
    
         
            +
                - - "<"
         
     | 
| 
       62 
79 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       63 
     | 
    
         
            -
                    version:  
     | 
| 
      
 80 
     | 
    
         
            +
                    version: '5'
         
     | 
| 
       64 
81 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       65 
82 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       66 
83 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       67 
84 
     | 
    
         
             
                requirements:
         
     | 
| 
       68 
     | 
    
         
            -
                - - " 
     | 
| 
      
 85 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       69 
86 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       70 
     | 
    
         
            -
                    version:  
     | 
| 
      
 87 
     | 
    
         
            +
                    version: '4'
         
     | 
| 
      
 88 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 89 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 90 
     | 
    
         
            +
                    version: '5'
         
     | 
| 
       71 
91 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       72 
     | 
    
         
            -
              name:  
     | 
| 
      
 92 
     | 
    
         
            +
              name: redis
         
     | 
| 
       73 
93 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       74 
94 
     | 
    
         
             
                requirements:
         
     | 
| 
       75 
95 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -83,7 +103,7 @@ dependencies: 
     | 
|
| 
       83 
103 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       84 
104 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       85 
105 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       86 
     | 
    
         
            -
              name: jquery- 
     | 
| 
      
 106 
     | 
    
         
            +
              name: jquery-rails
         
     | 
| 
       87 
107 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       88 
108 
     | 
    
         
             
                requirements:
         
     | 
| 
       89 
109 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -96,34 +116,62 @@ dependencies: 
     | 
|
| 
       96 
116 
     | 
    
         
             
                - - ">="
         
     | 
| 
       97 
117 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       98 
118 
     | 
    
         
             
                    version: '0'
         
     | 
| 
      
 119 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 120 
     | 
    
         
            +
              name: jquery-ui-rails
         
     | 
| 
      
 121 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 122 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 123 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 124 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 125 
     | 
    
         
            +
                    version: 6.0.1
         
     | 
| 
      
 126 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 127 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 128 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 129 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 130 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 131 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 132 
     | 
    
         
            +
                    version: 6.0.1
         
     | 
| 
      
 133 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 134 
     | 
    
         
            +
              name: bootstrap-sass
         
     | 
| 
      
 135 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 136 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 137 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 138 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 139 
     | 
    
         
            +
                    version: '3.5'
         
     | 
| 
      
 140 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 141 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 142 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 143 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 144 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 145 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 146 
     | 
    
         
            +
                    version: '3.5'
         
     | 
| 
       99 
147 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       100 
148 
     | 
    
         
             
              name: bootstrap-bookingsync-sass
         
     | 
| 
       101 
149 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       102 
150 
     | 
    
         
             
                requirements:
         
     | 
| 
       103 
     | 
    
         
            -
                - - " 
     | 
| 
      
 151 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       104 
152 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       105 
     | 
    
         
            -
                    version:  
     | 
| 
      
 153 
     | 
    
         
            +
                    version: 3.0.0
         
     | 
| 
       106 
154 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       107 
155 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       108 
156 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       109 
157 
     | 
    
         
             
                requirements:
         
     | 
| 
       110 
     | 
    
         
            -
                - - " 
     | 
| 
      
 158 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       111 
159 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       112 
     | 
    
         
            -
                    version:  
     | 
| 
      
 160 
     | 
    
         
            +
                    version: 3.0.0
         
     | 
| 
       113 
161 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       114 
162 
     | 
    
         
             
              name: font-awesome-sass
         
     | 
| 
       115 
163 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       116 
164 
     | 
    
         
             
                requirements:
         
     | 
| 
       117 
     | 
    
         
            -
                - -  
     | 
| 
      
 165 
     | 
    
         
            +
                - - '='
         
     | 
| 
       118 
166 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       119 
     | 
    
         
            -
                    version:  
     | 
| 
      
 167 
     | 
    
         
            +
                    version: 4.7.0
         
     | 
| 
       120 
168 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       121 
169 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       122 
170 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       123 
171 
     | 
    
         
             
                requirements:
         
     | 
| 
       124 
     | 
    
         
            -
                - -  
     | 
| 
      
 172 
     | 
    
         
            +
                - - '='
         
     | 
| 
       125 
173 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       126 
     | 
    
         
            -
                    version:  
     | 
| 
      
 174 
     | 
    
         
            +
                    version: 4.7.0
         
     | 
| 
       127 
175 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       128 
176 
     | 
    
         
             
              name: handlebars_assets
         
     | 
| 
       129 
177 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -223,7 +271,7 @@ dependencies: 
     | 
|
| 
       223 
271 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       224 
272 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       225 
273 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       226 
     | 
    
         
            -
              name:  
     | 
| 
      
 274 
     | 
    
         
            +
              name: appraisal
         
     | 
| 
       227 
275 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       228 
276 
     | 
    
         
             
                requirements:
         
     | 
| 
       229 
277 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -237,7 +285,7 @@ dependencies: 
     | 
|
| 
       237 
285 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       238 
286 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       239 
287 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       240 
     | 
    
         
            -
              name:  
     | 
| 
      
 288 
     | 
    
         
            +
              name: rspec-rails
         
     | 
| 
       241 
289 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       242 
290 
     | 
    
         
             
                requirements:
         
     | 
| 
       243 
291 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -250,6 +298,20 @@ dependencies: 
     | 
|
| 
       250 
298 
     | 
    
         
             
                - - ">="
         
     | 
| 
       251 
299 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       252 
300 
     | 
    
         
             
                    version: '0'
         
     | 
| 
      
 301 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 302 
     | 
    
         
            +
              name: shoulda-matchers
         
     | 
| 
      
 303 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 304 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 305 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 306 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 307 
     | 
    
         
            +
                    version: '4'
         
     | 
| 
      
 308 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 309 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 310 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 311 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 312 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 313 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 314 
     | 
    
         
            +
                    version: '4'
         
     | 
| 
       253 
315 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       254 
316 
     | 
    
         
             
              name: factory_girl_rails
         
     | 
| 
       255 
317 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -294,6 +356,20 @@ dependencies: 
     | 
|
| 
       294 
356 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       295 
357 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       296 
358 
     | 
    
         
             
              name: sqlite3
         
     | 
| 
      
 359 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 360 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 361 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 362 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 363 
     | 
    
         
            +
                    version: '1.4'
         
     | 
| 
      
 364 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 365 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 366 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 367 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 368 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 369 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 370 
     | 
    
         
            +
                    version: '1.4'
         
     | 
| 
      
 371 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 372 
     | 
    
         
            +
              name: rubocop
         
     | 
| 
       297 
373 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       298 
374 
     | 
    
         
             
                requirements:
         
     | 
| 
       299 
375 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -307,7 +383,21 @@ dependencies: 
     | 
|
| 
       307 
383 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       308 
384 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       309 
385 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       310 
     | 
    
         
            -
              name:  
     | 
| 
      
 386 
     | 
    
         
            +
              name: pry-rails
         
     | 
| 
      
 387 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 388 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 389 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 390 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 391 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 392 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 393 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 394 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 395 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 396 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 397 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 398 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 399 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 400 
     | 
    
         
            +
              name: rails-controller-testing
         
     | 
| 
       311 
401 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       312 
402 
     | 
    
         
             
                requirements:
         
     | 
| 
       313 
403 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -332,6 +422,7 @@ files: 
     | 
|
| 
       332 
422 
     | 
    
         
             
            - MIT-LICENSE
         
     | 
| 
       333 
423 
     | 
    
         
             
            - README.md
         
     | 
| 
       334 
424 
     | 
    
         
             
            - Rakefile
         
     | 
| 
      
 425 
     | 
    
         
            +
            - app/assets/config/manifest.js
         
     | 
| 
       335 
426 
     | 
    
         
             
            - app/assets/images/bookingsync_portal/bookingsync.png
         
     | 
| 
       336 
427 
     | 
    
         
             
            - app/assets/images/bookingsync_portal/help/connect.gif
         
     | 
| 
       337 
428 
     | 
    
         
             
            - app/assets/javascripts/bookingsync_portal/admin/application.js.coffee
         
     | 
| 
         @@ -342,7 +433,7 @@ files: 
     | 
|
| 
       342 
433 
     | 
    
         
             
            - app/assets/javascripts/bookingsync_portal/admin/rentals.js.coffee
         
     | 
| 
       343 
434 
     | 
    
         
             
            - app/assets/javascripts/bookingsync_portal/admin/templates/filter_input.hbs
         
     | 
| 
       344 
435 
     | 
    
         
             
            - app/assets/javascripts/bookingsync_portal/admin/vendor/css-contains.js
         
     | 
| 
       345 
     | 
    
         
            -
            - app/assets/stylesheets/bookingsync_portal/admin/application. 
     | 
| 
      
 436 
     | 
    
         
            +
            - app/assets/stylesheets/bookingsync_portal/admin/application.scss
         
     | 
| 
       346 
437 
     | 
    
         
             
            - app/controllers/bookingsync_portal/admin/base_controller.rb
         
     | 
| 
       347 
438 
     | 
    
         
             
            - app/controllers/bookingsync_portal/admin/connections_controller.rb
         
     | 
| 
       348 
439 
     | 
    
         
             
            - app/controllers/bookingsync_portal/admin/help_controller.rb
         
     | 
| 
         @@ -388,6 +479,7 @@ files: 
     | 
|
| 
       388 
479 
     | 
    
         
             
            - db/migrate/20150520134912_create_photos.rb
         
     | 
| 
       389 
480 
     | 
    
         
             
            - db/migrate/20150521091056_create_rates.rb
         
     | 
| 
       390 
481 
     | 
    
         
             
            - db/migrate/20151210164752_add_synced_source_id_to_account.rb
         
     | 
| 
      
 482 
     | 
    
         
            +
            - db/migrate/20160301141356_create_bookings.rb
         
     | 
| 
       391 
483 
     | 
    
         
             
            - lib/bookingsync_portal.rb
         
     | 
| 
       392 
484 
     | 
    
         
             
            - lib/bookingsync_portal/booking_map.rb
         
     | 
| 
       393 
485 
     | 
    
         
             
            - lib/bookingsync_portal/engine.rb
         
     | 
| 
         @@ -422,8 +514,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       422 
514 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       423 
515 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       424 
516 
     | 
    
         
             
            requirements: []
         
     | 
| 
       425 
     | 
    
         
            -
             
     | 
| 
       426 
     | 
    
         
            -
            rubygems_version: 2.4.8
         
     | 
| 
      
 517 
     | 
    
         
            +
            rubygems_version: 3.0.1
         
     | 
| 
       427 
518 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       428 
519 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       429 
520 
     | 
    
         
             
            summary: A common base for creating BookingSync portal applications.
         
     |