sus 0.24.6 → 0.25.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd73d19653d8f343cbe51fb0f0f9a4657d33a4595a2221049b2ec64f8bfe51e6
4
- data.tar.gz: f6403d891ec25bb6a2b7e3f2d60a385215480101c757966f7758823313f4b05f
3
+ metadata.gz: 88e89c692361d4e74fc5324690a26161d3537d605353a8361963f2201da78af5
4
+ data.tar.gz: 79948d439e9287b15e5f3f10eca380839d832d5aced0e73b6cb1204742c7a0f2
5
5
  SHA512:
6
- metadata.gz: b9edf8b692a22a77a1461ad0dd3b47fea7286413730b47f30aa72c9116440c984eb30c6ac3d3b01378a079e1288eaeaa5581e0abd2af984655c7716788ed8df1
7
- data.tar.gz: 951973bdda435c9c046af85f8cb762ca94502b617e1f08ce5ab0413a47de8a51fa3946ef78f112ad6e1342623def1299a62c1de184383324d0ea297c59cfbccc
6
+ metadata.gz: 52ed1bf39fe2a50915ca29b340f2cc5b06a9dec0ad17644cdc8c664d1000e326fc7cfd0d5d749508c6543714cd99d92abe8445e09666cf761707cf9dae5fd592
7
+ data.tar.gz: 58e5b06f1333838ef7d207e2211a072157c712d28f2f9e7d2f018a8485622f73c362c0356bdec3e9efa26537c6d52e3f8ead3d1d697f98f416a9aa1e2837c896
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'output'
7
7
  require_relative 'clock'
data/lib/sus/be.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2022, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  class Be
data/lib/sus/be_within.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2022, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  class BeWithin
data/lib/sus/expect.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  class Expect
data/lib/sus/have.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022, by Samuel Williams.
4
+ # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'have/all'
7
7
  require_relative 'have/any'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2022, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  class HaveDuration
data/lib/sus/it.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'context'
7
7
 
@@ -89,5 +89,11 @@ module Sus
89
89
  skip "Ruby #{version} is not supported, but running #{RUBY_VERSION}!"
90
90
  end
91
91
  end
92
+
93
+ def skip_if_ruby_platform(pattern)
94
+ if match = RUBY_PLATFORM.match(pattern)
95
+ skip "Ruby platform #{match} is not supported!"
96
+ end
97
+ end
92
98
  end
93
99
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022, by Samuel Williams.
4
+ # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  module Output
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'messages'
7
7
  require_relative 'buffered'
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  class RaiseException
8
- def initialize(exception_class = nil, message: nil)
8
+ def initialize(exception_class = Exception, message: nil)
9
9
  @exception_class = exception_class
10
10
  @message = message
11
11
  @predicate = nil
data/lib/sus/receive.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022, by Samuel Williams.
4
+ # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'respond_to'
7
7
 
data/lib/sus/version.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
- VERSION = "0.24.6"
7
+ VERSION = "0.25.0"
8
8
  end
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2021-2023, by Samuel Williams.
3
+ Copyright, 2021-2024, by Samuel Williams.
4
4
  Copyright, 2022, by Brad Schrag.
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
data/readme.md CHANGED
@@ -52,4 +52,4 @@ This project uses the [Developer Certificate of Origin](https://developercertifi
52
52
 
53
53
  ### Contributor Covenant
54
54
 
55
- This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
55
+ This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.6
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-02-08 00:00:00.000000000 Z
41
+ date: 2024-04-24 00:00:00.000000000 Z
42
42
  dependencies: []
43
43
  description:
44
44
  email:
@@ -105,7 +105,9 @@ homepage: https://github.com/ioquatix/sus
105
105
  licenses:
106
106
  - MIT
107
107
  metadata:
108
+ documentation_uri: https://ioquatix.github.io/sus/
108
109
  funding_uri: https://github.com/sponsors/ioquatix/
110
+ source_code_uri: https://github.com/ioquatix/sus.git
109
111
  post_install_message:
110
112
  rdoc_options: []
111
113
  require_paths:
@@ -114,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
116
  requirements:
115
117
  - - ">="
116
118
  - !ruby/object:Gem::Version
117
- version: '3.0'
119
+ version: '3.1'
118
120
  required_rubygems_version: !ruby/object:Gem::Requirement
119
121
  requirements:
120
122
  - - ">="
metadata.gz.sig CHANGED
Binary file