sciruby 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e74310fed376c57871f6a69d106c4003e05d2ae
4
- data.tar.gz: 075752449c3fb9f5d5a979e4bdd634b217a06535
3
+ metadata.gz: 8f7bd683282f370896bcd92e6fbe23f38ce50b79
4
+ data.tar.gz: 6bca1922defd21c5e8f28e7f33ceec1334c7f5f9
5
5
  SHA512:
6
- metadata.gz: 8910a1a68dd18e022ae17180256bc2222d48d5f917e9f4652c17a858f6f371fbcd9be43ed2ed7df8c25b19e6bf2957ec2b1634c9519dc68cc650b252164cf003
7
- data.tar.gz: 9c99134034cdb956d13dae801ea8e06965d8bacd9a63f44f88a2c310b9375020bc2b1699b89a0c01b062b90e471df7e6e55608e2c012caaf2828048f805b4a94
6
+ metadata.gz: df207e9de8d4115c65129631fe404eaf355751aa12d89bc6e2de2e415e2df580daee4f7c6af6d53ba745264e2de515568775113951cd05a0ea0b4d37dfb298d8
7
+ data.tar.gz: e2823175fbb9318028421e10c2564cda53dd0ae27c024b9e1edaa28dece40c22464062f88cabfbfbd21e0e654c0b25dab3f5cf7bcfcc5794ffabff0d9efeeab7
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.9 (2016-03-05)
2
+
3
+ * Version locking
4
+
1
5
  0.2.8 (2015-08-24)
2
6
 
3
7
  * More gems added
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ load File.expand_path(File.join(__FILE__, '..', 'scripts', 'helper.rb'))
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- Helper.sciruby_gems(true).each do |g|
5
+ Helper.installable_gems.each do |g|
6
6
  gem(g[:name], *g[:version])
7
7
  end
8
8
 
data/gems.yml CHANGED
@@ -36,11 +36,11 @@ cassowary:
36
36
  description: Incremental constraint solver
37
37
  exclude: Native dependencies
38
38
  module: Cassowary
39
- classifier:
39
+ classifier-reborn:
40
40
  category: ai
41
41
  description: Machine learning
42
- module: Classifier
43
- version: "~> 1.3"
42
+ module: ClassifierReborn
43
+ version: "~> 2.0"
44
44
  cmath:
45
45
  category: algebra
46
46
  description: Stdlib cmath module
@@ -111,13 +111,13 @@ gsl:
111
111
  description: Bindings for the GNU scientific library
112
112
  module: GSL
113
113
  owner: sciruby
114
- version: "~> 1.16.0"
114
+ version: "~> 2.1"
115
115
  hamster:
116
116
  category: utilities
117
117
  description: Efficient persistent data structures
118
118
  module:
119
119
  - Hamster
120
- version: "~> 1.0"
120
+ version: "~> 3.0"
121
121
  histogram:
122
122
  category: statistics
123
123
  description: Histogram method
@@ -145,7 +145,7 @@ liblinear-ruby:
145
145
  description: Linear classifier
146
146
  module: Liblinear
147
147
  require: liblinear
148
- version: "~> 0.0"
148
+ version: "~> 1.0"
149
149
  lpsolve:
150
150
  category: optimization
151
151
  description: Linear solver
@@ -188,7 +188,7 @@ mixed_models:
188
188
  category: statistics
189
189
  description: Fit statistical models
190
190
  module: MixedModels
191
- version: "~> 0.1"
191
+ exclude: Bad version constraints on daru
192
192
  modshogun:
193
193
  category: ai
194
194
  description: Machine learning
@@ -207,7 +207,7 @@ nmatrix:
207
207
  - NMatrix
208
208
  - NVector
209
209
  owner: sciruby
210
- version: "~> 0.1"
210
+ version: "~> 0.2"
211
211
  nyaplot:
212
212
  category: plotting
213
213
  description: Plotting library
@@ -228,7 +228,7 @@ omoikane:
228
228
  category: ai
229
229
  description: Machine learning
230
230
  module: Omoikane
231
- version: "~> 0.0"
231
+ exclude: Outdated nmatrix dependency
232
232
  parallel:
233
233
  category: utilties
234
234
  description: Parallel processing
@@ -265,8 +265,8 @@ pry:
265
265
  publisci:
