concat_heredoc_horizontal 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +16 -11
- data/lib/concat_heredoc_horizontal/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e9c79dbb01ada64aab66b641e374c1d45bf8dccaca66667a128aeb2b9d17ef0
|
4
|
+
data.tar.gz: 67b0369b9e3518fb172764a58f98e2c16130618251fc539ec22479f54c894d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87d73e96a4753309dff7a7f7c1440e2718c3cc2da8b69c705e786bfad69b2fe77812e85099d0a7efbc80c2d8845f86cd48c6fc2aeab2a7fd5786c47f0100b12
|
7
|
+
data.tar.gz: d6e372d800393061b7bafdf80266ed9e055d67242ee615c93d694d5015ba230907be0397aef048f0381390788a99260fdeb39a21dd2a017af6b72786f47365f0
|
data/README.md
CHANGED
@@ -1,24 +1,29 @@
|
|
1
1
|
# ConcatHeredocHorizontal
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/concat_heredoc_horizontal`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
Hello and welcome to my gem, this gem is simple but it helped me solve a problem about concatenating two multi-line strings (Heredoc's), since these have line breaks, which make it difficult to position them horizontally, the gem is also capable of concatenating simple strings.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
7
|
Install the gem and add to the application's Gemfile by executing:
|
12
8
|
|
13
|
-
$ bundle add
|
9
|
+
$ bundle add concat_heredoc_horizontal
|
14
10
|
|
15
11
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
12
|
|
17
|
-
$ gem install
|
13
|
+
$ gem install concat_heredoc_horizontal
|
18
14
|
|
19
15
|
## Usage
|
20
|
-
|
21
|
-
|
16
|
+
Examples of use
|
17
|
+
```ruby
|
18
|
+
require 'concat_heredoc_horizontal'
|
19
|
+
|
20
|
+
a = "Hello
|
21
|
+
of "
|
22
|
+
b = " World
|
23
|
+
Ruby"
|
24
|
+
c = ConcatHeredocHorizontal.concat_simple(a, b)
|
25
|
+
puts c
|
26
|
+
```
|
22
27
|
|
23
28
|
## Development
|
24
29
|
|
@@ -28,7 +33,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
28
33
|
|
29
34
|
## Contributing
|
30
35
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hector98/concat_heredoc_horizontal. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/hector98/concat_heredoc_horizontal/blob/main/CODE_OF_CONDUCT.md).
|
32
37
|
|
33
38
|
## License
|
34
39
|
|
@@ -36,4 +41,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
36
41
|
|
37
42
|
## Code of Conduct
|
38
43
|
|
39
|
-
Everyone interacting in the ConcatHeredocHorizontal project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
44
|
+
Everyone interacting in the ConcatHeredocHorizontal project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hector/concat_heredoc_horizontal/blob/main/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concat_heredoc_horizontal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hector Manuel Barrios Barrios
|
@@ -10,7 +10,10 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2024-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Hello and welcome to my gem, this gem is simple but it helped me solve
|
14
|
+
a problem about concatenating two multi-line strings (Heredoc's), since these have
|
15
|
+
line breaks, which make it difficult to position them horizontally, the gem is also
|
16
|
+
capable of concatenating simple strings.
|
14
17
|
email:
|
15
18
|
- barrioshector13@gmail.com
|
16
19
|
executables: []
|