sleet 0.5.3 → 0.5.5

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: 4fac7493ce36c1bd93ce7b8adb7026bb7717472df669a91cc86b2c38aedd16aa
4
- data.tar.gz: '0180aa81852054f6ae694198bf668dec598df6d5304f526977158ecafc50ddc7'
3
+ metadata.gz: dc5ad3e2f7f4b3d958c272b6f1b9c145a285c4adf99a559c80f7b9c39d7c82f5
4
+ data.tar.gz: ea54fbd8c50277c22746c8232012bbc7e73fc653da575c40ab4d38d4ea8ce7b4
5
5
  SHA512:
6
- metadata.gz: 96219d22089a50d8a9899291c86f3e756611f1981f37837d751ffee58f395efdd50694104a6465db64637110e5de326069fc6cc6270457d8db820f609f14c81f
7
- data.tar.gz: 022bdbfbe371c6768109ca30132806adaef7519d6d87577a7ff7b5111d5c74b23f432cd93aea66317eaacfe37a940e282eb8174a61be8e8ade33cd9a46763a7e
6
+ metadata.gz: e6020e78c03eb8cb28e20977626711896ec220bb24e0ced9cabd55fccf633f096863a1ea77271b3435d895aca0a37eff1fe1f430b91c8e511bf9c0ebede513b4
7
+ data.tar.gz: c1ba949373ba9cce72526b9c007ddbb801782efa4a718e4ef65f517d118defb31352a80d62f3f3cdd6764dfff350876defb015a2b0b8c3dcbc9e5984ce412930
data/.circleci/config.yml CHANGED
@@ -1,39 +1,48 @@
1
- version: 2
1
+ version: 2.1
2
+
2
3
  jobs:
3
4
  test:
5
+ parameters:
6
+ docker-image:
7
+ type: string
8
+ gemfile:
9
+ type: string
10
+ default: Gemfile
4
11
  parallelism: 1
5
12
  docker:
6
- - image: circleci/ruby:latest
13
+ - image: << parameters.docker-image >>
14
+ environment:
15
+ BUNDLE_GEMFILE: << parameters.gemfile >>
7
16
 
8
17
  steps:
9
18
  - checkout
10
19
 
11
20
  # Install
12
- - run: bundle check --path vendor/bundle || sudo apt-get install cmake && bundle install --path vendor/bundle
13
-
14
- - type: shell
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)
21
+ - run: bundle check || (sudo apt-get update && sudo apt-get install cmake && bundle install)
22
+
23
+ - run:
24
+ command: |
25
+ bundle exec rubocop \
26
+ --config .rubocop.yml \
27
+ -r $(bundle show rubocop-junit-formatter)/lib/rubocop/formatter/junit_formatter.rb \
28
+ --format RuboCop::Formatter::JUnitFormatter \
29
+ --out /tmp/test-results/rubocop.xml \
30
+ --format progress \
31
+ --force-exclusion \
32
+ $(circleci tests glob "**/*.rb" | circleci tests split --split-by=filesize --show-counts)
24
33
 
25
34
  # Run rspec in parallel
26
- - type: shell
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)
35
+ - run:
36
+ command: |
37
+ bundle exec rspec --profile 10 \
38
+ --format RspecJunitFormatter \
39
+ --out /tmp/test-results/rspec.xml \
40
+ --format progress \
41
+ $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings --show-counts)
33
42
 
34
43
  # Save artifacts
35
- - type: store_test_results
36
- path: /tmp/test-results
44
+ - store_test_results:
45
+ path: /tmp/test-results
37
46
 
38
47
  - store_artifacts:
39
48
  path: spec/.rspec_example_statuses
@@ -42,4 +51,14 @@ workflows:
42
51
  version: 2
43
52
  test-workflow:
44
53
  jobs:
