bookingsync_portal 0.5.0 → 0.6.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: d58a1b6e1284fcc12a60b7c4e9c4fd8f79dec7dc
4
- data.tar.gz: ac1983da441a124086a05ba41a1d843b5014aa90
3
+ metadata.gz: 883ef9dd634929c8ad2e22a7ca7a0c1a8870c486
4
+ data.tar.gz: b463a96bfd2ca504685f5cd5fc5de68b7820adca
5
5
  SHA512:
6
- metadata.gz: 1883e9b0c1cb55885d8c1dfe8e04fbe8c7f05d9ef52ef8081a131530babcc8389aaffc81f9a7fd12942b57d04b1125d73e8003db995c7c4c2fa57064b6125a36
7
- data.tar.gz: 1e5168f28b4712fe9e1c14da00c1d6b737afdf90b823ffb18878a827866369c6d675d89e8fa8e04a54a6142cc6827ceea608956c06a526896d12d2a682422cb1
6
+ metadata.gz: 030b887351b316322b4a958e1a4ca4b7097f52e7c46898012d82de9d8a473be5b1ed90845aebb399be694eb2887a6ee811820debf9bb152a3e5c5e8ae98e8fec
7
+ data.tar.gz: 647c7f128b8d5b9dd0adbffa65dfde59e9fa5291d207952d24ccc6a98580906ab6a0e137b4fe9d76a334801db51f17d539fdf76b04b7f88c08136ef71c5c3742
@@ -1,3 +1,3 @@
1
1
  module BookingsyncPortal
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -49,29 +49,12 @@ module BookingsyncPortal
49
49
  mattr_accessor :rate_model
50
50
  @@rate_model = 'BookingsyncPortal::Rate'
51
51
 
52
- # account resource class
53
- mattr_accessor :account_resource
54
- @@account_resource = 'BookingsyncPortal::AdminApi::AccountResource'
55
-
56
- # remote account resource class
57
- mattr_accessor :remote_account_resource
58
- @@remote_account_resource = 'BookingsyncPortal::AdminApi::RemoteAccountResource'
59
-
60
- # rental resource class
61
- mattr_accessor :rental_resource
62
- @@rental_resource = 'BookingsyncPortal::AdminApi::RentalResource'
63
-
64
- # remote rental resource class
65
- mattr_accessor :remote_rental_resource
66
- @@remote_rental_resource = 'BookingsyncPortal::AdminApi::RemoteRentalResource'
67
-
68
- # connection resource class
69
- mattr_accessor :connection_resource
70
- @@connection_resource = 'BookingsyncPortal::AdminApi::ConnectionResource'
71
-
72
52
  # source name for use in bookings
73
53
  mattr_accessor :source_name
74
54
 
55
+ # message bus channel scope
56
+ mattr_accessor :message_bus_channel_scope
57
+
75
58
  # handle synchronization of rentals after connection is made
76
59
  def self.connection_created(connection)
77
60
  end
@@ -89,5 +72,9 @@ module BookingsyncPortal
89
72
  # a fresh initializer with all configuration values.
90
73
  def self.setup
91
74
  yield self
75
+ raise ArgumentError.new("message_bus_channel_scope must be defined") unless message_bus_channel_scope.present?
76
+ ::MessageBus.site_id_lookup do
77
+ message_bus_channel_scope
78
+ end
92
79
  end
93
80
  end
@@ -21,21 +21,6 @@ BookingsyncPortal.setup do |config|
21
21
  # customize rate model class, can extend BookingsyncPortal::Rate, set to nil if not used
22
22
  config.rate_model = '::Rate'
23
23
 
24
- # customize account resource class, can extend BookingsyncPortal::AdminApi::AccountResource
25
- # config.account_resource = '::AdminApi::AccountResource'
26
-
27
- # customize remote account resource class, can extend BookingsyncPortal::AdminApi::RemoteAccountResource
28
- # config.remote_account_resource = '::AdminApi::RemoteAccountResource'
29
-
30
- # customize rental resource class, can extend BookingsyncPortal::AdminApi::RentalResource
31
- # config.rental_resource = '::AdminApi::RentalResource'
32
-
33
- # customize remote rental resource class, can extend BookingsyncPortal::AdminApi::RemoteRentalResource
34
- # config.remote_rental_resource = '::AdminApi::RemoteRentalResource'
35
-
36
- # customize connection resource class, can extend BookingsyncPortal::AdminApi::ConnectionResource
37
- # config.connection_resource = '::AdminApi::ConnectionResource'
38
-
39
24
  # handle synchronization of rentals after connection is made
40
25
  def config.connection_created(connection)
41
26
  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.5.0
4
+ version: 0.6.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-02-02 00:00:00.000000000 Z
13
+ date: 2016-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails