stitches 4.0.2 → 4.1.0RC2

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: cd17ff0af94c6588ec7860bb211a183d3448274fd6d7d6b5cd928a9d8270ecce
4
- data.tar.gz: 10f81db7c4c79ca89bbaa6f43e3d4732fffc04a8facadbbe87ae7c27f7d0e8b7
3
+ metadata.gz: 181e2199d9e7f15ef933d3c3b87262f83894e02c25821d53aa23191db16c6a7a
4
+ data.tar.gz: 8f90ed0f8e39e94715f77f2708f1fe87da31318f97708dfd50692f8408ec9d71
5
5
  SHA512:
6
- metadata.gz: b42a292647e4ad8f85e3fd94992c08e5f97c242778cc49162245b976512ad416fe7e2d081698ac3a8e91af71884821e979af2eb1b95138e8d11f9ed0c11c35e1
7
- data.tar.gz: 9c9404c85ee61a6c2d5453be4a17c305f1d588c490eb0bcd4893632d4f8f32b9f5f6639fd7738ef81e2d77588527f6ebfab7a882f4dff30c3f8200ab04cad642
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 a) in UTC and b) in ISO8601 always
4
+ # We want dates to always be in UTC
5
5
  def as_json(options = {})
6
- utc.iso8601
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}.match?(accept) && %r{version=\d+}.match?(accept)) || %r{application/protobuf}.match?(accept)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stitches
4
- VERSION = '4.0.2'
4
+ VERSION = '4.1.0RC2'
5
5
  end
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.2
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-22 00:00:00.000000000 Z
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: '0'
201
+ version: 1.3.1
202
202
  requirements: []
203
203
  rubygems_version: 3.1.4
204
204
  signing_key: