reclassifier 0.2.5 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/reclassifier.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # gems
2
- require 'matrix'
3
2
  require 'fast-stemmer'
4
3
  require 'gsl'
4
+ require 'jsonable'
5
+ require 'matrix'
5
6
 
6
7
  # files
7
8
  require 'reclassifier/version'
@@ -6,6 +6,7 @@
6
6
  # Cambridge University Press. 2008, ISBN 0521865719.
7
7
  #
8
8
  class Reclassifier::Bayes
9
+ include Jsonable
9
10
  include Reclassifier::WordHash
10
11
 
11
12
  # Can be created with zero or more classifications, each of which will be
@@ -1,3 +1,3 @@
1
1
  module Reclassifier
2
- VERSION = "0.2.5"
2
+ VERSION = "0.3.5"
3
3
  end
data/reclassifier.gemspec CHANGED
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency 'fast-stemmer'
26
26
  spec.add_dependency 'gsl'
27
+ spec.add_dependency 'jsonable'
27
28
  end
data/spec/bayes_spec.rb CHANGED
@@ -131,4 +131,8 @@ describe Reclassifier::Bayes do
131
131
  subject.classify('! aaa !').should eq(:one)
132
132
  end
133
133
  end
134
+
135
+ it 'should include the Jsonable module' do
136
+ described_class.ancestors.include?(Jsonable).should be(true)
137
+ end
134
138
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reclassifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: jsonable
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
94
110
  description: Bayesian and Latent Semantic Indexing classification of text.
95
111
  email:
96
112
  - rroblak@gmail.com