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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9471e7cda7353838acdf5e9fb441059fb3e4022
4
- data.tar.gz: b554177f292805dc1de6ddcb4b6726e4d07fe8aa
3
+ metadata.gz: 1c6d888b916d2fc4115aead434a0230b94464d3e
4
+ data.tar.gz: d292aec81bbc3183f872d052d85db4f233970aa3
5
5
  SHA512:
6
- metadata.gz: 0a14a726a33951d82b3299a7fd7e444cc1818185075adc5f3f5b17faab1c4876e130a298611acc561a8fa2a635432cc1bcf034f46b2cf0e818241c098839563d
7
- data.tar.gz: e74e6e2312772db6419573ccae75ba597f90bc78d38d172bb52a8a43ca582fabcfaef5d69cd61cfb67cdfa95691e3894b01a1e1c1eb0cac025a25ea5c0bda41d
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. However precise guidelines
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
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Lab42
3
3
  module Tmux
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end # module Tmux
6
6
  end # module Lab42
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.6
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: 2014-11-30 00:00:00.000000000 Z
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: '2.1'
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.3
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