term_canvas 0.2.6 → 0.2.7

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: 69fea3cf5259f580cd80ffc235069856bd66fb80c74f47199f93b3168a609730
4
- data.tar.gz: 2cb7c37df547fd592e62294a7a55ddde4467c02528781b5fd21e4017182ed39e
3
+ metadata.gz: bfafbd729bb22814452e51d4b8a26040dcdccba797b573e0b61781cc0ab86de2
4
+ data.tar.gz: 6923caf13aaa4c5f12c91f4d804f200207898fc526c2097511e63695ecc93977
5
5
  SHA512:
6
- metadata.gz: 0e98535dee900f5cb45fdf33f64eca3804b153eb61505edb0ceeaedb39186ec55d18648c6eb4ee52542320a0cf6fa5c8a6ec05e1c93c910b1353f7a8d9557eba
7
- data.tar.gz: 6f169a4af41af6ada60e6700796bf028c65d241f0214917bdb64b23d144a534ad1ec67bf5f03acdf870cc3c166d15506927d759e68d6aac2636d3c141295acd5
6
+ metadata.gz: 24fd415c676121742b6eee87163fa5f33971331dfdc19ce08c202b815e857781c065b6c28b68b36b3d97236081678df37b8aa28843fac20dd7325183caa0cf0f
7
+ data.tar.gz: 10cb081991e2479bec357d06fa7495261e5769cc411bdc16b134d6b4a086b62f1c6406661f45a67a92662004e93cea25bc818882b2906f9fd8835bcc23e3708f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- term_canvas (0.2.6)
4
+ term_canvas (0.2.7)
5
5
  curses
6
6
 
7
7
  GEM
data/_examples/test.rb CHANGED
@@ -22,7 +22,7 @@ loop do
22
22
  field.rect(
23
23
  TermCanvas::Rect.new(
24
24
  x: field.centerx, y: field.centery, width: 2, height: 1, background_color: {r: 200, b: 200, g: 800}
25
- )
25
+ ).offset(x: -TermCanvas.width / 2, y: 0)
26
26
  )
27
27
  field.text(
28
28
  TermCanvas::Text.new(
data/bin/release ADDED
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ bundle exec rake release
@@ -10,9 +10,9 @@ module TermCanvas
10
10
  # @param x [Integer] Offset of x
11
11
  # @param y [Integer] Offset of y
12
12
  # @return self
13
- def offset(x:, y:)
14
- @x += x
15
- @y += y
13
+ def offset(x: nil, y: nil)
14
+ @x += x if x
15
+ @y += y if y
16
16
  self
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module TermCanvas
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: term_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kthatoto
@@ -85,6 +85,7 @@ files:
85
85
  - _examples/simplified_chart.rb
86
86
  - _examples/test.rb
87
87
  - bin/console
88
+ - bin/release
88
89
  - bin/setup
89
90
  - bin/update
90
91
  - lib/term_canvas.rb