mini_sanity 2.0.0 → 3.0.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -2
- data/README.md +13 -23
- data/lib/mini_sanity/version.rb +1 -1
- data/mini_sanity.gemspec +2 -3
- metadata +4 -11
- data/.gitignore +0 -9
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 38c674ac249e8e02d75079e3ecd9a96150f4f6fbc4d8211a46f1837e9d8d4198
|
|
4
|
+
data.tar.gz: cc578b1ff20709384a8a322b44378a828020d3b3391a539853ba0d8121e3c73e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58a408bd36b1ac28b54f987b1645d28edc96162b2067dd703be26d98a4fc91ac4a6c6d1a452ffcccf65ec064ecbbb0f44b0729b33d658bee48f56435931bfd2d
|
|
7
|
+
data.tar.gz: 0f21c36082f440825eee69a2c36051e78a28077c961b5e4b558d9bf6bccf5d322f27b73beffc576969e87466241f921d0c175ea6621f30f1943f636879b50255
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# mini_sanity
|
|
1
|
+
# mini_sanity
|
|
2
2
|
|
|
3
|
-
In-line [sanity checks], written as extensions to core Ruby objects.
|
|
4
|
-
See API listing below, or browse the [full documentation].
|
|
3
|
+
In-line [sanity checks][], written as extensions to core Ruby objects.
|
|
4
|
+
See API listing below, or browse the [full documentation][].
|
|
5
5
|
|
|
6
6
|
[sanity checks]: https://en.wikipedia.org/wiki/Sanity_check
|
|
7
7
|
[full documentation]: https://www.rubydoc.info/gems/mini_sanity/
|
|
@@ -30,32 +30,22 @@ end.uniq
|
|
|
30
30
|
## API
|
|
31
31
|
|
|
32
32
|
- `"mini_sanity/assert"`
|
|
33
|
-
- [Object#assert
|
|
34
|
-
- [Object#refute
|
|
33
|
+
- [`Object#assert!`](https://www.rubydoc.info/gems/mini_sanity/Object:assert%21)
|
|
34
|
+
- [`Object#refute!`](https://www.rubydoc.info/gems/mini_sanity/Object:refute%21)
|
|
35
35
|
- `"mini_sanity/change"`
|
|
36
|
-
- [String#change](https://www.rubydoc.info/gems/mini_sanity/String:change)
|
|
37
|
-
- [String#change
|
|
36
|
+
- [`String#change`](https://www.rubydoc.info/gems/mini_sanity/String:change)
|
|
37
|
+
- [`String#change!`](https://www.rubydoc.info/gems/mini_sanity/String:change%21)
|
|
38
38
|
- `"mini_sanity/match"`
|
|
39
|
-
- [Regexp#match
|
|
40
|
-
- [String#match
|
|
39
|
+
- [`Regexp#match!`](https://www.rubydoc.info/gems/mini_sanity/Regexp:match%21)
|
|
40
|
+
- [`String#match!`](https://www.rubydoc.info/gems/mini_sanity/String:match%21)
|
|
41
41
|
- `"mini_sanity/results"`
|
|
42
|
-
- [Enumerator#result
|
|
43
|
-
- [Enumerator#results
|
|
42
|
+
- [`Enumerator#result!`](https://www.rubydoc.info/gems/mini_sanity/Enumerator:result%21)
|
|
43
|
+
- [`Enumerator#results!`](https://www.rubydoc.info/gems/mini_sanity/Enumerator:results%21)
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
## Installation
|
|
47
47
|
|
|
48
|
-
Install the [gem](https://rubygems.org/gems/mini_sanity)
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
$ gem install mini_sanity
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Then require in your Ruby code:
|
|
55
|
-
|
|
56
|
-
```ruby
|
|
57
|
-
require "mini_sanity"
|
|
58
|
-
```
|
|
48
|
+
Install the [`mini_sanity` gem](https://rubygems.org/gems/mini_sanity).
|
|
59
49
|
|
|
60
50
|
|
|
61
51
|
## Contributing
|
|
@@ -65,4 +55,4 @@ Run `rake test` to run the tests.
|
|
|
65
55
|
|
|
66
56
|
## License
|
|
67
57
|
|
|
68
|
-
[MIT License](
|
|
58
|
+
[MIT License](LICENSE.txt)
|
data/lib/mini_sanity/version.rb
CHANGED
data/mini_sanity.gemspec
CHANGED
|
@@ -9,16 +9,15 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.summary = %q{In-line sanity checks}
|
|
10
10
|
spec.homepage = "https://github.com/jonathanhefner/mini_sanity"
|
|
11
11
|
spec.license = "MIT"
|
|
12
|
-
spec.required_ruby_version = ">=
|
|
12
|
+
spec.required_ruby_version = ">= 3.4"
|
|
13
13
|
|
|
14
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
15
14
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
16
15
|
spec.metadata["changelog_uri"] = spec.metadata["source_code_uri"] + "/blob/master/CHANGELOG.md"
|
|
17
16
|
|
|
18
17
|
# Specify which files should be added to the gem when it is released.
|
|
19
18
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
20
19
|
spec.files = Dir.chdir(__dir__) do
|
|
21
|
-
`git ls-files -z`.split("\x0").reject { |f| f.
|
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.start_with?("test/", ".git") }
|
|
22
21
|
end
|
|
23
22
|
spec.bindir = "exe"
|
|
24
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mini_sanity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Hefner
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
|
-
description:
|
|
14
12
|
email:
|
|
15
13
|
- jonathan@hefner.pro
|
|
16
14
|
executables: []
|
|
17
15
|
extensions: []
|
|
18
16
|
extra_rdoc_files: []
|
|
19
17
|
files:
|
|
20
|
-
- ".gitignore"
|
|
21
|
-
- ".travis.yml"
|
|
22
18
|
- CHANGELOG.md
|
|
23
19
|
- Gemfile
|
|
24
20
|
- LICENSE.txt
|
|
@@ -36,10 +32,8 @@ homepage: https://github.com/jonathanhefner/mini_sanity
|
|
|
36
32
|
licenses:
|
|
37
33
|
- MIT
|
|
38
34
|
metadata:
|
|
39
|
-
homepage_uri: https://github.com/jonathanhefner/mini_sanity
|
|
40
35
|
source_code_uri: https://github.com/jonathanhefner/mini_sanity
|
|
41
36
|
changelog_uri: https://github.com/jonathanhefner/mini_sanity/blob/master/CHANGELOG.md
|
|
42
|
-
post_install_message:
|
|
43
37
|
rdoc_options: []
|
|
44
38
|
require_paths:
|
|
45
39
|
- lib
|
|
@@ -47,15 +41,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
47
41
|
requirements:
|
|
48
42
|
- - ">="
|
|
49
43
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: '
|
|
44
|
+
version: '3.4'
|
|
51
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
46
|
requirements:
|
|
53
47
|
- - ">="
|
|
54
48
|
- !ruby/object:Gem::Version
|
|
55
49
|
version: '0'
|
|
56
50
|
requirements: []
|
|
57
|
-
rubygems_version:
|
|
58
|
-
signing_key:
|
|
51
|
+
rubygems_version: 4.0.10
|
|
59
52
|
specification_version: 4
|
|
60
53
|
summary: In-line sanity checks
|
|
61
54
|
test_files: []
|
data/.gitignore
DELETED