rubytext 0.1.3 → 0.1.4

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: a44ff797b3e137f2f35e624433dba27bd34e442e69746e109758fc8dc639f032
4
- data.tar.gz: e46dc70ddd8b860a00dd363c519c6321c63d89251e845b98fef2e8162e599d66
3
+ metadata.gz: 1fdecc3c5bfb6c33fbd4a818d2f376f0bde01c416cc4639ccc30d251b656968b
4
+ data.tar.gz: 168b787efee37e97b674c4a3cc176245e9d4449db96a31cd875b97ab1dc6c86f
5
5
  SHA512:
6
- metadata.gz: e50eddaf2ff656de4f8f73284aeca54a73b91d4079c4878a5cfd68918ae0428aff683cf06459a9d896cda39309dfaafec285e39c170a73b1ff727b3cac77a274
7
- data.tar.gz: a52cf4b2d15140f82abb5fc770e092ba09075ad4cd5c2cf52b635c6b26657d59ec8385c6b08ef85c87bf845d1118fc8198a23655dff3f74beaae520258998469
6
+ metadata.gz: 2c179cce895108856d7a8aa0d0d52d2a2a3775254452a4c3abd27402a7e62e62ab321a0cb921dbc75614a84ce2303fb0020ca878582d2ccf4aa099fdb1c483df
7
+ data.tar.gz: 92d2b5858741a6a22f10dac8d7da62498dee78829e5b6d4c46db164b9e89520e2b39344452def8b28fc8612d2afed4449c2b61250f02c9bdf7f72cac57c69373
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
@@ -35,5 +35,16 @@ module RubyText
35
35
  ret
36
36
  end
37
37
 
38
+ def self.splash(msg)
39
+ lines = msg.split("\n")
40
+ high = lines.size + 2
41
+ wide = lines.map {|x| x.length }.max + 2
42
+ STDSCR.saveback(high, wide, 10, 20)
43
+ win = RubyText.window(high, wide, r: 10, c: 20, fg: White, bg: Red)
44
+ win.puts msg
45
+ getch
46
+ STDSCR.restback(high, wide, 10, 20)
47
+ end
48
+
38
49
  # TODO add splash
39
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-28 00:00:00.000000000 Z
11
+ date: 2019-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses