sesh 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Session.vim +86 -7
- data/lib/sesh/cli.rb +1 -1
- data/lib/sesh/tmux_control.rb +3 -1
- data/lib/sesh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 380d59d344fd71d4f5fe0c1c64be41dc239a8bba
|
4
|
+
data.tar.gz: 79f46f5ce0bc63dfd115d97e6059428fc67ad2f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ec3d12ea9b0a950337f75cbf269765707e98e11929b5d5d4491a086e38db954869fc52f856ce8d8444fb782c1aaf4a77fd54d62c59222a541d9ff40d2406a3b
|
7
|
+
data.tar.gz: ae878cb2bcff31dc1ab61303fd3be5eafb6153c051f0c6dc4f70c85fbdce73902797b5649e91cff5d304a8ee1965599dfcdf69f43ba721b8e5abb946e7a53a66
|
data/Gemfile.lock
CHANGED
data/Session.vim
CHANGED
@@ -7,6 +7,8 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
7
7
|
let s:wipebuf = bufnr('%')
|
8
8
|
endif
|
9
9
|
set shortmess=aoO
|
10
|
+
badd +1 ~/Sites/teacher-impact/app/views/users/_search_result.html.haml
|
11
|
+
badd +132 ~/Sites/the-riverboat/Gemfile
|
10
12
|
badd +5 ~/Sites/teacher-impact/app/views/teachers/_profile.html.haml
|
11
13
|
badd +87 ~/Sites/energy-innovation-award/config/database.yml
|
12
14
|
badd +15 ~/Sites/teacher-impact/config/initializers/devise.rb
|
@@ -18,6 +20,86 @@ badd +1 ~/Sites/teacher-impact/app/views/admin/users/_details_cell.html.haml
|
|
18
20
|
badd +1 ~/Sites/teacher-impact/app/views/admin/students/_details_cell.html.haml
|
19
21
|
badd +21 ~/Sites/teacher-impact/app/models/user.rb
|
20
22
|
badd +43 ~/Sites/teacher-impact/app/helpers/user_profiles_helper.rb
|
23
|
+
badd +49 ~/Sites/the-riverboat/Guardfile
|
24
|
+
badd +28 ~/Sites/the-riverboat/app/controllers/application_controller.rb
|
25
|
+
badd +373 ~/Sites/the-riverboat/app/models/user.rb
|
26
|
+
badd +1 ~/Sites/the-riverboat/app/views/admin/refund_requests/index.html.haml
|
27
|
+
badd +13 ~/Sites/the-riverboat/app/views/admin/refund_requests/_table.html.haml
|
28
|
+
badd +4 ~/Sites/the-riverboat/app/views/admin/refund_requests/_table_row.html.haml
|
29
|
+
badd +3 ~/Sites/the-riverboat/app/views/admin/refund_requests/_details_cell.html.haml
|
30
|
+
badd +23 ~/Sites/the-riverboat/app/controllers/admin/refund_requests_controller.rb
|
31
|
+
badd +11 ~/Sites/the-riverboat/app/controllers/admin/payments_controller.rb
|
32
|
+
badd +32 ~/Sites/the-riverboat/app/views/admin/affiliates/index.html.haml
|
33
|
+
badd +1 ~/Sites/the-riverboat/app/views/events/index.html.haml
|
34
|
+
badd +19 ~/Sites/the-riverboat/app/views/admin/events/index.html.haml
|
35
|
+
badd +27 ~/Sites/the-riverboat/app/views/admin/events/_management_table.html.haml
|
36
|
+
badd +26 ~/Sites/the-riverboat/app/views/admin/tickets/checkin.html.haml
|
37
|
+
badd +8 ~/Sites/the-riverboat/app/views/admin/event_templates/index.html.haml
|
38
|
+
badd +10 ~/Sites/the-riverboat/app/views/admin/event_templates/_table.html.haml
|
39
|
+
badd +5 ~/Sites/the-riverboat/app/views/admin/event_templates/_table_row.html.haml
|
40
|
+
badd +2 ~/Sites/the-riverboat/app/views/admin/event_templates/_details_cell.html.haml
|
41
|
+
badd +1 ~/Sites/the-riverboat/app/controllers/event_templates_controller.rb
|
42
|
+
badd +25 ~/Sites/the-riverboat/app/controllers/admin/event_templates_controller.rb
|
43
|
+
badd +38 ~/Sites/the-riverboat/app/views/layouts/application.html.haml
|
44
|
+
badd +62 ~/Sites/the-riverboat/app/views/shared/_main_nav.html.haml
|
45
|
+
badd +9 ~/Sites/the-riverboat/app/views/admin/payments/index.html.haml
|
46
|
+
badd +12 ~/Sites/the-riverboat/app/views/admin/payments/_table.html.haml
|
47
|
+
badd +18 ~/Sites/the-riverboat/app/views/admin/payments/_table_row.html.haml
|
48
|
+
badd +26 ~/Sites/the-riverboat/app/views/admin/payments/_details_cell.html.haml
|
49
|
+
badd +126 ~/Sites/the-riverboat/app/models/payment.rb
|
50
|
+
badd +323 ~/Sites/the-riverboat/db/schema.rb
|
51
|
+
badd +127 ~/Sites/the-riverboat/app/controllers/admin/tickets_controller.rb
|
52
|
+
badd +9 ~/Sites/the-riverboat/app/controllers/concerns/ticket_errors.rb
|
53
|
+
badd +1 ~/Sites/the-riverboat/app/views/admin/payments/new.html.haml
|
54
|
+
badd +1 ~/Sites/the-riverboat/app/views/admin/events/new.html.haml
|
55
|
+
badd +1 ~/Sites/the-riverboat/app/views/admin/payments/edit.html.haml
|
56
|
+
badd +8 ~/Sites/the-riverboat/app/views/admin/payments/_form.html.haml
|
57
|
+
badd +1 ~/Sites/the-riverboat/app/views/tickets/_payment_errors.html.haml
|
58
|
+
badd +5 ~/Sites/the-riverboat/app/views/payments/_new_card_fields.html.haml
|
59
|
+
badd +1 ~/Sites/the-riverboat/app/views/ticket_codes/_cocoon_table.html.haml
|
60
|
+
badd +1 ~/Sites/the-riverboat/app/views/tickets/_ticket_code_fields.html.haml
|
61
|
+
badd +30 ~/Sites/the-riverboat/config/environments/development.rb
|
62
|
+
badd +25 ~/Sites/the-riverboat/app/assets/javascripts/admin/users.js.coffee
|
63
|
+
badd +70 ~/Sites/the-riverboat/app/assets/javascripts/admin/payments.js.coffee
|
64
|
+
badd +226 ~/Sites/the-riverboat/app/models/ticket.rb
|
65
|
+
badd +1 ~/Sites/the-riverboat/app/views/admin/timecards/reports.html.haml
|
66
|
+
badd +146 ~/Sites/the-riverboat/app/helpers/application_helper.rb
|
67
|
+
badd +1 ~/Sites/the-riverboat/app/views/shared/_main_footer.html.haml
|
68
|
+
badd +2 ~/Sites/the-riverboat/config/initializers/stripe.rb
|
69
|
+
badd +1 ~/Sites/the-riverboat/config/secrets.yml
|
70
|
+
badd +7 ~/Sites/the-riverboat/db/migrate/20151023211612_add_purchasable_to_payments.rb
|
71
|
+
badd +16 ~/Sites/the-riverboat/config/environments/test.rb
|
72
|
+
badd +31 ~/Sites/the-riverboat/app/assets/javascripts/application.js
|
73
|
+
badd +205 ~/Sites/the-riverboat/app/assets/javascripts/tickets.js.coffee
|
74
|
+
badd +9 ~/Sites/the-riverboat/app/views/payments/_card_storage_fields.html.haml
|
75
|
+
badd +1 ~/Sites/the-riverboat/app/views/shared/_presubmit_errors.html.haml
|
76
|
+
badd +1 ~/Sites/the-riverboat/app/views/payments/_stripe_errors.html.haml
|
77
|
+
badd +18 ~/Sites/the-riverboat/app/assets/javascripts/shared.js.coffee
|
78
|
+
badd +263 ~/Sites/the-riverboat/app/assets/stylesheets/bootstrap-overrides.scss
|
79
|
+
badd +79 ~/Sites/the-riverboat/config/initializers/simple_form_bootstrap.rb
|
80
|
+
badd +8 ~/Sites/the-riverboat/app/views/admin/payments/show.html.haml
|
81
|
+
badd +4 ~/Sites/the-riverboat/app/helpers/payments_helper.rb
|
82
|
+
badd +1 ~/Sites/the-riverboat/app/models/concerns/soft_deletable.rb
|
83
|
+
badd +54 ~/Sites/the-riverboat/config/routes.rb
|
84
|
+
badd +15 ~/Sites/the-riverboat/app/views/admin/event_bookings/_form.html.haml
|
85
|
+
badd +1 ~/Sites/the-riverboat/app/assets/javascripts/admin/event_bookings.js.coffee
|
86
|
+
badd +23 ~/Sites/the-riverboat/app/assets/javascripts/event_bookings.js.coffee
|
87
|
+
badd +13 ~/Sites/the-riverboat/spec/models/payment_spec.rb
|
88
|
+
badd +4 ~/Sites/the-riverboat/spec/factories/payments.rb
|
89
|
+
badd +5 ~/Sites/the-riverboat/spec/factories/event_booking_categories.rb
|
90
|
+
badd +5 ~/Sites/the-riverboat/spec/factories/event_bookings.rb
|
91
|
+
badd +12 ~/Sites/the-riverboat/spec/factories/events.rb
|
92
|
+
badd +5 ~/Sites/the-riverboat/spec/factories/photos.rb
|
93
|
+
badd +3 ~/Sites/the-riverboat/spec/factories/prices.rb
|
94
|
+
badd +6 ~/Sites/the-riverboat/spec/factories/promo_codes.rb
|
95
|
+
badd +64 ~/Sites/the-riverboat/spec/factories/tickets.rb
|
96
|
+
badd +17 ~/Sites/the-riverboat/spec/factories/users.rb
|
97
|
+
badd +22 ~/Sites/the-riverboat/app/models/concerns/acts_as_stripe_customer.rb
|
98
|
+
badd +174 ~/Sites/the-riverboat/spec/models/users_spec.rb
|
99
|
+
badd +79 ~/Sites/the-riverboat/spec/controllers/tickets_controller_spec.rb
|
100
|
+
badd +9 ~/Sites/the-riverboat/spec/controllers/twilio_controller_spec.rb
|
101
|
+
badd +37 ~/Sites/the-riverboat/spec/features/checkin_spec.rb
|
102
|
+
badd +7 ~/Sites/the-riverboat/app/models/timecard.rb
|
21
103
|
badd +10 ~/Sites/teacher-impact/app/views/admin/teachers/_table_row.html.haml
|
22
104
|
badd +6 ~/Sites/teacher-impact/app/views/admin/teachers/_details_cell.html.haml
|
23
105
|
badd +6 ~/Sites/teacher-impact/app/views/admin/student_parents/_details_cell.html.haml
|
@@ -30,8 +112,6 @@ badd +1 ~/Sites/teacher-impact/app/views/admin/students/_table_row.html.haml
|
|
30
112
|
badd +13 ~/Sites/teacher-impact/app/views/admin/student_parents/_table_row.html.haml
|
31
113
|
badd +9 ~/Sites/teacher-impact/app/controllers/application_controller.rb
|
32
114
|
badd +1 ~/Sites/polyblock/app/assets/javascripts/polyblock/polyblock.js.coffee
|
33
|
-
badd +25 ~/Sites/the-riverboat/app/assets/javascripts/admin/users.js.coffee
|
34
|
-
badd +1 ~/Sites/the-riverboat/app/views/events/index.html.haml
|
35
115
|
badd +1 ~/Sites/teacher-impact/app/views/layouts/application.html.haml
|
36
116
|
badd +74 ~/Sites/teacher-impact/app/views/main/home.html.haml
|
37
117
|
badd +16 ~/Sites/teacher-impact/\[Vundle]\ Installer
|
@@ -58,7 +138,6 @@ badd +3 ~/Sites/teacher-impact/app/controllers/teachers_controller.rb
|
|
58
138
|
badd +1 ~/Sites/teacher-impact/app/views/teachers/show.html.haml
|
59
139
|
badd +4 ~/Sites/teacher-impact/app/controllers/main_controller.rb
|
60
140
|
badd +1 ~/Sites/teacher-impact/app/models/teacher.rb
|
61
|
-
badd +19 ~/Sites/the-riverboat/app/views/admin/events/index.html.haml
|
62
141
|
badd +3 ~/Sites/teacher-impact/app/controllers/registrations_controller.rb
|
63
142
|
badd +5 ~/Sites/zip_search/lib/zip_search/acts_as_location.rb
|
64
143
|
badd +15 ~/.ssh/config
|
@@ -420,7 +499,6 @@ badd +1 ~/Sites/teacher-impact/app/models/instructional_skill.rb
|
|
420
499
|
badd +1 ~/Sites/teacher-impact/db/migrate/20151005212541_create_endorsements.rb
|
421
500
|
badd +7 ~/Sites/teacher-impact/app/views/student_parent_profiles/_form.html.haml
|
422
501
|
badd +1 ~/Sites/teacher-impact/app/views/schools/_search_result.html.haml
|
423
|
-
badd +1 ~/Sites/teacher-impact/app/views/users/_search_result.html.haml
|
424
502
|
badd +1 ~/Sites/teacher-impact/app/views/users/_role_indicator.html.haml
|
425
503
|
badd +1 ~/Sites/teacher-impact/app/views/users/_avatar.html.haml
|
426
504
|
badd +1 ~/Sites/teacher-impact/app/views/schools/_avatar.html.haml
|
@@ -501,7 +579,7 @@ if s:l < 1 | let s:l = 1 | endif
|
|
501
579
|
exe s:l
|
502
580
|
normal! zt
|
503
581
|
2
|
504
|
-
normal!
|
582
|
+
normal! 016|
|
505
583
|
wincmd w
|
506
584
|
argglobal
|
507
585
|
edit lib/sesh/tmux_control.rb
|
@@ -514,7 +592,7 @@ setlocal fml=1
|
|
514
592
|
setlocal fdn=20
|
515
593
|
setlocal fen
|
516
594
|
silent! normal! zE
|
517
|
-
let s:l = 42 - ((
|
595
|
+
let s:l = 42 - ((14 * winheight(0) + 9) / 18)
|
518
596
|
if s:l < 1 | let s:l = 1 | endif
|
519
597
|
exe s:l
|
520
598
|
normal! zt
|
@@ -550,7 +628,7 @@ setlocal fml=1
|
|
550
628
|
setlocal fdn=20
|
551
629
|
setlocal fen
|
552
630
|
silent! normal! zE
|
553
|
-
let s:l = 36 - ((
|
631
|
+
let s:l = 36 - ((34 * winheight(0) + 9) / 18)
|
554
632
|
if s:l < 1 | let s:l = 1 | endif
|
555
633
|
exe s:l
|
556
634
|
normal! zt
|
@@ -611,6 +689,7 @@ normal! zt
|
|
611
689
|
246
|
612
690
|
normal! 019|
|
613
691
|
wincmd w
|
692
|
+
2wincmd w
|
614
693
|
exe '1resize ' . ((&lines * 20 + 31) / 62)
|
615
694
|
exe 'vert 1resize ' . ((&columns * 136 + 136) / 272)
|
616
695
|
exe '2resize ' . ((&lines * 18 + 31) / 62)
|
data/lib/sesh/cli.rb
CHANGED
@@ -243,7 +243,7 @@ module Sesh
|
|
243
243
|
else Logger.fatal 'Sesh client failed to connect.' end
|
244
244
|
when 'begin' then @tmux_control.begin_tmuxinator_session!
|
245
245
|
when 'run', 'rspec'
|
246
|
-
@tmux_control.do_shell_operation! @options[:shell]
|
246
|
+
exit @tmux_control.do_shell_operation! @options[:shell]
|
247
247
|
when 'detach' then @tmux_control.disconnect_client! ARGV.join(' ')
|
248
248
|
else
|
249
249
|
Logger.fatal "Command not recognized!"
|
data/lib/sesh/tmux_control.rb
CHANGED
@@ -189,14 +189,16 @@ module Sesh
|
|
189
189
|
inferred_location = Inferences.infer_tmux_location
|
190
190
|
# puts "Inferred location: #{inferred_location}"
|
191
191
|
if options[:pane].nil?
|
192
|
-
puts inferred_location.inspect
|
192
|
+
# puts inferred_location.inspect
|
193
193
|
if inferred_location[:project] == @project then system options[:command]
|
194
194
|
else interrupt_and_send_command_to_project! options[:command] end
|
195
195
|
else
|
196
196
|
if inferred_location == { project: @project, pane: options[:pane] }
|
197
197
|
system options[:command]
|
198
|
+
return $?.exitstatus
|
198
199
|
else
|
199
200
|
interrupt_and_send_command_to_pane! options[:pane], options[:command]
|
201
|
+
return 0
|
200
202
|
end
|
201
203
|
end
|
202
204
|
end
|
data/lib/sesh/version.rb
CHANGED