tomago 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa42d3adf156486930bdb85d7d6524429be48d97
4
- data.tar.gz: e3cae09353551fbe8fc763c53d585056ffbb0fe0
3
+ metadata.gz: 6d870a539dc08a21f9ee56dfe531d527bbd9c18d
4
+ data.tar.gz: fae6cc54ed455a1387aee22f66bba34f698a8167
5
5
  SHA512:
6
- metadata.gz: 46d63b97a7300ddc7966953723b3f39414bfb096bb09fcb9a60ef11ea3e074c08cc89f17e21542ff168aba9b086a8ad379f0f5c911049b0c30e73fe88ed18d6f
7
- data.tar.gz: c9c954e6ecd765e4fdc3eae376055055e4a0d5d9d2c608588cf3883e9e1f45f192424fdb6672b1a5d5ce0cc1d0d9ed546237f93e1eab8e1b163d36b112208743
6
+ metadata.gz: 810b607b81902c7c35b30ae592e491279aa82651d90032c972293e6a02eef469eb11763d27f72cce514001461095cc5f2f238c92feeab25f05251cb0b4bc7014
7
+ data.tar.gz: 298c664d2f77e8a1273bec520abb7297fa731edd7469c3923eb6e21f2e7e84fdf32baa60f0e372cda42834f709e6dfb4845907cd9af839d88185b35df12cbc89
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tomago (0.1.0)
4
+ tomago (0.2.0)
5
5
  colorize (~> 0.8.1)
6
6
  erubis (~> 2.7)
7
7
  thor (~> 0.20.0)
@@ -18,6 +18,14 @@ module Tomago
18
18
  end
19
19
  end
20
20
 
21
+ def has_on_project_start?
22
+ !on_project_start.nil?
23
+ end
24
+
25
+ def on_project_start
26
+ project_config["on_project_start"]
27
+ end
28
+
21
29
  private
22
30
 
23
31
  def project_config
@@ -6,7 +6,13 @@ unset RBENV_DIR
6
6
 
7
7
  cd <%= project_config["root"] %>
8
8
 
9
+ <% if has_on_project_start? %>
10
+ <%= on_project_start %>
11
+ <% end %>
12
+
9
13
  tmate -S <%= socket %> new-session -d -n '<%= primary_window.name %>'
14
+ tmate -S <%= socket %> set-window-option -g base-index 1
15
+ tmate -S <%= socket %> set-window-option -g pane-base-index 1
10
16
 
11
17
  <% secondary_windows.each do |window| %>
12
18
  tmate -S <%= socket %> new-window -n '<%= window.name %>' -d
@@ -1,3 +1,3 @@
1
1
  module Tomago
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Byler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor