terminal_markup 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -2,6 +2,7 @@ History.txt
2
2
  Manifest.txt
3
3
  README.rdoc
4
4
  Rakefile
5
+ bin/terminal_markup
5
6
  lib/terminal_markup.rb
6
7
  script/console
7
8
  script/destroy
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+
4
+ $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
5
+
6
+ require 'terminal_markup'
7
+ include TerminalMarkup
8
+ puts "\n#{CREDITS}\n\n"
9
+ PREPOSITION_MAP.each do |markup, preposition|
10
+ markup.each{|name,code| puts eval("\"#{preposition}_#{name}\".#{preposition}_#{name}").escape}
11
+ end
12
+ puts "\n"
@@ -14,12 +14,12 @@ Usage:
14
14
  Extra:
15
15
 
16
16
  To see examples of all markup:
17
- ruby terminal_markup.rb
17
+ $ terminal_markup
18
18
 
19
19
  =end
20
20
 
21
21
  module TerminalMarkup
22
- VERSION = "0.0.1"
22
+ VERSION = "0.0.2"
23
23
  DATE = "11.13.09"
24
24
  CREDITS = "TerminalMarkup v.#{VERSION}\n by Nick Merwin (http://lemurheavy.com) #{DATE}"
25
25
 
@@ -85,13 +85,4 @@ end
85
85
 
86
86
  class Object
87
87
  include TerminalMarkup::InstanceMethods
88
- end
89
-
90
- if $0 == __FILE__
91
- include TerminalMarkup
92
- puts "\n#{CREDITS}\n\n"
93
- PREPOSITION_MAP.each do |markup, preposition|
94
- markup.each{|name,code| puts eval("\"#{preposition}_#{name}\".#{preposition}_#{name}").escape}
95
- end
96
- puts "\n"
97
88
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal_markup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
@@ -46,8 +46,8 @@ dependencies:
46
46
  description: Easy coloring/markup for terminal output
47
47
  email:
48
48
  - nick@lemurheavy.com
49
- executables: []
50
-
49
+ executables:
50
+ - terminal_markup
51
51
  extensions: []
52
52
 
53
53
  extra_rdoc_files:
@@ -58,6 +58,7 @@ files:
58
58
  - Manifest.txt
59
59
  - README.rdoc
60
60
  - Rakefile
61
+ - bin/terminal_markup
61
62
  - lib/terminal_markup.rb
62
63
  - script/console
63
64
  - script/destroy
metadata.gz.sig CHANGED
Binary file