subvisual-utils 0.2.0 → 0.3.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 +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +9 -0
- data/lib/subvisual/string_utils.rb +9 -0
- data/lib/subvisual/string_utils/replace_at.rb +13 -0
- data/lib/subvisual/utils.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e8becccaf7396ede4dae0b495394f830089cd0dc4b6bc422bb52d268f7929f7
|
4
|
+
data.tar.gz: 888fd5ca1b5ed5205d0997b9d2541cd5d050ec77eed9c0a10ff42b10df397f35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21f6ed2583a8a8f0cbaf5bd1a7fcb6bc090c4ba1ebd0bde7481bafcef20da3ae6a7d5dd8c23142ce5fb2fd77f9ca7a8d8538b79bb0e737038edf58c54cbc814
|
7
|
+
data.tar.gz: 7c5cfc76288b4aa836079650e04df7f4dcacd151e1fca0de2963ff31d186393521581355bd1236db9a8aaa78503f638b844c9d90e452bb2892d372d04a11b544
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning].
|
|
11
11
|
Unreleased
|
12
12
|
----------
|
13
13
|
|
14
|
+
- Added `StringUtils.replace_at(string, index, replacement)`.
|
15
|
+
|
16
|
+
|
17
|
+
v0.2.0 - 2020-05-07
|
18
|
+
-------------------
|
19
|
+
|
14
20
|
- Added `ArrayUtils.pad_right(array, size, padding = nil)`.
|
15
21
|
|
16
22
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -55,6 +55,15 @@ Subvisual::MathUtils.least_common_denominator(21, 6) # => 42
|
|
55
55
|
```
|
56
56
|
|
57
57
|
|
58
|
+
### `Subvisual::StringUtils.replace_at(string, index, replacement)`
|
59
|
+
|
60
|
+
Replaces the character at a specific index in a String.
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
Subvisual::StringUtils.replace_at("Hello", 1, "a") # => "Hallo"
|
64
|
+
```
|
65
|
+
|
66
|
+
|
58
67
|
Development
|
59
68
|
-----------
|
60
69
|
|
data/lib/subvisual/utils.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subvisual-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Costa
|
@@ -32,6 +32,8 @@ files:
|
|
32
32
|
- lib/subvisual/math_utils.rb
|
33
33
|
- lib/subvisual/math_utils/greatest_common_divisor.rb
|
34
34
|
- lib/subvisual/math_utils/least_common_denominator.rb
|
35
|
+
- lib/subvisual/string_utils.rb
|
36
|
+
- lib/subvisual/string_utils/replace_at.rb
|
35
37
|
- lib/subvisual/utils.rb
|
36
38
|
- subvisual-utils.gemspec
|
37
39
|
homepage: https://github.com/subvisual/ruby-utils
|