ed448 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -6
- data/lib/ed448.rb +2 -1
- data/lib/ed448/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85ce43aac8c68800b31f7822be4244001e2b8ad625af784107c4694e8853390c
|
4
|
+
data.tar.gz: 6e55e7d4dd908f43bc076df315fb806ce91f56aa9c3722dccec5e8f025bf3c26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd8bbe02268d7a07862abe72d8082bd4be95873579fb78ad4040438e5b522ace9e5103149257e9889d7bd9d534d3871ca62672c7e0bc75c38f1651a907acf8f
|
7
|
+
data.tar.gz: eefeee4a5261c45eda0657dceb84f729939490c7b3bf323a92220d252c8555d0a7cae325990b321e4e90883ae7b78f1adf8b809eb3d3c08566a0fb2980d45cad
|
data/README.md
CHANGED
@@ -1,15 +1,28 @@
|
|
1
|
-
#
|
1
|
+
# Ed448
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ed448rb`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
3
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
7
|
+
This gem needs libgoldilocks(https://github.com/otrv4/libgoldilocks)
|
8
|
+
|
9
|
+
First, install libgoldilocks as described in [libgoldilocks](https://github.com/otrv4/libgoldilocks).
|
10
|
+
|
11
|
+
And then, set environment variable as followings:
|
12
|
+
|
13
|
+
```
|
14
|
+
export LIBGOLDILOCKS=path/to/library
|
15
|
+
```
|
16
|
+
|
17
|
+
In most cases, the path will be
|
18
|
+
|
19
|
+
* `/usr/local/lib/libgoldilocks.dylib` on macOS
|
20
|
+
* `/usr/local/lib/libgoldilocks.so` on Ubuntu
|
21
|
+
|
9
22
|
Add this line to your application's Gemfile:
|
10
23
|
|
11
24
|
```ruby
|
12
|
-
gem '
|
25
|
+
gem 'ed448'
|
13
26
|
```
|
14
27
|
|
15
28
|
And then execute:
|
@@ -18,7 +31,7 @@ And then execute:
|
|
18
31
|
|
19
32
|
Or install it yourself as:
|
20
33
|
|
21
|
-
$ gem install
|
34
|
+
$ gem install ed448
|
22
35
|
|
23
36
|
## Usage
|
24
37
|
|
@@ -32,7 +45,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
45
|
|
33
46
|
## Contributing
|
34
47
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Yamaguchi/ed448rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
49
|
|
37
50
|
## License
|
38
51
|
|
data/lib/ed448.rb
CHANGED
@@ -16,7 +16,8 @@ module Ed448
|
|
16
16
|
# macOS
|
17
17
|
# ENV['LIBGOLDILOCKS'] = '/usr/local/lib/libgoldilocks.dylib'
|
18
18
|
def init
|
19
|
-
raise
|
19
|
+
raise LoadError unless ENV['LIBGOLDILOCKS']
|
20
|
+
raise LoadError unless File.exist?(ENV['LIBGOLDILOCKS'])
|
20
21
|
|
21
22
|
ffi_lib(ENV['LIBGOLDILOCKS'])
|
22
23
|
load_functions
|
data/lib/ed448/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ed448
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hajime Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|