Commit Graph

42 Commits

Author SHA1 Message Date
Marcin Kulik
86a4662fe5 Abstract stdout_data and stdout_timing as a single value object 2013-08-06 00:37:34 +02:00
Marcin Kulik
d93ac84c21 Refactor AsciicastDecorator#thumbnail to render colorful thumbnail 2013-08-06 00:37:33 +02:00
Marcin Kulik
2d6b60e027 Fix AsciicastDecorator#embed_script 2013-06-13 22:58:47 +02:00
Marcin Kulik
8a52605266 Add spec for AsciicastDecorator#embed_script 2013-06-13 22:39:34 +02:00
Marcin Kulik
feec862f99 Display embed link on the asciicast's page 2013-06-13 11:45:00 +02:00
Marcin Kulik
078b04e3a1 Fix asciicast page when its author has other asciicasts 2013-05-28 11:13:01 +02:00
Marcin Kulik
f5a91c680b Fix draper vs kaminari issue 2013-05-28 11:13:00 +02:00
Marcin Kulik
5f53c66639 Update decorators to use new Draper API 2013-05-28 11:13:00 +02:00
Marcin Kulik
2e8fc48473 Set MAX_DELAY constant on model, not decorator 2012-12-18 21:38:49 +01:00
Marcin Kulik
11bab12afb Extract AsciicastJSONDecorator from AsciicastDecorator 2012-12-09 21:23:37 +01:00
Marcin Kulik
1e07fafb2e When terminal_type is empty also return '?' 2012-12-09 16:14:26 +01:00
Marcin Kulik
816e09703a Cleanup author/profile links 2012-12-08 22:29:21 +01:00
Marcin Kulik
3b2dc7f998 Simplify author_profile_link 2012-12-08 20:51:20 +01:00
Marcin Kulik
a1fad7ccb7 Decorate User#nickname 2012-12-08 20:51:20 +01:00
Marcin Kulik
3f53f2ad50 Use decorates_association instead of custom method 2012-12-08 20:51:19 +01:00
Marcin Kulik
c1e576e5dd "Other asciicasts by this user" 2012-12-08 20:51:19 +01:00
Marcin Kulik
2c006d5fdf Improve AsciicastDecorator#description 2012-12-08 18:21:24 +01:00
Marcin Kulik
646ca6858a AsciicastDecorator#user 2012-11-19 23:14:34 +01:00
Marcin Kulik
33025e00f7 AsciicastDecorator#terminal_type 2012-11-19 22:29:46 +01:00
Marcin Kulik
44e23bf003 Just decorate. 2012-11-19 22:12:57 +01:00
Marcin Kulik
db4c4a397c Return 'unknown' as os when uname is empty 2012-11-18 22:12:37 +01:00
Marcin Kulik
c172df390e Remove old helper for created_at 2012-08-25 15:15:00 +02:00
Marcin Kulik
afa03974a2 Calculate relative time in JS (b/c of caching) 2012-08-25 14:24:53 +02:00
Marcin Kulik
62236504cf Revert "Handle non-bzipped data also in AsciicastDecorator"
This reverts commit 9d08c17087.
2012-08-25 13:50:44 +02:00
Marcin Kulik
9d08c17087 Handle non-bzipped data also in AsciicastDecorator 2012-08-23 20:35:27 +02:00
Marcin Kulik
668f382a69 Fix specs 2012-07-29 19:43:03 +02:00
Marcin Kulik
657ddab1de Improve situation with markdown parsing 2012-07-25 23:01:01 +02:00
Marcin Kulik
785273707b Proper design, finally! 2012-07-25 20:24:20 +02:00
Marcin Kulik
00d2a6fcc6 Shell out to bzip2 instead of using bzip2-ruby 2012-06-05 00:29:24 +02:00
Marcin Kulik
ba97246db8 Time compression 2012-05-04 21:49:08 +02:00
Marcin Kulik
4d1afcf01a Use Base64 for encoding asciicast data during transfer 2012-04-14 00:45:25 +02:00
Marcin Kulik
cbc845a2ef Revert "Decompress stdout data on server side"
This reverts commit dda0d56fb7.
2012-04-14 00:29:59 +02:00
Marcin Kulik
dda0d56fb7 Decompress stdout data on server side 2012-04-13 22:46:11 +02:00
Marcin Kulik
e5ea6488fd Move asciicast presentation to its decorator 2012-04-09 19:47:19 +02:00
Marcin Kulik
9ddd44abb5 Move comment specs as comment decorator specs 2012-04-09 18:22:46 +02:00
Marcin Kulik
0a09204525 Consistent "time ago" display for asciicasts and comments 2012-04-09 17:21:46 +02:00
Marcin Kulik
32b2cbed35 Move "created" and "as_json" from Comment to CommentDecorator 2012-04-09 17:16:41 +02:00
Marcin Kulik
936dac6baa Markdown in comments 2012-04-06 23:46:44 +02:00
Marcin Kulik
af43a2177e Allow for specifying thumbnail size 2012-04-06 22:20:04 +02:00
Marcin Kulik
7c635ed7db Don't crash when no snapshot available 2012-04-06 21:53:54 +02:00
Marcin Kulik
49c0d9f324 Move presentation to decorator 2012-04-06 21:51:05 +02:00
Marcin Kulik
27219f48b7 Thumbnail generation in Sidekiq worker 2012-04-06 20:53:04 +02:00