lab42_tmux2 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/lab42/tmux.rb +2 -2
- data/lib/lab42/tmux/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c6d888b916d2fc4115aead434a0230b94464d3e
|
|
4
|
+
data.tar.gz: d292aec81bbc3183f872d052d85db4f233970aa3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b43d60ffcc3644c8127c14ae097632b10cac10bbc48fee1b3acbee3cf77286793eb4f1ec4f10eca5079f462a5ba4be2282c5ce384eb1287bbcb386c284ebae2
|
|
7
|
+
data.tar.gz: 48653cb69341e13ae97b65676518646b2416623b3857e5bf7774439b0352b3c5615c29ff0179418035161c65b396f64744224b80f4af1c3222572c82a42935cc
|
data/README.md
CHANGED
|
@@ -131,8 +131,7 @@ end
|
|
|
131
131
|
|
|
132
132
|
### Plugins
|
|
133
133
|
|
|
134
|
-
Plugins are easy to write, just MP the `Lab42::Tmux::Session` class.
|
|
135
|
-
how to do this will be available soon, also you might want to create some configuration.
|
|
134
|
+
Plugins are easy to write, one could just MP the `Lab42::Tmux::Session` class.
|
|
136
135
|
|
|
137
136
|
However, the goal of plugins being to be combineable the `lab42_tmux2` gem offers a mechanism to
|
|
138
137
|
protect plugins from each other. This works as follows:
|
data/lib/lab42/tmux.rb
CHANGED
|
@@ -11,9 +11,9 @@ module Lab42
|
|
|
11
11
|
$config.instance_exec( &block )
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def new_session session_name, &block
|
|
14
|
+
def new_session session_name=nil, &block
|
|
15
15
|
raise ArgumentError, 'No block provided' unless block
|
|
16
|
-
session = Session.new session_name
|
|
16
|
+
session = Session.new( session_name || File.basename( ENV["PWD"] ) )
|
|
17
17
|
session.run &block
|
|
18
18
|
end
|
|
19
19
|
|
data/lib/lab42/tmux/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lab42_tmux2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Dober
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lab42_core
|
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
117
|
+
version: 2.2.3
|
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements:
|
|
120
120
|
- - ">="
|
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
version: '0'
|
|
123
123
|
requirements: []
|
|
124
124
|
rubyforge_project:
|
|
125
|
-
rubygems_version: 2.4.
|
|
125
|
+
rubygems_version: 2.4.8
|
|
126
126
|
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
128
|
summary: Creating Tmux Windows And Panes Without Pains
|