whirled_peas 0.7.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46a66b5e575d80b9e99cd263d8158ece7f500aebfc853df72bd340b7b67a0787
4
- data.tar.gz: 6a097ab19829f97957eff088dab8aed0241b0d68a79a43681883a07e2a897790
3
+ metadata.gz: 55ddf23151c866304cbe5213073c9ac9bd3c7b17139737acf1fe2f6678e6248f
4
+ data.tar.gz: 31d26322b45af3d06c2f64c019fde32cebfe87638852c87857fa0113dc3bdc11
5
5
  SHA512:
6
- metadata.gz: '093f92c928d2dda04cabe54d4bcc627f3083fcc1e1b68ceb413dc2ffcfa3e1f73427a91f9e5d1fee8992fcc1e88f601984e5e04f8b0a58183c5b44ac5e4d2c27'
7
- data.tar.gz: '0300822358c0ceaeba6c998cbff96ac1c2d94198cc639062e77cfe041132630f94f8dd4ef56a6de45838b068480f0a8ebcc40c23c2b1a5e315ce990ead06ca93'
6
+ metadata.gz: 7be414e153881ff228f8780e11887be61844d1f719c1b19d50888cf7c2caf3d2171dd992c6694604672209f5e7457b35eebba7498dd60bb1d21e717c467f0a6c
7
+ data.tar.gz: d27958378cfd0fe6728ef547559f07258ecafb2481df0d1994d3cf13802ae14ad414c212d2186f8e36ecb00be608d8abc3c6ccb918109a0114cc9585ed431735
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.7.1 - 2021-01-27
4
+
5
+ - [b98781d](https://github.com/tcollier/whirled_peas/tree/b98781de23a24b596955f25cfc48936c0cc1efac): Fix num_cols bug for vertical grid flow
6
+
3
7
  ## v0.7.0 - 2021-01-27
4
8
 
5
9
  BREAKING: the settings for the template now fills the full screen and disallows margin.
data/README.md CHANGED
@@ -531,6 +531,8 @@ Scroll settings dictate whether the scrollbar will be shown when child content i
531
531
  - `scrollbar.horiz=(flag)` - show/hide the horizontal scrollbar
532
532
  - `scrollbar.vert=(flag)` - show/hide the vertical scrollbar
533
533
 
534
+ Note: there is a know bug with scrollbars and `center`/`right` alignments. Using `left` alignment is the supported workaround
535
+
534
536
  ##### Border
535
537
 
536
538
  The border settings consist of 6 boolean values (border are either width 1 or not shown), the 4 obvious values (`left`, `top`, `right`, and `bottom`) along with 2 other values for inner borders (`inner_horiz` and `inner_vert`) in a grid. A border also has a foreground color (defaults to `:white`) and a style. The background color is determined by the `bg_color` of the element. Border values can be set with
@@ -543,8 +545,8 @@ The border settings consist of 6 boolean values (border are either width 1 or no
543
545
  - `border.bottom=(flag)` - show/hide bottom border
544
546
  - `border.inner_horiz=(flag)` - show/hide inner horizontal border (dividing grid rows)
545
547
  - `border.inner_vert=(flag)` - show/hide inner vertical border (dividing grid columns)
546
- - `border.color=(flag)` - set the border color
547
- - `border.style=(flag)` - set the border style
548
+ - `border.color=(text_color)` - set the border color
549
+ - `border.style=(style)` - set the border style
548
550
 
549
551
  Available border styles are
550
552
 
@@ -58,7 +58,7 @@ module WhirledPeas
58
58
  col_index, row_index = [index % dimensions.num_cols, index / dimensions.num_cols]
59
59
  col_index = dimensions.num_cols - col_index - 1 if settings.reverse_flow?
60
60
  else
61
- col_index, row_index = [index / dimensions.num_cols, index % dimensions.num_cols]
61
+ col_index, row_index = [index / dimensions.num_rows, index % dimensions.num_rows]
62
62
  row_index = dimensions.num_rows - row_index - 1 if settings.reverse_flow?
63
63
  end
64
64
  [col_index, row_index]
@@ -1,3 +1,3 @@
1
1
  module WhirledPeas
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
@@ -1 +1 @@
1
- [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛1234567891011121314[?25h
1
+ [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛12345678910[?25h
@@ -7,7 +7,7 @@ class TemplateFactory
7
7
  settings.flow = :b2t
8
8
  settings.full_border
9
9
  settings.num_cols = 4
10
- 14.times.map { |i| i + 1 }
10
+ 10.times.map { |i| i + 1 }
11
11
  end
12
12
  end
13
13
  end
@@ -1 +1 @@
1
- [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛1234567891011121314[?25h
1
+ [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛12345678910[?25h
@@ -7,7 +7,7 @@ class TemplateFactory
7
7
  settings.flow = :l2r
8
8
  settings.full_border
9
9
  settings.num_cols = 4
10
- 14.times.map { |i| i + 1 }
10
+ 10.times.map { |i| i + 1 }
11
11
  end
12
12
  end
13
13
  end
@@ -1 +1 @@
1
- [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛1234567891011121314[?25h
1
+ [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛12345678910[?25h
@@ -7,7 +7,7 @@ class TemplateFactory
7
7
  settings.flow = :r2l
8
8
  settings.full_border
9
9
  settings.num_cols = 4
10
- 14.times.map { |i| i + 1 }
10
+ 10.times.map { |i| i + 1 }
11
11
  end
12
12
  end
13
13
  end
@@ -1 +1 @@
1
- [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛1234567891011121314[?25h
1
+ [?25l┏━━┳━━┳━━┳━━┓┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┣━━╋━━╋━━╋━━┫┃ ┃ ┃ ┃ ┃┗━━┻━━┻━━┻━━┛12345678910[?25h
@@ -7,7 +7,7 @@ class TemplateFactory
7
7
  settings.flow = :t2b
8
8
  settings.full_border
9
9
  settings.num_cols = 4
10
- 14.times.map { |i| i + 1 }
10
+ 10.times.map { |i| i + 1 }
11
11
  end
12
12
  end
13
13
  end
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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Collier