Marcin Kulik
9e152c3172
Sanitize all characters coming from TSM::Screen#draw
...
It happens that libtsm's screen_draw returns a character that can't be
properly encoded as utf-8. As what we get is only meant to be displayed
and not interpreted we can replace these invalid characters with a
questio mark, which is a common practice for printing invalid chars.
11 years ago
Marcin Kulik
26801d207f
Make Asciicast use BufferedStdout instead of Stdout
11 years ago
Marcin Kulik
6962f49ec0
Fix spec for AsciicastDecorator#thumbnail
11 years ago
Marcin Kulik
b47fa27968
Refactor Snapshot to use Grid under the hood
11 years ago
Marcin Kulik
d324200b01
Add BufferedStdout class whose #each yields at 60 hz tops
11 years ago
Marcin Kulik
c775bc8b06
Use less spans for thumbnail rendering
11 years ago
Marcin Kulik
31a880b7aa
Simplify Snapshot and its presenter
11 years ago
Marcin Kulik
34b39d0db3
Simplify the structure returned by Terminal#snapshot
...
Each screen character is in its own, separate cell now. In addition the char
attributes don't include attributes that are "falsy".
11 years ago
Marcin Kulik
b330f29dcd
Define char encoding for a spec file
11 years ago
Marcin Kulik
731751650c
Keep the lines shorther than 80 chars
11 years ago
Marcin Kulik
cdc2f01753
Find or build user from omniauth hash in the middleware
11 years ago
Marcin Kulik
40856933aa
Support "blink" attribute in the thumbnails
11 years ago
Marcin Kulik
a53c8de5b9
Pass paths to decompressed stdout files to Stdout
11 years ago
Marcin Kulik
13119b2987
Display asciicast length on thumbnails
11 years ago
Marcin Kulik
2e9b0a4718
Remove boring empty trailing lines from thumbnails
11 years ago
Marcin Kulik
6acea6da70
Use tilde prefix for nickname only in profile url
11 years ago
Marcin Kulik
6db65b2a6c
Serve asciicast as JSON in chunks
11 years ago
Marcin Kulik
d21be98a5c
Adjust SnapshotCreator to the latest API changes in Terminal and Stdout
11 years ago
Marcin Kulik
0c3494d174
Require explicit call to Terminal#snapshot for getting the snapshot
11 years ago
Marcin Kulik
6c8dbf4173
Make Stdout provide data in chunks
11 years ago
Marcin Kulik
fa4c5e4664
Replace Bzip2Uploader#decompressed with #decompressed_path
11 years ago
Marcin Kulik
4e5468b54e
Add feature spec for widget
11 years ago
Marcin Kulik
f5e47c3c8c
Add request spec for asciicast upload
11 years ago
Marcin Kulik
9845802180
Use stub_model instead of rspec's double
11 years ago
Marcin Kulik
c22cb1cdcc
Get rid of the asciicast comments that are not used anymore
11 years ago
Marcin Kulik
e1286b407e
Use double instead of mock, stub instead of stub! to make rspec happy
11 years ago
Marcin Kulik
0a8cc6ff8a
One more attempt to fix the memory leak
11 years ago
Marcin Kulik
4767442875
Make Snapshot#crop return the snapshot of exact requested height
11 years ago
Marcin Kulik
5ecf209a53
Add some TODO comments
11 years ago
Marcin Kulik
7d5a544650
Generate thumbnails from JSON snapshot via Snapshot/SnaphotPresenter
11 years ago
Marcin Kulik
148bd47756
Fix feature spec for visiting asciicast page
11 years ago
Marcin Kulik
ddf0e57b39
Update SnapshotWorker to generate colorful snapshots
11 years ago
Marcin Kulik
59e31baa1b
Process incoming asciicast with AsciicastCreator
11 years ago
Marcin Kulik
86a4662fe5
Abstract stdout_data and stdout_timing as a single value object
11 years ago
Marcin Kulik
caa6c52759
Rename stdout to stdout_data, stdin to stdin_data
11 years ago
Marcin Kulik
55fe325ec4
Add Bzip2Uploader for uploading, retrieving and decompressing bzip2 files
11 years ago
Marcin Kulik
85f93a4490
Add spec for AsciicastSnapshotter
11 years ago
Marcin Kulik
1be93cac63
Use shortcut for #to_html stub on SnapshotPresenter
11 years ago
Marcin Kulik
56a2bb2378
Fix Snapshot#crop to not burn when height > line count
11 years ago
Marcin Kulik
d93ac84c21
Refactor AsciicastDecorator#thumbnail to render colorful thumbnail
11 years ago
Marcin Kulik
86f728364c
Add Brush model
11 years ago
Marcin Kulik
e947524533
Add a simple model representing a terminal snapshot
11 years ago
Marcin Kulik
8daf2d0f7f
Serialize Snapshot with Snapshot::Serializer
11 years ago
Marcin Kulik
a10a447c53
Make the snapshots the hashes
11 years ago
Marcin Kulik
9ef766f16b
Don't require rspec/autorun in spec_helper
...
This is not really needed and conflicts with zeus
11 years ago
Marcin Kulik
50c3a7bca5
Remove the test that validates asciicast factory
11 years ago
Marcin Kulik
0b9ae12feb
Use nice matcher for sidekiq job enqueues
11 years ago
Marcin Kulik
c5509c60b6
Update tests for Sidekiq
11 years ago
Marcin Kulik
2d6b60e027
Fix AsciicastDecorator#embed_script
11 years ago
Marcin Kulik
0f99198a1a
Add spec for asciicasts#show as js
11 years ago