Base64encoding 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/Base64encoding-0.1.0.gem +0 -0
- data/README.md +22 -7
- data/lib/Base64encoding/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff187f675d0673f15c8ea83c2f3f515cb5be1ee266474ec1e58e65caa90096c1
|
4
|
+
data.tar.gz: fcdaa35d3a2638c9d34daad76a996469658c6dee59c0abfd81c74406a95748f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c10da9b3834dbd52be96b22938757a06a2ca40f0ec3b97f96879627926d743ed7e4bc1b9a67f07025ba6b7df26aba964e5296d0a41166f0bedf2817e50d7cf67
|
7
|
+
data.tar.gz: cdf0e4d29057426a3caaf5f14f0618a563673f22dc5faa4f74864043e4c26b51f26c80dcc3493086aaebd2a30a893fdca0e55a5772acdf124fd54e57c50a825d
|
Binary file
|
data/README.md
CHANGED
@@ -1,28 +1,43 @@
|
|
1
1
|
# Base64encoding
|
2
2
|
|
3
|
-
|
3
|
+
_Created for the course "Stack of programming technologies" V. N. Karazin Kharkiv National University_
|
4
4
|
|
5
|
-
|
5
|
+
Ruby 3.3.5 Base64encoding gem.
|
6
6
|
|
7
|
-
|
7
|
+
---
|
8
|
+
|
9
|
+
A gem for Base64 encoding and decoding.
|
10
|
+
|
11
|
+
This gem has methods:
|
12
|
+
|
13
|
+
- `encode_base64` - method that encodes UTF-8 strings to base64 (UTF-8) string
|
14
|
+
- `decode_base64` - method that decodes base64 string to UTF-8 string.
|
8
15
|
|
9
|
-
|
16
|
+
## Installation
|
10
17
|
|
11
18
|
Install the gem and add to the application's Gemfile by executing:
|
12
19
|
|
13
20
|
```bash
|
14
|
-
bundle add
|
21
|
+
bundle add Base64encoding
|
15
22
|
```
|
16
23
|
|
17
24
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
25
|
|
19
26
|
```bash
|
20
|
-
gem install
|
27
|
+
gem install Base64encoding
|
21
28
|
```
|
22
29
|
|
23
30
|
## Usage
|
24
31
|
|
25
|
-
|
32
|
+
```ruby
|
33
|
+
require 'Base64encoding'
|
34
|
+
|
35
|
+
push(Base64encoding.encode_base64('Hello, World!'))
|
36
|
+
# "SGVsbG8sIFdvcmxkIQ=="
|
37
|
+
|
38
|
+
push(Base64encoding.decode_base64('SGVsbG8sIFdvcmxkIQ=='))
|
39
|
+
# "Hello, World!"
|
40
|
+
```
|
26
41
|
|
27
42
|
## Development
|
28
43
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Base64encoding
|
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
|
- DarkCard1nal
|
@@ -22,18 +22,19 @@ files:
|
|
22
22
|
- ".rubocop.yml"
|
23
23
|
- ".ruby-version"
|
24
24
|
- '2'
|
25
|
+
- Base64encoding-0.1.0.gem
|
25
26
|
- README.md
|
26
27
|
- Rakefile
|
27
28
|
- lib/Base64encoding.rb
|
28
29
|
- lib/Base64encoding/constants.rb
|
29
30
|
- lib/Base64encoding/version.rb
|
30
31
|
- sig/Base64encoding.rbs
|
31
|
-
homepage: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
32
|
+
homepage: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
32
33
|
licenses: []
|
33
34
|
metadata:
|
34
|
-
homepage_uri: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
35
|
-
source_code_uri: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
36
|
-
changelog_uri: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
35
|
+
homepage_uri: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
36
|
+
source_code_uri: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
37
|
+
changelog_uri: https://github.com/DarkCard1nal/STP_Base64encoding.git
|
37
38
|
rubygems_mfa_required: 'true'
|
38
39
|
post_install_message:
|
39
40
|
rdoc_options: []
|