locomotive_wubook_plugin 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: d6021f41105230d85ed5e17932d8951f3df5e5a5
4
- data.tar.gz: 31be58792c67aa36142c723efe05322530676a04
3
+ metadata.gz: e4dac8d7aed03f526e6f45b17bfa71232d4121b1
4
+ data.tar.gz: beb278c5e7b754d4c3f46eb72a94671b675010a4
5
5
  SHA512:
6
- metadata.gz: 79c674fbd84ab663150d64d593c5128b3d0b897e074335ce2c6229c9ec0d4c50033b998f3ea1e158333bd7055110efc22e2585e611bf0c35a5a0032d2447c7ab
7
- data.tar.gz: 053251544cb139a78f5f02a3c56f3d1dd664ab5410062246c902892dea4cecbf8cc1e1d9febf617a51d9de6199247c4e493b857bdb4d5458992cbd20dae7cfc6
6
+ metadata.gz: 4d157b21ccd2e649ad1663b81bd40c692c44f5ce0579c64737bc7378758e65a9c6e872ef12fe961e1a784cda2ddbb69e9d61ad6f705ccebc898934ccfba05ec2
7
+ data.tar.gz: be214d84b9c0f07396f7bfdd1e9a87f8d7789fdc46dedac9c442547d08da396dc9795809294e10f8d410901559ea546a5d9d2ce7b685478040d317bab71b7387
@@ -26,9 +26,15 @@ module Locomotive
26
26
  # Evaluate variables and use the return of the evaluation if it exists..
27
27
  raise "Missing parameter 'room_ident'" if @options[:room_ident].empty?
28
28
  room_ident_evaluated = context[@options[:room_ident]]
29
- @options[:room_ident] = room_ident_evaluated unless room_ident_evaluated.nil? || room_ident_evaluated.empty?
29
+ unless room_ident_evaluated.nil? || room_ident_evaluated.empty? then
30
+ @options[:room_ident] = room_ident_evaluated
31
+ else
32
+ return "[]"
33
+ end
30
34
  ::Locomotive.log "**> AvailableDaysTag room_ident: #{@options[:room_ident]}"
31
35
 
36
+
37
+
32
38
  today = Date.today
33
39
  last_day = today.next_month(config['months_ahead'].to_i)
34
40
 
@@ -26,7 +26,12 @@ module Locomotive
26
26
  # Evaluate variables and use the return of the evaluation if it exists..
27
27
  raise "Missing parameter 'room_ident'" if @options[:room_ident].empty?
28
28
  room_ident_evaluated = context[@options[:room_ident]]
29
- @options[:room_ident] = room_ident_evaluated unless room_ident_evaluated.nil? || room_ident_evaluated.empty?
29
+ unless room_ident_evaluated.nil? || room_ident_evaluated.empty? then
30
+ @options[:room_ident] = room_ident_evaluated
31
+ else
32
+ return "[]"
33
+ end
34
+
30
35
  ::Locomotive.log "**> AvailableDaysTag room_ident: #{@options[:room_ident]}"
31
36
 
32
37
  today = Date.today
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Locomotive
3
3
  module WuBook
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotive_wubook_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Eilers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: locomotive_plugins