crockford32 1.0.0 → 1.0.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: f6e7d5926825497887afa8a356c29d3d858c8fd77c8885b926899b69e110b5d2
4
- data.tar.gz: 1d012996acd856eed31ec4aa096c6f1c2ee193b2df081138670201546811363d
3
+ metadata.gz: 29ffac6e2fae482581e82faa6fef2e3a537790fc7b5f8dbdae87fe8ffafb45a5
4
+ data.tar.gz: 52554e3c47cba913aab0894ea4dcb99eeb332cd32afbc021f598ee72624110c5
5
5
  SHA512:
6
- metadata.gz: 4027fea38aa6aeb2f627e203d09345afd53a0e7120a25aec1d52ac5b1a1d0e626a8c37a02677a8eb47d5bed0b45db3264f2c4e33a6d7175bddd9b0e09e0efafa
7
- data.tar.gz: 7af4989d8267bef92f06347af2bdd8cfaa668bf15c4e142111549939bcd4b8b4fa97c845d7cc29e23d48a8c386734600858689d02877e84c9bef3e3712277ac6
6
+ metadata.gz: 352994d3ecc7cd967b0f60169ebb6572b741c08f09d402ee686491aa340c7b360fa5154ccbdc4cc9072d02c8794478d8bc783be740a2063dac6d4ab7aedc725b
7
+ data.tar.gz: b896cbd7d9c0a0da623b07392dc35def1f5e17a6168272d02284f88b361a6d834612bd491669fb51106090a24f93e7abc3ad20dbd7c6e4570c59ef0e588ac110
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.1 - 2022-02-19
4
+ - Fixed `TypeError` in `private_class_method` call in Ruby < 3.0.0
5
+
3
6
  ## v1.0.0 - 2022-02-19
4
7
  - Initial release
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2022 Stephan Tarulli
2
+
3
+ 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:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Crockford32
4
4
  # The library version.
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
data/lib/crockford32.rb CHANGED
@@ -226,8 +226,8 @@ module Crockford32
226
226
  result.freeze
227
227
  end
228
228
 
229
- private_class_method [:le_decode_number, :convert, :into_string, :raw_value_to_number,
230
- :string_to_integer, :string_to_integer_unrolled, :le_encode_number]
229
+ private_class_method :le_decode_number, :convert, :into_string, :raw_value_to_number,
230
+ :string_to_integer, :string_to_integer_unrolled, :le_encode_number
231
231
 
232
232
  # @!endgroup
233
233
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crockford32
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephan Tarulli
@@ -17,20 +17,15 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - ".standard.yml"
21
20
  - CHANGELOG.md
22
- - Gemfile
23
- - Gemfile.lock
21
+ - LICENSE
24
22
  - README.md
25
- - Rakefile
26
- - bin/console
27
- - bin/setup
28
- - crockford32.gemspec
29
23
  - lib/crockford32.rb
30
24
  - lib/crockford32/errors.rb
31
25
  - lib/crockford32/version.rb
32
26
  homepage: https://github.com/tinychameleon/crockford32
33
- licenses: []
27
+ licenses:
28
+ - MIT
34
29
  metadata:
35
30
  homepage_uri: https://github.com/tinychameleon/crockford32
36
31
  source_code_uri: https://github.com/tinychameleon/crockford32
