interact 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,5 +89,13 @@ module Interact
89
89
  code = "\e[2m"
90
90
  "#{code}#{str.to_s.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
91
91
  end
92
+
93
+ # invert text
94
+ def i(str)
95
+ return str unless color?
96
+
97
+ code = "\e[7m"
98
+ "#{code}#{str.to_s.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
99
+ end
92
100
  end
93
101
  end
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2011 Alex Suraci
2
2
 
3
3
  module Interact
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interact
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-28 00:00:00 Z
18
+ date: 2012-12-17 00:00:00 -08:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rake
@@ -59,12 +60,13 @@ files:
59
60
  - LICENSE
60
61
  - README.md
61
62
  - Rakefile
62
- - lib/interact/interactive.rb
63
+ - lib/interact.rb
64
+ - lib/interact/version.rb
63
65
  - lib/interact/pretty.rb
64
- - lib/interact/progress.rb
66
+ - lib/interact/interactive.rb
65
67
  - lib/interact/rewindable.rb
66
- - lib/interact/version.rb
67
- - lib/interact.rb
68
+ - lib/interact/progress.rb
69
+ has_rdoc: true
68
70
  homepage: http://github.com/vito/interact
69
71
  licenses: []
70
72
 
@@ -94,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
96
  requirements: []
95
97
 
96
98
  rubyforge_project:
97
- rubygems_version: 1.8.24
99
+ rubygems_version: 1.6.2
98
100
  signing_key:
99
101
  specification_version: 3
100
102
  summary: A simple API for command-line interaction.