terminal 0.2 → 0.3.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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{Renders ASCII as HTML}
12
- spec.description = %q{Renders ASCII as HTML}
13
- spec.homepage = "https://github.com/buildboxhq/terminal"
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: '0.2'
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-28 00:00:00.000000000 Z
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
- description: Renders ASCII as HTML
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/color.rb
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/reset.rb
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/buildboxhq/terminal
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: '0'
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: Renders ASCII as HTML
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
@@ -1,7 +0,0 @@
1
- module Terminal
2
- class Color < Terminal::Node
3
- def to_debug
4
- "[color:#{@code}]"
5
- end
6
- end
7
- end
@@ -1,15 +0,0 @@
1
- module Terminal
2
- class Node
3
- def initialize(code)
4
- @code = code
5
- end
6
-
7
- def to_s
8
- "\e[#{@code}m"
9
- end
10
-
11
- def to_debug
12
- "[node:#{@code}]"
13
- end
14
- end
15
- end
@@ -1,16 +0,0 @@
1
- module Terminal
2
- class Reset < Terminal::Node
3
- def initialize(opened)
4
- @opened = opened
5
- @code = "0"
6
- end
7
-
8
- def to_s
9
- super * @opened
10
- end
11
-
12
- def to_debug
13
- "[reset:#{@opened}]"
14
- end
15
- end
16
- end