Skip to content

Commit

Permalink
Merge pull request #705 from splitrb/add-matrix-as-default-dep
Browse files Browse the repository at this point in the history
Add matrix as a default dependency
  • Loading branch information
andrehjr authored Feb 28, 2023
2 parents 43b08a5 + 7c91132 commit a2190bb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ source "https://rubygems.org"
gemspec

gem "rubocop", require: false
gem "matrix"
gem "codeclimate-test-reporter"
1 change: 0 additions & 1 deletion gemfiles/7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ source "https://rubygems.org"
gem "rubocop", require: false
gem "codeclimate-test-reporter"
gem "rails", "~> 7.0"
gem "matrix"

gemspec path: "../"
10 changes: 1 addition & 9 deletions lib/split/algorithms.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# frozen_string_literal: true

begin
require "matrix"
rescue LoadError => error
if error.message.match?(/matrix/)
$stderr.puts "You don't have matrix installed in your application. Please add it to your Gemfile and run bundle install"
raise
end
end

require "matrix"
require "rubystats"

module Split
Expand Down
1 change: 1 addition & 0 deletions split.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Gem::Specification.new do |s|
s.add_dependency "redis", ">= 4.2"
s.add_dependency "sinatra", ">= 1.2.6"
s.add_dependency "rubystats", ">= 0.3.0"
s.add_dependency "matrix"

s.add_development_dependency "bundler", ">= 1.17"
s.add_development_dependency "simplecov", "~> 0.15"
Expand Down

0 comments on commit a2190bb

Please sign in to comment.