sea_shanty 0.1.0 → 0.1.1

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: 49c70b677534f10db5b3f98e4e49cc7a5259ac816db7f63cdf65d4768bbe207e
4
- data.tar.gz: fdbe5b1e9588650f4772648973043e35144fdaf5f0c90b035b687901b4dfd05d
3
+ metadata.gz: 1e1c54c6748c4dffae4228506da66710eb949c6fc92dccefa5c655d0a1d22efb
4
+ data.tar.gz: 666c4702a8665c1da5c667d8b64e2bd044fd60ea166e658feacb835ec67a53b8
5
5
  SHA512:
6
- metadata.gz: 9b7a690390d6a80adb76b8c91a2ac789a07238c460661f77079751993b72321172ddf7175d7b40880815b834d1b59781ec57801f92c91c996b4c6c0a900ef765
7
- data.tar.gz: 856de8a10bf572640facea7ada229122f2b751f71230152cd4f9a4c44e9b2c1483bb78f1a34a4236c6d1d6cace2e5a7eddb1f91fe33690443599725034d3759e
6
+ metadata.gz: a9bd23109117bf23895dd6b6119249b00440a2a5ecca97ff07667e183b52dfe0b180014dbaa6d1f1ad4204d5ea5abb13138f99ffec2ae0dca2f7d826ebcc9985
7
+ data.tar.gz: ca8d9adec42adf5ec95a3940bf54b1da295e0d2366a501616420b5b97ceb82ef188cf038b6e4e42f249ca86d6aaa54aab07248dc2ed01fb08d1c8f407628ead1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2023-01-05
4
+
5
+ - Permit `Time` and `DateTime` when loading an interaction from yaml ([#2])
6
+
3
7
  ## [0.1.0] - 2023-01-04
4
8
 
5
9
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sea_shanty (0.1.0)
4
+ sea_shanty (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -35,7 +35,7 @@ module SeaShanty
35
35
 
36
36
  def load_response(request)
37
37
  raise UnknownRequest, "SeaShanty: Unknown request #{request.method.to_s.upcase} to #{request.url}" unless has_response_for?(request)
38
- contents = YAML.safe_load(request_file_path(request).read, permitted_classes: [Symbol])
38
+ contents = YAML.safe_load(request_file_path(request).read, permitted_classes: [Symbol, Time, DateTime])
39
39
  Response.from_h(contents.fetch(:response))
40
40
  end
41
41
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SeaShanty
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sea_shanty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rasmus Bang Grouleff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-04 00:00:00.000000000 Z
11
+ date: 2023-01-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: SeaShanty is a minimalistic library for recording HTTP requests and responses
14
14
  and replaying responses for already seen requests in an unobtrusive and test framework