rubytext 0.0.94 → 0.0.95

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4530a36a54e9bfc11629beba83abbebea545cb364d3250faae70dae14e50de65
4
- data.tar.gz: 8fa87d3a50600838ab38defc5e47185cda619d1a080dd8d9b41f4018e1ecee2a
3
+ metadata.gz: 29b4abf42b65f12ba6d2fdd80c8332464c0caa13d1af2a2a11c21c3c11c91eae
4
+ data.tar.gz: c190e438cc97061329d7e9e2d974803291e8e5e5fd2e45166e7ba5241960d588
5
5
  SHA512:
6
- metadata.gz: b4b275893f36a423ab0aca1875dd058f41e57e6b2532373185ad0f46a4a6c696aa5cfbe93ab24936592e09f1f82d4af2ac66dd89f886ae70a267cf7ce71362a3
7
- data.tar.gz: 44f44e5476d5f78a8d4b4f3b4953bcd1305d8ffa73c4ff434b02c6e1c62e1c86e899ab23daf7a3e93a592de1ab8b91c30313756b95b7523a0e4f4886b0bde1d0
6
+ metadata.gz: 910bd333267aa82b64f7e80e2f8896041b03865efc2944ce2ce20f6c9abc9b1010d098f1bff3075fe57961a0aa9e5f2f5f2e3b8b2d7341b8b357251dac4137aa
7
+ data.tar.gz: d2b373c7f000a7660e682700cf1cf92e46e4da2cffec8eb7dab24b5de584c1e1b1be236e098a7cbdab6525af8f1039c42cc416bd23006515b898795ba941188d
data/README.md CHANGED
@@ -84,11 +84,12 @@ win = RubyText.window(8, 39, r: 4, c: 9, fg: Black, bg: Blue)
84
84
  win.puts "If your text is longer than " +
85
85
  "the width of the window, by default it will " +
86
86
  "wrap around."
87
-
88
- win.puts "Scrolling is not yet supported."
89
87
  ```
90
88
 
91
- Scrolling is not yet implemented.
89
+ <img src=readme-images/noscroll.png>
90
+
91
+ Scrolling is not enabled by default for a window (except STDSCR).
92
+
92
93
  ```ruby
93
94
  require 'rubytext'
94
95
  win = RubyText.window(10, 70, r: 2, c: 14, fg: Yellow, bg: Black)
@@ -102,10 +103,12 @@ win.output do
102
103
 
103
104
  10.times {|i| puts "Printing line #{i}..."; sleep 0.2 }
104
105
  end
105
-
106
106
  ```
107
107
 
108
+ <img src=readme-images/noscroll.png>
109
+
108
110
  You can use `print` and `p` as well as `puts`.
111
+
109
112
  ```ruby
110
113
  require 'rubytext'
111
114
  win = RubyText.window(10, 60, r: 2, c: 14, fg: Blue, bg: Black)
@@ -124,6 +127,7 @@ end
124
127
  ```
125
128
 
126
129
  You can still use `puts` (etc.) with files, but watch for `STDOUT` and `STDERR`.
130
+
127
131
  ```ruby
128
132
  require 'rubytext'
129
133
  win = RubyText.window(10, 50, r: 0, c: 5, fg: Yellow, bg: Blue)
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.0.94"
3
+ VERSION = "0.0.95"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.94
4
+ version: 0.0.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton