matrixeval-ruby 0.2.1 → 0.2.2

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: 3b9b53303cbe3415db346fff54439d7d83ff3564953dc8a73f8e717cad79c076
4
- data.tar.gz: 8b930d4888aff49ede4a41b9e9f979d4ba40ff3b1a6461f984dcc31a8e66b9e1
3
+ metadata.gz: 3c1fa003fd849f1a5baf6c9393c5210e030e52a14c044308f6732b602c196027
4
+ data.tar.gz: 652ab5ecd63138e426a002aae768c7bd61214785ef8a8eaa698cffa2eddda1ae
5
5
  SHA512:
6
- metadata.gz: b6dace8fff5fbcd2e710b65937cd1e28a32aa0d637c0636b446a5463389d0aa8acae2f387db940c60e6a5abcecaf6b2210fc55fae912cfef8ea371d6cdf6c09f
7
- data.tar.gz: 43bc3e246bcf8ea074bb23c08b61565a6746dcb0f6130712aa523aa354cd021a761287ab791e5112353a2eff47d4c286c13b07e74a7c9b4e6d3da482a7007295
6
+ metadata.gz: fc85db98392512e7683fbfa96c54e4f34ff2f5c248ab07ceac57bd18a6781cdfac45325b874c1580c068b5a1f56a8653bc0d943baea6fcd391e3baf521038dd4
7
+ data.tar.gz: af503dd911a0522975061dfb37696470adedafc4a6868019480e89cfd51c686bb5aa4f5d848683dfe9b52ba94be0d34cb7fbb7478a262c6fe62f8964f0c5c6a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.2] - 2022-02-11
4
+
5
+ - Auto remove containers
6
+
3
7
  ## [0.2.1] - 2022-02-11
4
8
 
5
9
  - Fix a assignment method issue
@@ -5,6 +5,12 @@ module Matrixeval
5
5
  module Ruby
6
6
  class DockerCompose
7
7
 
8
+ class << self
9
+ def clean_containers
10
+ system("docker compose -f .matrixeval/docker-compose.yml rm --all -f >> /dev/null 2>&1")
11
+ end
12
+ end
13
+
8
14
  attr_reader :context
9
15
 
10
16
  def initialize(context)
@@ -45,6 +45,7 @@ module Matrixeval
45
45
  exit
46
46
  ensure
47
47
  turn_on_stty_opost
48
+ DockerCompose.clean_containers
48
49
  end
49
50
 
50
51
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Matrixeval
4
4
  module Ruby
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrixeval-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hopper Gee