Base64encoding 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59d6b379e9bc715c286aa96da44923ec05e14bf0b0724860292e008e5b57f53b
4
- data.tar.gz: 8fccf8fc50b4bab21e81824c227bdd73b2ee9daaab05e5dae625c0355c1f2ef7
3
+ metadata.gz: ff187f675d0673f15c8ea83c2f3f515cb5be1ee266474ec1e58e65caa90096c1
4
+ data.tar.gz: fcdaa35d3a2638c9d34daad76a996469658c6dee59c0abfd81c74406a95748f2
5
5
  SHA512:
6
- metadata.gz: b76bccc46990a62f664ff14f77056e860a1786677565a754a7a96374be3517f653e291e6afc80123bb0158bb55c106805eb558197f4d082c42608ded82cf7b84
7
- data.tar.gz: 6047f8b818fffe9e837ab0a5739352bc8d10ea27912a4ffc0fcfecfd95a978c05669a3e6bf52e62749c967a4f358638ac61de003906d7a83de1c2a8ebf3d292c
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
- TODO: Delete this and the text below, and describe your gem
3
+ _Created for the course "Stack of programming technologies" V. N. Karazin Kharkiv National University_
4
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/Base64encoding`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Ruby 3.3.5 Base64encoding gem.
6
6
 
7
- ## Installation
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
- 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.
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
27
+ gem install Base64encoding
21
28
  ```
22
29
 
23
30
  ## Usage
24
31
 
25
- TODO: Write usage instructions here
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Base64encoding
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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.0
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: []