stitches 4.0.2 → 4.1.0RC2
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/README.md +0 -4
- data/lib/stitches/render_timestamps_in_iso8601_in_json.rb +6 -2
- data/lib/stitches/valid_mime_type.rb +1 -1
- data/lib/stitches/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 181e2199d9e7f15ef933d3c3b87262f83894e02c25821d53aa23191db16c6a7a
|
|
4
|
+
data.tar.gz: 8f90ed0f8e39e94715f77f2708f1fe87da31318f97708dfd50692f8408ec9d71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4043849fc0c7da16cd1a87216897a6bf696b0cf82adf18d5a2d0e0277fd8ba7881e6af75e1c6451ee9fece50902bb1088166ac46c40eddc74cc4b3c01f5ecc5
|
|
7
|
+
data.tar.gz: 2e2310a95b713fe859ce309cac4d03552fd094ac03d2526045095980f488204a27a04da5c459b90719af9f947af13f1d70301b9eddb21f90a742470198760bd2
|
data/README.md
CHANGED
|
@@ -143,10 +143,6 @@ 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
|
-
|
|
150
146
|
---
|
|
151
147
|
|
|
152
148
|
Provided with love by your friends at [Stitch Fix Engineering](http://technology.stitchfix.com)
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
require 'active_support/time_with_zone'
|
|
2
2
|
|
|
3
3
|
class ActiveSupport::TimeWithZone
|
|
4
|
-
# We want dates to be
|
|
4
|
+
# We want dates to always be in UTC
|
|
5
5
|
def as_json(options = {})
|
|
6
|
-
utc
|
|
6
|
+
if utc?
|
|
7
|
+
super
|
|
8
|
+
else
|
|
9
|
+
utc.as_json(options)
|
|
10
|
+
end
|
|
7
11
|
end
|
|
8
12
|
end
|
|
9
13
|
|
|
@@ -20,7 +20,7 @@ module Stitches
|
|
|
20
20
|
|
|
21
21
|
def do_call(env)
|
|
22
22
|
accept = String(env["HTTP_ACCEPT"])
|
|
23
|
-
if (%r{application/json}
|
|
23
|
+
if (accept =~ %r{application/json} && accept =~ %r{version=\d+}) || accept =~ %r{application/protobuf}
|
|
24
24
|
@app.call(env)
|
|
25
25
|
else
|
|
26
26
|
not_acceptable_response(accept)
|
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: 4.
|
|
4
|
+
version: 4.1.0RC2
|
|
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: 2021-03-
|
|
14
|
+
date: 2021-03-04 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|
|
@@ -196,9 +196,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: '0'
|
|
197
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
|
199
|
-
- - "
|
|
199
|
+
- - ">"
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
|
-
version:
|
|
201
|
+
version: 1.3.1
|
|
202
202
|
requirements: []
|
|
203
203
|
rubygems_version: 3.1.4
|
|
204
204
|
signing_key:
|