tummy 1.1.1 → 1.1.2

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: dbb97b869921fda937a5dd6899227a5df527710a
4
- data.tar.gz: 2ba445384bca18d1294510104b44fee26d6c01c8
3
+ metadata.gz: 68a623f3ea08292162fb23244e4d205a3dbf1977
4
+ data.tar.gz: 979e16a770e741a38ff24c60d85450501dc973cd
5
5
  SHA512:
6
- metadata.gz: 94b723a44b5ba4d9c4e4583758a3a3af54750fa2a1782f49f23f300f4b31fcd2e45df7ef3864b88964b265b86103b857843944bce7a3cacc453f394b88acab67
7
- data.tar.gz: 4035dab6dccbd3c942d621c45af0817e8f38d9dc81ce25fa312798e7276d537dcf2eb0ed184807f94c94eff8448d2e84527f8fca1fa4ad9870ee56110d09cfdc
6
+ metadata.gz: 9b800c787a752e80d3b83d1a2308118f5d3a8c2b4586e0d4fadeb0f1dd8e03aaa99239d3ed85f09bc0fe6641756a90c7ce3a1084b9e94139e325eadaf0e87fc7
7
+ data.tar.gz: ec6d5c2270ae981c2891b61863abdf7db650c7ee5ff6edcdf22acdc9f7aae9dda867a31d1abfd9a3aaa8bb3421386c7c6b97db8eb871d943ebc1054c3762e0be
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
+ [![Gem Version](https://badge.fury.io/rb/tummy.svg)](https://rubygems.org/gems/tummy)
1
2
  # Tummy
2
3
 
3
4
  Use a Tmuxfile with your tmux configuration to easily manage sessions
4
5
 
6
+ ![Demo](https://i.imgur.com/pBSixTt.gif)
7
+
5
8
  ## Installation
6
9
 
7
10
  $ gem install tummy
@@ -22,7 +25,8 @@ window "src", [
22
25
 
23
26
  window "server-iex", [
24
27
  pane("iex -S mix phoenix.server"),
25
- pane("iex -S mix", :horizontal),
28
+ # the last argument is passed to tmux as raw arguments
29
+ pane("iex -S mix", :horizontal, "-l 20"),
26
30
  pane("git status", :vertical),
27
31
  ]
28
32
 
data/Tmuxfile.erb CHANGED
@@ -7,7 +7,7 @@ window "src", [
7
7
 
8
8
  window "server-iex", [
9
9
  pane("iex -S mix phoenix.server"),
10
- # the last argument is raw args
10
+ # the last argument is passed to tmux as raw arguments
11
11
  pane("iex -S mix", :horizontal, "-l 8"),
12
12
  pane("git status", :vertical),
13
13
  ]
data/exe/tummy CHANGED
@@ -98,6 +98,22 @@ end
98
98
 
99
99
  # init a Tmuxfile
100
100
  cmd = ARGV.first
101
+ if cmd.to_s.strip.downcase == "help"
102
+ puts <<-EOS
103
+ Usage:
104
+
105
+ # initialize a Tmuxfile
106
+ $ tummy init
107
+
108
+ # run a tummy session
109
+ $ tummy TmuxFilePath
110
+
111
+ # run a tmux session for the default `Tmuxfile`
112
+ $ tummy
113
+ EOS
114
+ exit(0)
115
+ end
116
+
101
117
  if cmd.to_s.strip.downcase == "init"
102
118
  if File.exists?("Tmuxfile")
103
119
  puts "ERROR: Tmuxfile is already present in the current directory"
@@ -116,7 +132,7 @@ if cmd.to_s.strip.downcase == "init"
116
132
  end
117
133
 
118
134
  # open a session
119
- file = "Tmuxfile" || ARGV.first
135
+ file = ARGV.first || "Tmuxfile"
120
136
  if !file || !File.exists?(file)
121
137
  puts "#{file} not found in current directory"
122
138
  puts "you can initialize a new file by running `tummy init`"
data/lib/tummy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tummy
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tummy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khaja Minhajuddin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-27 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler