isna 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,6 +1,49 @@
1
1
  = isna
2
2
 
3
- Description goes here.
3
+ Isna is a very simple ansi manipulation library, checkout the examples below:
4
+
5
+ [http://github.com/ktlacaelel/isna/wiki/isna.png]
6
+
7
+ == Why isna??
8
+
9
+ "isna" is "ansi" spelled backwards, but the gem name was already taken :S
10
+
11
+ == Support
12
+
13
+ I've just added the very basic types, but you should be able to extend it pretty easily, if you think those changes should be on the core-gem send them over and I'll apply those for you. (and add your name in the credits section) :)
14
+
15
+ === Colors
16
+
17
+ * black
18
+ * red
19
+ * green
20
+ * yellow
21
+ * blue
22
+ * pink
23
+ * cyan
24
+ * white
25
+
26
+ === Backgrounds
27
+
28
+ * black_background
29
+ * red_background
30
+ * green_background
31
+ * yellow_background
32
+ * blue_background
33
+ * pink_background
34
+ * cyan_background
35
+ * white_background
36
+
37
+ === Behaviours
38
+
39
+ * normal
40
+ * bright
41
+ * dark
42
+ * italic
43
+ * underline
44
+ * blink
45
+ * fast_blink
46
+ * negative
4
47
 
5
48
  == Note on Patches/Pull Requests
6
49
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/isna.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{isna}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kazuyoshi tlacaelel"]
12
- s.date = %q{2011-11-13}
12
+ s.date = %q{2011-11-14}
13
13
  s.description = %q{Easily compiles transforms a string into ansi code}
14
14
  s.email = %q{kazu.dev@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -2,6 +2,10 @@ module Isna
2
2
 
3
3
  module Backgrounds
4
4
 
5
+ def black_background
6
+ change_background 40
7
+ end
8
+
5
9
  def red_background
6
10
  change_background 41
7
11
  end
@@ -26,7 +30,7 @@ module Isna
26
30
  change_background 46
27
31
  end
28
32
 
29
- def gray_background
33
+ def white_background
30
34
  change_background 47
31
35
  end
32
36
 
@@ -2,10 +2,22 @@ module Isna
2
2
 
3
3
  module Behaviours
4
4
 
5
- def bolder
5
+ def normal
6
+ change_type 0
7
+ end
8
+
9
+ def bright
6
10
  change_type 1
7
11
  end
8
12
 
13
+ def dark
14
+ change_type 2
15
+ end
16
+
17
+ def italic
18
+ change_type 3
19
+ end
20
+
9
21
  def underline
10
22
  change_type 4
11
23
  end
@@ -14,7 +26,11 @@ module Isna
14
26
  change_type 5
15
27
  end
16
28
 
17
- def brighter
29
+ def fast_blink
30
+ change_type 6
31
+ end
32
+
33
+ def negative
18
34
  change_type 7
19
35
  end
20
36
 
data/lib/isna/colors.rb CHANGED
@@ -30,6 +30,10 @@ module Isna
30
30
  change_color 36
31
31
  end
32
32
 
33
+ def white
34
+ change_color 37
35
+ end
36
+
33
37
  end
34
38
 
35
39
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isna
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - kazuyoshi tlacaelel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-13 00:00:00 -06:00
18
+ date: 2011-11-14 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency