tmuxinator 1.1.2 → 1.1.3

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
  SHA256:
3
- metadata.gz: dd589a05ee6ad5a9b1d42321036e2520a624fd34cee0bde5cbd7babcf3f21342
4
- data.tar.gz: 2d5a0b95e6d0dbe01bce6af909d8f8bbaa145c16c3accf2948342074d57787a6
3
+ metadata.gz: a86d4f9a6be9930c7ca3ddec795190a7674126289188714aa5e119f3cea81190
4
+ data.tar.gz: fc70a27587f0514b57960bcc5e1248380f83ce93762308f8b6d678b47453a7ac
5
5
  SHA512:
6
- metadata.gz: b6b9c59b44c77cfbaf3518ae15e535dd3a81248cb596b96538b2aee7330336280385a5179117fc0c2b8fd95ea5900b39432be1350c82b389a177d6802349812a
7
- data.tar.gz: 81f1001e02f6f04940276cd141760b769018843547ea9d949e791b12ab48ed7c1b76d8874d85cd30d9725351687b5f2cc0dac1c1b978cf451e602ae7f8556b79
6
+ metadata.gz: b0efd6ba6cc7e578799dbae56fd236c91b148b6117e3a2076e43f0097cf6fc39bf15cfcf669d720711513955c6f727e0534159a7dd1cf7f78de06b2f40e69652
7
+ data.tar.gz: 5092303c7a2517bf63bb9a3bc3f1670418ac2474dcc8db29c186a10e7ba3b2d021bd247ba9abc59c3a85254c40027c4574fa8982cbd35385efd627f13409d681
@@ -67,7 +67,7 @@ module Tmuxinator
67
67
  if tmux_version == "master"
68
68
  TMUX_MASTER_VERSION
69
69
  else
70
- tmux_version.to_f
70
+ tmux_version.to_s[/\d+(?:\.\d+)?/, 0].to_f
71
71
  end
72
72
  end
73
73
  end
@@ -1,6 +1,8 @@
1
1
  module Tmuxinator
2
2
  module TmuxVersion
3
3
  SUPPORTED_TMUX_VERSIONS = [
4
+ "3.0a",
5
+ 3.0,
4
6
  "2.9a",
5
7
  2.9,
6
8
  2.8,
@@ -1,3 +1,3 @@
1
1
  module Tmuxinator
2
- VERSION = "1.1.2".freeze
2
+ VERSION = "1.1.3".freeze
3
3
  end
@@ -159,14 +159,33 @@ describe Tmuxinator::Config do
159
159
  and_return("tmux #{version}")
160
160
  end
161
161
 
162
- context "master" do
163
- let(:version) { "master" }
164
- it { is_expected.to eq Float::INFINITY }
165
- end
166
-
167
- context "installed" do
168
- let(:version) { "2.4" }
169
- it { is_expected.to eq version.to_f }
162
+ version_mapping = {
163
+ "0.8" => 0.8,
164
+ "1.0" => 1.0,
165
+ "1.9" => 1.9,
166
+ "1.9a" => 1.9,
167
+ "2.4" => 2.4,
168
+ "2.9a" => 2.9,
169
+ "3.0-rc5" => 3.0,
170
+ "next-3.1" => 3.1,
171
+ "master" => Float::INFINITY,
172
+ # Failsafes
173
+ "foobar" => 0.0,
174
+ "-123-" => 123.0,
175
+ "5935" => 5935.0,
176
+ "" => 0.0,
177
+ "!@#^%" => 0.0,
178
+ "2.9ä" => 2.9,
179
+ "v3.5" => 3.5,
180
+ "v3.12.0" => 3.12,
181
+ "v3.12.5" => 3.12
182
+ }.freeze
183
+
184
+ version_mapping.each do |string_version, parsed_numeric_version|
185
+ context "when reported version is '#{string_version}'" do
186
+ let(:version) { string_version }
187
+ it { is_expected.to eq parsed_numeric_version }
188
+ end
170
189
  end
171
190
  end
172
191
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmuxinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Bargi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-30 00:00:00.000000000 Z
12
+ date: 2019-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
@@ -309,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
309
309
  - !ruby/object:Gem::Version
310
310
  version: 1.8.23
311
311
  requirements: []
312
- rubygems_version: 3.0.3
312
+ rubygems_version: 3.0.6
313
313
  signing_key:
314
314
  specification_version: 4
315
315
  summary: Create and manage complex tmux sessions easily.