bake-test-external 0.3.0 → 0.3.1

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: f3a6b374572b47af82e04f4b26b382a133c593cbcf43897fce5f47b2c3a106a1
4
- data.tar.gz: bbb34012fb4558a400eeb52cf6286ec946545f6e31aea54c38372e9a0bbc1f48
3
+ metadata.gz: 453029f7e41f7489e46c76929be1f982a2854639bc88c2f308630d855e388b3a
4
+ data.tar.gz: b96af1c2bac8cbf518312d3a61cdbd44a67fee9d746a718c2ecb32f6c96dab43
5
5
  SHA512:
6
- metadata.gz: 17f73204c2b1114d44e66146226126d1569938fcaf6cdb072f33bcfe6413d37562330fefb86348052eb2dc73c51e6e7636035409e156f16b7e52162e45548a12
7
- data.tar.gz: 810a9db3951a515617e8a38b0cb1290b384d7a91abb382ef39441d9d1ec33583e106bd1daa28e4e5a84fb5032eddc698bc680e1d7f8adb907b169d60ec25a89f
6
+ metadata.gz: 6ff3b1074516f2f91913bf69a63108b1dec7622cbcdea2e8a31c2414f0a86dd300697c9c4d3fe9f685fd3655d5b8fdfe0b082d8de31db11d9b0bf3ba3d4e74d6
7
+ data.tar.gz: 655a8c35193ba74d15ef9cc4eb0a50b8acee24f5f275f9da250229d9f0ac9ca01c8263dad22b32bc4fff9df974cca19319c4035ea665bf6bddcd54923c6555c7
checksums.yaml.gz.sig CHANGED
Binary file
@@ -3,6 +3,7 @@
3
3
  # Released under the MIT License.
4
4
  # Copyright, 2022, by Samuel Williams.
5
5
  # Copyright, 2022, by Akshay Birajdar.
6
+ # Copyright, 2022, by Hiroaki Osawa.
6
7
 
7
8
  DEFAULT_EXTERNALS_PATH = 'config/external.yaml'
8
9
  DEFAULT_COMMAND = "bake test"
@@ -42,10 +43,14 @@ def find_gemspec(glob = "*.gemspec")
42
43
  end
43
44
 
44
45
  def clone_and_test(name, key, config)
46
+ path = clone_repository(name, key, config)
47
+ test_repository(path, config) or abort("External tests #{key} failed!")
48
+ end
49
+
50
+ def clone_repository(name, key, config)
45
51
  require 'fileutils'
46
52
 
47
53
  url = config[:url]
48
- command = config.fetch(:command, DEFAULT_COMMAND)
49
54
 
50
55
  path = "external/#{key}"
51
56
 
@@ -83,5 +88,11 @@ def clone_and_test(name, key, config)
83
88
  system("bundle", "install", chdir: path)
84
89
  end
85
90
 
86
- system(*command, chdir: path) or abort("External tests #{key} failed!")
91
+ return path
92
+ end
93
+
94
+ def test_repository(path, config)
95
+ command = config.fetch(:command, DEFAULT_COMMAND)
96
+
97
+ system(*command, chdir: path)
87
98
  end
@@ -6,7 +6,7 @@
6
6
  module Bake
7
7
  module Test
8
8
  module External
9
- VERSION = "0.3.0"
9
+ VERSION = "0.3.1"
10
10
  end
11
11
  end
12
12
  end
data/license.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Copyright, 2022, by Samuel Williams.
4
4
  Copyright, 2022, by Akshay Birajdar.
5
+ Copyright, 2022, by Hiroaki Osawa.
5
6
 
6
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
8
  of this software and associated documentation files (the "Software"), to deal
data/readme.md CHANGED
@@ -12,6 +12,7 @@ Add a file `config/external.yaml` to your project, and add entries like:
12
12
  bake:
13
13
  url: https://github.com/ioquatix/bake.git
14
14
  command: bundle exec rspec
15
+ # branch: optional-branch-name
15
16
  ```
16
17
 
17
18
  ``` bash
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-test-external
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  - Akshay Birajdar
9
+ - Hiroaki Osawa
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain:
metadata.gz.sig CHANGED
Binary file