toybot 1.0.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmU0YWNiYjUzYzMyNWUwY2QxMmI3MWM0ZDcyNzAxNjIyYjc3NTYyOA==
4
+ MGY0YTJkMjM5ZWQxNjE5MjRlYWNlZGViODVhNGZjNGE4MTRiZjQwNg==
5
5
  data.tar.gz: !binary |-
6
- MTc5MDVhYjYyNzUwNjE0ZmJiYjc4NDJjYzZjZDQyMzdmNDE1YzA4NA==
6
+ Nzc3OWU5MzEzNmQ5NTAwYWQwYzgwNTJiNDExMjM0MmMxZWU3YjJmMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjBjNDkxYzYzZGQwYzllZTE0OTZhZmI2ODgzYTU1MDY2Nzc5YjE5MDQ2ZTIx
10
- YmY4ZjI2MDI3NzE5YTQ1NDYzNWVmZmNkYTFlNzgwZjAwZGUxOWE4M2IxM2Q5
11
- ZGY3NmFmYzhkZjE0NGUxZjlhNTk0ZGY2YWI0MTNlMjU3MmZkNDk=
9
+ MmZmZjRhNTI0OGM1YmYxY2Y2MjZhOGQzMmIxMjkzNmJkZDdhODA0OWI1ZDhk
10
+ NGYyN2I2NmJiZGE2ZGY3NmJkZWQ0ZTYzOTdkMDI3YjU4NGQzYjQ2OWZmZDA4
11
+ YjgxN2RlN2M3NmEyN2EzYTNmNzk4YjI2NWUxNmVmZWMyNjAyZjk=
12
12
  data.tar.gz: !binary |-
13
- MzBlZDQwOGU4MjgwYzliN2MxNDk5YTIzNjkyOTgxMzU1MDJhNTM4MjJhMjQw
14
- ODRkMTA3ZDMxZTdiY2FiYTk0ZTA4MmQ5N2M2ZjJiZmIyYjgwNGM0ZTc2MzIz
15
- NDZjMDBlZWY5ZmEyMTQ3NzVmZjIyYTVmY2UxM2ZjOTY5MGYzZTI=
13
+ YWUwM2UzYzAzOWYwMmQzMDMzMzVlNzk3NTU2MmMwYmI2ZTY3MWVlZGZiMjdi
14
+ OTkxZjQ3Y2NjZWFmZTNjYzQ0MjM2YzY0NzQ1N2YxYzc4YTBkZGUxZTdlODNi
15
+ NzU4MGQ3NmVjOGY2MWFlY2FjODE5MGEzMWQ1OTE3YzVmOTg5NzU=
data/README.md CHANGED
@@ -13,6 +13,12 @@ $ gem install toybot
13
13
  $ toy-robot
14
14
  ```
15
15
 
16
+ **Note:**
17
+
18
+ If you get an unknown command error after trying to execute `toy-robot`,
19
+ you can try to reset the command hash table by executing `hash -r` (bash) or
20
+ opening a new terminal window.
21
+
16
22
  ## From the source
17
23
 
18
24
  ### Requirements
@@ -11,9 +11,14 @@ class Toybot::Tabletop
11
11
  def initialize width: DEFAULT_TABLETOP_WIDTH, height: DEFAULT_TABLETOP_HEIGHT
12
12
  @width = width > 0 ? width : 1
13
13
  @height = height > 0 ? height : 1
14
+ self.report
14
15
  end
15
16
 
16
17
  def size
17
18
  {width: self.width, height: self.height}
18
19
  end
20
+
21
+ def report
22
+ puts "New tabletop (width: #{@width}, height: #{@height})"
23
+ end
19
24
  end
@@ -1,3 +1,3 @@
1
1
  module Toybot
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toybot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud MESUREUR