crockford32 1.0.1 → 1.0.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: 29ffac6e2fae482581e82faa6fef2e3a537790fc7b5f8dbdae87fe8ffafb45a5
4
- data.tar.gz: 52554e3c47cba913aab0894ea4dcb99eeb332cd32afbc021f598ee72624110c5
3
+ metadata.gz: a8731f2fc74f2b2e8b156421639d7be5bccc79d8560295868ac278ca81b2f7a7
4
+ data.tar.gz: 2e9c6d6ccbb40ebb8023b3f711501a62b1ccb1bd972b3e9f967d1b50f4cbf2cb
5
5
  SHA512:
6
- metadata.gz: 352994d3ecc7cd967b0f60169ebb6572b741c08f09d402ee686491aa340c7b360fa5154ccbdc4cc9072d02c8794478d8bc783be740a2063dac6d4ab7aedc725b
7
- data.tar.gz: b896cbd7d9c0a0da623b07392dc35def1f5e17a6168272d02284f88b361a6d834612bd491669fb51106090a24f93e7abc3ad20dbd7c6e4570c59ef0e588ac110
6
+ metadata.gz: d73156968ffbfd3b02886fbd57d1adf6ffad73a7226b3f80c05e4e7c4cc89c3a533f7eb84d5dff7dd51020162d9ccd365ed206db43cc0fe3aa8f75bd8ff4a97d
7
+ data.tar.gz: 9c0a53a37aa656c4d69c0c1b7dd0a091660445450aff51339b1640e10031cd9cb50a1e99374be2b177bbe199fd18ff3cda47338a22023fc9362d4adc11902b20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.2 - 2022-02-22
4
+ - Add type definitions
5
+
3
6
  ## v1.0.1 - 2022-02-19
4
7
  - Fixed `TypeError` in `private_class_method` call in Ruby < 3.0.0
5
8
 
data/LICENSE CHANGED
@@ -1,3 +1,5 @@
1
+ The MIT License (MIT)
2
+
1
3
  Copyright 2022 Stephan Tarulli
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Crockford32
2
2
  A fast little-endian implementation of [Douglas Crockford's Base32 specification](https://www.crockford.com/base32.html).
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/crockford32.svg)](https://badge.fury.io/rb/crockford32)
4
5
 
5
6
  ## Installation
6
7
  Add this line to your application's Gemfile:
@@ -17,6 +18,17 @@ Or install it yourself as:
17
18
 
18
19
  $ gem install crockford32
19
20
 
21
+ ### Ruby Versions
22
+ This gem is tested against the following Ruby versions:
23
+
24
+ - 2.6.0
25
+ - 2.6.9
26
+ - 2.7.0
27
+ - 2.7.5
28
+ - 3.0.0
29
+ - 3.0.3
30
+ - 3.1.0
31
+
20
32
 
21
33
  ## Usage
22
34
  Encode data with the `encode` method:
@@ -102,6 +114,8 @@ For an interactive console with the gem loaded run `bin/console`.
102
114
  ## Testing
103
115
  Use the `bundle exec rake test` command to run unit tests. To install the gem onto your local machine for general integration testing use `bundle exec rake install`.
104
116
 
117
+ To test the gem against each supported version of Ruby use `bin/test_versions`. This will create a Docker image for each version and run the tests and linting steps.
118
+
105
119
 
106
120
  ## Releases
107
121
  Do the following to release a new version of this gem:
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Crockford32
4
4
  # The library version.
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
@@ -0,0 +1,9 @@
1
+ module Crockford32
2
+ VERSION: String
3
+
4
+ type encodable = Integer | String
5
+ type decode_into = :integer | :string
6
+
7
+ def self.decode: (String, ?into: decode_into, ?check: bool) -> encodable
8
+ def self.encode: (encodable, ?length: Integer, ?check: bool) -> String
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crockford32
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephan Tarulli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-20 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A fast little-endian implementation of Crockford's Base32 specification.
14
14
  email:
@@ -23,6 +23,7 @@ files:
23
23
  - lib/crockford32.rb
24
24
  - lib/crockford32/errors.rb
25
25
  - lib/crockford32/version.rb
26
+ - sig/crockford32.rbs
26
27
  homepage: https://github.com/tinychameleon/crockford32
27
28
  licenses:
28
29
  - MIT