File tree Expand file tree Collapse file tree 6 files changed +11
-4
lines changed
Expand file tree Collapse file tree 6 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11## [ Unreleased]
22
3+ ## [ 0.3] - 2025-09-03
4+
5+ - Breaking change: rename ` sm2_crypto ` to ` sm2-crypto ` to fix rails autoload
6+
37## [ 0.2.2] - 2025-03-26
48
59- Add ASN.1 DER format for sm2 sign and verify
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ $ gem install sm2-crypto
3333### Encrypt and Decrypt
3434
3535``` ruby
36- require ' sm2_crypto '
36+ require ' sm2-crypto '
3737
3838# Generate key pair
3939keypair = OpenSSL ::PKey ::EC .generate(" SM2" )
Original file line number Diff line number Diff line change 22# frozen_string_literal: true
33
44require "bundler/setup"
5- require "sm2_crypto "
5+ require "sm2-crypto "
66
77require "irb"
88IRB . start ( __FILE__ )
Original file line number Diff line number Diff line change 33require "openssl"
44
55module SM2Crypto
6+ VERSION = "0.3.0"
7+
68 module_function
79
810 # Key Derived Function
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
2+ require_relative "lib/sm2-crypto"
23
34Gem ::Specification . new do |spec |
45 spec . name = "sm2-crypto"
5- spec . version = "0.2.2"
6+ spec . version = SM2Crypto :: VERSION
67 spec . authors = [ "Seekr" ]
78 spec . email = [ "wzhao23@gmail.com" ]
89
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33require "minitest/autorun"
4- require "sm2_crypto "
4+ require "sm2-crypto "
55require "base64"
66require "securerandom"
77
You can’t perform that action at this time.
0 commit comments