data/.standard.yml DELETED
@@ -1,2 +0,0 @@
1
- # For available configuration options, see:
2
- # https://github.com/testdouble/standard
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec
6
-
7
- gem "rake", "~> 13.0"
8
- gem "minitest", "~> 5.0"
9
- gem "benchmark-ips", "~> 2.10"
10
- gem "debug", "~> 1.4"
11
- gem "standard", "~> 1.3"
12
- gem "yard", "~> 0.9.27"
data/Gemfile.lock DELETED
@@ -1,63 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- crockford32 (1.0.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.2)
10
- benchmark-ips (2.10.0)
11
- debug (1.4.0)
12
- irb (>= 1.3.6)
13
- reline (>= 0.2.7)
14
- io-console (0.5.11)
15
- irb (1.4.1)
16
- reline (>= 0.3.0)
17
- minitest (5.15.0)
18
- parallel (1.21.0)
19
- parser (3.1.0.0)
20
- ast (~> 2.4.1)
21
- rainbow (3.1.1)
22
- rake (13.0.6)
23
- regexp_parser (2.2.1)
24
- reline (0.3.1)
25
- io-console (~> 0.5)
26
- rexml (3.2.5)
27
- rubocop (1.25.1)
28
- parallel (~> 1.10)
29
- parser (>= 3.1.0.0)
30
- rainbow (>= 2.2.2, < 4.0)
31
- regexp_parser (>= 1.8, < 3.0)
32
- rexml
33
- rubocop-ast (>= 1.15.1, < 2.0)
34
- ruby-progressbar (~> 1.7)
35
- unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.15.2)
37
- parser (>= 3.0.1.1)
38
- rubocop-performance (1.13.2)
39
- rubocop (>= 1.7.0, < 2.0)
40
- rubocop-ast (>= 0.4.0)
41
- ruby-progressbar (1.11.0)
42
- standard (1.7.2)
43
- rubocop (= 1.25.1)
44
- rubocop-performance (= 1.13.2)
45
- unicode-display_width (2.1.0)
46
- webrick (1.7.0)
47
- yard (0.9.27)
48
- webrick (~> 1.7.0)
49
-
50
- PLATFORMS
51
- x86_64-darwin-19
52
-
53
- DEPENDENCIES
54
- benchmark-ips (~> 2.10)
55
- crockford32!
56
- debug (~> 1.4)
57
- minitest (~> 5.0)
58
- rake (~> 13.0)
59
- standard (~> 1.3)
60
- yard (~> 0.9.27)
61
-
62
- BUNDLED WITH
63
- 2.3.3
data/Rakefile DELETED
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
- require "standard/rake"
6
- require "yard"
7
-
8
- Rake::TestTask.new(:test) do |t|
9
- t.libs << "test"
10
- t.libs << "lib"
11
- t.test_files = FileList["test/**/test_*.rb"]
12
- end
13
-
14
- YARD::Rake::YardocTask.new do |t|
15
- t.files = ["lib/**/*.rb", "-", "CHANGELOG.md"]
16
- t.options = ["--private", "-o", "./docs"]
17
- end
18
-
19
- task default: %i[test standard]
20
-
21
- desc "Benchmark the current implementation"
22
- task benchmark: [] do |t|
23
- sh "date; ruby test/benchmarks/current.rb"
24
- end
data/bin/console DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "crockford32"
6
-
7
- require "irb"
8
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- bundle install
5
- bundle exec rake test standard
data/crockford32.gemspec DELETED
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/crockford32/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "crockford32"
7
- spec.version = Crockford32::VERSION
8
- spec.authors = ["Stephan Tarulli"]
9
- spec.email = ["srt@tinychameleon.com"]
10
-
11
- spec.summary = "A fast little-endian implementation of Crockford's Base32 specification."
12
- spec.description = "A fast little-endian implementation of Crockford's Base32 specification."
13
- spec.homepage = "https://github.com/tinychameleon/crockford32"
14
- spec.required_ruby_version = ">= 2.6.0"
15
-
16
- spec.metadata["homepage_uri"] = spec.homepage
17
- spec.metadata["source_code_uri"] = spec.homepage
18
- spec.metadata["changelog_uri"] = File.join(spec.homepage, "blob/main/CHANGELOG.md")
19
- spec.metadata["bug_tracker_uri"] = File.join(spec.homepage, "issues")
20
- spec.metadata["documentation_uri"] = "https://tinychameleon.github.io/crockford32/"
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
27
- end
28
- end
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- # Uncomment to register a new dependency of your gem
34
- # spec.add_dependency "example-gem", "~> 1.0"
35
-
36
- # For more information and examples about making a new gem, check out our
37
- # guide at: https://bundler.io/guides/creating_gem.html
38
- end