lita-vrt-mess 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 4576410fd68cdb2930767614d444f947c50560ab25cbb181ba4f7b0416a661dc
4
- data.tar.gz: e1db775722c184eb09c76ed3eb7017542d812ca5081e5ab3648eeeedb1312247
3
+ metadata.gz: 4e196b73cf8e2e0f13a3a1504b501d43622b6fd63b5c51eb3a3f23578e2acd34
4
+ data.tar.gz: 047b9b58cee9ca7af170eedea3133cdb75afac26dc77e9a27e9a32306fe9bbd3
5
5
  SHA512:
6
- metadata.gz: cba1dd1a8803823517ee2ce658a4dcc7d6dd8da85a592e3f087cce99cc31b7385bd245ad0d60537a7e40181c07dcfe85b252ff5ba506c0a4c74df4149ccb4493
7
- data.tar.gz: 12ede921b10498af576d5b4609325404cd821ed226be333a4e0e598bb9480c9e4ee2dee4a9db01e1518ca67bc66d54b8af20d55b9944ef49496ff11e766ca210
6
+ metadata.gz: e309ee698bf797f030d42d892accee8b1c9aa649aafd509f9660ea702dfa7e97df114b3c2d5b52410a9dd8338a9b6589c145532d6d0f027bb3a97df76b5de9d1
7
+ data.tar.gz: 7637dbbe0f9e97f2e105af7ea0af62fa3fab3a4dcb866da6a1d7041283c73c431514cfe9e7fa85bd3f1da5d7ab8684799ab27f3b177fb914997bccd88bf377bd
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+ ### Security
9
+ ### Added
10
+ ### Changed
11
+ ### Fixed
12
+ ### Removed
13
+ ### Deprecated
14
+
15
+ ## [0.1.1] - 2019-10-1920
16
+ ### Added
17
+ - Changelog file (this file)
18
+ - Handle the case when there is no menu.
19
+
20
+ ## [0.1.0] - 2019-10-1920
21
+ ### Added
22
+ - First release
23
+
24
+ [Unreleased]: https://github.com/zipkid/Homematic-CCU/compare/v0.1.1...HEAD
25
+ [0.1.1]: https://github.com/zipkid/Homematic-CCU/compare/v0.1.0...v0.1.1
26
+ [0.1.0]: https://github.com/zipkid/Homematic-CCU/releases/tag/v0.1.0
@@ -1,4 +1,4 @@
1
- require 'HTTParty'
1
+ require 'httparty'
2
2
  require 'nokogiri'
3
3
 
4
4
  module Lita
@@ -33,8 +33,9 @@ module Lita
33
33
  cells.each_with_index do |d, i|
34
34
  result << "#{header[i]} : #{d.text}"
35
35
  end
36
- result << '--------------------------'
36
+ result << '--------------------------' unless result.empty?
37
37
  end
38
+ result = ['Geen menu gevonden :('] if result.empty?
38
39
  result.join("\n")
39
40
  end
40
41
 
@@ -46,6 +47,7 @@ module Lita
46
47
  name = item.css('h3 img')[0]['alt']
47
48
  result << "#{name} : #{item.text.strip}"
48
49
  end
50
+ result = ['Geen menu gevonden :('] if result.empty?
49
51
  result.join("\n")
50
52
  end
51
53
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-vrt-mess'
3
- spec.version = '0.1.0'
3
+ spec.version = '0.1.1'
4
4
  spec.authors = ['Stefan Goethals']
5
5
  spec.email = ['stefan.goethals@vrt.be']
6
6
  spec.description = 'Lita.io handler for getting the Menu of the VRT mess'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-vrt-mess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Goethals
@@ -133,6 +133,7 @@ files:
133
133
  - Gemfile
134
134
  - README.md
135
135
  - Rakefile
136
+ - changelog.md
136
137
  - lib/lita-vrt-mess.rb
137
138
  - lib/lita/handlers/vrt_mess.rb
138
139
  - lita-vrt-mess.gemspec