rascal 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +2 -2
- data/lib/rascal/docker/container.rb +2 -2
- data/lib/rascal/docker/network.rb +11 -0
- data/lib/rascal/service.rb +3 -0
- data/lib/rascal/version.rb +1 -1
- data/rascal.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 190a2efecea68bc713a78cb62454529f2228af52529efd708301f0f78f1e7c87
|
4
|
+
data.tar.gz: 90126db4ae82863742144d82777c0a3862f927dbf5c13f08c9ae5f27be54d261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d366ae2838d464a4178df419f22ffdd08d6525f2fd6a06e830e620033fade39462c836acca86ebeaac0e562c9591dcecb1b8e304d858bc5f081edeb14098bfa1
|
7
|
+
data.tar.gz: 10ecd7318f88af5a2bf634d1b68c92b8a51de957f6bf16a7d3121d8d36224706a406e2a8bf188de3ba34433079c7459ae6e7b1860ee6b0452c20baa502d4a4a7
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,16 @@ All notable changes to this project will be documented here.
|
|
4
4
|
|
5
5
|
Rascal follows semantic versioning. This has little consequence pre 1.0, so expect breaking changes.
|
6
6
|
|
7
|
+
## 0.3.5 (2022-12-21)
|
8
|
+
|
9
|
+
- Fix the "endpoint ... already exists in network" error.
|
10
|
+
|
11
|
+
|
12
|
+
## 0.3.4 (2022-03-16)
|
13
|
+
|
14
|
+
- Activate Rubygems MFA
|
15
|
+
|
16
|
+
|
7
17
|
## 0.3.3 (2021-12-08)
|
8
18
|
|
9
19
|
- Support `command` key in services.
|
data/Gemfile.lock
CHANGED
@@ -112,8 +112,6 @@ module Rascal
|
|
112
112
|
@image
|
113
113
|
end
|
114
114
|
|
115
|
-
private
|
116
|
-
|
117
115
|
def id
|
118
116
|
@id ||= Docker.interface.run(
|
119
117
|
'container',
|
@@ -125,6 +123,8 @@ module Rascal
|
|
125
123
|
)
|
126
124
|
end
|
127
125
|
|
126
|
+
private
|
127
|
+
|
128
128
|
def image_exists?
|
129
129
|
Docker.interface.run(
|
130
130
|
'image',
|
@@ -14,6 +14,17 @@ module Rascal
|
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
+
def disconnect(container_id)
|
18
|
+
Docker.interface.run(
|
19
|
+
'network',
|
20
|
+
'disconnect',
|
21
|
+
id,
|
22
|
+
container_id,
|
23
|
+
)
|
24
|
+
rescue Interface::Error => e
|
25
|
+
raise unless e.message.include?('is not connected')
|
26
|
+
end
|
27
|
+
|
17
28
|
def exists?
|
18
29
|
!!id
|
19
30
|
end
|
data/lib/rascal/service.rb
CHANGED
@@ -17,6 +17,9 @@ module Rascal
|
|
17
17
|
|
18
18
|
def start_if_stopped(network: nil)
|
19
19
|
unless @container.running?
|
20
|
+
if (container_id = @container.id)
|
21
|
+
network.disconnect(container_id)
|
22
|
+
end
|
20
23
|
@container.start(network: network, network_alias: @alias, volumes: @volumes, env: @env_variables, command: @command)
|
21
24
|
end
|
22
25
|
end
|
data/lib/rascal/version.rb
CHANGED
data/rascal.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
20
20
|
spec.metadata["source_code_uri"] = "https://github.com/makandra/rascal"
|
21
21
|
spec.metadata["changelog_uri"] = "https://github.com/makandra/rascal/blob/master/CHANGELOG.md"
|
22
|
+
spec.metadata["rubygems_mfa_required"] = 'true'
|
22
23
|
else
|
23
24
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
24
25
|
"public gem pushes."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rascal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Kraze
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -76,6 +76,7 @@ metadata:
|
|
76
76
|
homepage_uri: https://github.com/makandra/rascal
|
77
77
|
source_code_uri: https://github.com/makandra/rascal
|
78
78
|
changelog_uri: https://github.com/makandra/rascal/blob/master/CHANGELOG.md
|
79
|
+
rubygems_mfa_required: 'true'
|
79
80
|
post_install_message:
|
80
81
|
rdoc_options: []
|
81
82
|
require_paths:
|
@@ -91,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
92
|
- !ruby/object:Gem::Version
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.3.22
|
95
96
|
signing_key:
|
96
97
|
specification_version: 4
|
97
98
|
summary: Spin up CI environments locally.
|