battle_boats 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 791eea6114618f5ef11931fe82adba7e2ffe7dec
4
- data.tar.gz: 63d52864d51536b2f37f64a3399db55f7d158ccf
3
+ metadata.gz: 5d34a567d9ab259c06725fb376c6ac50ccfa50bb
4
+ data.tar.gz: 267ad389ba1dcc16629ef311338082be84261cfa
5
5
  SHA512:
6
- metadata.gz: 9c33a5b0d4ccee4a9c7a87cc3bd914aa83e9090dab4de4e2fd231c7f37eef205c966ad02ba1d48eff61425e5b931f2f9216609a928efb4e29e7e6790795ec377
7
- data.tar.gz: 4b5eda31f0bf537dd288d7f990da0e644ee4d86c3b645b4e4dd9f576440af41587aa36de0da5bbb99d4ec7581200117ad92e2f4521a53ea8060bffe25940be4f
6
+ metadata.gz: 6b2522a014e9bdd08e14e18640210c5d07f8c061fb139662969ac6a8b42126ff682a3630ef1cf8eb26623bf56b4a1d9efe632ab3c68555234c39133c657e3fe7
7
+ data.tar.gz: 9367398ad9236ff0b0913dee33199c71936c1739bf47241477c985c94df558b395c10195feb08504097861ea3bcf1a7a1a073f0d12bd444e44b20770860694f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- battle_boats (0.0.0)
4
+ battle_boats (0.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # Battle Boats
1
+ # Battle Boats [![Build Status](https://travis-ci.org/Thomascountz/battle_boats.svg?branch=master)](https://travis-ci.org/Thomascountz/battle_boats) [![Maintainability](https://api.codeclimate.com/v1/badges/f9fb2b053e6bad40b13e/maintainability)](https://codeclimate.com/github/Thomascountz/battle_boats/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/f9fb2b053e6bad40b13e/test_coverage)](https://codeclimate.com/github/Thomascountz/battle_boats/test_coverage)
2
+
2
3
 
3
4
  Battle Boats is a ruby library implementation of [Battleship](https://en.wikipedia.org/wiki/Battleship_%28game%29)!
4
5
 
@@ -20,7 +21,17 @@ Or install it yourself as:
20
21
 
21
22
  ## Usage
22
23
 
23
- TODO
24
+ Enter
25
+
26
+ ```
27
+ $ battle_boats
28
+ ```
29
+
30
+ into the terminal. You should see a welcome message:
31
+
32
+ ```
33
+ Welcome to Battle Boats!
34
+ ```
24
35
 
25
36
  ## Development
26
37
 
data/battle_boats.gemspec CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
25
  f.match(%r{^(test|spec|features)/})
26
26
  end
27
- spec.bindir = "exe"
28
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.bindir = "bin"
28
+ spec.executables = ["battle_boats"]
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  spec.add_development_dependency "bundler", "~> 1.16"
data/bin/battle_boats ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'battle_boats'
4
+
5
+ console_ui = BattleBoats::ConsoleUI.new
6
+ console_ui.greet
data/lib/battle_boats.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "battle_boats/version"
2
+ require "battle_boats/console_ui"
2
3
 
3
4
  module BattleBoats
4
5
  # Your code goes here...
@@ -0,0 +1,15 @@
1
+ module BattleBoats
2
+ class ConsoleUI
3
+ def initialize(output: $stdout)
4
+ @output = output
5
+ end
6
+
7
+ def greet
8
+ output.puts "Welcome to Battle Boats!"
9
+ end
10
+
11
+ private
12
+
13
+ attr_reader :output
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module BattleBoats
2
- VERSION = "0.0.0".freeze
2
+ VERSION = "0.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: battle_boats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Countz
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,7 +70,8 @@ description: 'Battleship is a two-player guessing game. More details can be foun
70
70
  here: https://en.wikipedia.org/wiki/Battleship_(game)'
71
71
  email:
72
72
  - thomascountz@gmail.com
73
- executables: []
73
+ executables:
74
+ - battle_boats
74
75
  extensions: []
75
76
  extra_rdoc_files: []
76
77
  files:
@@ -86,9 +87,11 @@ files:
86
87
  - README.md
87
88
  - Rakefile
88
89
  - battle_boats.gemspec
90
+ - bin/battle_boats
89
91
  - bin/console
90
92
  - bin/setup
91
93
  - lib/battle_boats.rb
94
+ - lib/battle_boats/console_ui.rb
92
95
  - lib/battle_boats/version.rb
93
96
  homepage: https://www.github.com/thomascountz/battle_boats
94
97
  licenses: