toybot 1.0.1 → 1.1.1
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 +8 -8
- data/README.md +6 -0
- data/lib/toybot/tabletop.rb +5 -0
- data/lib/toybot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGY0YTJkMjM5ZWQxNjE5MjRlYWNlZGViODVhNGZjNGE4MTRiZjQwNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Nzc3OWU5MzEzNmQ5NTAwYWQwYzgwNTJiNDExMjM0MmMxZWU3YjJmMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmZmZjRhNTI0OGM1YmYxY2Y2MjZhOGQzMmIxMjkzNmJkZDdhODA0OWI1ZDhk
|
10
|
+
NGYyN2I2NmJiZGE2ZGY3NmJkZWQ0ZTYzOTdkMDI3YjU4NGQzYjQ2OWZmZDA4
|
11
|
+
YjgxN2RlN2M3NmEyN2EzYTNmNzk4YjI2NWUxNmVmZWMyNjAyZjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
data/lib/toybot/tabletop.rb
CHANGED
@@ -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
|
data/lib/toybot/version.rb
CHANGED