quandl_data 0.0.11 → 0.0.12

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.
@@ -59,7 +59,7 @@ module Operations
59
59
  # find index
60
60
  index = data_array.rindex{|r| r[0] == date }
61
61
  # trim if index is valid
62
- @data_array = @data_array[index..-1] if @data_array[index]
62
+ @data_array = @data_array[index..-1] if index && @data_array[index]
63
63
  # chainable
64
64
  self
65
65
  end
@@ -71,7 +71,7 @@ module Operations
71
71
  # find index
72
72
  index = data_array.rindex{|r| r[0] == date }
73
73
  # trim if index is valid
74
- @data_array = @data_array[0..index] if @data_array[index]
74
+ @data_array = @data_array[0..index] if index && @data_array[index]
75
75
  # chainable
76
76
  self
77
77
  end
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Data
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: