stitches 3.7.2 → 3.7.3
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 +57 -20
- data/CODEOWNERS +11 -0
- data/PULL_REQUEST_TEMPLATE.md +21 -0
- data/lib/stitches/generator_files/app/controllers/api/api_controller.rb +1 -1
- data/lib/stitches/generator_files/app/controllers/api/v1/pings_controller.rb +4 -8
- data/lib/stitches/generator_files/app/controllers/api/v2/pings_controller.rb +4 -8
- data/lib/stitches/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa18e703222c9f9f2cc2b750cbf06a1bf9ddac8d473e6c2775d3d0cd840e59e
|
4
|
+
data.tar.gz: 550563efbfc95a84ff7c9375cbd4cd6d45eff8621370780f90760ddecc4afa3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d81db63050704736cc9aaaebc3ccc0f06bcb271a36b734c195f9b5298121c18fd43c529e32ec2ba2dcf2e76c8dda411fc245d8229a4a2df21889de87dded7d7
|
7
|
+
data.tar.gz: cd636756307dd9395860278f80f9fea1638ceef28105d91cc319c80db74de58809e7e6e396f1e706b123705c7905a46d0a5e3655c7c84cd077fe6eab9808c577
|
data/.circleci/config.yml
CHANGED
@@ -3,9 +3,22 @@
|
|
3
3
|
---
|
4
4
|
version: 2
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
release:
|
7
7
|
docker:
|
8
|
-
- image: circleci/ruby:2.
|
8
|
+
- image: circleci/ruby:2.6.3
|
9
|
+
steps:
|
10
|
+
- checkout
|
11
|
+
- run: bundle install --full-index
|
12
|
+
- run:
|
13
|
+
name: Artifactory login
|
14
|
+
command: mkdir -p ~/.gem && curl -u$ARTIFACTORY_USER:$ARTIFACTORY_TOKEN https://stitchfix01.jfrog.io/stitchfix01/api/gems/eng-gems/api/v1/api_key.yaml
|
15
|
+
> ~/.gem/credentials && chmod 0600 ~/.gem/credentials
|
16
|
+
- run:
|
17
|
+
name: Build/release gem to artifactory
|
18
|
+
command: bundle exec rake push_artifactory
|
19
|
+
ruby-2.6.3-rails-5.2:
|
20
|
+
docker:
|
21
|
+
- image: circleci/ruby:2.6.3
|
9
22
|
environment:
|
10
23
|
BUNDLE_GEMFILE: Gemfile.rails-5.2
|
11
24
|
working_directory: "~/stitches"
|
@@ -20,13 +33,13 @@ jobs:
|
|
20
33
|
fi
|
21
34
|
- run:
|
22
35
|
name: Notify Pager Duty
|
23
|
-
command:
|
36
|
+
command: bundle exec y-notify "#eng-platform"
|
24
37
|
when: on_fail
|
25
38
|
- store_test_results:
|
26
39
|
path: "/tmp/test-results"
|
27
|
-
ruby-2.
|
40
|
+
ruby-2.5.5-rails-5.2:
|
28
41
|
docker:
|
29
|
-
- image: circleci/ruby:2.
|
42
|
+
- image: circleci/ruby:2.5.5
|
30
43
|
environment:
|
31
44
|
BUNDLE_GEMFILE: Gemfile.rails-5.2
|
32
45
|
working_directory: "~/stitches"
|
@@ -41,13 +54,13 @@ jobs:
|
|
41
54
|
fi
|
42
55
|
- run:
|
43
56
|
name: Notify Pager Duty
|
44
|
-
command:
|
57
|
+
command: bundle exec y-notify "#eng-platform"
|
45
58
|
when: on_fail
|
46
59
|
- store_test_results:
|
47
60
|
path: "/tmp/test-results"
|
48
|
-
ruby-2.
|
61
|
+
ruby-2.6.3-rails-5.1:
|
49
62
|
docker:
|
50
|
-
- image: circleci/ruby:2.
|
63
|
+
- image: circleci/ruby:2.6.3
|
51
64
|
environment:
|
52
65
|
BUNDLE_GEMFILE: Gemfile.rails-5.1
|
53
66
|
working_directory: "~/stitches"
|
@@ -62,13 +75,13 @@ jobs:
|
|
62
75
|
fi
|
63
76
|
- run:
|
64
77
|
name: Notify Pager Duty
|
65
|
-
command:
|
78
|
+
command: bundle exec y-notify "#eng-platform"
|
66
79
|
when: on_fail
|
67
80
|
- store_test_results:
|
68
81
|
path: "/tmp/test-results"
|
69
|
-
ruby-2.
|
82
|
+
ruby-2.5.5-rails-5.1:
|
70
83
|
docker:
|
71
|
-
- image: circleci/ruby:2.
|
84
|
+
- image: circleci/ruby:2.5.5
|
72
85
|
environment:
|
73
86
|
BUNDLE_GEMFILE: Gemfile.rails-5.1
|
74
87
|
working_directory: "~/stitches"
|
@@ -83,7 +96,7 @@ jobs:
|
|
83
96
|
fi
|
84
97
|
- run:
|
85
98
|
name: Notify Pager Duty
|
86
|
-
command:
|
99
|
+
command: bundle exec y-notify "#eng-platform"
|
87
100
|
when: on_fail
|
88
101
|
- store_test_results:
|
89
102
|
path: "/tmp/test-results"
|
@@ -91,14 +104,38 @@ workflows:
|
|
91
104
|
version: 2
|
92
105
|
on-commit:
|
93
106
|
jobs:
|
94
|
-
-
|
107
|
+
- release:
|
95
108
|
context: org-global
|
96
|
-
|
109
|
+
requires:
|
110
|
+
- ruby-2.6.3-rails-5.2
|
111
|
+
- ruby-2.5.5-rails-5.2
|
112
|
+
- ruby-2.6.3-rails-5.1
|
113
|
+
- ruby-2.5.5-rails-5.1
|
114
|
+
filters:
|
115
|
+
tags:
|
116
|
+
only: /^[0-9]+\.[0-9]+\.[0-9](\.RC\d*)?$/
|
117
|
+
branches:
|
118
|
+
ignore: /.*/
|
119
|
+
- ruby-2.6.3-rails-5.2:
|
120
|
+
context: org-global
|
121
|
+
filters:
|
122
|
+
tags:
|
123
|
+
only: &1 /.*/
|
124
|
+
- ruby-2.5.5-rails-5.2:
|
97
125
|
context: org-global
|
98
|
-
|
126
|
+
filters:
|
127
|
+
tags:
|
128
|
+
only: *1
|
129
|
+
- ruby-2.6.3-rails-5.1:
|
99
130
|
context: org-global
|
100
|
-
|
131
|
+
filters:
|
132
|
+
tags:
|
133
|
+
only: *1
|
134
|
+
- ruby-2.5.5-rails-5.1:
|
101
135
|
context: org-global
|
136
|
+
filters:
|
137
|
+
tags:
|
138
|
+
only: *1
|
102
139
|
scheduled:
|
103
140
|
triggers:
|
104
141
|
- schedule:
|
@@ -108,11 +145,11 @@ workflows:
|
|
108
145
|
only:
|
109
146
|
- master
|
110
147
|
jobs:
|
111
|
-
- ruby-2.
|
148
|
+
- ruby-2.6.3-rails-5.2:
|
112
149
|
context: org-global
|
113
|
-
- ruby-2.
|
150
|
+
- ruby-2.5.5-rails-5.2:
|
114
151
|
context: org-global
|
115
|
-
- ruby-2.
|
152
|
+
- ruby-2.6.3-rails-5.1:
|
116
153
|
context: org-global
|
117
|
-
- ruby-2.
|
154
|
+
- ruby-2.5.5-rails-5.1:
|
118
155
|
context: org-global
|
data/CODEOWNERS
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# THIS FILE IS NOT THE SOURCE OF TRUTH for app ownership. If this app
|
2
|
+
# is transferred to another team, the app ownership should be changed
|
3
|
+
# in fixops.
|
4
|
+
#
|
5
|
+
# View current canonical app ownership on Unwritten:
|
6
|
+
# https://unwritten.stitchfix.com/docs/applications-and-services
|
7
|
+
#
|
8
|
+
# This file uses the GitHub CODEOWNERS convention to assign PR reviewers:
|
9
|
+
# https://help.github.com/articles/about-codeowners/
|
10
|
+
|
11
|
+
* @brettfishman @bwebster
|
@@ -0,0 +1,21 @@
|
|
1
|
+
## Problem
|
2
|
+
|
3
|
+
«Brief overview of the problem»
|
4
|
+
|
5
|
+
## Solution
|
6
|
+
|
7
|
+
«Brief description of how you solved the problem»
|
8
|
+
|
9
|
+
## Checklist
|
10
|
+
|
11
|
+
### Before Merging
|
12
|
+
|
13
|
+
- [ ] If there is an RC on this branch, revert the version change in `version.rb`
|
14
|
+
|
15
|
+
### After Merging
|
16
|
+
|
17
|
+
See the [gem release process](https://github.com/stitchfix/eng-wiki/blob/master/technical-topics/updating-gem-versions.md) for a detailed list, but the gist of it is:
|
18
|
+
|
19
|
+
- [ ] Fetch `master` locally and run the applicable `rake version:*` task **on `master`** to bump the version
|
20
|
+
- [ ] Run `rake release` **on `master`** to release the new version on Gemfury
|
21
|
+
- [ ] Add [release notes](https://github.com/stitchfix/messaging/releases) - **this is very important in helping other engineers understand what changed in the new version**
|
@@ -1,14 +1,10 @@
|
|
1
1
|
class Api::V1::PingsController < Api::ApiController
|
2
2
|
|
3
3
|
def create
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
else
|
9
|
-
render json: { ping: { status: "ok" } }, status: (ping_params[:status] || "201").to_i
|
10
|
-
end
|
11
|
-
end
|
4
|
+
if ping_params[:error]
|
5
|
+
render json: { errors: Stitches::Errors.new([ Stitches::Error.new(code: "test", message: ping_params[:error]) ])} , status: 422
|
6
|
+
else
|
7
|
+
render json: { ping: { status: "ok" } }, status: (ping_params[:status] || "201").to_i
|
12
8
|
end
|
13
9
|
end
|
14
10
|
|
@@ -1,14 +1,10 @@
|
|
1
1
|
class Api::V2::PingsController < Api::ApiController
|
2
2
|
|
3
3
|
def create
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
else
|
9
|
-
render json: { ping: { status_v2: "ok" } }, status: (ping_params[:status] || "201").to_i
|
10
|
-
end
|
11
|
-
end
|
4
|
+
if ping_params[:error]
|
5
|
+
render json: { errors: Stitches::Errors.new([ Stitches::Error.new(code: "test", message: ping_params[:error]) ])} , status: 422
|
6
|
+
else
|
7
|
+
render json: { ping: { status_v2: "ok" } }, status: (ping_params[:status] || "201").to_i
|
12
8
|
end
|
13
9
|
end
|
14
10
|
|
data/lib/stitches/version.rb
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: 3.7.
|
4
|
+
version: 3.7.3
|
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: 2019-
|
14
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- ".ruby-gemset"
|
128
128
|
- ".ruby-version"
|
129
129
|
- ".travis.yml"
|
130
|
+
- CODEOWNERS
|
130
131
|
- CODE_OF_CONDUCT.md
|
131
132
|
- CONTRIBUTING.md
|
132
133
|
- Gemfile
|
@@ -135,6 +136,7 @@ files:
|
|
135
136
|
- Gemfile.rails-5.1
|
136
137
|
- Gemfile.rails-5.2
|
137
138
|
- LICENSE.txt
|
139
|
+
- PULL_REQUEST_TEMPLATE.md
|
138
140
|
- README.md
|
139
141
|
- Rakefile
|
140
142
|
- build-matrix.json
|
@@ -210,7 +212,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
212
|
- !ruby/object:Gem::Version
|
211
213
|
version: '0'
|
212
214
|
requirements: []
|
213
|
-
|
215
|
+
rubyforge_project:
|
216
|
+
rubygems_version: 2.7.6
|
214
217
|
signing_key:
|
215
218
|
specification_version: 4
|
216
219
|
summary: You'll be in stitches at how easy it is to create a service at Stitch Fix
|