terminal 0.2 → 0.3.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/Gemfile.lock +11 -5
- data/app/assets/stylesheets/terminal.css +256 -0
- data/bin/terminal +1 -0
- data/lib/terminal.rb +3 -4
- data/lib/terminal/engine.rb +4 -0
- data/lib/terminal/preview.rb +34 -3
- data/lib/terminal/renderer.rb +111 -162
- data/lib/terminal/screen.rb +282 -0
- data/lib/terminal/templates/preview.html.erb +46 -89
- data/lib/terminal/version.rb +1 -1
- data/script/benchmark +20 -0
- data/script/buildbox/benchmark.sh +8 -0
- data/script/buildbox/profile_methods.sh +8 -0
- data/script/buildbox/specs.sh +8 -0
- data/script/profile_methods +21 -0
- data/spec/fixtures/curl.sh.raw +1 -1
- data/spec/fixtures/curl.sh.rendered +2 -2
- data/spec/fixtures/homer.sh.rendered +18 -18
- data/spec/fixtures/pikachu.sh.raw +47 -0
- data/spec/fixtures/pikachu.sh.rendered +46 -0
- data/spec/terminal/renderer_spec.rb +129 -22
- data/spec/terminal/screen_spec.rb +77 -0
- data/terminal.gemspec +5 -3
- metadata +50 -10
- data/lib/terminal/color.rb +0 -7
- data/lib/terminal/node.rb +0 -15
- data/lib/terminal/reset.rb +0 -16
data/terminal.gemspec
CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Terminal::VERSION
|
9
9
|
spec.authors = ["Keith Pitt"]
|
10
10
|
spec.email = ["me@keithpitt.com"]
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
13
|
-
spec.homepage = "https://github.com/
|
11
|
+
spec.summary = %q{Converts ANSI to HTML}
|
12
|
+
spec.description = %q{Converts ANSI to HTML}
|
13
|
+
spec.homepage = "https://github.com/buildbox/terminal"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -23,4 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
24
|
spec.add_development_dependency "rake"
|
25
25
|
spec.add_development_dependency "rspec"
|
26
|
+
spec.add_development_dependency "benchmark-ips"
|
27
|
+
spec.add_development_dependency "method_profiler"
|
26
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Pitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: escape_utils
|
@@ -66,7 +66,35 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: benchmark-ips
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: method_profiler
|
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
|
+
description: Converts ANSI to HTML
|
70
98
|
email:
|
71
99
|
- me@keithpitt.com
|
72
100
|
executables:
|
@@ -75,10 +103,12 @@ extensions: []
|
|
75
103
|
extra_rdoc_files: []
|
76
104
|
files:
|
77
105
|
- ".gitignore"
|
106
|
+
- ".rspec"
|
78
107
|
- Gemfile
|
79
108
|
- Gemfile.lock
|
80
109
|
- Rakefile
|
81
110
|
- Readme.md
|
111
|
+
- app/assets/stylesheets/terminal.css
|
82
112
|
- bin/terminal
|
83
113
|
- examples/curl.sh
|
84
114
|
- examples/generate
|
@@ -88,22 +118,29 @@ files:
|
|
88
118
|
- examples/pikachu.sh
|
89
119
|
- lib/terminal.rb
|
90
120
|
- lib/terminal/cli.rb
|
91
|
-
- lib/terminal/
|
92
|
-
- lib/terminal/node.rb
|
121
|
+
- lib/terminal/engine.rb
|
93
122
|
- lib/terminal/preview.rb
|
94
123
|
- lib/terminal/renderer.rb
|
95
|
-
- lib/terminal/
|
124
|
+
- lib/terminal/screen.rb
|
96
125
|
- lib/terminal/templates/preview.html.erb
|
97
126
|
- lib/terminal/version.rb
|
127
|
+
- script/benchmark
|
128
|
+
- script/buildbox/benchmark.sh
|
129
|
+
- script/buildbox/profile_methods.sh
|
130
|
+
- script/buildbox/specs.sh
|
131
|
+
- script/profile_methods
|
98
132
|
- spec/fixtures/curl.sh.raw
|
99
133
|
- spec/fixtures/curl.sh.rendered
|
100
134
|
- spec/fixtures/homer.sh.raw
|
101
135
|
- spec/fixtures/homer.sh.rendered
|
136
|
+
- spec/fixtures/pikachu.sh.raw
|
137
|
+
- spec/fixtures/pikachu.sh.rendered
|
102
138
|
- spec/spec_helper.rb
|
103
139
|
- spec/support/fixture.rb
|
104
140
|
- spec/terminal/renderer_spec.rb
|
141
|
+
- spec/terminal/screen_spec.rb
|
105
142
|
- terminal.gemspec
|
106
|
-
homepage: https://github.com/
|
143
|
+
homepage: https://github.com/buildbox/terminal
|
107
144
|
licenses:
|
108
145
|
- MIT
|
109
146
|
metadata: {}
|
@@ -118,20 +155,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
155
|
version: '0'
|
119
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
157
|
requirements:
|
121
|
-
- - "
|
158
|
+
- - ">"
|
122
159
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
160
|
+
version: 1.3.1
|
124
161
|
requirements: []
|
125
162
|
rubyforge_project:
|
126
163
|
rubygems_version: 2.3.0
|
127
164
|
signing_key:
|
128
165
|
specification_version: 4
|
129
|
-
summary:
|
166
|
+
summary: Converts ANSI to HTML
|
130
167
|
test_files:
|
131
168
|
- spec/fixtures/curl.sh.raw
|
132
169
|
- spec/fixtures/curl.sh.rendered
|
133
170
|
- spec/fixtures/homer.sh.raw
|
134
171
|
- spec/fixtures/homer.sh.rendered
|
172
|
+
- spec/fixtures/pikachu.sh.raw
|
173
|
+
- spec/fixtures/pikachu.sh.rendered
|
135
174
|
- spec/spec_helper.rb
|
136
175
|
- spec/support/fixture.rb
|
137
176
|
- spec/terminal/renderer_spec.rb
|
177
|
+
- spec/terminal/screen_spec.rb
|
data/lib/terminal/color.rb
DELETED
data/lib/terminal/node.rb
DELETED