to_sort_i_extension 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +17 -0
- data/LICENSE.txt +21 -0
- data/VERSION +1 -0
- data/lib/to_sort_i_extension.rb +18 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a0455163f1297507d3ad841fac69cddbb5c9c256b69c5ee6fd17bcb4e8574303
|
4
|
+
data.tar.gz: eadf27540e81fc8d70a3efd6294d8c6827c408e2618386a05c6f53f2456d1640
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 451857493a853e813f12ec5ac70adfd23e0ff2679f48c5ecd779f3ae160d9e43b9b6687d9b2d1d879b2ef05ee1e6c31bceb5921028c13c0e589c8960c5c558c5
|
7
|
+
data.tar.gz: 9d19a831aad35e4114d20a209c6d7a659a644279dfc6a4733510bc70f76f81653cef836f933eea90db7404faab1b6f37e0031543b43277347da08db633d7b8a5
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
0.0.3 (2022-03-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Version bump
|
8
|
+
|
9
|
+
0.0.2 (2022-03-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Version bump to push core
|
13
|
+
|
14
|
+
0.0.1 (2022-03-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Inital release
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Marcus Wyatt
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.3
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'to_i_extension'
|
4
|
+
|
5
|
+
TrueClass.class_eval do
|
6
|
+
alias_method :to_sort_i, :to_i
|
7
|
+
end
|
8
|
+
|
9
|
+
FalseClass.class_eval do
|
10
|
+
alias_method :to_sort_i, :to_i
|
11
|
+
end
|
12
|
+
|
13
|
+
NilClass.class_eval do
|
14
|
+
# :nodoc:
|
15
|
+
def to_sort_i
|
16
|
+
-1
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: to_sort_i_extension
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcus Wyatt
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: to_i_extension
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.3
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- mwyatt@brandsinsurance.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- CHANGELOG.md
|
35
|
+
- LICENSE.txt
|
36
|
+
- VERSION
|
37
|
+
- lib/to_sort_i_extension.rb
|
38
|
+
homepage: https://github.com/mlwyatt/rails-extensions
|
39
|
+
licenses:
|
40
|
+
- MIT
|
41
|
+
metadata:
|
42
|
+
source_code_uri: https://github.com/mlwyatt/rails-extensions
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 3.0.1
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubygems_version: 3.2.15
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: Adds `to_sort_i` method to `TrueClass`, `FalseClass`, and `NilClass`
|
62
|
+
test_files: []
|