pressletter 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +12 -0
  4. data/Guardfile +24 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +55 -0
  7. data/Rakefile +1 -0
  8. data/assets/dictionary.txt +386264 -0
  9. data/bin/pressletter +7 -0
  10. data/lib/pressletter.rb +16 -0
  11. data/lib/pressletter/core/create_letters.rb +19 -0
  12. data/lib/pressletter/core/find_words.rb +23 -0
  13. data/lib/pressletter/core/load_dictionary.rb +5 -0
  14. data/lib/pressletter/core/print_words.rb +5 -0
  15. data/lib/pressletter/core/solve.rb +6 -0
  16. data/lib/pressletter/core/sort_words.rb +11 -0
  17. data/lib/pressletter/default_config.rb +5 -0
  18. data/lib/pressletter/shell/api.rb +25 -0
  19. data/lib/pressletter/shell/cli.rb +15 -0
  20. data/lib/pressletter/shell/reads_input.rb +10 -0
  21. data/lib/pressletter/shell/writes_output.rb +7 -0
  22. data/lib/pressletter/values/config.rb +3 -0
  23. data/lib/pressletter/values/dictionary.rb +10 -0
  24. data/lib/pressletter/values/letters.rb +18 -0
  25. data/lib/pressletter/values/words.rb +11 -0
  26. data/lib/pressletter/version.rb +3 -0
  27. data/pressletter.gemspec +32 -0
  28. data/spec/fixtures/simple_dict.txt +7 -0
  29. data/spec/lib/pressletter/core/create_letters_spec.rb +14 -0
  30. data/spec/lib/pressletter/core/find_words_spec.rb +20 -0
  31. data/spec/lib/pressletter/core/load_dictionary_spec.rb +23 -0
  32. data/spec/lib/pressletter/core/print_words_spec.rb +12 -0
  33. data/spec/lib/pressletter/core/solve_spec.rb +8 -0
  34. data/spec/lib/pressletter/core/sort_words_spec.rb +7 -0
  35. data/spec/lib/pressletter/shell/api_spec.rb +26 -0
  36. data/spec/lib/pressletter/shell/cli_spec.rb +22 -0
  37. data/spec/spec_helper.rb +28 -0
  38. metadata +145 -0
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pressletter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Justin Searls
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.12.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.12.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec-given
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 2.2.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.2.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: gimme
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.3.4
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.4
62
+ description: ! " pressletter is a tool for solving Letterpress puzzles. Using the\n
63
+ \ `pressletter` binary like this:\n\n $ pressletter eiptctbntymeiphoxvitkmzib\n\n
64
+ \ The argument is a list of all the letters on a pressletter board\n and will
65
+ yield an ordered list (from longest to shorted) of all\n legal words that can
66
+ be made with the provided letters.\n"
67
+ email:
68
+ - justin@testdouble.com
69
+ executables:
70
+ - pressletter
71
+ extensions: []
72
+ extra_rdoc_files: []
73
+ files:
74
+ - .gitignore
75
+ - .rspec
76
+ - Gemfile
77
+ - Guardfile
78
+ - LICENSE.txt
79
+ - README.md
80
+ - Rakefile
81
+ - assets/dictionary.txt
82
+ - bin/pressletter
83
+ - lib/pressletter.rb
84
+ - lib/pressletter/core/create_letters.rb
85
+ - lib/pressletter/core/find_words.rb
86
+ - lib/pressletter/core/load_dictionary.rb
87
+ - lib/pressletter/core/print_words.rb
88
+ - lib/pressletter/core/solve.rb
89
+ - lib/pressletter/core/sort_words.rb
90
+ - lib/pressletter/default_config.rb
91
+ - lib/pressletter/shell/api.rb
92
+ - lib/pressletter/shell/cli.rb
93
+ - lib/pressletter/shell/reads_input.rb
94
+ - lib/pressletter/shell/writes_output.rb
95
+ - lib/pressletter/values/config.rb
96
+ - lib/pressletter/values/dictionary.rb
97
+ - lib/pressletter/values/letters.rb
98
+ - lib/pressletter/values/words.rb
99
+ - lib/pressletter/version.rb
100
+ - pressletter.gemspec
101
+ - spec/fixtures/simple_dict.txt
102
+ - spec/lib/pressletter/core/create_letters_spec.rb
103
+ - spec/lib/pressletter/core/find_words_spec.rb
104
+ - spec/lib/pressletter/core/load_dictionary_spec.rb
105
+ - spec/lib/pressletter/core/print_words_spec.rb
106
+ - spec/lib/pressletter/core/solve_spec.rb
107
+ - spec/lib/pressletter/core/sort_words_spec.rb
108
+ - spec/lib/pressletter/shell/api_spec.rb
109
+ - spec/lib/pressletter/shell/cli_spec.rb
110
+ - spec/spec_helper.rb
111
+ homepage: https://github.com/searls/pressletter
112
+ licenses: []
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubyforge_project:
131
+ rubygems_version: 1.8.24
132
+ signing_key:
133
+ specification_version: 3
134
+ summary: A tool for solving Letterpress puzzles
135
+ test_files:
136
+ - spec/fixtures/simple_dict.txt
137
+ - spec/lib/pressletter/core/create_letters_spec.rb
138
+ - spec/lib/pressletter/core/find_words_spec.rb
139
+ - spec/lib/pressletter/core/load_dictionary_spec.rb
140
+ - spec/lib/pressletter/core/print_words_spec.rb
141
+ - spec/lib/pressletter/core/solve_spec.rb
142
+ - spec/lib/pressletter/core/sort_words_spec.rb
143
+ - spec/lib/pressletter/shell/api_spec.rb
144
+ - spec/lib/pressletter/shell/cli_spec.rb
145
+ - spec/spec_helper.rb