word_scramble 0.0.4 → 0.0.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/word_scramble.rb +0 -8
- data/lib/word_scramble/version.rb +1 -1
- metadata +3 -3
data/lib/word_scramble.rb
CHANGED
@@ -20,14 +20,6 @@ require "word_scramble/version"
|
|
20
20
|
# descrambler.matching_words # => ["airplane", ... ]
|
21
21
|
|
22
22
|
module WordScramble
|
23
|
-
DICTIONARY_PATH = if File.exists?('/etc/dictionaries-common/words')
|
24
|
-
'/etc/dictionaries-common/words'
|
25
|
-
elsif File.exists?('/usr/share/dict/words')
|
26
|
-
'/usr/share/dict/words'
|
27
|
-
else
|
28
|
-
raise "no dictionary file found"
|
29
|
-
end
|
30
|
-
|
31
23
|
DICTIONARY = File.open(File.expand_path('../dictionary.txt', __FILE__)) do |f|
|
32
24
|
dictionary = []
|
33
25
|
f.each_line do |line|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: word_scramble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &75348930 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *75348930
|
25
25
|
description: Take a string of scrambled characters and find all the words that can
|
26
26
|
be made from those characters.
|
27
27
|
email:
|