sleet 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -7
- data/docs/README.md +2 -2
- data/lib/sleet/branch.rb +3 -2
- data/lib/sleet/build_selector.rb +2 -2
- data/lib/sleet/version.rb +1 -1
- data/sleet.gemspec +5 -5
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8eb6437ac9bdfb783a8d168289c197d3dbc7626e2f3e68a1484d6c538f1106b
|
4
|
+
data.tar.gz: 695273c145d440bc2ab46a9ba3238641b04fb8d655135ad3f6a281f44e414deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88eee7ed041b3fdf4c886fd7bebe2f0e8ca4df3d68623d40f0c2647b8a9f6b0cbc752e25d73a9b40373682b5628267e8fc12755e23bb9c8519c9b557a975495b
|
7
|
+
data.tar.gz: fe6e5e4a5eab4eef4cf992e35fb1ad2e2040873986509141082fd75a42f543dfc4c46acdc12ad470c093ebe39db03b33b6d60223df3d0bb15ae76d532b0f85d8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,30 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v0.4.3](https://github.com/coreyja/sleet/tree/v0.4.3) (2020-03-06)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.4.2...v0.4.3)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- s/Artifcats/Artifacts/ [\#44](https://github.com/coreyja/sleet/issues/44)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- fix: Replace "artifi🐱s" with "artifacts". [\#74](https://github.com/coreyja/sleet/pull/74) ([temochka](https://github.com/temochka))
|
14
|
+
- feat: Look at 100 recent builds instead of just 30. [\#73](https://github.com/coreyja/sleet/pull/73) ([temochka](https://github.com/temochka))
|
15
|
+
- Update webmock requirement from ~\> 3.7.0 to ~\> 3.8.0 [\#72](https://github.com/coreyja/sleet/pull/72) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
16
|
+
- Update faraday requirement from \>= 0.13.1, \< 0.16.0 to \>= 0.13.1, \< 1.1.0 [\#71](https://github.com/coreyja/sleet/pull/71) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
17
|
+
- Update gem-release requirement from = 2.1.0 to = 2.1.1 [\#69](https://github.com/coreyja/sleet/pull/69) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
18
|
+
- Update gem-release requirement from = 2.0.4 to = 2.1.0 [\#68](https://github.com/coreyja/sleet/pull/68) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
19
|
+
- Update gem-release requirement from = 2.0.3 to = 2.0.4 [\#67](https://github.com/coreyja/sleet/pull/67) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
20
|
+
- Update rake requirement from ~\> 12.3 to ~\> 13.0 [\#64](https://github.com/coreyja/sleet/pull/64) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
21
|
+
- Update webmock requirement from ~\> 3.6.0 to ~\> 3.7.0 [\#63](https://github.com/coreyja/sleet/pull/63) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
22
|
+
- Update gem-release requirement from = 2.0.2 to = 2.0.3 [\#62](https://github.com/coreyja/sleet/pull/62) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
23
|
+
- Update gem-release requirement from = 2.0.1 to = 2.0.2 [\#61](https://github.com/coreyja/sleet/pull/61) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
24
|
+
- Update webmock requirement from ~\> 3.5.1 to ~\> 3.6.0 [\#60](https://github.com/coreyja/sleet/pull/60) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
25
|
+
|
26
|
+
## [v0.4.2](https://github.com/coreyja/sleet/tree/v0.4.2) (2019-05-27)
|
2
27
|
|
3
|
-
## [v0.4.2](https://github.com/coreyja/sleet/tree/v0.4.2) (2019-05-26)
|
4
28
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.4.1...v0.4.2)
|
5
29
|
|
6
30
|
**Closed issues:**
|
@@ -22,6 +46,7 @@
|
|
22
46
|
- Update webmock requirement from ~\> 3.4.0 to ~\> 3.5.1 [\#47](https://github.com/coreyja/sleet/pull/47) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
23
47
|
|
24
48
|
## [v0.4.1](https://github.com/coreyja/sleet/tree/v0.4.1) (2018-11-24)
|
49
|
+
|
25
50
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.4.0...v0.4.1)
|
26
51
|
|
27
52
|
**Merged pull requests:**
|
@@ -36,6 +61,7 @@
|
|
36
61
|
- Update rugged requirement to \>= 0.26, \< 0.28 [\#24](https://github.com/coreyja/sleet/pull/24) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
37
62
|
|
38
63
|
## [v0.4.0](https://github.com/coreyja/sleet/tree/v0.4.0) (2018-03-08)
|
64
|
+
|
39
65
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.10...v0.4.0)
|
40
66
|
|
41
67
|
**Closed issues:**
|
@@ -47,6 +73,7 @@
|
|
47
73
|
- Get Token From Config File [\#21](https://github.com/coreyja/sleet/pull/21) ([coreyja](https://github.com/coreyja))
|
48
74
|
|
49
75
|
## [v0.3.10](https://github.com/coreyja/sleet/tree/v0.3.10) (2018-03-08)
|
76
|
+
|
50
77
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.9...v0.3.10)
|
51
78
|
|
52
79
|
**Merged pull requests:**
|
@@ -55,6 +82,7 @@
|
|
55
82
|
- Update rubocop requirement to ~\> 0.53.0 [\#19](https://github.com/coreyja/sleet/pull/19) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
56
83
|
|
57
84
|
## [v0.3.9](https://github.com/coreyja/sleet/tree/v0.3.9) (2018-03-04)
|
85
|
+
|
58
86
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.8...v0.3.9)
|
59
87
|
|
60
88
|
**Closed issues:**
|
@@ -66,15 +94,14 @@
|
|
66
94
|
- Refactor [\#18](https://github.com/coreyja/sleet/pull/18) ([coreyja](https://github.com/coreyja))
|
67
95
|
- Update rake requirement to ~\> 12.3 [\#17](https://github.com/coreyja/sleet/pull/17) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
68
96
|
- Update faraday requirement to \>= 0.13.1, \< 0.15.0 [\#16](https://github.com/coreyja/sleet/pull/16) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
97
|
+
- More Specs [\#15](https://github.com/coreyja/sleet/pull/15) ([coreyja](https://github.com/coreyja))
|
69
98
|
|
70
99
|
## [v0.3.8](https://github.com/coreyja/sleet/tree/v0.3.8) (2018-02-25)
|
71
|
-
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.7...v0.3.8)
|
72
100
|
|
73
|
-
|
74
|
-
|
75
|
-
- More Specs [\#15](https://github.com/coreyja/sleet/pull/15) ([coreyja](https://github.com/coreyja))
|
101
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.7...v0.3.8)
|
76
102
|
|
77
103
|
## [v0.3.7](https://github.com/coreyja/sleet/tree/v0.3.7) (2018-01-19)
|
104
|
+
|
78
105
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.6...v0.3.7)
|
79
106
|
|
80
107
|
**Merged pull requests:**
|
@@ -82,6 +109,7 @@
|
|
82
109
|
- Fix token auth and finally add a spec for it so I don't break it again [\#14](https://github.com/coreyja/sleet/pull/14) ([coreyja](https://github.com/coreyja))
|
83
110
|
|
84
111
|
## [v0.3.6](https://github.com/coreyja/sleet/tree/v0.3.6) (2018-01-18)
|
112
|
+
|
85
113
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.5...v0.3.6)
|
86
114
|
|
87
115
|
**Merged pull requests:**
|
@@ -89,9 +117,11 @@
|
|
89
117
|
- Fix Auth By Going Back to Query Params [\#13](https://github.com/coreyja/sleet/pull/13) ([coreyja](https://github.com/coreyja))
|
90
118
|
|
91
119
|
## [v0.3.5](https://github.com/coreyja/sleet/tree/v0.3.5) (2018-01-17)
|
120
|
+
|
92
121
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.4...v0.3.5)
|
93
122
|
|
94
123
|
## [v0.3.4](https://github.com/coreyja/sleet/tree/v0.3.4) (2018-01-17)
|
124
|
+
|
95
125
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.3...v0.3.4)
|
96
126
|
|
97
127
|
**Merged pull requests:**
|
@@ -100,6 +130,7 @@
|
|
100
130
|
- Fix Auth [\#11](https://github.com/coreyja/sleet/pull/11) ([coreyja](https://github.com/coreyja))
|
101
131
|
|
102
132
|
## [v0.3.3](https://github.com/coreyja/sleet/tree/v0.3.3) (2018-01-16)
|
133
|
+
|
103
134
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.2...v0.3.3)
|
104
135
|
|
105
136
|
**Merged pull requests:**
|
@@ -107,6 +138,7 @@
|
|
107
138
|
- Add `version` cmd [\#10](https://github.com/coreyja/sleet/pull/10) ([coreyja](https://github.com/coreyja))
|
108
139
|
|
109
140
|
## [v0.3.2](https://github.com/coreyja/sleet/tree/v0.3.2) (2018-01-16)
|
141
|
+
|
110
142
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.1...v0.3.2)
|
111
143
|
|
112
144
|
**Merged pull requests:**
|
@@ -114,6 +146,7 @@
|
|
114
146
|
- Update Readme and Add Descriptions to Help Menus [\#8](https://github.com/coreyja/sleet/pull/8) ([coreyja](https://github.com/coreyja))
|
115
147
|
|
116
148
|
## [v0.3.1](https://github.com/coreyja/sleet/tree/v0.3.1) (2018-01-15)
|
149
|
+
|
117
150
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.0...v0.3.1)
|
118
151
|
|
119
152
|
**Merged pull requests:**
|
@@ -121,6 +154,7 @@
|
|
121
154
|
- Add Dependency Versions [\#5](https://github.com/coreyja/sleet/pull/5) ([coreyja](https://github.com/coreyja))
|
122
155
|
|
123
156
|
## [v0.3.0](https://github.com/coreyja/sleet/tree/v0.3.0) (2018-01-15)
|
157
|
+
|
124
158
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.2.0...v0.3.0)
|
125
159
|
|
126
160
|
**Closed issues:**
|
@@ -133,10 +167,13 @@
|
|
133
167
|
- Error Messages [\#3](https://github.com/coreyja/sleet/pull/3) ([coreyja](https://github.com/coreyja))
|
134
168
|
|
135
169
|
## [v0.2.0](https://github.com/coreyja/sleet/tree/v0.2.0) (2018-01-14)
|
170
|
+
|
171
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/aa005fdae00ae843909f3a2d1753db3727a27c2c...v0.2.0)
|
172
|
+
|
136
173
|
**Merged pull requests:**
|
137
174
|
|
138
175
|
- Gemify [\#2](https://github.com/coreyja/sleet/pull/2) ([coreyja](https://github.com/coreyja))
|
139
176
|
|
140
177
|
|
141
178
|
|
142
|
-
\* *This
|
179
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/docs/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
RSpec has a [feature](https://relishapp.com/rspec/rspec-core/v/3-7/docs/command-line/only-failures) that I find very useful which is the `--only-failures` option. This will re-run only that examples that failed the previous run.
|
11
11
|
|
12
|
-
CircleCI has support for [uploading
|
12
|
+
CircleCI has support for [uploading artifacts](https://circleci.com/docs/2.0/artifacts/) with your builds, which allows us to store the persistance file that powers the RSpec only failures option.
|
13
13
|
However! CircleCI also supports and encourages parallelizing your build, which means even if you upload your rspec persistance file, you actually have a number of them each containing a subset of your test suite.
|
14
14
|
This is where `Sleet` comes in!
|
15
15
|
|
@@ -128,7 +128,7 @@ Build-Test-Deploy Demo:
|
|
128
128
|
|
129
129
|
For this example you have three jobs in your CircleCI Workflow, `build`, `test` and `deploy`, but only 1 (the `test` build) generate an Rspec persistance file
|
130
130
|
|
131
|
-
This command will pick the `test` build and save
|
131
|
+
This command will pick the `test` build and save its artifacts to the `.rspec_example_statuses` file
|
132
132
|
|
133
133
|
```
|
134
134
|
sleet fetch --workflows test:.rspec_example_statuses
|
data/lib/sleet/branch.rb
CHANGED
@@ -13,7 +13,7 @@ module Sleet
|
|
13
13
|
@builds ||= JSON.parse(Sleet::CircleCi.get(url, circle_ci_token).body)
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def builds_with_artifacts
|
17
17
|
builds.select { |b| b['has_artifacts'] }
|
18
18
|
end
|
19
19
|
|
@@ -22,7 +22,8 @@ module Sleet
|
|
22
22
|
attr_reader :github_user, :github_repo, :branch, :circle_ci_token
|
23
23
|
|
24
24
|
def url
|
25
|
-
"https://circleci.com/api/v1.1/project/github/#{github_user}/#{github_repo}/tree/#{branch}
|
25
|
+
"https://circleci.com/api/v1.1/project/github/#{github_user}/#{github_repo}/tree/#{branch}" \
|
26
|
+
'?filter=completed&limit=100'
|
26
27
|
end
|
27
28
|
end
|
28
29
|
end
|
data/lib/sleet/build_selector.rb
CHANGED
@@ -29,14 +29,14 @@ module Sleet
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def chosen_build_json
|
32
|
-
branch.
|
32
|
+
branch.builds_with_artifacts.find do |b|
|
33
33
|
b.fetch('workflows', nil)&.fetch('job_name', nil) == job_name
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
def must_find_a_build_with_artifacts!
|
38
38
|
!chosen_build_json.nil? ||
|
39
|
-
raise(Error, "No builds with
|
39
|
+
raise(Error, "No builds with artifacts found#{" for job name [#{job_name}]" if job_name}")
|
40
40
|
end
|
41
41
|
|
42
42
|
def chosen_build_must_have_input_file!
|
data/lib/sleet/version.rb
CHANGED
data/sleet.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = 'CircleCI RSpec Status Persistance File Aggregator'
|
14
14
|
spec.description = <<~DOC
|
15
15
|
Sleet provides an easy way to grab the most recent Rspec persistance files from CircleCI.
|
16
|
-
It also aggregates the
|
16
|
+
It also aggregates the artifacts from CircleCI, since you will have 1 per build container.
|
17
17
|
DOC
|
18
18
|
spec.homepage = 'https://github.com/coreyja/sleet'
|
19
19
|
spec.license = 'MIT'
|
@@ -26,16 +26,16 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.require_paths = ['lib']
|
27
27
|
|
28
28
|
spec.add_dependency 'colorize', '~> 0.8.1'
|
29
|
-
spec.add_dependency 'faraday', '>= 0.13.1', '<
|
29
|
+
spec.add_dependency 'faraday', '>= 0.13.1', '< 1.1.0'
|
30
30
|
spec.add_dependency 'rspec', '~> 3.0'
|
31
31
|
spec.add_dependency 'rugged', '>= 0.26', '< 0.29'
|
32
32
|
spec.add_dependency 'terminal-table', '~> 1.8'
|
33
33
|
spec.add_dependency 'thor', '~> 0.20.0'
|
34
34
|
|
35
|
-
spec.add_development_dependency 'gem-release', '= 2.
|
35
|
+
spec.add_development_dependency 'gem-release', '= 2.1.1'
|
36
36
|
spec.add_development_dependency 'github_changelog_generator', '~> 1.14'
|
37
37
|
spec.add_development_dependency 'pry', '~> 0.10'
|
38
|
-
spec.add_development_dependency 'rake', '~>
|
38
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
39
39
|
spec.add_development_dependency 'rubocop-coreyja', '0.4.0'
|
40
|
-
spec.add_development_dependency 'webmock', '~> 3.
|
40
|
+
spec.add_development_dependency 'webmock', '~> 3.8.0'
|
41
41
|
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.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 0.13.1
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 1.1.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.13.1
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 1.1.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,14 +112,14 @@ dependencies:
|
|
112
112
|
requirements:
|
113
113
|
- - '='
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 2.
|
115
|
+
version: 2.1.1
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - '='
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 2.
|
122
|
+
version: 2.1.1
|
123
123
|
- !ruby/object:Gem::Dependency
|
124
124
|
name: github_changelog_generator
|
125
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,14 +154,14 @@ dependencies:
|
|
154
154
|
requirements:
|
155
155
|
- - "~>"
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
157
|
+
version: '13.0'
|
158
158
|
type: :development
|
159
159
|
prerelease: false
|
160
160
|
version_requirements: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
162
|
- - "~>"
|
163
163
|
- !ruby/object:Gem::Version
|
164
|
-
version: '
|
164
|
+
version: '13.0'
|
165
165
|
- !ruby/object:Gem::Dependency
|
166
166
|
name: rubocop-coreyja
|
167
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,17 +182,17 @@ dependencies:
|
|
182
182
|
requirements:
|
183
183
|
- - "~>"
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version: 3.
|
185
|
+
version: 3.8.0
|
186
186
|
type: :development
|
187
187
|
prerelease: false
|
188
188
|
version_requirements: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: 3.
|
192
|
+
version: 3.8.0
|
193
193
|
description: |
|
194
194
|
Sleet provides an easy way to grab the most recent Rspec persistance files from CircleCI.
|
195
|
-
It also aggregates the
|
195
|
+
It also aggregates the artifacts from CircleCI, since you will have 1 per build container.
|
196
196
|
email:
|
197
197
|
- coreyja@gmail.com
|
198
198
|
executables:
|