Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemspec needed #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,21 @@ doc
examples/images/*
examples/*.html
web/upload_task.rb

# From standard gemfile
*.gem
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
17 changes: 1 addition & 16 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
source "https://www.rubygems.org"
gem 'minitest'
gem 'rdoc'
gem 'mocha', '0.14.0' #:require=>'mocha/setup'
gem 'shoulda','3.5.0'
gem 'shoulda-matchers','2.2.0'
gem 'hoe'
#gem 'bio-statsample-timeseries'
gem 'reportbuilder'
gem 'dirty-memoize'
gem 'distribution'
gem 'extendmatrix'
gem 'minimization'
gem 'rserve-client'
gem 'rubyvis'
gem 'spreadsheet'
gem 'rb-gsl'

gemspec
78 changes: 0 additions & 78 deletions Gemfile.lock

This file was deleted.

1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ require 'rubygems'
require 'statsample'
require 'hoe'
require 'rdoc'
require "bundler/gem_tasks"

Hoe.plugin :git
Hoe.plugin :doofus
Expand Down
Empty file modified bin/statsample
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion lib/statsample/vector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def box_cox_transformation(lambda) # :nodoc:
# Vector equality.
# Two vector will be the same if their data, missing values, type, labels are equals
def ==(v2)
raise TypeError,"Argument should be a Vector" unless v2.instance_of? Statsample::Vector
return false unless v2.instance_of? Statsample::Vector
@data==v2.data and @missing_values==v2.missing_values and @type==v2.type and @labels==v2.labels
end

Expand Down
3 changes: 3 additions & 0 deletions lib/statsample/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Statsample
VERSION = "1.3.1"
end
35 changes: 35 additions & 0 deletions statsample.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'statsample/version'

Gem::Specification.new do |spec|
spec.name = 'statsample'
spec.version = Statsample::VERSION
spec.summary = "Stats library"
spec.authors = ["Claudio Bustos", "Justin Gordon", "Russell Smith"]
spec.homepage = 'https://github.com/clbustos/statsample'
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "rake"
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'rdoc'
spec.add_development_dependency 'mocha', '0.14.0' #:require=>'mocha/setup'
spec.add_development_dependency 'shoulda', '3.5.0'
spec.add_development_dependency 'shoulda-matchers', '2.2.0'

spec.add_dependency 'reportbuilder'
spec.add_dependency 'dirty-memoize'
spec.add_dependency 'distribution'
spec.add_dependency 'extendmatrix'
spec.add_dependency 'minimization'
spec.add_dependency 'rserve-client'
spec.add_dependency 'rubyvis'
spec.add_dependency 'spreadsheet'
spec.add_dependency 'rb-gsl'
end
1 change: 1 addition & 0 deletions test/test_vector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ def test_equality
v1=[1,2,3].to_vector()
v2=[1,2,3].to_vector()
assert_equal(v1,v2)
assert_equal(false, v1 == Object.new)
end
def test_vector_percentil
a=[1,2,2,3,4,5,5,5,6,10].to_scale
Expand Down