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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecdab667956e9b9d45514788a635260f120ac6a12fdefd98f7954c08d52f9850
4
- data.tar.gz: 1a95183ddb62962350332cdf6e00ab9e0dcbc605636ef104ac298fa0376072f4
3
+ metadata.gz: 85ce43aac8c68800b31f7822be4244001e2b8ad625af784107c4694e8853390c
4
+ data.tar.gz: 6e55e7d4dd908f43bc076df315fb806ce91f56aa9c3722dccec5e8f025bf3c26
5
5
  SHA512:
6
- metadata.gz: 36b3b2023c0aa5cb4dbfc61513b158f7b82ed00276ba54f7a6840ff60f7070d8fcb840921f8a38748ec0c555fbe9d3272636ca47814ec4f96f4c4c566488beb6
7
- data.tar.gz: 7fed6db9aa41f0034caf5b0dceb6622b66a96f1b70ad956bc1e72adc948934d4560ef91244bd6fc7e675f219a10c4608d87246bbf51724daa8352d5fc7e92935
6
+ metadata.gz: 4bd8bbe02268d7a07862abe72d8082bd4be95873579fb78ad4040438e5b522ace9e5103149257e9889d7bd9d534d3871ca62672c7e0bc75c38f1651a907acf8f
7
+ data.tar.gz: eefeee4a5261c45eda0657dceb84f729939490c7b3bf323a92220d252c8555d0a7cae325990b321e4e90883ae7b78f1adf8b809eb3d3c08566a0fb2980d45cad
data/README.md CHANGED
@@ -1,15 +1,28 @@
1
- # Ed448rb
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 'ed448rb'
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 ed448rb
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/[USERNAME]/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.
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 'libgoldilocks library dose not found.' unless File.exist?(ENV['LIBGOLDILOCKS'])
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
@@ -1,3 +1,3 @@
1
1
  module Ed448
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2019-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi