wordtree 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/wordtree/book.rb CHANGED
@@ -17,7 +17,7 @@ module WordTree
17
17
  # Size of the content in bytes
18
18
  attribute :size_bytes, Integer, :default => :content_size
19
19
  # A simhash (locality-sensitive hash) of the content
20
- attribute :simhash, Integer, :default => :calculate_simhash
20
+ attribute :simhash, Integer
21
21
 
22
22
  attribute :content, String
23
23
 
@@ -1,3 +1,3 @@
1
1
  module Wordtree
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -49,7 +49,6 @@ describe WordTree::DB::Librarian do
49
49
  result = r.table('books').run(rdb).to_a
50
50
  expect(result).to eq([{
51
51
  "id" => "test",
52
- "simhash" => 1318950168412674304,
53
52
  "size_bytes" => 4,
54
53
  "year" => 1800}])
55
54
  end
@@ -59,7 +59,6 @@ describe WordTree::Disk::Librarian do
59
59
  :archive_org_id => "book",
60
60
  :year => 1800,
61
61
  :source => "test",
62
- :simhash => 14921967289891934128,
63
62
  :size_bytes => 17)
64
63
  expect(updated.content).to eq("Book with content.")
65
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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: 2014-09-04 00:00:00.000000000 Z
12
+ date: 2014-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus