ansi_stream 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 963abfafb3372c786d2271e70cada44a40612f7d
4
- data.tar.gz: ac3d49adf268f9604b42b1e0360abb1a6e79cb86
3
+ metadata.gz: e05785452677ee277500b1d6fe9814be0fb99268
4
+ data.tar.gz: 9782b0b04bccd3c0f405da29ab68d5e64e158007
5
5
  SHA512:
6
- metadata.gz: d8839c5779c2f0f32ba3cdba240c8768e68f7e1bf516537e331e87ee9933896fc6c533bb673542cbc833d028bbfc9b765de09fe3e605cb9dccebbffb1cfdc62b
7
- data.tar.gz: b8d693e439d3b4eda617902d51bfbca1e2834eb092dd963d9d8fabd5a2340c8985ae4515207af86dbe749f58bc82ee3d5a55a5962970f7a1727ae742ae4762c8
6
+ metadata.gz: 361bf3ae9b454513936289f0cf07dd4e0e35abb15e7f08b6a1539187416f42eecb728f496b40d6606ebc09b4db2f55ca1ff12634056458bcd1d7fedda63bd538
7
+ data.tar.gz: b86554aabb3968e9deb0edd267c92e16c583bbbd43091f8fda2c72244a4f145613a02721e72cc01244b1ecf3c19ff97ded9e2cff86d3eeb7e4a6040482b524b2
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.1
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
+ [![Build Status](https://travis-ci.org/gmalette/ansi_stream.svg?branch=master)](https://travis-ci.org/gmalette/ansi_stream)
2
+
1
3
  # AnsiStream
2
4
 
3
- TODO: Write a gem description
5
+ This gem can be used with Rails applications to colorize ANSI strings.
6
+
7
+ ![Screenshot](https://raw.githubusercontent.com/gmalette/ansi_stream/master/screenshots/screenshot.png)
4
8
 
5
9
  ## Installation
6
10
 
@@ -18,7 +22,18 @@ Or install it yourself as:
18
22
 
19
23
  ## Usage
20
24
 
21
- TODO: Write usage instructions here
25
+ ```html
26
+ <code>
27
+ # content
28
+ </code>
29
+
30
+ <script>
31
+ var stream = new AnsiStream()
32
+
33
+ onStreamText: (text) ->
34
+ $('code').append(stream.process(text))
35
+ </script>
36
+ ```
22
37
 
23
38
  ## Contributing
24
39
 
data/Rakefile CHANGED
@@ -2,6 +2,8 @@ require "bundler/gem_tasks"
2
2
  require 'jasmine'
3
3
  require 'coffee-script'
4
4
  require 'fileutils'
5
+ require 'pry'
6
+ require 'pry-debugger'
5
7
  load 'jasmine/tasks/jasmine.rake'
6
8
 
7
9
  task :compile do
data/ansi_stream.gemspec CHANGED
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "jasmine"
24
- spec.add_development_dependency "phantomjs", "~> 1.8"
24
+ spec.add_development_dependency "phantomjs", "~> 1.9"
25
25
  spec.add_development_dependency "coffee-script"
26
+ spec.add_development_dependency "pry"
27
+ spec.add_development_dependency "pry-debugger"
26
28
  end
@@ -1,3 +1,3 @@
1
1
  module AnsiStream
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
Binary file
@@ -39,7 +39,7 @@
39
39
  background-color: rgb(129,131,131);
40
40
  }
41
41
 
42
- .ansi-foreground-red {
42
+ .ansi-background-red {
43
43
  background-color: rgb(252,57,31);
44
44
  }
45
45
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansi_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Malette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.8'
61
+ version: '1.9'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.8'
68
+ version: '1.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: coffee-script
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-debugger
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  description: Javascipt to colorize HTML with span
84
112
  email:
85
113
  - gmalette@gmail.com
@@ -88,6 +116,7 @@ extensions: []
88
116
  extra_rdoc_files: []
89
117
  files:
90
118
  - ".gitignore"
119
+ - ".travis.yml"
91
120
  - Gemfile
92
121
  - LICENSE.txt
93
122
  - README.md
@@ -95,6 +124,7 @@ files:
95
124
  - ansi_stream.gemspec
96
125
  - lib/ansi_stream.rb
97
126
  - lib/ansi_stream/version.rb
127
+ - screenshots/screenshot.png
98
128
  - spec/javascripts/ansi_stream_spec.coffee
99
129
  - spec/javascripts/ansi_stream_spec.js
100
130
  - spec/javascripts/helpers/.gitkeep