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 +4 -4
- data/.travis.yml +5 -0
- data/README.md +17 -2
- data/Rakefile +2 -0
- data/ansi_stream.gemspec +3 -1
- data/lib/ansi_stream/version.rb +1 -1
- data/screenshots/screenshot.png +0 -0
- data/vendor/assets/stylesheets/ansi_stream.css +1 -1
- metadata +34 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e05785452677ee277500b1d6fe9814be0fb99268
|
4
|
+
data.tar.gz: 9782b0b04bccd3c0f405da29ab68d5e64e158007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361bf3ae9b454513936289f0cf07dd4e0e35abb15e7f08b6a1539187416f42eecb728f496b40d6606ebc09b4db2f55ca1ff12634056458bcd1d7fedda63bd538
|
7
|
+
data.tar.gz: b86554aabb3968e9deb0edd267c92e16c583bbbd43091f8fda2c72244a4f145613a02721e72cc01244b1ecf3c19ff97ded9e2cff86d3eeb7e4a6040482b524b2
|
data/.travis.yml
ADDED
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
|
-
|
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
|
-
|
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
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.
|
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
|
data/lib/ansi_stream/version.rb
CHANGED
Binary file
|
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.
|
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:
|
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.
|
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.
|
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
|