whirled_peas 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -6
- data/lib/whirled_peas/graphics/graph_painter.rb +7 -5
- data/lib/whirled_peas/version.rb +1 -1
- data/screen_test/elements/graph.frame +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 424038cc2fb2f4b48edb6e43219f515eb5564f7e78871506d63ea1bbbc724ff9
|
4
|
+
data.tar.gz: 6f35ac5a2d32f3a37a6876e0b2b7022d9c0f07a1f71eb1f3d628def4840926e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf7a9b822e06e095fed812f5408358dd6562e604fa5da7c4e91a8cfcf9f96f081b9f33198767e0221563b2f2304a70e38e637c10830c16664440d46346cef6f
|
7
|
+
data.tar.gz: 7f402bf1c932d58893df06874f314216b053fdf2019704a13e317d5b0512e20558b0019eafb5d5c7796975e45e6ddc01fc3a0fd70e1c9179485de60f527dc422
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1130,7 +1130,7 @@ If a screen test file is provided as the first argument, the supported options a
|
|
1130
1130
|
|
1131
1131
|
## Contributing
|
1132
1132
|
|
1133
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
1133
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tcollier/whirled_peas. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/tcollier/whirled_peas/blob/master/CODE_OF_CONDUCT.md).
|
1134
1134
|
|
1135
1135
|
## License
|
1136
1136
|
|
@@ -1138,8 +1138,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
1138
1138
|
|
1139
1139
|
## Code of Conduct
|
1140
1140
|
|
1141
|
-
Everyone interacting in the WhirledPeas project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
1142
|
-
|
1143
|
-
```
|
1144
|
-
|
1145
|
-
```
|
1141
|
+
Everyone interacting in the WhirledPeas project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tcollier/whirled_peas/blob/master/CODE_OF_CONDUCT.md).
|
@@ -45,7 +45,9 @@ module WhirledPeas
|
|
45
45
|
@plot_lines = Array.new(inner_height) { '' }
|
46
46
|
scaled.each.with_index do |y, x_index|
|
47
47
|
@plot_lines.each.with_index do |row, row_index|
|
48
|
-
|
48
|
+
bottom_half_index = 2 * (inner_height - row_index - 1)
|
49
|
+
top_half_index = bottom_half_index + 1
|
50
|
+
|
49
51
|
asc, next_y = if scaled.length == 1
|
50
52
|
[true, y]
|
51
53
|
elsif x_index == scaled.length - 1
|
@@ -56,11 +58,11 @@ module WhirledPeas
|
|
56
58
|
[true, scaled[x_index + 1]]
|
57
59
|
end
|
58
60
|
if asc
|
59
|
-
top_half = (y...next_y).include?(
|
60
|
-
bottom_half = (y...next_y).include?(
|
61
|
+
top_half = y == top_half_index || (y...next_y).include?(top_half_index)
|
62
|
+
bottom_half = y == bottom_half_index || (y...next_y).include?(bottom_half_index)
|
61
63
|
else
|
62
|
-
top_half = (next_y...y).include?(
|
63
|
-
bottom_half = (next_y...y).include?(
|
64
|
+
top_half = y == top_half_index || (next_y...y).include?(top_half_index)
|
65
|
+
bottom_half = y == bottom_half_index || (next_y...y).include?(bottom_half_index)
|
64
66
|
end
|
65
67
|
row << if top_half && bottom_half
|
66
68
|
'█'
|
data/lib/whirled_peas/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[?25l[1;1H[J[1;1H┃[1;2H █ [2;1H┃[2;2H █ [3;1H┃[3;2H ▄▀ [4;1H┃[4;2H █ [5;1H┃[5;2H ▄▀ [6;1H┃[6;2H █ [7;1H┃[7;2H ▄▀ [8;1H┃[8;2H █ [9;1H┃[9;2H █ [10;1H┃[10;2H █ [11;1H┃[11;2H
|
1
|
+
[?25l[1;1H[J[1;1H┃[1;2H █ [2;1H┃[2;2H █ [3;1H┃[3;2H ▄▀ [4;1H┃[4;2H █ [5;1H┃[5;2H ▄▀ [6;1H┃[6;2H █ [7;1H┃[7;2H ▄▀ [8;1H┃[8;2H █ [9;1H┃[9;2H █ [10;1H┃[10;2H █ [11;1H┃[11;2H▄▄▀ [12;1H┗━━━━━━━━━━[0m[24;1H[?25h
|