ascii_grid 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/ascii_grid.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ba26a2afc003cd13549fdd530a16f3bd4b0765ec
4
- data.tar.gz: 7de53ae7c3af8e1d96e22e67b3414a250dcaa294
2
+ SHA256:
3
+ metadata.gz: 9db5664041c42049e44b4965f32bab10215ac0f3f530ad60a402570c037fbf6b
4
+ data.tar.gz: 8212655692cb38d91f553fd078b0a049729f2d9d4019e4a59fe589d19888015c
5
5
  SHA512:
6
- metadata.gz: a358a3d95887acb3145c2daf88ee59c5edf74bfdad813a5474131bab99e0011ade5af33776784869961162a90101fe62ab2ed047b32864c7bf4470bd92db1614
7
- data.tar.gz: 3b68d92be5fbbb3d4cd03a87678317d3a8dc6e1b500a5818e2f25f1e0d6c1c08795b135eaaa83ce03ef02daab60fd7b31d296c117453321f1b560a5703ee68f2
6
+ metadata.gz: 3279f1e163324c931b8f3da198b60b862f69d0b176943dfa3f4bb49b3260d8b762984cac3f4037aab72cc5bf68fc2db7c7b06b7cf4eb7c222c6b24de10701212
7
+ data.tar.gz: b17264aa42d0abaafb3b888b89335307cc465d55fc5008367e9d06ef7d632b2517d93a394eea194f6febd07a49d964d6a7b49529a0cd4589c316f4272c172045
@@ -22,7 +22,7 @@ class Ascii_grid
22
22
  @y_size = x_size.to_i
23
23
  @x_offset = x_offset.to_i
24
24
  @y_offset = y_offset.to_i
25
- @point = "@"
25
+ @point = "\e[31m@\e[0m"
26
26
  @blank_space = "+"
27
27
  @clear = false
28
28
  end
@@ -78,7 +78,7 @@ class Ascii_grid
78
78
  printed << @blank_space.to_s
79
79
  end
80
80
  end
81
- if (y_offset == current_y)
81
+ if (y_offset == current_y && current_x != @x_size)
82
82
  printed << "-"
83
83
  else
84
84
  printed << " "
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascii_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-28 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem should allow you to easily create grids in the terminal and
14
14
  display points in that grid
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  version: '0'
39
39
  requirements: []
40
40
  rubyforge_project:
41
- rubygems_version: 2.5.2.1
41
+ rubygems_version: 2.7.6
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Create a grid in the terminal