stitches 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +62 -24
- data/.github/CODEOWNERS +1 -1
- data/.ruby-version +1 -1
- data/Gemfile.rails-6.1 +7 -0
- data/README.md +4 -0
- data/lib/stitches/valid_mime_type.rb +1 -1
- data/lib/stitches/version.rb +1 -1
- data/owners.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd17ff0af94c6588ec7860bb211a183d3448274fd6d7d6b5cd928a9d8270ecce
|
4
|
+
data.tar.gz: 10f81db7c4c79ca89bbaa6f43e3d4732fffc04a8facadbbe87ae7c27f7d0e8b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b42a292647e4ad8f85e3fd94992c08e5f97c242778cc49162245b976512ad416fe7e2d081698ac3a8e91af71884821e979af2eb1b95138e8d11f9ed0c11c35e1
|
7
|
+
data.tar.gz: 9c9404c85ee61a6c2d5453be4a17c305f1d588c490eb0bcd4893632d4f8f32b9f5f6639fd7738ef81e2d77588527f6ebfab7a882f4dff30c3f8200ab04cad642
|
data/.circleci/config.yml
CHANGED
@@ -5,7 +5,7 @@ version: 2
|
|
5
5
|
jobs:
|
6
6
|
generate-and-push-docs:
|
7
7
|
docker:
|
8
|
-
- image: circleci/ruby:
|
8
|
+
- image: circleci/ruby:3.0.0
|
9
9
|
auth:
|
10
10
|
username: "$DOCKERHUB_USERNAME"
|
11
11
|
password: "$DOCKERHUB_PASSWORD"
|
@@ -26,7 +26,7 @@ jobs:
|
|
26
26
|
docs:push; fi
|
27
27
|
release:
|
28
28
|
docker:
|
29
|
-
- image: circleci/ruby:
|
29
|
+
- image: circleci/ruby:3.0.0
|
30
30
|
auth:
|
31
31
|
username: "$DOCKERHUB_USERNAME"
|
32
32
|
password: "$DOCKERHUB_PASSWORD"
|
@@ -41,14 +41,44 @@ jobs:
|
|
41
41
|
- run:
|
42
42
|
name: Build/release gem to artifactory
|
43
43
|
command: bundle exec rake push_artifactory
|
44
|
-
ruby-
|
44
|
+
ruby-3.0.0-rails-6.1:
|
45
|
+
docker:
|
46
|
+
- image: circleci/ruby:3.0.0
|
47
|
+
auth:
|
48
|
+
username: "$DOCKERHUB_USERNAME"
|
49
|
+
password: "$DOCKERHUB_PASSWORD"
|
50
|
+
environment:
|
51
|
+
BUNDLE_GEMFILE: Gemfile.rails-6.1
|
52
|
+
working_directory: "~/stitches"
|
53
|
+
steps:
|
54
|
+
- checkout
|
55
|
+
- run:
|
56
|
+
name: Check for Gemfile.lock presence
|
57
|
+
command: ' if (test -f Gemfile.lock) then echo "Dont commit Gemfile.lock (see
|
58
|
+
https://github.com/stitchfix/eng-wiki/blob/master/architecture-decisions/0009-rubygem-dependencies-will-be-managed-more-explicitly.md)"
|
59
|
+
1>&2 ; exit 1 ; else exit 0 ; fi '
|
60
|
+
- run: bundle config stitchfix01.jfrog.io $ARTIFACTORY_USER:$ARTIFACTORY_TOKEN
|
61
|
+
- run: bundle install --full-index
|
62
|
+
- run: bundle exec rspec --format RspecJunitFormatter --out /tmp/test-results/rspec.xml
|
63
|
+
--format=doc
|
64
|
+
- run:
|
65
|
+
name: Run Additional CI Steps
|
66
|
+
command: if [ -e bin/additional-ci-steps ]; then bin/additional-ci-steps;
|
67
|
+
fi
|
68
|
+
- run:
|
69
|
+
name: Notify Pager Duty
|
70
|
+
command: bundle exec y-notify "#eng-runtime-alerts"
|
71
|
+
when: on_fail
|
72
|
+
- store_test_results:
|
73
|
+
path: "/tmp/test-results"
|
74
|
+
ruby-2.7.2-rails-6.1:
|
45
75
|
docker:
|
46
76
|
- image: circleci/ruby:2.7.2
|
47
77
|
auth:
|
48
78
|
username: "$DOCKERHUB_USERNAME"
|
49
79
|
password: "$DOCKERHUB_PASSWORD"
|
50
80
|
environment:
|
51
|
-
BUNDLE_GEMFILE: Gemfile.rails-6.
|
81
|
+
BUNDLE_GEMFILE: Gemfile.rails-6.1
|
52
82
|
working_directory: "~/stitches"
|
53
83
|
steps:
|
54
84
|
- checkout
|
@@ -67,13 +97,13 @@ jobs:
|
|
67
97
|
fi
|
68
98
|
- run:
|
69
99
|
name: Notify Pager Duty
|
70
|
-
command: bundle exec y-notify "#
|
100
|
+
command: bundle exec y-notify "#eng-runtime-alerts"
|
71
101
|
when: on_fail
|
72
102
|
- store_test_results:
|
73
103
|
path: "/tmp/test-results"
|
74
|
-
ruby-
|
104
|
+
ruby-3.0.0-rails-6.0:
|
75
105
|
docker:
|
76
|
-
- image: circleci/ruby:
|
106
|
+
- image: circleci/ruby:3.0.0
|
77
107
|
auth:
|
78
108
|
username: "$DOCKERHUB_USERNAME"
|
79
109
|
password: "$DOCKERHUB_PASSWORD"
|
@@ -97,18 +127,18 @@ jobs:
|
|
97
127
|
fi
|
98
128
|
- run:
|
99
129
|
name: Notify Pager Duty
|
100
|
-
command: bundle exec y-notify "#
|
130
|
+
command: bundle exec y-notify "#eng-runtime-alerts"
|
101
131
|
when: on_fail
|
102
132
|
- store_test_results:
|
103
133
|
path: "/tmp/test-results"
|
104
|
-
ruby-2.7.2-rails-
|
134
|
+
ruby-2.7.2-rails-6.0:
|
105
135
|
docker:
|
106
136
|
- image: circleci/ruby:2.7.2
|
107
137
|
auth:
|
108
138
|
username: "$DOCKERHUB_USERNAME"
|
109
139
|
password: "$DOCKERHUB_PASSWORD"
|
110
140
|
environment:
|
111
|
-
BUNDLE_GEMFILE: Gemfile.rails-
|
141
|
+
BUNDLE_GEMFILE: Gemfile.rails-6.0
|
112
142
|
working_directory: "~/stitches"
|
113
143
|
steps:
|
114
144
|
- checkout
|
@@ -127,13 +157,13 @@ jobs:
|
|
127
157
|
fi
|
128
158
|
- run:
|
129
159
|
name: Notify Pager Duty
|
130
|
-
command: bundle exec y-notify "#
|
160
|
+
command: bundle exec y-notify "#eng-runtime-alerts"
|
131
161
|
when: on_fail
|
132
162
|
- store_test_results:
|
133
163
|
path: "/tmp/test-results"
|
134
|
-
ruby-2.
|
164
|
+
ruby-2.7.2-rails-5.2:
|
135
165
|
docker:
|
136
|
-
- image: circleci/ruby:2.
|
166
|
+
- image: circleci/ruby:2.7.2
|
137
167
|
auth:
|
138
168
|
username: "$DOCKERHUB_USERNAME"
|
139
169
|
password: "$DOCKERHUB_PASSWORD"
|
@@ -157,7 +187,7 @@ jobs:
|
|
157
187
|
fi
|
158
188
|
- run:
|
159
189
|
name: Notify Pager Duty
|
160
|
-
command: bundle exec y-notify "#
|
190
|
+
command: bundle exec y-notify "#eng-runtime-alerts"
|
161
191
|
when: on_fail
|
162
192
|
- store_test_results:
|
163
193
|
path: "/tmp/test-results"
|
@@ -168,10 +198,11 @@ workflows:
|
|
168
198
|
- release:
|
169
199
|
context: org-global
|
170
200
|
requires:
|
201
|
+
- ruby-3.0.0-rails-6.1
|
202
|
+
- ruby-2.7.2-rails-6.1
|
203
|
+
- ruby-3.0.0-rails-6.0
|
171
204
|
- ruby-2.7.2-rails-6.0
|
172
|
-
- ruby-2.6.6-rails-6.0
|
173
205
|
- ruby-2.7.2-rails-5.2
|
174
|
-
- ruby-2.6.6-rails-5.2
|
175
206
|
filters:
|
176
207
|
tags:
|
177
208
|
only: /^[0-9]+\.[0-9]+\.[0-9]+(\.?(RC|rc)[-\.]?\w*)?$/
|
@@ -186,22 +217,27 @@ workflows:
|
|
186
217
|
only: /^[0-9]+\.[0-9]+\.[0-9]+(\.?(RC|rc)[-\.]?\w*)?$/
|
187
218
|
branches:
|
188
219
|
ignore: /.*/
|
189
|
-
- ruby-
|
220
|
+
- ruby-3.0.0-rails-6.1:
|
190
221
|
context: org-global
|
191
222
|
filters:
|
192
223
|
tags:
|
193
224
|
only: &1 /.*/
|
194
|
-
- ruby-2.
|
225
|
+
- ruby-2.7.2-rails-6.1:
|
195
226
|
context: org-global
|
196
227
|
filters:
|
197
228
|
tags:
|
198
229
|
only: *1
|
199
|
-
- ruby-
|
230
|
+
- ruby-3.0.0-rails-6.0:
|
231
|
+
context: org-global
|
232
|
+
filters:
|
233
|
+
tags:
|
234
|
+
only: *1
|
235
|
+
- ruby-2.7.2-rails-6.0:
|
200
236
|
context: org-global
|
201
237
|
filters:
|
202
238
|
tags:
|
203
239
|
only: *1
|
204
|
-
- ruby-2.
|
240
|
+
- ruby-2.7.2-rails-5.2:
|
205
241
|
context: org-global
|
206
242
|
filters:
|
207
243
|
tags:
|
@@ -215,11 +251,13 @@ workflows:
|
|
215
251
|
only:
|
216
252
|
- master
|
217
253
|
jobs:
|
218
|
-
- ruby-
|
254
|
+
- ruby-3.0.0-rails-6.1:
|
219
255
|
context: org-global
|
220
|
-
- ruby-2.
|
256
|
+
- ruby-2.7.2-rails-6.1:
|
221
257
|
context: org-global
|
222
|
-
- ruby-
|
258
|
+
- ruby-3.0.0-rails-6.0:
|
223
259
|
context: org-global
|
224
|
-
- ruby-2.
|
260
|
+
- ruby-2.7.2-rails-6.0:
|
261
|
+
context: org-global
|
262
|
+
- ruby-2.7.2-rails-5.2:
|
225
263
|
context: org-global
|
data/.github/CODEOWNERS
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.2
|
1
|
+
ruby-2.7.2
|
data/Gemfile.rails-6.1
ADDED
data/README.md
CHANGED
@@ -143,6 +143,10 @@ Also, the integration test does a lot of "testing the implementation", but since
|
|
143
143
|
failing with a successful result, we have to make sure that the various `inject_into_file` calls are actually working. Do not do
|
144
144
|
any fancy refactors here, just keep it up to date.
|
145
145
|
|
146
|
+
## Releases
|
147
|
+
|
148
|
+
See the release process for open source gems in the Stitch Fix engineering wiki under technical topics.
|
149
|
+
|
146
150
|
---
|
147
151
|
|
148
152
|
Provided with love by your friends at [Stitch Fix Engineering](http://technology.stitchfix.com)
|
@@ -20,7 +20,7 @@ module Stitches
|
|
20
20
|
|
21
21
|
def do_call(env)
|
22
22
|
accept = String(env["HTTP_ACCEPT"])
|
23
|
-
if (
|
23
|
+
if (%r{application/json}.match?(accept) && %r{version=\d+}.match?(accept)) || %r{application/protobuf}.match?(accept)
|
24
24
|
@app.call(env)
|
25
25
|
else
|
26
26
|
not_acceptable_response(accept)
|
data/lib/stitches/version.rb
CHANGED
data/owners.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stitches
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stitch Fix Engineering
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- Gemfile.rails-5.1
|
124
124
|
- Gemfile.rails-5.2
|
125
125
|
- Gemfile.rails-6.0
|
126
|
+
- Gemfile.rails-6.1
|
126
127
|
- LICENSE.txt
|
127
128
|
- README.md
|
128
129
|
- Rakefile
|