Skip to content

Commit

Permalink
Ver 0.1.5 updates and changes (#299)
Browse files Browse the repository at this point in the history
* Update History file for new release

* version bump

* update rb-gsl dependency.

* update travis for ruby 2.4 support

* update travis config and GSL gem version.

* Install rainbow cuz of this rubygems error - ku1ik/rainbow#49

* Install rainbow cuz of this rubygems error - ku1ik/rainbow#49
  • Loading branch information
v0dro authored Jan 31, 2017
1 parent cedab19 commit 486bdee
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ rvm:
- '2.1'
- '2.2'
- '2.3.0'
- '2.4.0'

matrix:
fast_finish:
Expand All @@ -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
40 changes: 39 additions & 1 deletion History.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion daru.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/daru/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Daru
VERSION = '0.1.4.1'.freeze
VERSION = '0.1.5'.freeze
end

0 comments on commit 486bdee

Please sign in to comment.