eac_launcher 0.7.0 → 0.8.0

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: dc5c8e9304567b7ce13caa84773de5b00125780481c95ec3c2b2b1764fc99293
4
- data.tar.gz: 7f2a01ba747baf92f8441497829d0d4f7277ae6cbffb27f5b7ff44b65c5d86e8
3
+ metadata.gz: caec9ebfca6f98aeaa14712e587fae2f5156ee955b8f5f753a04ceee0bc0a4ba
4
+ data.tar.gz: e91054745544d8e1c35d765c7bbbc9ce5ef154cebb38bcfe92d2e3c37191f1d8
5
5
  SHA512:
6
- metadata.gz: d43f28992f7f580041927fec666f2648cf1a9bf4cd9ffa5775fc556cbaea9801f665d0b658ab3229e807f3e95c08db4b6a81987b3c3fcdf2610dea27d19ba0a5
7
- data.tar.gz: 65c00f0e89738c5948629e7e2983cd3c37578ed9e9fb3bf252a7dd0cfa5099507dae12c8667c3e692c1f27de8e123dd2b47703dfdc47fbe152727e3320fa4648
6
+ metadata.gz: ff8735f475a0ce5cceab27836d9c30c0376b5023c6eddd386546205768a2349f6fe7a9e64c0c9adce6ab16e2f1dfd9776a7adc2948eb3c2ae05a69f705cfab3f
7
+ data.tar.gz: bf7b393700803a8c3bae51acb9d2cd16775a788363b4f07c60125d2ace19fe5bc8fee7493b7d5fc500ed0272a10fc15263398e89ca2e6281495c48789f2d90c2
@@ -12,15 +12,12 @@ module EacLauncher
12
12
  @context ||= ::EacLauncher::Context.current
13
13
  end
14
14
 
15
- def find_instance(instance_name)
16
- context.instances.find { |i| i.name == instance_name }
15
+ def find_instances(instance_name)
16
+ context.instances.select { |instance| instance_match?(instance, instance_name) }
17
17
  end
18
18
 
19
- def find_instance!(instance_path)
20
- instance = find_instance(instance_path)
21
- return instance if instance
22
-
23
- raise "Instance not found in \"#{instance_path}\""
19
+ def instance_match?(instance, instance_name)
20
+ ::File.fnmatch?(instance_name, instance.name)
24
21
  end
25
22
 
26
23
  def instances
@@ -29,7 +26,7 @@ module EacLauncher
29
26
  elsif options['--pending']
30
27
  context.pending_instances
31
28
  else
32
- options['<instance_path>'].map { |p| find_instance!(p) }
29
+ options['<instance_path>'].flat_map { |p| find_instances(p) }
33
30
  end
34
31
  end
35
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacLauncher
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
metadata CHANGED
@@ -1,49 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2020-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 4.2.10
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '4.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 4.2.10
33
- - !ruby/object:Gem::Dependency
34
- name: colorize
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: 0.8.1
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: 0.8.1
47
13
  - !ruby/object:Gem::Dependency
48
14
  name: curb
49
15
  requirement: !ruby/object:Gem::Requirement
@@ -64,28 +30,34 @@ dependencies:
64
30
  requirements:
65
31
  - - "~>"
66
32
  - !ruby/object:Gem::Version
67
- version: '0.15'
33
+ version: '0.24'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 0.24.1
68
37
  type: :runtime
69
38
  prerelease: false
70
39
  version_requirements: !ruby/object:Gem::Requirement
71
40
  requirements:
72
41
  - - "~>"
73
42
  - !ruby/object:Gem::Version
74
- version: '0.15'
43
+ version: '0.24'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.24.1
75
47
  - !ruby/object:Gem::Dependency
76
48
  name: git
77
49
  requirement: !ruby/object:Gem::Requirement
78
50
  requirements:
79
51
  - - "~>"
80
52
  - !ruby/object:Gem::Version
81
- version: 1.3.0
53
+ version: '1.6'
82
54
  type: :runtime
83
55
  prerelease: false
84
56
  version_requirements: !ruby/object:Gem::Requirement
85
57
  requirements:
86
58
  - - "~>"
87
59
  - !ruby/object:Gem::Version
88
- version: 1.3.0
60
+ version: '1.6'
89
61
  - !ruby/object:Gem::Dependency
90
62
  name: ruby-progressbar
91
63
  requirement: !ruby/object:Gem::Requirement