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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aad2e25a1fd3c5295fa464c471d8ac753fe3a7a0
4
- data.tar.gz: 0e2075abfe6b35de78abf23a7bd3b1ac4b999837
3
+ metadata.gz: ef2e375c5c9847d6675e2e1513e061a6c9906c4a
4
+ data.tar.gz: 24b7f3972725a11e43d2a673790355c72c7233c9
5
5
  SHA512:
6
- metadata.gz: 56cc7404a427024aec7c30669a2acdaa8964e54728fa753255c45dc62f5400b8afc5b96229f9daea670763fc661ed1d08ad0d89c423d8a7e3d44b67bf32ec510
7
- data.tar.gz: 39ea0f3ba1bf4188928b61a5d5d4f467215b6f653c58f24474ff8a6f319bbdf9e34d9da628ca995631faabfb4564c51f7f4d32fc854cca218f0b8982f7d995b3
6
+ metadata.gz: 5464e0d9fc8353bb8ae5ec3824dee4317b5bb4d2185d17601014d9b27baa48a5502dc3ce6f8558d2291b3f7f1e730298905a1a7b29a6e9c2c6bf54ca82292407
7
+ data.tar.gz: f850eff4fbc9629d58082b056d4cc00cc89fc77c9575e484e3848d6710bedabab725b99cf3e7a70200ceff3557b8c55ab765faea7a6a0b64f8b0598a25af7fb9
data/.travis.yml ADDED
@@ -0,0 +1,18 @@
1
+ cache: bundler
2
+
3
+ language: ruby
4
+
5
+ rvm:
6
+ - 2.2.3
7
+ - 2.2.0
8
+ install:
9
+ - "travis_retry bin/setup"
10
+
11
+ script:
12
+ - "bundle exec rake"
13
+
14
+ branches:
15
+ only:
16
+ - master
17
+
18
+ sudo: false
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'minitest'
data/Gemfile.lock ADDED
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ danno_scrabble (0.0.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ minitest (5.9.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ danno_scrabble!
16
+ minitest
17
+
18
+ BUNDLED WITH
19
+ 1.10.6
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
- # INFO
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.3/bin/scrabble {'scrabble'}` # if installed via `gem install`
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
@@ -2,7 +2,8 @@ require 'rake/testtask'
2
2
 
3
3
  Rake::TestTask.new do |t|
4
4
  t.libs << 'test'
5
+ t.pattern = 'test/test_*.rb'
5
6
  end
6
7
 
7
- desc "Run tests"
8
+ desc "Running tests"
8
9
  task :default => :test
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] run a list of letters against a text dictionary file for valid scrabble answers.
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.3
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