geoptima 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/geoptima/data.rb +6 -4
- data/lib/geoptima/version.rb +1 -1
- metadata +3 -3
data/lib/geoptima/data.rb
CHANGED
@@ -226,10 +226,12 @@ module Geoptima
|
|
226
226
|
@first = nil
|
227
227
|
@last = nil
|
228
228
|
events_data.each do |event_type,data|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
229
|
+
if data.length > 1
|
230
|
+
@first ||= data[0]
|
231
|
+
@last ||= data[-1]
|
232
|
+
@first = data[0] if(@first && @first.time > data[0].time)
|
233
|
+
@last = data[-1] if(@last && @last.time < data[-1].time)
|
234
|
+
end
|
233
235
|
end
|
234
236
|
if $debug
|
235
237
|
puts "For data: #{self}"
|
data/lib/geoptima/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoptima
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Craig Taverner
|