rubytext 0.0.99 → 0.1.0
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 +4 -4
- data/examples/effects.rb +6 -7
- data/examples/rcprint.rb +5 -5
- data/lib/version.rb +1 -1
- metadata +1 -3
- data/tutorial/foo.rb +0 -3
- data/tutorial/foo.rb.html +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e54289dabee58253772a1880eeff22bac1b4d87931429af4258396372230af
|
4
|
+
data.tar.gz: 7c7d2d9572c495a3d09d6f0de55fb6a4e249662316aa54a884624cecece03ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fcdb37e7b4ff14faa1c0740c931a4fff669402340a354431d61f1d54ea00b8263e97c32c617183c3f522adee6e8295615f6ffa45cdb9fb7db9ec9513ac46832
|
7
|
+
data.tar.gz: ac7224c693787f352333e330bc8ca4af00316bc8d4a31d9f06f84148be9c7fe6abba00f778b7797f734baac9083417285527359cb8a8a5243639ee78cfff6406
|
data/examples/effects.rb
CHANGED
@@ -3,16 +3,15 @@ def effect(*args) # find better way
|
|
3
3
|
end
|
4
4
|
|
5
5
|
fg, bg = White, Blue
|
6
|
-
win = RubyText.window(
|
6
|
+
win = RubyText.window(10, 65, r: 2, c: 26, fg: fg, bg: bg)
|
7
7
|
|
8
|
-
win.puts "This is EXPERIMENTAL (and BUGGY)
|
8
|
+
win.puts "This is EXPERIMENTAL (and BUGGY).\n"
|
9
9
|
win.puts "Use an \"effect\" to change the text color or \"look\":"
|
10
10
|
|
11
11
|
win.puts "This is", fx(" another color ", Yellow),
|
12
|
-
|
13
|
-
win.puts "We can ",
|
14
|
-
"and ",
|
15
|
-
|
16
|
-
effect(:normal), "text at will.\n "
|
12
|
+
fx("and yet another.", White)
|
13
|
+
win.puts "We can ", fx("boldface ",:bold), "and ", fx("underline ",:under),
|
14
|
+
"and ", fx("reverse ",:reverse), fx("text at will.",:normal)
|
15
|
+
win.puts
|
17
16
|
win.puts "This is ", effect(:bold, Red), "bold red ",
|
18
17
|
effect(:normal, fg), "and this is normal again.\n "
|
data/examples/rcprint.rb
CHANGED
@@ -2,10 +2,10 @@ win = RubyText.window(13, 65, r: 2, c: 14, fg: Blue, bg: White)
|
|
2
2
|
|
3
3
|
win.puts "The #rcprint method will print at the specified"
|
4
4
|
win.puts "row/column, like go(r,c) followed by a print,"
|
5
|
-
win.puts "except that it does NOT move the cursor
|
5
|
+
win.puts "except that it does NOT move the cursor.\n "
|
6
6
|
|
7
|
-
win.rcprint
|
8
|
-
win.rcprint
|
9
|
-
win.rcprint
|
7
|
+
win.rcprint 6,8, "Simplify,"
|
8
|
+
win.rcprint 8,12, "simplify,"
|
9
|
+
win.rcprint 10,16, "simplify!"
|
10
10
|
|
11
|
-
win.
|
11
|
+
win.puts "Later there will be other ways to do this kind of thing."
|
data/lib/version.rb
CHANGED
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
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
@@ -97,8 +97,6 @@ files:
|
|
97
97
|
- tutorial/colortest.png
|
98
98
|
- tutorial/colortest.rb
|
99
99
|
- tutorial/colortest.rb.html
|
100
|
-
- tutorial/foo.rb
|
101
|
-
- tutorial/foo.rb.html
|
102
100
|
- tutorial/hw.png
|
103
101
|
- tutorial/hw.rb
|
104
102
|
- tutorial/hw.rb.html
|
data/tutorial/foo.rb
DELETED
data/tutorial/foo.rb.html
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
<script type='text/javascript'>
|
2
|
-
<!--
|
3
|
-
|
4
|
-
-->
|
5
|
-
pre { font-size: 15 }
|
6
|
-
tt { font-size: 15 }
|
7
|
-
</script>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<pre id='vimCodeElement'>
|
11
|
-
puts <span class="Special">"</span><span class="Constant">Hello</span><span class="Special">"</span>
|
12
|
-
|
13
|
-
puts <span class="Special">"</span><span class="Constant">world...</span><span class="Special">"</span>
|
14
|
-
</pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
17
|
-
<!-- vim: set foldmethod=manual : -->
|