just-tmux 0.1.11 → 0.2.0
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/just-tmux.rb +4 -3
- metadata +26 -27
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddf16c4038c01075e2d6d26be7370a5b47568963
|
4
|
+
data.tar.gz: 8e997803729a2d90f9ebbaeeec84fa4c32d54d9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f70d2287d6a60b4597e3bb0623f8387a477a6a0d919b2c31e53fec4d00eb2c0375e07d56c7d15dde503822e9774ad195b2e68b33096b96b711a24b69539ad7a
|
7
|
+
data.tar.gz: 5838ed3aefd5f96695b5f743e47925b1661a9ad36d0cadd412e1f6fb87975972e9b44327c3dcb94b81f571b67cf560c2b9f082c4a3de2d4eb1b815920efe7a08
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/just-tmux.rb
CHANGED
@@ -6,6 +6,7 @@ require 'dynarex'
|
|
6
6
|
|
7
7
|
# revision history
|
8
8
|
|
9
|
+
# 2018 Aug 05: Minor modification: Changed to using Dynarex#to_a instead of Dynarex#to_h.
|
9
10
|
# 2017 Jan 07: Added post_shell to allow a command to execute after the
|
10
11
|
# new shell has been created e.g. rvm use 2.4.0
|
11
12
|
|
@@ -31,11 +32,11 @@ class JustTmux
|
|
31
32
|
dynarex = dx.is_a?(Dynarex) ? dx : Dynarex.new(dx)
|
32
33
|
|
33
34
|
shell = dynarex.summary[:shell] || 'bash'
|
34
|
-
post_shell = dynarex.summary[:post_shell] || ''
|
35
|
+
post_shell = CGI.unescape(dynarex.summary[:post_shell]) || ''
|
35
36
|
default_dir = File.expand_path dynarex.summary[:default_dir] || '~'
|
36
37
|
session_name = dynarex.summary[:session] || '0'
|
37
38
|
|
38
|
-
h = dynarex.
|
39
|
+
h = dynarex.to_a.map do |x|
|
39
40
|
x[:name] = shell if x[:name].nil? or x[:name].empty?
|
40
41
|
x[:dir] = default_dir if x[:dir].nil? or x[:dir].empty?
|
41
42
|
x[:sleep] = 0 if x[:sleep].nil? or x[:sleep].empty?
|
@@ -66,4 +67,4 @@ class JustTmux
|
|
66
67
|
def send_keys(command) "tmux send-keys '%s' Enter\n" % command end
|
67
68
|
def wait(duration) "sleep %s\n" % duration end
|
68
69
|
|
69
|
-
end
|
70
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: just-tmux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
lVeYkR0vfgdf6g==
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwODA1MjAzMDQ0WhcN
|
15
|
+
MTkwODA1MjAzMDQ0WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+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NuNnkNekb29MFtESxTuKmcqkijjH7
|
31
|
+
+F8=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2018-08-05 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: dynarex
|
@@ -39,20 +38,20 @@ dependencies:
|
|
39
38
|
requirements:
|
40
39
|
- - "~>"
|
41
40
|
- !ruby/object:Gem::Version
|
42
|
-
version: '1.
|
41
|
+
version: '1.8'
|
43
42
|
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
44
|
+
version: 1.8.1
|
46
45
|
type: :runtime
|
47
46
|
prerelease: false
|
48
47
|
version_requirements: !ruby/object:Gem::Requirement
|
49
48
|
requirements:
|
50
49
|
- - "~>"
|
51
50
|
- !ruby/object:Gem::Version
|
52
|
-
version: '1.
|
51
|
+
version: '1.8'
|
53
52
|
- - ">="
|
54
53
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.
|
54
|
+
version: 1.8.1
|
56
55
|
description:
|
57
56
|
email: james@jamesrobertson.eu
|
58
57
|
executables: []
|
@@ -80,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
79
|
version: '0'
|
81
80
|
requirements: []
|
82
81
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.6.
|
82
|
+
rubygems_version: 2.6.13
|
84
83
|
signing_key:
|
85
84
|
specification_version: 4
|
86
85
|
summary: Outputs a string of tmux instructions for execution by the system. Commands
|
metadata.gz.sig
CHANGED
Binary file
|