Skip to content

Commit

Permalink
Fixed errors caused due to Ruby stdlib libraries not being required d…
Browse files Browse the repository at this point in the history
…ue to removal of dependencies. Also updated HISTORY to reflect this.
  • Loading branch information
v0dro committed Aug 19, 2016
1 parent eefae29 commit be6cea4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions History.md
@@ -1,3 +1,7 @@
# 0.1.4.1 (20 August 2016)
* Fixes
- Turns out that removing the dependencies did not load a few libraries from the Ruby standard library when daru is deployed on a fresh system. This release fixes that by adding extra require calls.

# 0.1.4 (19 August 2016)

* Major Enhancements
Expand Down
3 changes: 3 additions & 0 deletions lib/daru.rb
Expand Up @@ -92,6 +92,9 @@ def plotting_library= lib

autoload :CSV, 'csv'
require 'matrix'
require 'forwardable'
require 'erb'
require 'date'

require 'daru/version.rb'

Expand Down
2 changes: 1 addition & 1 deletion lib/daru/accessors/array_wrapper.rb
Expand Up @@ -3,7 +3,7 @@ module Accessors
# Internal class for wrapping ruby array
class ArrayWrapper
include Enumerable
extend Forwardable
extend ::Forwardable

def_delegators :@data, :slice!

Expand Down
2 changes: 1 addition & 1 deletion lib/daru/date_time/index.rb
Expand Up @@ -216,7 +216,7 @@ class DateTimeIndex < Index
Helper = DateTimeIndexHelper

def self.try_create(source)
if source && ArrayHelper.array_of?(source, DateTime)
if source && ArrayHelper.array_of?(source, ::DateTime)
new(source, freq: :infer)
else
nil
Expand Down

0 comments on commit be6cea4

Please sign in to comment.