word_scramble 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module WordScramble
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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(DICTIONARY_PATH) do |f|
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)
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe WordScramble do
4
4
  it "has a Dictionary" do
5
- WordScramble::DICTIONARY.count.should be > 90000
5
+ WordScramble::DICTIONARY.count.should be > 80000
6
6
  end
7
7
 
8
8
  it "has some common words in the dictionary" do
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.3
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-11 00:00:00.000000000 Z
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: &68903840 !ruby/object:Gem::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: *68903840
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