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.
2013-08-29 15:10:46 +02:00
Marcin Kulik
26801d207f
Make Asciicast use BufferedStdout instead of Stdout
2013-08-28 16:56:40 +02:00
Marcin Kulik
c3fc452b91
Make Grid#crop easier to read
2013-08-28 16:22:59 +02:00
Marcin Kulik
731fb11e8b
Simplify Grid#trailing_empty_lines implementation
2013-08-28 16:21:31 +02:00
Marcin Kulik
6962f49ec0
Fix spec for AsciicastDecorator#thumbnail
2013-08-27 20:39:42 +02:00
Marcin Kulik
b47fa27968
Refactor Snapshot to use Grid under the hood
2013-08-27 20:31:31 +02:00
Marcin Kulik
d324200b01
Add BufferedStdout class whose #each yields at 60 hz tops
2013-08-27 20:31:27 +02:00
Marcin Kulik
c775bc8b06
Use less spans for thumbnail rendering
2013-08-26 11:02:32 +02:00
Marcin Kulik
31a880b7aa
Simplify Snapshot and its presenter
2013-08-25 20:49:23 +02:00
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".
2013-08-25 17:41:04 +02:00
Marcin Kulik
0ccef424f1
Words
2013-08-25 17:34:53 +02:00
Marcin Kulik
b330f29dcd
Define char encoding for a spec file
2013-08-25 17:17:20 +02:00
Marcin Kulik
95ee02d4c1
Only require green build for ruby 2.0
2013-08-25 17:16:40 +02:00
Marcin Kulik
ba5e11c249
Make sure tmp dir gets created in setup.sh
2013-08-25 17:15:00 +02:00
Marcin Kulik
efd4e54aad
Run ldconfig after libtsm installation
2013-08-25 17:09:24 +02:00
Marcin Kulik
d838eaceef
Extend setup script to install libtsm
2013-08-25 17:03:13 +02:00
Marcin Kulik
065e2cbc30
Split AsciicastStreamer#attributes_for_streaming into smaller methods
2013-08-25 16:45:37 +02:00
Marcin Kulik
731751650c
Keep the lines shorther than 80 chars
2013-08-25 16:34:02 +02:00
Marcin Kulik
cdc2f01753
Find or build user from omniauth hash in the middleware
2013-08-19 17:08:13 +02:00
Marcin Kulik
40856933aa
Support "blink" attribute in the thumbnails
2013-08-15 23:05:09 +02:00
Marcin Kulik
a53c8de5b9
Pass paths to decompressed stdout files to Stdout
2013-08-15 20:58:41 +02:00
Marcin Kulik
cf3e812e8e
Move duration info below the thumbnail
2013-08-15 20:45:51 +02:00
Marcin Kulik
bae9bfdbc7
Use correct singular/plural form for asciicast count
2013-08-14 21:36:17 +02:00
Marcin Kulik
13119b2987
Display asciicast length on thumbnails
2013-08-14 20:40:24 +02:00
Marcin Kulik
44a7b0788e
Convert asciicasts#_preview to slim
2013-08-14 19:38:01 +02:00
Marcin Kulik
49a2abe32b
Make the "when by whom" font smaller
2013-08-14 19:27:32 +02:00
Marcin Kulik
abe0b77bcd
Convert asciicast#index to slim
2013-08-14 18:16:03 +02:00
Marcin Kulik
562cd0ef0b
Add "Show more" link on the homepage
2013-08-14 18:11:46 +02:00
Marcin Kulik
5c141003a1
Use "asciicast" over "Asciicast" in UI
2013-08-14 17:32:03 +02:00
Marcin Kulik
2e9b0a4718
Remove boring empty trailing lines from thumbnails
2013-08-14 17:24:36 +02:00
Marcin Kulik
9086aae060
Remove unused code
2013-08-14 16:38:33 +02:00
Marcin Kulik
6acea6da70
Use tilde prefix for nickname only in profile url
2013-08-14 16:30:49 +02:00
Marcin Kulik
4bb61b614f
Prevent bots from following Edit links
2013-08-14 13:45:55 +02:00
Marcin Kulik
452f5869cf
Fix Bzip2Uploader#decompressed_path for S3 storage
2013-08-13 20:13:09 +02:00
Marcin Kulik
869ca9d896
Adjust JS player to new asciicast JSON representation
2013-08-13 19:52:54 +02:00
Marcin Kulik
6db65b2a6c
Serve asciicast as JSON in chunks
2013-08-13 19:52:54 +02:00
Marcin Kulik
7e1b41dfef
Code reformating in TimingParser
2013-08-13 19:52:54 +02:00
Marcin Kulik
d21be98a5c
Adjust SnapshotCreator to the latest API changes in Terminal and Stdout
2013-08-13 19:52:54 +02:00
Marcin Kulik
0c3494d174
Require explicit call to Terminal#snapshot for getting the snapshot
2013-08-13 19:52:53 +02:00
Marcin Kulik
6c8dbf4173
Make Stdout provide data in chunks
2013-08-13 19:52:53 +02:00
Marcin Kulik
fa4c5e4664
Replace Bzip2Uploader#decompressed with #decompressed_path
2013-08-13 19:52:53 +02:00
Marcin Kulik
7fce3537d3
Remove abandoned guard-jasmine-headless-webkit
2013-08-13 19:52:53 +02:00
Marcin Kulik
e568b3a4a3
Removed old vendored copy of libtsm
2013-08-13 19:52:52 +02:00
Marcin Kulik
4e5468b54e
Add feature spec for widget
2013-08-10 16:51:21 +02:00
Marcin Kulik
40da1823d6
Do not send X-Frame-Options header in embeddable widget action
2013-08-09 08:54:09 +02:00
Marcin Kulik
f5e47c3c8c
Add request spec for asciicast upload
2013-08-08 15:41:57 +02:00
Marcin Kulik
9845802180
Use stub_model instead of rspec's double
2013-08-08 15:26:12 +02:00
Marcin Kulik
c22cb1cdcc
Get rid of the asciicast comments that are not used anymore
2013-08-08 15:25:27 +02:00
Marcin Kulik
20645271a1
Update models and helpers to use new Rails 4 syntax
2013-08-08 15:08:11 +02:00
Marcin Kulik
1cafe408c5
Update routes for Rails 4
2013-08-08 14:45:17 +02:00