266
266
  category: publishing
267
267
  description: Publishing toolkit
268
+ exclude: Installation fails
268
269
  module: PubliSci
269
- version: "~> 0.1"
270
270
  rb-libsvm:
271
271
  category: ai
272
272
  description: Support vector machines (machine learning)
@@ -2,5 +2,5 @@
2
2
  module SciRuby
3
3
  # SciRuby version string
4
4
  # @api public
5
- VERSION = '0.2.8'
5
+ VERSION = '0.2.9'
6
6
  end
@@ -15,13 +15,13 @@ Gem::Specification.new do |s|
15
15
  s.files = %w(CHANGES CONTRIBUTING.md README.md LICENSE sciruby-full.gemspec)
16
16
 
17
17
  s.add_runtime_dependency 'sciruby', "= #{SciRuby::VERSION}"
18
- Helper.sciruby_gems(true).each {|gem| s.add_runtime_dependency gem[:name], *gem[:version] }
18
+ Helper.installed_gems.each {|gem| s.add_runtime_dependency gem[:name], *gem[:version] }
19
19
  else
20
20
  s.files = `git ls-files`.split($/)
21
21
  s.files.delete 'sciruby-full.gemspec'
22
22
 
23
23
  m = "Please consider installing 'sciruby-full' or the following gems:\n"
24
- Helper.sciruby_gems(false).each {|gem| m << " * #{gem[:name]} - #{gem[:description]}\n" }
24
+ Helper.all_gems.each {|gem| m << " * #{gem[:name]} - #{gem[:description]}\n" }
25
25
  s.post_install_message = m << "\n"
26
26
  end
27
27
  end
@@ -135,9 +135,9 @@ module Helper
135
135
  end
136
136
 
137
137
  def github_name(gem)
138
- return $1 if gem[:spec].homepage =~ %r{github.com/([^/]+/[^/]+)}
138
+ return $1.sub(/\.git$/, '') if gem[:spec].homepage =~ %r{github.com/([^/]+/[^/]+)}
139
139
  JSON.parse(Net::HTTP.get(URI("https://rubygems.org/api/v1/gems/#{gem[:name]}.json"))).each do |k,v|
140
- return $1 if k =~ /_uri/ && v =~ %r{github.com/([^/]+/[^/]+)}
140
+ return $1.sub(/\.git$/, '') if k =~ /_uri/ && v =~ %r{github.com/([^/]+/[^/]+)}
141
141
  end
142
142
  nil
143
143
  end
@@ -146,8 +146,20 @@ module Helper
146
146
  Net::HTTP.get(URI("https://www.versioneye.com/ruby/#{name}/badge")) =~ /out of date/
147
147
  end
148
148
 
149
- def sciruby_gems(exclude)
150
- SciRuby.gems.each_value.sort_by {|gem| gem[:name] }.reject do |gem|
149
+ def installable_gems
150
+ filter_gems(SciRuby.gems, true)
151
+ end
152
+
153
+ def installed_gems
154
+ filter_gems(SciRuby.installed_gems, true)
155
+ end
156
+
157
+ def all_gems
158
+ filter_gems(SciRuby.gems, false)
159
+ end
160
+
161
+ def filter_gems(gems, exclude)
162
+ gems.each_value.sort_by {|gem| gem[:name] }.reject do |gem|
151
163
  gem[:owner] == 'stdlib' || %w(sciruby sciruby-full).include?(gem[:name])
152
164
  end.reject {|gem| gem[:exclude] && exclude }
153
165
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sciruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - SciRuby Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Scientific gems for Ruby
14
14
  email:
@@ -48,7 +48,7 @@ post_install_message: |+
48
48
  * bibtex-ruby - BibTeX parser
49
49
  * bio - Bioinformatics suite
50
50
  * cassowary - Incremental constraint solver
51
- * classifier - Machine learning
51
+ * classifier-reborn - Machine learning
52
52
  * ctioga2 - Command line tool for tioga
53
53
  * daru - Dataframe library
54
54
  * darwinning - Genetic algorithms
@@ -136,4 +136,3 @@ signing_key:
136
136
  specification_version: 4
137
137
  summary: Scientific gems for Ruby
138
138
  test_files: []
139
- has_rdoc: