diff --git a/.travis.yml b/.travis.yml index d8cf531f2..9463b7852 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ rvm: - '2.1' - '2.2' - '2.3.0' + - '2.4.0' matrix: fast_finish: @@ -17,9 +18,11 @@ script: install: - gem install bundler + - gem install rainbow -v '2.2.1' - bundle install before_install: - sudo apt-get update -qq - sudo apt-get install -y libgsl0-dev r-base r-base-dev - sudo Rscript -e "install.packages(c('Rserve','irr'),,'http://cran.us.r-project.org')" + - sudo apt-get install libmagickwand-dev imagemagick diff --git a/History.md b/History.md index e0dff2320..7ec324f22 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,41 @@ +# 0.1.5 (30 January 2017) +* Major Enhancements + - Add Daru::Vector#group_by (@lokeshh). + - Add rspec-guard to run tests automatically (@lokeshh). + - Remove Daru::DataFrame implicit Hash method since Dataframes are not implicit hashes and having an implicit converter can introduce unwanted side effects. (@gnilrets) + - Add `Daru::DataFrame#union`. (Tim) + +* Minor Enhancements + - Added a join indicator. (@gnilrets) + - Support an enumerable value as an index of a vector. (Yuichiro Kaneko) + - Add test case for `NegativeDateOffset`. (Yuichiro Kaneko) + - Add test case for `#on_offset?`. (Yuichiro Kaneko) + - `NegativeDateOffset#-` returns `DateOffset`. (Yuichiro Kaneko) + - Make `Vector#resort_index` private because its only use was for internal usage in `Vector#sort`. (Yuichiro Kaneko) + - Add `DataFrame#order=` method to reorder vectors in a dataframe. (@lokeshh) + - Use `Integer` instead of `Fixnum` throughout the gem. (Yuichiro Kaneko) + - Improve error message of `Daru::Vector#index=`. (@lokeshh) + - Deprecate `freqs` and make `frequencies` return a `Daru::Vector`. (@lokeshh) + - `DataFrame#access_row` with integer index. (Yusuke Sangenya) + - Add method alias for comparison operator. (Yusuke Sangenya) + - Update Nokogiri version. (Yusuke Sangenya) + - Return `Daru::Vector` for multiple modal values for `Daru::Vector#mode`. (baarkerlounger) + +* Fixes + - Fix many to one joins. The prior version was shifting values in the left dataframe before checking whether values in the right dataframe should be shifted. They both need to be checked at the same time before shifting either. (@gnilrets) + - Support formatting empty dataframes. They were returning an error before. (@gnilrets) + - method_missing in Daru::DataFrame would not detect the correct vector if it was a String. Fixed that. (@lokeshh) + - Fix docs of contrast_code to specify that the default value is false. (@v0dro) + - Fix occurence of SystemStackError due to faulty arguement passing to Array#values_at. (@v0dro) + - Fix `DataFrame#pivot_table` regression that raised an ArgumentError if the `:index` option was not specified. (@zverok) + - Fix `DateFrame.rows` to accept empty argument. (@zverok) + - Fix bug with false values on dataframe create. DataFrame from an Array of hashes wasn't being created properly when some of the values were `false`. (@gnilrets) + - Fix `Vector#reorder!` method. (Yusuke Sangenya) + - Fix `DataFrame#group_by` for numeric indexes. (@zverok) + - Make `DataFrame#index=` accept only `Daru::Index`. (Yusuke Sangenya) + - `DataFrame#vectors=` now changes the name of vectors contained in the internal `@data` variable. (Yusuke Sangenya) + + # 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. @@ -235,7 +273,7 @@ * Added statistics methods #mean, #std, #max, #min, #count, #product, #sum to DataFrame. * Added #describe to DataFrame for producing multiple statistics data of numerical vectors in one shot. * Monkey patched Ruby Matrix to include #elementwise_division. -* Added #covariance to calculate the covariance between numbers of a DataFrame and #correlation to calculate correlation. +* Added #covariance to calculate the covariance between numbers of a DataFrame and #correlation to calculate correlation. * Enumerators return Enumerator objects if there is no block. # 0.0.4 diff --git a/daru.gemspec b/daru.gemspec index ae4571200..a1cad7185 100644 --- a/daru.gemspec +++ b/daru.gemspec @@ -65,7 +65,7 @@ EOF spec.add_development_dependency 'nyaplot', '~> 0.1.5' spec.add_development_dependency 'nmatrix', '~> 0.2.1' spec.add_development_dependency 'distribution', '~> 0.7' - spec.add_development_dependency 'rb-gsl', '~>1.16' + spec.add_development_dependency 'gsl', '~>2.1.0.2' spec.add_development_dependency 'dbd-sqlite3' spec.add_development_dependency 'dbi' spec.add_development_dependency 'activerecord', '~> 4.0' diff --git a/lib/daru/version.rb b/lib/daru/version.rb index 610894c13..62f3fecf0 100644 --- a/lib/daru/version.rb +++ b/lib/daru/version.rb @@ -1,3 +1,3 @@ module Daru - VERSION = '0.1.4.1'.freeze + VERSION = '0.1.5'.freeze end