sr25519 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9331720979c05775dd52810475846df3672445cf0da2d29369981d2cfe508ff2
4
- data.tar.gz: 685a8d5100fe6b15c2bf4d0f808812fda0e50b7d1ffc2572bef13788fb945578
3
+ metadata.gz: 4410fbe296d51933ad70ac7d650dc3f284415679a202bbd31a8b241ecc197aa5
4
+ data.tar.gz: 240b6a8ded57e70fb19ff1a9cb827feea667db6b8f94043a1df3e36f3c475f3f
5
5
  SHA512:
6
- metadata.gz: c71efd717b9d1388cdc7722b7a284140fe8b846c0a172a3c2945e18507cd53298caa0a02534a1da901e600a11b7e560d875dbe8f6ae51596ce4843010a13c7e1
7
- data.tar.gz: 6188e1bfdb5fe02a824d01824163b3ea8b98584f49eea535c5f3e87fe02035f16b7669e534e7e958800ba4bb4ed3dbe1c9af21ac6e22688b66ab4e5d509e98ff
6
+ metadata.gz: dfb7ca72c9d855583601be1a6dd6aafa49b1ff79bf372dcf52a65d848b4ee708263dd2644570d6fbc14f20dbea98c75721c03c42c40330f51c67972039ce0367
7
+ data.tar.gz: ab2ecfcc66ea295b22fd933edaadeae188801ca0d18b856351eead3ae30fa0c511f5cd29184926e79d7ce440e189693fc9928ad049899d1386f040a899d8c6e2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sr25519 (0.3.0)
4
+ sr25519 (0.4.0)
5
5
  base58
6
6
  blake2b
7
7
 
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 xuxh
3
+ Copyright (c) 2021 UniArts Network
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sr25519
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
data/lib/sr25519_lib.rb CHANGED
@@ -6,8 +6,8 @@ module SR25519Lib
6
6
  ffi_lib FFI::Library::LIBC
7
7
 
8
8
  # The library is compile from https://github.com/Warchant/sr25519-crust
9
- ffi_lib [File.expand_path('lib/libsr25519crust.so')] if RUBY_PLATFORM =~ /linux/
10
- ffi_lib [File.expand_path('lib/libsr25519crust.dylib')] if RUBY_PLATFORM =~ /darwin/
9
+ ffi_lib File.dirname(__FILE__) + '/libsr25519crust.so' if RUBY_PLATFORM =~ /linux/
10
+ ffi_lib File.dirname(__FILE__) + '/libsr25519crust.dylib' if RUBY_PLATFORM =~ /darwin/
11
11
 
12
12
  attach_function :sr25519_keypair_from_seed, [:pointer, :pointer], :void
13
13
  attach_function :sr25519_verify, [:pointer, :pointer, :uint, :pointer], :bool
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sr25519
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - xuxh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake