spicy-proton 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -9
- data/lib/corpus/adjectives.bin +0 -0
- data/lib/corpus/adjectives.yaml +5178 -5138
- data/lib/corpus/colors.bin +0 -0
- data/lib/corpus/colors.yaml +156 -136
- data/lib/corpus/nouns.bin +0 -0
- data/lib/corpus/nouns.yaml +11074 -11036
- data/lib/disk-corpus.rb +103 -0
- data/lib/memory-corpus.rb +71 -0
- data/lib/seek.rb +30 -0
- data/lib/spicy-proton.rb +26 -40
- metadata +23 -6
- data/lib/binary.rb +0 -102
- data/lib/corpus/combined.bin +0 -0
- data/lib/files.rb +0 -23
data/lib/corpus/combined.bin
DELETED
Binary file
|
data/lib/files.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
module Spicy
|
2
|
-
module Files
|
3
|
-
def self.dir
|
4
|
-
@@dir ||= File.join(File.dirname(__FILE__), 'corpus')
|
5
|
-
end
|
6
|
-
|
7
|
-
def self.adjectives
|
8
|
-
@@adjectives ||= File.join(dir, 'adjectives.yaml')
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.nouns
|
12
|
-
@@nouns ||= File.join(dir, 'nouns.yaml')
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.colors
|
16
|
-
@@colors ||= File.join(dir, 'colors.yaml')
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.combined
|
20
|
-
@@combined ||= File.join(dir, 'combined.bin')
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|