File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88/tmp /
99.idea /
1010
11- license_key.key
12- license_key.pub
11+ keys / *
12+ ! keys / .keep
1313
1414# rspec failure tracking
1515.rspec_status
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require "code0/license"
77# You can add fixtures and/or initialization code here to make experimenting
88# with your gem easier. You can also use a different console, if you like.
99
10- key_file = File . read ( "license_key .#{ ARGV . shift } " )
10+ key_file = File . read ( "keys/license_encryption_key_test .#{ ARGV . shift } " )
1111key = OpenSSL ::PKey ::RSA . new ( key_file )
1212
1313Code0 ::License . encryption_key = key
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ require "code0/license"
88key_pair = OpenSSL ::PKey ::RSA . generate ( 4096 )
99
1010# Write it to a file to use in the license generation application.
11- File . write ( "license_key .key" , key_pair . to_pem )
11+ File . write ( "keys/license_encryption_key_test .key" , key_pair . to_pem )
1212
1313# Extract the public key.
1414public_key = key_pair . public_key
1515# Write it to a file to ship along with the main application.
16- File . write ( "license_key .pub" , public_key . to_pem )
16+ File . write ( "keys/license_encryption_key_test .pub" , public_key . to_pem )
You can’t perform that action at this time.
0 commit comments