45
- - test
54
+ - test:
55
+ matrix:
56
+ parameters:
57
+ docker-image:
58
+ - cimg/ruby:2.7.6
59
+ - cimg/ruby:3.0.1
60
+ - cimg/ruby:3.1.3
61
+ - cimg/ruby:3.2.1
62
+ gemfile:
63
+ - Gemfile
64
+ - gemfiles/minimums.gemfile
data/.gitignore CHANGED
@@ -14,3 +14,5 @@
14
14
  spec/.rspec_example_statuses
15
15
 
16
16
  .envrc
17
+
18
+ gemfiles/*.gemfile.lock
data/Appraisals ADDED
@@ -0,0 +1,8 @@
1
+ appraise "minimums" do
2
+ gem "colorize", "0.8.1"
3
+ gem "faraday", "0.13.1"
4
+ gem "rspec", "3.3.0"
5
+ gem "rugged", "1.0"
6
+ gem "terminal-table", "1.8"
7
+ gem "thor", "0.20"
8
+ end
data/CHANGELOG.md CHANGED
@@ -1,6 +1,23 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.5.3](https://github.com/coreyja/sleet/tree/v0.5.3) (2020-08-09)
3
+ ## [v0.5.5](https://github.com/coreyja/sleet/tree/v0.5.5) (2023-03-11)
4
+
5
+ [Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.4...v0.5.5)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - feat: Ruby 3.2 Support [\#113](https://github.com/coreyja/sleet/pull/113) ([coreyja](https://github.com/coreyja))
10
+
11
+ ## [v0.5.4](https://github.com/coreyja/sleet/tree/v0.5.4) (2023-03-11)
12
+
13
+ [Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.3...v0.5.4)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Bug: Fix CI by making sure we can install `cmake` [\#112](https://github.com/coreyja/sleet/pull/112) ([coreyja](https://github.com/coreyja))
18
+ - bug: CircleCI removed has\_artifacts from v1.1 API response [\#111](https://github.com/coreyja/sleet/pull/111) ([jesseproudman](https://github.com/jesseproudman))
19
+
20
+ ## [v0.5.3](https://github.com/coreyja/sleet/tree/v0.5.3) (2020-08-10)
4
21
 
5
22
  [Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.2...v0.5.3)
6
23
 
@@ -18,8 +35,6 @@
18
35
 
19
36
  ## [v0.5.1](https://github.com/coreyja/sleet/tree/v0.5.1) (2020-06-14)
20
37
 
21
- - This was an accidental release that contains no changes from `0.5.0`
22
-
23
38
  [Full Changelog](https://github.com/coreyja/sleet/compare/v0.5.0...v0.5.1)
24
39
 
25
40
  ## [v0.5.0](https://github.com/coreyja/sleet/tree/v0.5.0) (2020-06-14)
@@ -196,7 +211,7 @@
196
211
 
197
212
  **Closed issues:**
198
213
 
199
- - Places `.rspec\_failed\_examples` relative to where the script is called from [\#1](https://github.com/coreyja/sleet/issues/1)
214
+ - Places `.rspec_failed_examples` relative to where the script is called from [\#1](https://github.com/coreyja/sleet/issues/1)
200
215
 
201
216
  **Merged pull requests:**
202
217
 
data/README.md CHANGED
@@ -1 +1 @@
1
- ./docs/README.md
1
+ docs/README.md
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
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "colorize", "0.8.1"
6
+ gem "faraday", "0.13.1"
7
+ gem "rspec", "3.3.0"
8
+ gem "rugged", "1.0"
9
+ gem "terminal-table", "1.8"
10
+ gem "thor", "0.20"
11
+
12
+ group :test do
13
+ gem "rspec_junit_formatter"
14
+ gem "rubocop-junit-formatter"
15
+ end
16
+
17
+ gemspec path: "../"
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
@@ -12,7 +12,7 @@ module Sleet
12
12
  end
13
13
 
14
14
  def validate!
15
- must_find_a_build_with_artifacts!
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.builds_with_artifacts.find do |b|
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 must_find_a_build_with_artifacts!
37
+ def must_find_a_build!
38
38
  !chosen_build_json.nil? ||
39
- raise(Error, "No builds with artifacts found#{" for job name [#{job_name}]" if job_name}")
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}) with artifacts")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sleet
4
- VERSION = '0.5.3'
4
+ VERSION = '0.5.5'
5
5
  end
data/sleet.gemspec CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency 'colorize', '~> 0.8.1'
29
29
  spec.add_dependency 'faraday', '>= 0.13.1', '< 1.1.0'
30
30
  spec.add_dependency 'faraday_middleware'
31
- spec.add_dependency 'rspec', '~> 3.0'
32
- spec.add_dependency 'rugged', '>= 0.26', '< 1.1'
31
+ spec.add_dependency 'rspec', '~> 3.3'
32
+ spec.add_dependency 'rugged', '>= 1.0', '< 1.6'
33
33
  spec.add_dependency 'terminal-table', '~> 1.8'
34
34
  spec.add_dependency 'thor', '>= 0.20', '< 1.1'
35
35
 
@@ -39,4 +39,5 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'rake', '~> 13.0'
40
40
  spec.add_development_dependency 'rubocop-coreyja', '0.4.0'
41
41
  spec.add_development_dependency 'webmock', '~> 3.8.0'
42
+ spec.add_development_dependency 'appraisal', '~> 2.4.1'
42
43
  end
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.3
4
+ version: 0.5.5
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: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2023-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -64,34 +64,34 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '3.0'
67
+ version: '3.3'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '3.0'
74
+ version: '3.3'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rugged
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0.26'
81
+ version: '1.0'
82
82
  - - "<"
83
83
  - !ruby/object:Gem::Version
84
- version: '1.1'
84
+ version: '1.6'
85
85
  type: :runtime
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: '0.26'
91
+ version: '1.0'
92
92
  - - "<"
93
93
  - !ruby/object:Gem::Version
94
- version: '1.1'
94
+ version: '1.6'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: terminal-table
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -210,6 +210,20 @@ dependencies:
210
210
  - - "~>"
211
211
  - !ruby/object:Gem::Version
212
212
  version: 3.8.0
213
+ - !ruby/object:Gem::Dependency
214
+ name: appraisal
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: 2.4.1
220
+ type: :development
221
+ prerelease: false
222
+ version_requirements: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - "~>"
225
+ - !ruby/object:Gem::Version
226
+ version: 2.4.1
213
227
  description: |
214
228
  Sleet provides an easy way to grab the most recent Rspec persistance files from CircleCI.
215
229
  It also aggregates the artifacts from CircleCI, since you will have 1 per build container.
@@ -227,6 +241,7 @@ files:
227
241
  - ".rubocop.yml"
228
242
  - ".rubocop_todo.yml"
229
243
  - ".sleet.yml"
244
+ - Appraisals
230
245
  - CHANGELOG.md
231
246
  - CODE_OF_CONDUCT.md
232
247
  - Gemfile
@@ -240,6 +255,8 @@ files:
240
255
  - docs/README.md
241
256
  - docs/_config.yml
242
257
  - exe/sleet
258
+ - gemfiles/.bundle/config
259
+ - gemfiles/minimums.gemfile
243
260
  - lib/sleet.rb
244
261
  - lib/sleet/artifact_downloader.rb
245
262
  - lib/sleet/branch.rb
@@ -260,7 +277,7 @@ homepage: https://github.com/coreyja/sleet
260
277
  licenses:
261
278
  - MIT
262
279
  metadata: {}
263
- post_install_message:
280
+ post_install_message:
264
281
  rdoc_options: []
265
282
  require_paths:
266
283
  - lib
@@ -275,8 +292,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
292
  - !ruby/object:Gem::Version
276
293
  version: '0'
277
294
  requirements: []
278
- rubygems_version: 3.0.1
279
- signing_key:
295
+ rubygems_version: 3.3.26
296
+ signing_key:
280
297
  specification_version: 4
281
298
  summary: CircleCI RSpec Status Persistance File Aggregator
282
299
  test_files: []