lightwaverf 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lightwaverf.rb +8 -0
- metadata +2 -2
data/lib/lightwaverf.rb
CHANGED
@@ -783,6 +783,7 @@ class LightWaveRF
|
|
783
783
|
end
|
784
784
|
file = self.get_summary_file.gsub 'summary', 'daily'
|
785
785
|
data['message']['history'] = self.class.get_json file
|
786
|
+
data['message']['history'] = data['message']['history'][-7, 0]
|
786
787
|
data['message']
|
787
788
|
rescue
|
788
789
|
puts 'error writing to log'
|
@@ -954,6 +955,13 @@ class LightWaveRF
|
|
954
955
|
response = self.request url, debug
|
955
956
|
if response.code != '200'
|
956
957
|
debug and ( p "Response code is: " + response.code)
|
958
|
+
url.gsub! 'www', 'calendar'
|
959
|
+
debug and ( p url )
|
960
|
+
debug and ( p '@todo use the redirect url in the message here instead' )
|
961
|
+
response = self.request url, debug
|
962
|
+
if response.code != '200'
|
963
|
+
debug and ( p 'Response code is still: ' + response.code)
|
964
|
+
end
|
957
965
|
end
|
958
966
|
return response.body
|
959
967
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightwaverf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: htmlentities
|