sleeping_king_studios-tools 1.1.0.rc.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -35
- data/lib/sleeping_king_studios/tools/integer_tools.rb +2 -2
- data/lib/sleeping_king_studios/tools/version.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e0283e289b39463cacc292d923861867d3692aa582c11ea52e093d4a669db47
|
4
|
+
data.tar.gz: 6974c66896e0f0a0b9b464326529e8d093f1842d5242a289d559b6508b08f3b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 207672541e0507cdb35887ef670cc300157c204ddf937ca21a7c1b0243cdde20d212c7daf76f2cd2c70d734f8676ef2e6c646d30f9304933be1db36126c9d2cb
|
7
|
+
data.tar.gz: 5177a4f97ffd28c60b8249f9a4c8a6eafea08dd5c8fe7833273b4274e1fbb59d48e12bcda042a40d2e7d91afb850ed9e583aeeb8f728eea64feeb30c7c9da95a
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
## 1.1.0
|
4
4
|
|
5
5
|
Files in the `Toolbox` are now autoloaded.
|
6
6
|
|
7
|
-
|
7
|
+
### Tools
|
8
8
|
|
9
9
|
Implemented `SleepingKingStudios::Tools::Assertions` with the following methods:
|
10
10
|
|
@@ -19,32 +19,32 @@ Each method raises an exception if its condition is not met. `Assertions` also d
|
|
19
19
|
|
20
20
|
Added :deprecation_caller_depth option to CoreTools. When calling #deprecate with the default strategy of 'warn', will print the specified number of lines from the caller. The default value is 3.
|
21
21
|
|
22
|
-
|
22
|
+
### Toolbelt
|
23
23
|
|
24
24
|
- Added `#assertions` to Toolbelt.
|
25
25
|
|
26
|
-
|
26
|
+
### Toolbox
|
27
27
|
|
28
28
|
Implemented `SleepingKingStudios::Tools::Toolbox::Subclass`, which implements partial application for constructor parameters.
|
29
29
|
|
30
|
-
|
30
|
+
## 1.0.2
|
31
31
|
|
32
32
|
Updated gem metadata.
|
33
33
|
|
34
|
-
|
34
|
+
## 1.0.1
|
35
35
|
|
36
36
|
Added a missing `require 'set'` to Toolbox::Inflector::Rules.
|
37
37
|
|
38
|
-
|
38
|
+
## 1.0.0
|
39
39
|
|
40
40
|
Removed all deprecated code from pre-1.0 releases.
|
41
41
|
|
42
|
-
|
42
|
+
### Toolbox
|
43
43
|
|
44
44
|
Added some Hash-like methods to ConstantMap - `#each_key`, `#each_value`,
|
45
45
|
`#keys`, `#to_h`, and `#values`.
|
46
46
|
|
47
|
-
|
47
|
+
## 0.8.0
|
48
48
|
|
49
49
|
Last minor release before 1.0.0.
|
50
50
|
|
@@ -55,14 +55,14 @@ in version 1.0.0. Update dependent code accordingly.
|
|
55
55
|
functionality is still available as
|
56
56
|
SleepingKingStudios::Tools::Toolbox::SemanticVersion.
|
57
57
|
|
58
|
-
|
58
|
+
### Tools
|
59
59
|
|
60
60
|
- Refactored all Tools modules to classes.
|
61
61
|
- Removed StringTools::PluralInflector. It's functionality is now handled by
|
62
62
|
Toolbox::Inflector.
|
63
63
|
- Added support for deprecation strategy to CoreTools#deprecate.
|
64
64
|
|
65
|
-
|
65
|
+
### Toolbelt
|
66
66
|
|
67
67
|
- Refactored Toolbelt to reference Tools instances rather than classes.
|
68
68
|
- Defined new abbreviated helpers #ary, #hsh, #int, #obj, #str.
|
@@ -71,36 +71,36 @@ in version 1.0.0. Update dependent code accordingly.
|
|
71
71
|
- Deprecated old abbreviated helpers #array, #core, #hash, #integer, #object,
|
72
72
|
#string.
|
73
73
|
|
74
|
-
|
74
|
+
### Toolbox
|
75
75
|
|
76
76
|
- Deprecate Toolbox::Configuration. Use a struct instead.
|
77
77
|
- Deprecate Toolbox::Delegator. Use the stdlib Forwardable module instead.
|
78
78
|
- Implement Toolbox::Inflector, which serves as a delegate for StringTools.
|
79
79
|
|
80
|
-
|
80
|
+
## 0.7.1
|
81
81
|
|
82
82
|
- Implement CoreTools#empty_binding.
|
83
83
|
- Implement HashTools#generate_binding.
|
84
84
|
|
85
|
-
|
85
|
+
## 0.7.0
|
86
86
|
|
87
|
-
|
87
|
+
### Tools
|
88
88
|
|
89
89
|
- Support symbol arguments to StringTools methods.
|
90
90
|
- Implement StringTools#chain.
|
91
91
|
- Implement StringTools#indent.
|
92
92
|
- Implement StringTools#map_lines.
|
93
93
|
|
94
|
-
|
94
|
+
### Toolbox
|
95
95
|
|
96
96
|
- Implement Toolbox::Configuration.
|
97
97
|
|
98
|
-
|
98
|
+
### Misc.
|
99
99
|
|
100
100
|
- IntegerTools#pluralize now accepts 2..3 arguments, and will automatically generate the plural string using StringTools#pluralize if an explicit plural is not given.
|
101
101
|
- SleepingKingStudios::Tools::Toolbelt is now autoloaded from SleepingKingStudios::Tools.
|
102
102
|
|
103
|
-
|
103
|
+
## 0.6.0
|
104
104
|
|
105
105
|
- Implement HashTools#convert_keys_to_strings and #convert_keys_to_symbols.
|
106
106
|
- Implement ObjectTools#dig.
|
@@ -110,69 +110,67 @@ in version 1.0.0. Update dependent code accordingly.
|
|
110
110
|
- Implement Toolbox::Mixin.
|
111
111
|
- Add support for Ruby 2.4.0.
|
112
112
|
|
113
|
-
|
113
|
+
## 0.5.0
|
114
114
|
|
115
115
|
- Implement CoreTools#require_each.
|
116
116
|
- Implement StringTools#camelize.
|
117
117
|
- Add an optional block argument to ArrayTools#humanize_list.
|
118
118
|
|
119
|
-
|
119
|
+
### Toolbox
|
120
120
|
|
121
121
|
- Implement Delegator#delegate, Delegator#wrap_delegate.
|
122
122
|
- Refactor SemanticVersion to the Toolbox namespace. Accessing SemanticVersion as Tools::SemanticVersion is now deprecated, use Tools::Toolbox::SemanticVersion.
|
123
123
|
|
124
|
-
|
124
|
+
### Identity Methods
|
125
125
|
|
126
126
|
- Implement a set of methods to classify objects by type: ArrayTools#array?, HashTools#hash?, IntegerTools#integer?, ObjectTools#object?, and StringTools#string?.
|
127
127
|
|
128
|
-
|
128
|
+
### Mutability Methods
|
129
129
|
|
130
130
|
Implement #immutable? and #mutable? for ObjectTools, ArrayTools, and HashTools, which indicate whether or not a given object is mutable.
|
131
131
|
|
132
132
|
Implement #deep_freeze for ObjectTools, ArrayTools, and HashTools which recursively freezes the object and any children (array items, hash keys, and hash values).
|
133
133
|
|
134
|
-
##
|
134
|
+
## 0.4.0
|
135
135
|
|
136
|
-
###
|
137
|
-
|
138
|
-
#### CoreTools
|
136
|
+
### CoreTools
|
139
137
|
|
140
138
|
Implement CoreTools#deprecate.
|
141
139
|
|
142
|
-
|
140
|
+
### IntegerTools
|
143
141
|
|
144
142
|
Implement #pluralize.
|
145
143
|
|
146
|
-
|
144
|
+
### StringTools
|
147
145
|
|
148
146
|
Implement #pluralize and #singularize. The previous behavior of #pluralize is deprecated; use IntegerTools#pluralize.
|
149
147
|
|
150
|
-
|
148
|
+
## 0.3.0
|
151
149
|
|
152
150
|
Implement ArrayTools#bisect and ArrayTools#splice.
|
153
151
|
|
154
|
-
|
152
|
+
### StringTools
|
155
153
|
|
156
154
|
Implement #underscore.
|
157
155
|
|
158
|
-
|
156
|
+
## 0.2.0
|
159
157
|
|
160
158
|
Split EnumerableTools into ArrayTools and HashTools.
|
161
159
|
|
162
160
|
Implement ArrayTools#deep_dup, HashTools#deep_dup and ObjectTools#deep_dup.
|
163
161
|
|
164
|
-
|
162
|
+
## 0.1.3
|
165
163
|
|
166
164
|
Properly support both keywords and optional arguments in ObjectTools#apply.
|
167
165
|
|
168
|
-
|
166
|
+
## 0.1.2
|
169
167
|
|
170
168
|
Fix loading order issues when loading SemanticVersion in isolation.
|
171
169
|
|
172
|
-
|
170
|
+
## 0.1.1
|
173
171
|
|
174
172
|
Add configuration options to EnumerableTools#humanize_list.
|
175
173
|
|
176
|
-
|
174
|
+
## 0.1.0
|
177
175
|
|
178
176
|
Initial release.
|
@@ -177,8 +177,8 @@ module SleepingKingStudios::Tools
|
|
177
177
|
return if (ROMANIZE_MIN..ROMANIZE_MAX).include?(integer)
|
178
178
|
|
179
179
|
error_message =
|
180
|
-
"integer to romanize must be within range #{ROMANIZE_MIN} to" \
|
181
|
-
"
|
180
|
+
"integer to romanize must be within range #{ROMANIZE_MIN} to " \
|
181
|
+
"#{ROMANIZE_MAX}"
|
182
182
|
|
183
183
|
raise RangeError, error_message, caller(1..-1)
|
184
184
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sleeping_king_studios-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob "Merlin" Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.35'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.35'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '2.
|
89
|
+
version: '2.12'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '2.
|
96
|
+
version: '2.12'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,9 +186,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: 2.7.0
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
|
-
- - "
|
189
|
+
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version:
|
191
|
+
version: '0'
|
192
192
|
requirements: []
|
193
193
|
rubygems_version: 3.2.3
|
194
194
|
signing_key:
|