danno_scrabble 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.
- checksums.yaml +4 -4
- data/.travis.yml +18 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +19 -0
- data/README.md +19 -14
- data/Rakefile +2 -1
- data/bin/scrabble +0 -0
- data/lib/scrabble.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef2e375c5c9847d6675e2e1513e061a6c9906c4a
|
4
|
+
data.tar.gz: 24b7f3972725a11e43d2a673790355c72c7233c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5464e0d9fc8353bb8ae5ec3824dee4317b5bb4d2185d17601014d9b27baa48a5502dc3ce6f8558d2291b3f7f1e730298905a1a7b29a6e9c2c6bf54ca82292407
|
7
|
+
data.tar.gz: f850eff4fbc9629d58082b056d4cc00cc89fc77c9575e484e3848d6710bedabab725b99cf3e7a70200ceff3557b8c55ab765faea7a6a0b64f8b0598a25af7fb9
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
|
-
| _ \ / _ \
|
3
|
-
| | | | | | | |
|
4
|
-
| |_| | | |_| |
|
5
|
-
|____/[] \ ___ /[]
|
1
|
+
____ ___
|
2
|
+
| _ \ / _ \
|
3
|
+
| | | | | | | |
|
4
|
+
| |_| | | |_| |
|
5
|
+
|____/[] \ ___ /[]
|
6
6
|
|
7
7
|
Scrabble has long been used to play on words. For example, you have a set of letters, these letters then make various
|
8
8
|
combinations of words. In the rules of scrabble those various combinations of words are compared against a valid scrabble
|
@@ -10,18 +10,23 @@ dictionary to see if it is a valid answer. This provides a list of all possible
|
|
10
10
|
|
11
11
|
# Requirements
|
12
12
|
|
13
|
-
* Ruby -v 2.2.0+ # Use Rvm where possible `rvm install "version_number"`
|
14
|
-
* Install the clock `gem install danno_scrabble` or clone it from this repo.
|
13
|
+
* Ruby -v 2.2.0+ # Use Rvm where possible `rvm install "version_number"`
|
14
|
+
* Install the clock `gem install danno_scrabble` or clone it from this repo.
|
15
15
|
|
16
|
-
#
|
16
|
+
# Example
|
17
17
|
|
18
|
-
Sample Input
|
19
|
-
"asd"
|
18
|
+
Sample Input
|
19
|
+
"asd"
|
20
20
|
|
21
|
-
Output for the Sample Input
|
22
|
-
["ad", "ads", "as", "da", "sad"]
|
21
|
+
Output for the Sample Input
|
22
|
+
["ad", "ads", "as", "da", "sad"]
|
23
23
|
|
24
24
|
# Using the Gem!
|
25
25
|
|
26
|
-
* `ruby -Ilib ./bin/scrabble {'scrabble'}` or `ruby -Ilib ./bin/scrabble {'asdfjkl'}` # if cloned
|
27
|
-
* `ruby -Ilib ~/.rvm/gems/ruby-2.2.3/gems/danno_scrabble_0.0.
|
26
|
+
* `ruby -Ilib ./bin/scrabble {'scrabble'}` or `ruby -Ilib ./bin/scrabble {'asdfjkl'}` # if cloned
|
27
|
+
* `ruby -Ilib ~/.rvm/gems/ruby-2.2.3/gems/danno_scrabble_0.0.4/bin/scrabble {'scrabble'}` # if installed via `gem install`
|
28
|
+
|
29
|
+
# Testing the Gem!
|
30
|
+
|
31
|
+
* `rake` # if cloned
|
32
|
+
* `cd ~/.rvm/gems/ruby-2.2.3/gems/danno_scrabble_0.0.4` then `rake` # if installed via `gem install`
|
data/Rakefile
CHANGED
data/bin/scrabble
CHANGED
File without changes
|
data/lib/scrabble.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
###
|
8
8
|
class Scrabble
|
9
9
|
###
|
10
|
-
# @param [String]
|
10
|
+
# @param [String] letters are ran against a dictionary for valid scrabble answers.
|
11
11
|
# @return [Array] returns possible valid results.
|
12
12
|
###
|
13
13
|
def self.run_scrabble(letters)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danno_scrabble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danial Oberg
|
@@ -17,6 +17,9 @@ executables:
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- ".travis.yml"
|
21
|
+
- Gemfile
|
22
|
+
- Gemfile.lock
|
20
23
|
- README.md
|
21
24
|
- Rakefile
|
22
25
|
- bin/scrabble
|