strings 0.2.0 → 0.2.1
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/README.md +8 -7
- data/lib/strings/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 763d67f8c555aab9f45587b8596a66f75d751b965fcf2782b1920bf5d5b97f6b
|
4
|
+
data.tar.gz: a894e46873337664f6a35863a6bffdbaa1603d1f9ddcacf448de9841226a43e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eddc0eb59fcf78d5d5c9d84246821cbf9559387d6c94f090bea855ec4928bb8648b464832c97b3c442b3a51748d41a51fc304fc4d5a38440d3889b4924e5ad65
|
7
|
+
data.tar.gz: 711fe7e35fa2c893a5e94f98e47674a16fc5e814c67d941101bead1e03d076ac6bf38e8e17a579c3a3353a3b30518214537fea040b45d7a149cd597d6a31134b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.2.1] - 2021-03-09
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Change to relax unicode-display_width version constraint to allow 2.0 release
|
7
|
+
|
3
8
|
## [v0.2.0] - 2020-08-11
|
4
9
|
|
5
10
|
### Changed
|
@@ -60,6 +65,7 @@
|
|
60
65
|
|
61
66
|
* Initial implementation and release
|
62
67
|
|
68
|
+
[v0.2.1]: https://github.com/piotrmurach/strings/compare/v0.2.0...v0.2.1
|
63
69
|
[v0.2.0]: https://github.com/piotrmurach/strings/compare/v0.1.8...v0.2.0
|
64
70
|
[v0.1.8]: https://github.com/piotrmurach/strings/compare/v0.1.7...v0.1.8
|
65
71
|
[v0.1.7]: https://github.com/piotrmurach/strings/compare/v0.1.6...v0.1.7
|
data/README.md
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
# Strings
|
6
6
|
|
7
7
|
[![Gem Version](https://badge.fury.io/rb/strings.svg)][gem]
|
8
|
-
[![
|
8
|
+
[![Actions CI](https://github.com/piotrmurach/strings/workflows/CI/badge.svg?branch=master)][gh_actions_ci]
|
9
9
|
[![Build status](https://ci.appveyor.com/api/projects/status/e11tn1fgjwnfwp3r?svg=true)][appveyor]
|
10
10
|
[![Maintainability](https://api.codeclimate.com/v1/badges/4ca50e480f42af80678e/maintainability)][codeclimate]
|
11
11
|
[![Coverage Status](https://coveralls.io/repos/github/piotrmurach/strings/badge.svg?branch=master)][coverage]
|
12
12
|
[![Inline docs](http://inch-ci.org/github/piotrmurach/strings.svg?branch=master)][inchpages]
|
13
13
|
|
14
14
|
[gem]: http://badge.fury.io/rb/strings
|
15
|
-
[
|
15
|
+
[gh_actions_ci]: https://github.com/piotrmurach/strings/actions?query=workflow%3ACI
|
16
16
|
[appveyor]: https://ci.appveyor.com/project/piotrmurach/strings
|
17
17
|
[codeclimate]: https://codeclimate.com/github/piotrmurach/strings/maintainability
|
18
18
|
[coverage]: https://coveralls.io/github/piotrmurach/strings?branch=master
|
@@ -261,7 +261,7 @@ Strings::Truncate.truncate(text, 20) # => "for there is no fol…"
|
|
261
261
|
If you want to split words on their boundaries use `:separator` option:
|
262
262
|
|
263
263
|
```ruby
|
264
|
-
Strings.truncate(text, 20) # => "for there is no…"
|
264
|
+
Strings.truncate(text, 20, separator: ' ') # => "for there is no…"
|
265
265
|
```
|
266
266
|
|
267
267
|
Use `:trailing` option (by default `…`) to provide omission characters:
|
@@ -375,10 +375,11 @@ using Strings::Extensions
|
|
375
375
|
|
376
376
|
| Component | Description | API docs |
|
377
377
|
| ------------ | ----------- | -------- |
|
378
|
-
| [strings-ansi](https://github.com/piotrmurach/strings-ansi) | Handle ANSI escape codes in strings. | [docs](
|
379
|
-
| [strings-case](https://github.com/piotrmurach/strings-case) | Handle case transformations in strings. | [docs](
|
380
|
-
| [strings-inflection](https://github.com/piotrmurach/strings-inflection) | Inflects English nouns and verbs. | [docs](
|
381
|
-
| [strings-numeral](https://github.com/piotrmurach/strings-numeral) | Express numbers as word numerals. | [docs](
|
378
|
+
| [strings-ansi](https://github.com/piotrmurach/strings-ansi) | Handle ANSI escape codes in strings. | [docs](https://www.rubydoc.info/gems/strings-ansi) |
|
379
|
+
| [strings-case](https://github.com/piotrmurach/strings-case) | Handle case transformations in strings. | [docs](https://www.rubydoc.info/gems/strings-case) |
|
380
|
+
| [strings-inflection](https://github.com/piotrmurach/strings-inflection) | Inflects English nouns and verbs. | [docs](https://www.rubydoc.info/gems/strings-inflection) |
|
381
|
+
| [strings-numeral](https://github.com/piotrmurach/strings-numeral) | Express numbers as word numerals. | [docs](https://www.rubydoc.info/gems/strings-numeral) |
|
382
|
+
| [strings-truncation](https://github.com/piotrmurach/strings-truncation) | Truncate strings with fullwidth characters and ANSI codes. | [docs](https://www.rubydoc.info/gems/strings-truncation) |
|
382
383
|
|
383
384
|
## Development
|
384
385
|
|
data/lib/strings/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: strings-ansi
|
@@ -42,16 +42,22 @@ dependencies:
|
|
42
42
|
name: unicode-display_width
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.5'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '3.0'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: '1.5'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rake
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|