sleet 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +21 -21
- data/CHANGELOG.md +11 -4
- data/bin/release +4 -4
- data/lib/sleet/branch.rb +0 -4
- data/lib/sleet/build_selector.rb +5 -5
- data/lib/sleet/version.rb +1 -1
- data/sleet.gemspec +2 -0
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e29601bd8864a0441e4db476383d4cfa10cbee7e63d81cb09cc3f1fc23a1f502
|
|
4
|
+
data.tar.gz: f318c390d52cb71e520911008e6bb23637e24dcf833334bf13259a09234c772d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e965eb74942875f3151c7c46f519d04f6fedbe4c1e94de2b470e1cff5f601e5ef50e24478c7e338a9158b454a9c5133c5a936d0d906ae47f97757c72d7c0dbb7
|
|
7
|
+
data.tar.gz: 817a5a02f65c2a86879b142e1941d369751beadcc6a94f6768f6a78ff10e9ea1ed090861dc2fac99a774e8df884fdd88b8e29e330a0199b7733df4fb8c013a33
|
data/.circleci/config.yml
CHANGED
|
@@ -3,37 +3,37 @@ jobs:
|
|
|
3
3
|
test:
|
|
4
4
|
parallelism: 1
|
|
5
5
|
docker:
|
|
6
|
-
- image:
|
|
6
|
+
- image: cimg/ruby:2.7.6
|
|
7
7
|
|
|
8
8
|
steps:
|
|
9
9
|
- checkout
|
|
10
10
|
|
|
11
11
|
# Install
|
|
12
|
-
- run: bundle check --path vendor/bundle || sudo apt-get install cmake && bundle install --path vendor/bundle
|
|
12
|
+
- run: bundle check --path vendor/bundle || (sudo apt-get update && sudo apt-get install cmake && bundle install --path vendor/bundle)
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
- run:
|
|
15
|
+
command: |
|
|
16
|
+
bundle exec rubocop \
|
|
17
|
+
--config .rubocop.yml \
|
|
18
|
+
-r $(bundle show rubocop-junit-formatter)/lib/rubocop/formatter/junit_formatter.rb \
|
|
19
|
+
--format RuboCop::Formatter::JUnitFormatter \
|
|
20
|
+
--out /tmp/test-results/rubocop.xml \
|
|
21
|
+
--format progress \
|
|
22
|
+
--force-exclusion \
|
|
23
|
+
$(circleci tests glob "**/*.rb" | circleci tests split --split-by=filesize --show-counts)
|
|
24
24
|
|
|
25
25
|
# Run rspec in parallel
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
- run:
|
|
27
|
+
command: |
|
|
28
|
+
bundle exec rspec --profile 10 \
|
|
29
|
+
--format RspecJunitFormatter \
|
|
30
|
+
--out /tmp/test-results/rspec.xml \
|
|
31
|
+
--format progress \
|
|
32
|
+
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings --show-counts)
|
|
33
33
|
|
|
34
34
|
# Save artifacts
|
|
35
|
-
-
|
|
36
|
-
|
|
35
|
+
- store_test_results:
|
|
36
|
+
path: /tmp/test-results
|
|
37
37
|
|
|
38
38
|
- store_artifacts:
|
|
39
39
|
path: spec/.rspec_example_statuses
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [v0.5.
|
|
3
|
+
## [v0.5.4](https://github.com/coreyja/sleet/tree/v0.5.4) (2023-03-11)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.3...v0.5.4)
|
|
6
|
+
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Bug: Fix CI by making sure we can install `cmake` [\#112](https://github.com/coreyja/sleet/pull/112) ([coreyja](https://github.com/coreyja))
|
|
10
|
+
- bug: CircleCI removed has\_artifacts from v1.1 API response [\#111](https://github.com/coreyja/sleet/pull/111) ([jesseproudman](https://github.com/jesseproudman))
|
|
11
|
+
|
|
12
|
+
## [v0.5.3](https://github.com/coreyja/sleet/tree/v0.5.3) (2020-08-10)
|
|
4
13
|
|
|
5
14
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.2...v0.5.3)
|
|
6
15
|
|
|
@@ -18,8 +27,6 @@
|
|
|
18
27
|
|
|
19
28
|
## [v0.5.1](https://github.com/coreyja/sleet/tree/v0.5.1) (2020-06-14)
|
|
20
29
|
|
|
21
|
-
- This was an accidental release that contains no changes from `0.5.0`
|
|
22
|
-
|
|
23
30
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.0...v0.5.1)
|
|
24
31
|
|
|
25
32
|
## [v0.5.0](https://github.com/coreyja/sleet/tree/v0.5.0) (2020-06-14)
|
|
@@ -196,7 +203,7 @@
|
|
|
196
203
|
|
|
197
204
|
**Closed issues:**
|
|
198
205
|
|
|
199
|
-
- Places `.
|
|
206
|
+
- Places `.rspec_failed_examples` relative to where the script is called from [\#1](https://github.com/coreyja/sleet/issues/1)
|
|
200
207
|
|
|
201
208
|
**Merged pull requests:**
|
|
202
209
|
|
data/bin/release
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
-
gem bump -v $1
|
|
5
|
-
github_changelog_generator -u coreyja -p sleet --future-release v$(bundle exec exe/sleet version --bare)
|
|
4
|
+
bundle exec gem bump -v $1
|
|
5
|
+
bundle exec github_changelog_generator -u coreyja -p sleet --future-release v$(bundle exec exe/sleet version --bare)
|
|
6
6
|
git add -A
|
|
7
|
-
git commit --amend --no-edit
|
|
8
|
-
gem release -tp
|
|
7
|
+
bundle exec git commit --amend --no-edit
|
|
8
|
+
bundle exec gem release -tp
|
data/lib/sleet/branch.rb
CHANGED
|
@@ -13,10 +13,6 @@ module Sleet
|
|
|
13
13
|
@builds ||= JSON.parse(Sleet::CircleCi.get(url, circle_ci_token).body)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def builds_with_artifacts
|
|
17
|
-
builds.select { |b| b['has_artifacts'] }
|
|
18
|
-
end
|
|
19
|
-
|
|
20
16
|
private
|
|
21
17
|
|
|
22
18
|
attr_reader :github_user, :github_repo, :branch, :circle_ci_token
|
data/lib/sleet/build_selector.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Sleet
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def validate!
|
|
15
|
-
|
|
15
|
+
must_find_a_build!
|
|
16
16
|
chosen_build_must_have_input_file!
|
|
17
17
|
end
|
|
18
18
|
|
|
@@ -29,19 +29,19 @@ module Sleet
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def chosen_build_json
|
|
32
|
-
branch.
|
|
32
|
+
branch.builds.find do |b|
|
|
33
33
|
b.fetch('workflows', nil)&.fetch('job_name', nil) == job_name
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
def
|
|
37
|
+
def must_find_a_build!
|
|
38
38
|
!chosen_build_json.nil? ||
|
|
39
|
-
raise(Error, "No builds
|
|
39
|
+
raise(Error, "No builds found#{" for job name [#{job_name}]" if job_name}")
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def chosen_build_must_have_input_file!
|
|
43
43
|
build.artifacts.any? ||
|
|
44
|
-
raise(Error, "No Rspec example file found in the latest build (##{chosen_build_num})
|
|
44
|
+
raise(Error, "No Rspec example file found in the latest build (##{chosen_build_num})")
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
end
|
data/lib/sleet/version.rb
CHANGED
data/sleet.gemspec
CHANGED
|
@@ -25,6 +25,8 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
26
|
spec.require_paths = ['lib']
|
|
27
27
|
|
|
28
|
+
spec.required_ruby_version = '< 3.0'
|
|
29
|
+
|
|
28
30
|
spec.add_dependency 'colorize', '~> 0.8.1'
|
|
29
31
|
spec.add_dependency 'faraday', '>= 0.13.1', '< 1.1.0'
|
|
30
32
|
spec.add_dependency 'faraday_middleware'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sleet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Corey Alexander
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|
|
@@ -260,23 +260,23 @@ homepage: https://github.com/coreyja/sleet
|
|
|
260
260
|
licenses:
|
|
261
261
|
- MIT
|
|
262
262
|
metadata: {}
|
|
263
|
-
post_install_message:
|
|
263
|
+
post_install_message:
|
|
264
264
|
rdoc_options: []
|
|
265
265
|
require_paths:
|
|
266
266
|
- lib
|
|
267
267
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
268
268
|
requirements:
|
|
269
|
-
- - "
|
|
269
|
+
- - "<"
|
|
270
270
|
- !ruby/object:Gem::Version
|
|
271
|
-
version: '0'
|
|
271
|
+
version: '3.0'
|
|
272
272
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
273
|
requirements:
|
|
274
274
|
- - ">="
|
|
275
275
|
- !ruby/object:Gem::Version
|
|
276
276
|
version: '0'
|
|
277
277
|
requirements: []
|
|
278
|
-
rubygems_version: 3.
|
|
279
|
-
signing_key:
|
|
278
|
+
rubygems_version: 3.1.6
|
|
279
|
+
signing_key:
|
|
280
280
|
specification_version: 4
|
|
281
281
|
summary: CircleCI RSpec Status Persistance File Aggregator
|
|
282
282
|
test_files: []
|