Commit Graph

243 Commits

Author SHA1 Message Date
Marcin Kulik
306c1619ab Pr0 play button 2012-03-11 10:30:21 +01:00
Marcin Kulik
71f8fed196 Fix line length 2012-03-11 09:23:29 +01:00
Marcin Kulik
61b3890a3d Merge remote-tracking branch 'origin/unique-nickname'
* origin/unique-nickname:
  Keep sensitive signup data in session
  Add users factory back
  rm users factories
  Add view spec for users#new
  Add specs to user#create
  Validate nickname uniquness

Conflicts:
	Gemfile
	Gemfile.lock
2012-03-10 18:30:33 +01:00
Marcin Kulik
81b06178fd Display asciicast example on homepage 2012-03-10 17:57:35 +01:00
Marcin Kulik
97fe0cb3ff Move player to partial 2012-03-10 17:45:06 +01:00
Marcin Kulik
085a678479 overflow: hidden for terminal element 2012-03-10 17:24:40 +01:00
Micha Wrobel
d6273d4259 Keep sensitive signup data in session 2012-03-10 14:58:10 +01:00
Marcin Kulik
029631df6d Random description for asciicast 2012-03-10 14:56:43 +01:00
Marcin Kulik
6b8a9e8610 Profile links with tilde 2012-03-10 14:56:25 +01:00
Marcin Kulik
2e678714d4 Get brush with #getBrush 2012-03-10 14:55:57 +01:00
Marcin Kulik
6037903f1c Use twitter bootstrap 2012-03-10 14:55:37 +01:00
Marcin Kulik
3f798ab7aa Check code style with cane and tailor 2012-03-08 15:00:10 +01:00
Micha Wrobel
6b40d9dbc8 Add specs to user#create 2012-03-06 23:04:35 +01:00
Micha Wrobel
fc53b71ee2 Validate nickname uniquness 2012-03-06 22:39:16 +01:00
Marcin Kulik
a4014b2012 attr_accessible list for Asciicast (closes #50) 2012-03-06 22:10:58 +01:00
Marcin Kulik
119622f57b Remove TODO comment 2012-03-06 22:10:46 +01:00
Marcin Kulik
9e0a6acf55 Spec for #redirect_back_or_to 2012-03-06 22:03:12 +01:00
Marcin Kulik
deaf42edad ApplicationController#redirect_back_or_to 2012-03-06 21:46:05 +01:00
Marcin Kulik
8216781067 Use store_location in Unauthorized handler 2012-03-06 21:29:07 +01:00
Marcin Kulik
a0041abed1 store_location / get_stored_location 2012-03-06 21:28:32 +01:00
Marcin Kulik
80df89ec84 Fix typo 2012-03-06 21:27:17 +01:00
Marcin Kulik
98d5285a23 Require auth in UserTokensController (closes #53) 2012-03-06 19:51:40 +01:00
Marcin Kulik
16d11a1249 Redirect to profile page after claiming (closes #51) 2012-03-06 19:44:27 +01:00
Marcin Kulik
c976c567d7 Loading indicator 2012-03-05 22:52:14 +01:00
Marcin Kulik
830c39d2fb Fix path for asciicasts json data 2012-03-05 22:51:48 +01:00
Marcin Kulik
f914a97308 Airbrake/Errbit 2012-03-04 23:49:13 +01:00
Marcin Kulik
c3326e4b16 Browse path 2012-03-04 23:44:36 +01:00
Marcin Kulik
6660efe8a7 collection is not needed in CommentEntry view 2012-03-04 23:09:06 +01:00
Marcin Kulik
51dfa8474f Profile paths: ~sickill 2012-03-04 23:07:45 +01:00
Marcin Kulik
35af4cf9e7 Home and installation pages 2012-03-04 22:44:04 +01:00
Marcin Kulik
44d6914991 :dependent => :destroy for Asciicast#comments 2012-03-04 21:55:45 +01:00
Marcin Kulik
ad9542d124 Store files in tmp in specs 2012-03-04 21:54:31 +01:00
Marcin Kulik
ebf0383e99 Fix comment routes 2012-03-04 21:26:22 +01:00
Marcin Kulik
c4f40322ed Merge branch 'master' into comments
* master:
  Display asciicast author and creation time
  Claiming asciicasts
  User#add_user_token
  Asciicast.assign_user
  User tokens for assigning asciicasts to users
  Better styles + pagination

Conflicts:
	app/models/asciicast.rb
	db/schema.rb
	spec/factories/asciicasts.rb
	spec/factories/users.rb
2012-03-04 21:14:35 +01:00
Marcin Kulik
66db199aab Display asciicast author and creation time 2012-03-04 20:59:53 +01:00
Marcin Kulik
9e59b19c16 Claiming asciicasts 2012-03-04 20:30:26 +01:00
Marcin Kulik
0de5784e68 User#add_user_token 2012-03-04 20:29:19 +01:00
Marcin Kulik
9f51211bc1 Asciicast.assign_user 2012-03-04 20:28:30 +01:00
Marcin Kulik
1ba9067551 User tokens for assigning asciicasts to users 2012-03-04 18:14:58 +01:00
Micha Wrobel
5ad02c8610 Remove wrong route 2012-03-04 16:48:24 +01:00
Micha Wrobel
a2d1b1a15f Simplify comments_index.js 2012-03-04 16:13:01 +01:00
Micha Wrobel
ea62987c06 Fix typo 2012-03-04 15:54:25 +01:00
Micha Wrobel
5d52be2bae Add Forbiden Exception and refactor existing actions 2012-03-04 15:26:05 +01:00
Marcin Kulik
b7807c3f0d Better styles + pagination 2012-03-04 15:18:09 +01:00
Micha Wrobel
4f47f0a7fc Add specs for destroy 2012-03-04 14:37:30 +01:00
Micha Wrobel
e7567848d3 Url is defined after initialization 2012-03-04 13:54:42 +01:00
Micha Wrobel
712410a3e7 Remove not used leavings 2012-03-04 13:51:53 +01:00
Micha Wrobel
706460e71b Show time ago in comments 2012-03-04 13:50:57 +01:00
Micha Wrobel
e7f5f57424 Some refactoring, and make possible to remove own comments 2012-03-04 13:50:56 +01:00
Micha Wrobel
9a190cf474 Don't show comment form if user not logged in 2012-03-04 13:50:56 +01:00
Micha Wrobel
d296d69aa3 Add information about current_user 2012-03-04 13:50:56 +01:00
Micha Wrobel
5201b3f768 Initial implementation of comments - in progress 2012-03-04 13:50:56 +01:00
Micha Wrobel
9094b8b0b6 Override as_json to include more data 2012-03-04 13:50:17 +01:00
Micha Wrobel
e66ad8b5ed Add comments association 2012-03-04 13:50:16 +01:00
Micha Wrobel
877a59b365 Protect from mass assignment 2012-03-04 13:50:16 +01:00
Micha Wrobel
cc6fd9eb2a Remove posibility to update comment 2012-03-04 13:50:16 +01:00
Micha Wrobel
70cf1bdc3b Add comment resource 2012-03-04 13:50:16 +01:00
Marcin Kulik
58092ae50e Let's have separate page for login buttons
This way we can link to login page from comments section
if user is not authenticated
2012-03-04 11:33:11 +01:00
Marcin Kulik
285f9934ab Google analytics 2012-03-04 00:23:36 +01:00
Marcin Kulik
f3c80398cb Clicking on term view toggles playback 2012-03-04 00:10:14 +01:00
Marcin Kulik
755efc09d1 Format time as mm:ss 2012-03-03 23:58:45 +01:00
Marcin Kulik
aa3c28701d Pausing + time display 2012-03-03 23:50:18 +01:00
Marcin Kulik
5e05b0d1cb Fix carriageReturn use 2012-03-03 19:45:52 +01:00
Marcin Kulik
1062aa3d01 Decompress bzip data in the browser 2012-03-03 19:43:38 +01:00
Marcin Kulik
b3e8fbb7df Load asciicast data via ajax 2012-03-03 18:38:11 +01:00
Marcin Kulik
a16c10009a Initially set brush with setBrush 2012-03-03 15:42:21 +01:00
Marcin Kulik
dec4d3dc31 Handle more standard esc sequences 2012-03-03 15:36:18 +01:00
Marcin Kulik
5a54654dc5 Handle special charset setting 2012-03-03 15:33:50 +01:00
Marcin Kulik
22b4da210c Charsets support 2012-03-03 15:15:38 +01:00
Marcin Kulik
9480d9c1bb Improve top nav 2012-03-03 08:53:14 +01:00
Marcin Kulik
9263bc37d3 avatar_img helper 2012-03-03 08:52:10 +01:00
Marcin Kulik
ece7bfa909 Fix ApplicationController#current_user 2012-03-02 22:33:13 +01:00
Marcin Kulik
7ffbe50c74 Fix saveTerminalState and restoreTerminalState 2012-03-02 22:08:40 +01:00
Marcin Kulik
76a5c46bfb Fix reverseIndex, verticalTab 2012-03-02 22:05:52 +01:00
Marcin Kulik
8005613c95 Use single parent element for faster innerHTML 2012-03-02 21:38:34 +01:00
Marcin Kulik
2c58e449a5 Even more faster renderLine 2012-03-02 21:30:13 +01:00
Marcin Kulik
8ef0b63029 A little faster renderLine 2012-03-02 21:28:21 +01:00
Marcin Kulik
c6d6f9c851 Remove old commented out implementation of parser 2012-03-02 21:12:32 +01:00
Marcin Kulik
a9afb35b82 Don't log too much 2012-03-02 21:05:49 +01:00
Marcin Kulik
766fe57bf1 New parser 2012-03-02 20:54:43 +01:00
Marcin Kulik
6eeafdf699 Extract SGR codes interpretation to separate class 2012-02-29 09:08:16 +01:00
Marcin Kulik
3371a238b7 Merge pull request #35 from sickill/omniauth
User model and omniauth authentication
2012-02-26 13:13:24 -08:00
Micha Wrobel
d4f127508f Add nickname column to users 2012-02-26 20:11:09 +01:00
Micha Wrobel
2669bbb310 Don't use assigns(:current_user) in spec 2012-02-26 20:10:09 +01:00
Marcin Kulik
0979a6706b VT#renderer -> VT#view 2012-02-26 18:44:30 +01:00
Marcin Kulik
d0e0ec4f88 Use :alert (supported directly by redirect_to) instead of :error. 2012-02-26 18:39:46 +01:00
Micha Wrobel
c4763bb566 Improve controller specs, tiny refactoring 2012-02-26 18:13:46 +01:00
Micha Wrobel
ce67e84a60 Don't raise AR::RecordNotFound if there is no id 2012-02-26 17:57:46 +01:00
Micha Wrobel
0190c3f049 Add avatar_url column, modify migration file 2012-02-26 17:55:19 +01:00
Micha Wrobel
be24115519 Extract paths to helper methods 2012-02-26 16:40:30 +01:00
Micha Wrobel
1b33acb937 Make sure that @current_user is also set and cleared 2012-02-26 16:33:37 +01:00
Micha Wrobel
bf6b74289b Add omniauth authentication: github and twitter 2012-02-25 23:43:17 +01:00
Micha Wrobel
c374f43f5e fix key name, and remove unsupported email 2012-02-25 23:42:44 +01:00
Micha Wrobel
f59841abaf Add user model, and .create_with_omniauth method 2012-02-25 17:43:10 +01:00
Marcin Kulik
f23cbbb79d Move char attrs back to VT 2012-02-24 23:26:05 +01:00
Marcin Kulik
69c1dcbf9c Another TODO 2012-02-24 23:20:27 +01:00
Marcin Kulik
3eb0b40d32 TODO 2012-02-24 23:20:03 +01:00
Marcin Kulik
9edbcbac4e Remove wrong handlers 2012-02-24 23:19:38 +01:00
Marcin Kulik
260d7c6956 Comment 2012-02-24 23:19:04 +01:00
Marcin Kulik
49c583d500 Rename handleCSI to handleCS 2012-02-24 23:18:33 +01:00