rubytext 0.0.99 → 0.1.0

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: ed249d5b71890e0168e5beeec3df234828e960adaa39a8a4c20fb3ebb7227650
4
- data.tar.gz: '0439b13c9ad99efbd13b3031c670230df7d8a69c272a02d12e072909e22e5e9f'
3
+ metadata.gz: 42e54289dabee58253772a1880eeff22bac1b4d87931429af4258396372230af
4
+ data.tar.gz: 7c7d2d9572c495a3d09d6f0de55fb6a4e249662316aa54a884624cecece03ebb
5
5
  SHA512:
6
- metadata.gz: cb0d4242a294b093fe772030d62eb3fe732f7f5919dacaf564f66ca18d4daebd415778eba755dd6323606ab185379f95545688b4b375a3e8715b9eae5945b942
7
- data.tar.gz: 1a66bee008240ef31d5a30db9ded52fe6bb3461f4f58ed955b7b62861e9129ea606f0fd3b28bea8f561ca88a4371f75bdf297b35538febb64456ccb34142a731
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(9, 65, r: 2, c: 26, fg: fg, bg: bg)
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
- effect(White), "and yet another."
13
- win.puts "We can ", effect(:bold), "boldface ",
14
- "and ", effect(:reverse), "reverse ",
15
- "and ", effect(:under), "underline ",
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 4,8, "Simplify,"
8
- win.rcprint 6,12, "simplify,"
9
- win.rcprint 8,16, "simplify!"
7
+ win.rcprint 6,8, "Simplify,"
8
+ win.rcprint 8,12, "simplify,"
9
+ win.rcprint 10,16, "simplify!"
10
10
 
11
- win.rcprint 10,0, "Later there will be other ways to do this kind of thing."
11
+ win.puts "Later there will be other ways to do this kind of thing."
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.0.99"
3
+ VERSION = "0.1.0"
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.99
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
@@ -1,3 +0,0 @@
1
- puts "Hello"
2
-
3
- puts "world..."
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">&quot;</span><span class="Constant">Hello</span><span class="Special">&quot;</span>
12
-
13
- puts <span class="Special">&quot;</span><span class="Constant">world...</span><span class="Special">&quot;</span>
14
- </pre>
15
- </body>
16
- </html>
17
- <!-- vim: set foldmethod=manual : -->