base32.rb 0.4.1 → 0.4.2

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: 36ce9ea6988f7f35310fd56a62a3827f36b0baf14b5527d48aac8a26a7dbfb8f
4
- data.tar.gz: 22af2071d932f515109602837c02d209557adedff42c6aaa6dbb4d7ca651eac8
3
+ metadata.gz: 201d61d364190048ee76ca4dadf25451ad8238aebb852321cdb74c1cc270b0cb
4
+ data.tar.gz: 6cd2a411866e8df802264308e0e3d24d2f0406e2c3bb3801d27c5aa39abe7844
5
5
  SHA512:
6
- metadata.gz: c4db78a588ec044ba38c83ac151f5fbecccdafa27fabbcd85f5a7d336bc87743c2a5ae70f8c53b5cdef780051f65b1bfb606976ad30e92c5747d81290030f32e
7
- data.tar.gz: 515b5c125bc98ed66ba049bf67297068d556bbf9a76e80d590436968d4f2d7f12b91ee30d8492b8a549fda3bd76a42d98b2798a96b3452fab1868a6724ee86b8
6
+ metadata.gz: 693a869ac95855125c12f4533e5ecc7dbe597b915ffe74498aca42955b63742afeafcf0940b09ede33d9d79268057cadbbb1e44c3c15c0ff77946aeb708e76a1
7
+ data.tar.gz: '09393940cbc720f1ce81b78f89c69934de4b7ee64626022e5d67a088b4390d3e925d4402aceee9e1020610d5c4c5b3d50a4693eccc6098377e1eac2cd4e56528'
@@ -10,4 +10,11 @@ require 'base32/random'
10
10
 
11
11
  # Module for encoding and decoding in Base32 per RFC 3548
12
12
  module Base32
13
+ def self.decode(str, alphabet = Base32::Alphabet::CHARS)
14
+ Decoder.new(str, alphabet).call
15
+ end
16
+
17
+ def self.encode(str, alphabet = Base32::Alphabet::CHARS)
18
+ Encoder.new(str, alphabet).call
19
+ end
13
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Base32
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base32.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Tesla