bookingsync_portal 0.8.8 → 0.9.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: 9a6fe8e00f84585156d637a789fe26e676763aa6
4
- data.tar.gz: 4a30016df6c54c621ab27e3afdab8b1223a28e78
3
+ metadata.gz: 8be3c2f7caed8630671afddc907fab2dd7fe9c8c
4
+ data.tar.gz: 500ad107e8f8f80cc857e6919e86a1f742c19b5b
5
5
  SHA512:
6
- metadata.gz: 98370f54f14ea86567de74852f463a3eaab2a5b5e253086cf41e05129a22d44f374dfbe39b269e4d0455b0672b67176fe2aa6f2c27af11168d253211769670e2
7
- data.tar.gz: a16cb45031d1f2ed217c5dc4b0d89dd6a57077e68731fa3e86e5ce4f4e924f3567738ad05d50fc2d28d0c54b33675ffea9770ec1fb603de843b4e44c1691ea48
6
+ metadata.gz: 4d3d62715b79d3d60f86a690adc3c7e366f6a43dab5d80bf11009e6c1567729f5e202be16403f7bfe7aebd450fb9e6f2106eaae50b714fb63f18276adf409179
7
+ data.tar.gz: 5326ddd6268ac75402b1389beb4308ac72f0654e0a0938573894c423d0447ede0991b7786184f2ac50f1b87bbb302758e07b26127633d06041f3e769d6b9cd05
@@ -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,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;
@@ -24,7 +24,7 @@ module BookingsyncPortal
24
24
  end
25
25
  if rental.surface.to_i > 0
26
26
  details << t(:surface_html, scope: scope,
27
- count: rental.surface.to_i)
27
+ count: rental.surface.to_i, unit: rental.surface_unit_symbol)
28
28
  end
29
29
 
30
30
  safe_join(details, ', ')
@@ -1,5 +1,4 @@
1
- <div class="panel panel-remote" id="<%= dom_id remote_rental %>"
2
- data-uid="<%= remote_rental.uid %>">
1
+ <div class="panel panel-remote" id="<%= dom_id remote_rental %>">
3
2
  <div class="panel-body-grid">
4
3
  <div class="panel-body-grid-photo">
5
4
  </div>
@@ -10,7 +10,8 @@
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, not_connected_rentals: @not_connected_rentals %>
13
+ <%= render "rentals", visible_rentals: @visible_rentals,
14
+ not_connected_rentals: @not_connected_rentals %>
14
15
  </div>
15
16
  </div>
16
17
  </div>
@@ -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}m²</strong>'
69
- other: '<span>Surface</span> <strong>%{count}m²</strong>'
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BookingsyncPortal
2
- VERSION = "0.8.8"
2
+ VERSION = "0.9.0"
3
3
  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, :surface]
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.8.8
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Marciniak
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-06 00:00:00.000000000 Z
13
+ date: 2016-12-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -30,46 +30,46 @@ dependencies:
30
30
  name: sprockets-rails
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: '2.3'
35
+ version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '2.3'
42
+ version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: responders
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '2.0'
49
+ version: '0'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: '2.0'
56
+ version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: bookingsync_application
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 0.4.1
63
+ version: 0.5.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 0.4.1
70
+ version: 0.5.0
71
71
  - !ruby/object:Gem::Dependency
72
- name: jquery-rails
72
+ name: redis
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="
@@ -83,7 +83,7 @@ dependencies:
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
86
- name: jquery-ui-rails
86
+ name: jquery-rails
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
@@ -96,20 +96,34 @@ dependencies:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
+ - !ruby/object:Gem::Dependency
100
+ name: jquery-ui-rails
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: 6.0.1
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: 6.0.1
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: bootstrap-bookingsync-sass
101
115
  requirement: !ruby/object:Gem::Requirement
102
116
  requirements:
103
- - - ">="
117
+ - - "~>"
104
118
  - !ruby/object:Gem::Version
105
- version: '0'
119
+ version: 1.0.0
106
120
  type: :runtime
107
121
  prerelease: false
108
122
  version_requirements: !ruby/object:Gem::Requirement
109
123
  requirements:
110
- - - ">="
124
+ - - "~>"
111
125
  - !ruby/object:Gem::Version
112
- version: '0'
126
+ version: 1.0.0
113
127
  - !ruby/object:Gem::Dependency
114
128
  name: font-awesome-sass
115
129
  requirement: !ruby/object:Gem::Requirement
@@ -222,6 +236,20 @@ dependencies:
222
236
  - - ">="
223
237
  - !ruby/object:Gem::Version
224
238
  version: '0'
239
+ - !ruby/object:Gem::Dependency
240
+ name: appraisal
241
+ requirement: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - ">="
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - ">="
251
+ - !ruby/object:Gem::Version
252
+ version: '0'
225
253
  - !ruby/object:Gem::Dependency
226
254
  name: rspec-rails
227
255
  requirement: !ruby/object:Gem::Requirement
@@ -320,6 +348,20 @@ dependencies:
320
348
  - - ">="
321
349
  - !ruby/object:Gem::Version
322
350
  version: '0'
351
+ - !ruby/object:Gem::Dependency
352
+ name: pry-rails
353
+ requirement: !ruby/object:Gem::Requirement
354
+ requirements:
355
+ - - ">="
356
+ - !ruby/object:Gem::Version
357
+ version: '0'
358
+ type: :development
359
+ prerelease: false
360
+ version_requirements: !ruby/object:Gem::Requirement
361
+ requirements:
362
+ - - ">="
363
+ - !ruby/object:Gem::Version
364
+ version: '0'
323
365
  description: A common base for creating BookingSync portal applications.
324
366
  email:
325
367
  - mandaryyyn@gmail.com
@@ -424,9 +466,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
424
466
  version: '0'
425
467
  requirements: []
426
468
  rubyforge_project:
427
- rubygems_version: 2.6.6
469
+ rubygems_version: 2.5.1
428
470
  signing_key:
429
471
  specification_version: 4
430
472
  summary: A common base for creating BookingSync portal applications.
431
473
  test_files: []
432
- has_rdoc: