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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7553fd2ea78bf560098d8be8cd3987f1e8a686cb000cf6ea082a922512764069
4
- data.tar.gz: 8fa1e64c35b311ae9346badc0198f556528c53dad9bfa0b99b2805c901369b8f
3
+ metadata.gz: 424038cc2fb2f4b48edb6e43219f515eb5564f7e78871506d63ea1bbbc724ff9
4
+ data.tar.gz: 6f35ac5a2d32f3a37a6876e0b2b7022d9c0f07a1f71eb1f3d628def4840926e7
5
5
  SHA512:
6
- metadata.gz: 531b93061429918f99dc5aa7de09a53a7fda218c97bac57b47d5a450ad22510207f71ba5a095f5a1939e4cce9d1f13d70a981e15b4e3209d0786ba12be048bd6
7
- data.tar.gz: ea7daec0ccd65894bec99bfff75219d55dfc2cd9fc7b80d1e593b60e7a15a3e8eb7cbfa49e8ef20e8da5acbce2738d054cf56a9b0231661e46a5c399c83b8906
6
+ metadata.gz: 4bf7a9b822e06e095fed812f5408358dd6562e604fa5da7c4e91a8cfcf9f96f081b9f33198767e0221563b2f2304a70e38e637c10830c16664440d46346cef6f
7
+ data.tar.gz: 7f402bf1c932d58893df06874f314216b053fdf2019704a13e317d5b0512e20558b0019eafb5d5c7796975e45e6ddc01fc3a0fd70e1c9179485de60f527dc422
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.9.1 - 2021-01-29
4
+
5
+ - [c35b134](https://github.com/tcollier/whirled_peas/tree/c35b134e1340b8b5f1d1fb0e6e56dc2a99b52e94): Improve graph plots
6
+
3
7
  ## v0.9.0 - 2021-01-29
4
8
 
5
9
  BREAKING: `Frameset#add_frame` signature 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/[USERNAME]/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/[USERNAME]/whirled_peas/blob/master/CODE_OF_CONDUCT.md).
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/[USERNAME]/whirled_peas/blob/master/CODE_OF_CONDUCT.md).
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
- y_index = inner_height - row_index - 1
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?(2 * y_index + 1)
60
- bottom_half = (y...next_y).include?(2 * y_index)
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?(2 * y_index + 1)
63
- bottom_half = (next_y...y).include?(2 * y_index)
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
  '█'
@@ -1,3 +1,3 @@
1
1
  module WhirledPeas
2
- VERSION = '0.9.0'
2
+ VERSION = '0.9.1'
3
3
  end
@@ -1 +1 @@
1
- [?25l┃ █ ┃ █ ┃ ▄▀ ┃ █ ┃ ▄▀ ┃ █ ┃ ▄▀ ┃ █ ┃ █ ┃ █ ┃ ▄▀ ┗━━━━━━━━━━[?25h
1
+ [?25l┃ █ ┃ █ ┃ ▄▀ ┃ █ ┃ ▄▀ ┃ █ ┃ ▄▀ ┃ █ ┃ █ ┃ █ ┃▄▄▀ ┗━━━━━━━━━━[?25h
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whirled_peas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Collier