render-text-helper 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e58ee7a37f97f1926b022eeacbdc250da3edd0d06f168089319a1340137eb7dc
4
- data.tar.gz: ef6be5462f64aa6a9d2191245b5bba9c8028ba4364092499202ed5aeaf211a23
3
+ metadata.gz: 3a16d3ef03a33b4763eeb84d7e72162eef89b34c3d138792b2f21af0b503f211
4
+ data.tar.gz: 1a5f5f19b1261d873a703d45feb3704509754e64aa92ec6e922bb12471d823f6
5
5
  SHA512:
6
- metadata.gz: 6278202b3b758d3aa1229a748e0eed12c45a127a3dd4ba9cad1a7793c04348f5d35cb5f484d4281910635716089c3f7a1fbe2a5387c26b9b3859895aa6e3edfb
7
- data.tar.gz: 2e81e29d670ff5e158e35ca329989eef65bd3f26077cf3f84b863f2027b9154312cf8fed5c7ae35347c9aa338bfecec44ee2520d559fc7b42d2de8f8f1c10387
6
+ metadata.gz: 17eef48dab9ff66109a80e8c985d259632dab92410a7a74e23790ddba9283b721d7a17fb01a144f829652a8e5aaed1b7ea5f9506f1fe93da1874e8d4fe77a6b1
7
+ data.tar.gz: e45e71e62432bf2a5e892e78ed466ca510e5e7610ce963b6b079b17d56df8879ad95f6d7b0cc669a8dd8c47031c4ea292b0278ee6548e6c0314ac2414f5d23a7
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## Changelog
1
+ # Changelog
2
+
3
+ ## [0.3.2] - 2024-12-26
4
+
5
+ - Replaces escaped return with actual return
2
6
 
3
7
  ## [0.3.1] - 2023-11-3
4
8
 
data/Gemfile.lock CHANGED
@@ -1,52 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- render-text-helper (0.3.1)
4
+ render-text-helper (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
- diff-lcs (1.5.0)
11
- json (2.6.3)
10
+ diff-lcs (1.5.1)
11
+ json (2.9.1)
12
12
  language_server-protocol (3.17.0.3)
13
- parallel (1.23.0)
14
- parser (3.2.2.4)
13
+ parallel (1.26.3)
14
+ parser (3.3.6.0)
15
15
  ast (~> 2.4.1)
16
16
  racc
17
- racc (1.7.2)
17
+ racc (1.8.1)
18
18
  rainbow (3.1.1)
19
- rake (13.1.0)
20
- regexp_parser (2.8.2)
21
- rexml (3.2.6)
22
- rspec (3.12.0)
23
- rspec-core (~> 3.12.0)
24
- rspec-expectations (~> 3.12.0)
25
- rspec-mocks (~> 3.12.0)
26
- rspec-core (3.12.2)
27
- rspec-support (~> 3.12.0)
28
- rspec-expectations (3.12.3)
19
+ rake (13.2.1)
20
+ regexp_parser (2.10.0)
21
+ rspec (3.13.0)
22
+ rspec-core (~> 3.13.0)
23
+ rspec-expectations (~> 3.13.0)
24
+ rspec-mocks (~> 3.13.0)
25
+ rspec-core (3.13.2)
26
+ rspec-support (~> 3.13.0)
27
+ rspec-expectations (3.13.3)
29
28
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.12.0)
31
- rspec-mocks (3.12.6)
29
+ rspec-support (~> 3.13.0)
30
+ rspec-mocks (3.13.2)
32
31
  diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.12.0)
34
- rspec-support (3.12.1)
35
- rubocop (1.57.2)
32
+ rspec-support (~> 3.13.0)
33
+ rspec-support (3.13.2)
34
+ rubocop (1.69.2)
36
35
  json (~> 2.3)
37
36
  language_server-protocol (>= 3.17.0)
38
37
  parallel (~> 1.10)
39
- parser (>= 3.2.2.4)
38
+ parser (>= 3.3.0.2)
40
39
  rainbow (>= 2.2.2, < 4.0)
41
- regexp_parser (>= 1.8, < 3.0)
42
- rexml (>= 3.2.5, < 4.0)
43
- rubocop-ast (>= 1.28.1, < 2.0)
40
+ regexp_parser (>= 2.9.3, < 3.0)
41
+ rubocop-ast (>= 1.36.2, < 2.0)
44
42
  ruby-progressbar (~> 1.7)
45
- unicode-display_width (>= 2.4.0, < 3.0)
46
- rubocop-ast (1.30.0)
47
- parser (>= 3.2.1.0)
43
+ unicode-display_width (>= 2.4.0, < 4.0)
44
+ rubocop-ast (1.37.0)
45
+ parser (>= 3.3.1.0)
48
46
  ruby-progressbar (1.13.0)
49
- unicode-display_width (2.5.0)
47
+ unicode-display_width (3.1.2)
48
+ unicode-emoji (~> 4.0, >= 4.0.4)
49
+ unicode-emoji (4.0.4)
50
50
 
51
51
  PLATFORMS
52
52
  x86_64-linux
@@ -58,4 +58,4 @@ DEPENDENCIES
58
58
  rubocop (~> 1.5)
59
59
 
60
60
  BUNDLED WITH
61
- 2.4.17
61
+ 2.6.2
@@ -18,4 +18,9 @@ class String
18
18
 
19
19
  split.map(&:strip)
20
20
  end
21
+
22
+ # outputs string where it replaces \n or \r with actual return
23
+ def escaped_newline_to_newline
24
+ self.gsub('\n', "\n").gsub('\r', "\n")
25
+ end
21
26
  end
@@ -3,7 +3,7 @@
3
3
  module Render
4
4
  module Text
5
5
  module Helper
6
- VERSION = '0.3.1'
6
+ VERSION = '0.3.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render-text-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saimon Lovell
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-11-03 00:00:00.000000000 Z
10
+ date: 2024-12-26 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: Add some more functionality to string and booleans
14
13
  email:
@@ -42,7 +41,6 @@ metadata:
42
41
  source_code_uri: https://github.com/SaimonL/render-text-helper
43
42
  changelog_uri: https://github.com/SaimonL/render-text-helper/blob/master/CHANGELOG.md
44
43
  rubygems_mfa_required: 'true'
45
- post_install_message:
46
44
  rdoc_options: []
47
45
  require_paths:
48
46
  - lib
@@ -57,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
55
  - !ruby/object:Gem::Version
58
56
  version: '0'
59
57
  requirements: []
60
- rubygems_version: 3.4.21
61
- signing_key:
58
+ rubygems_version: 3.6.2
62
59
  specification_version: 4
63
60
  summary: Does some string manipulation
64
61
  test_files: []