word_scramble 0.0.3 → 0.0.4
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/dictionary.txt +80368 -0
- data/lib/word_scramble/version.rb +1 -1
- data/lib/word_scramble.rb +1 -1
- data/spec/word_scramble_spec.rb +1 -1
- metadata +5 -4
data/lib/word_scramble.rb
CHANGED
@@ -28,7 +28,7 @@ module WordScramble
|
|
28
28
|
raise "no dictionary file found"
|
29
29
|
end
|
30
30
|
|
31
|
-
DICTIONARY = File.open(
|
31
|
+
DICTIONARY = File.open(File.expand_path('../dictionary.txt', __FILE__)) do |f|
|
32
32
|
dictionary = []
|
33
33
|
f.each_line do |line|
|
34
34
|
dictionary.push(line.strip)
|
data/spec/word_scramble_spec.rb
CHANGED
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.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
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: &76838640 !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: *76838640
|
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:
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- README.md
|
38
38
|
- Rakefile
|
39
39
|
- bin/descramble
|
40
|
+
- lib/dictionary.txt
|
40
41
|
- lib/word_scramble.rb
|
41
42
|
- lib/word_scramble/descrambler.rb
|
42
43
|
- lib/word_scramble/scrambled_word.rb
|