borsh-rb 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -3
- data/borsh-rb.gemspec +3 -3
- data/lib/borsh/integer.rb +2 -2
- data/lib/borsh/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea49443bda65351efb2ff82517e0cfa3659e37bcc6037cc97039422eff6d32fc
|
4
|
+
data.tar.gz: 459b4eee287216c01fef51d05ff438fb08e3f68c5bae49ff23785c6ffb2d471a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7049e920545c7c5f166258eeec49cee85a6e35e63b4f0ae2c1826eea7f45e3c88d221407bc0c0d9169fefaf22859eb132bee907a209549b47589edcfb294c31c
|
7
|
+
data.tar.gz: c6aad3cfe4175b5a8f181623eb204d9fcd396b9a0a12d6462f9ffc490f31e4d0cf7aec60535aeedfb42e5df5f1e6f437c65965ed686e2ea4e047f7c3969074ea
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
borsh-rb (0.1.
|
4
|
+
borsh-rb (0.1.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -28,7 +28,6 @@ GEM
|
|
28
28
|
rspec-support (3.10.2)
|
29
29
|
|
30
30
|
PLATFORMS
|
31
|
-
arm64-darwin-21
|
32
31
|
x86_64-darwin-20
|
33
32
|
|
34
33
|
DEPENDENCIES
|
@@ -38,4 +37,4 @@ DEPENDENCIES
|
|
38
37
|
rspec (~> 3.10)
|
39
38
|
|
40
39
|
BUNDLED WITH
|
41
|
-
2.
|
40
|
+
2.2.25
|
data/borsh-rb.gemspec
CHANGED
@@ -10,13 +10,13 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "https://borsh.io implementation for ruby"
|
12
12
|
spec.description = ""
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/near-rails-guide/borsh-rb"
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.required_ruby_version = ">= 2.4.0"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/
|
19
|
-
spec.metadata["changelog_uri"] = "https://github.com/
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/near-rails-guide/borsh-rb"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/near-rails-guide/borsh-rb"
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/lib/borsh/integer.rb
CHANGED
@@ -15,8 +15,8 @@ class Borsh::Integer
|
|
15
15
|
when :u64
|
16
16
|
'Q<'
|
17
17
|
when :u128
|
18
|
-
lower = value &
|
19
|
-
higher = (value >> 64) &
|
18
|
+
lower = value & 0xFFFFFFFFFFFFFFFF
|
19
|
+
higher = (value >> 64) & 0xFFFFFFFFFFFFFFFF
|
20
20
|
return [lower, higher].pack('Q<*')
|
21
21
|
else
|
22
22
|
raise Borsh::ArgumentError, "unknown type #{type}"
|
data/lib/borsh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: borsh-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serg Tyatin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -62,13 +62,13 @@ files:
|
|
62
62
|
- lib/borsh/serializer.rb
|
63
63
|
- lib/borsh/string.rb
|
64
64
|
- lib/borsh/version.rb
|
65
|
-
homepage: https://github.com/
|
65
|
+
homepage: https://github.com/near-rails-guide/borsh-rb
|
66
66
|
licenses:
|
67
67
|
- MIT
|
68
68
|
metadata:
|
69
|
-
homepage_uri: https://github.com/
|
70
|
-
source_code_uri: https://github.com/
|
71
|
-
changelog_uri: https://github.com/
|
69
|
+
homepage_uri: https://github.com/near-rails-guide/borsh-rb
|
70
|
+
source_code_uri: https://github.com/near-rails-guide/borsh-rb
|
71
|
+
changelog_uri: https://github.com/near-rails-guide/borsh-rb
|
72
72
|
post_install_message:
|
73
73
|
rdoc_options: []
|
74
74
|
require_paths:
|