paseto 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +7 -3
- data/Gemfile +0 -2
- data/Gemfile.lock +6 -14
- data/README.md +6 -0
- data/lib/paseto.rb +1 -1
- data/lib/paseto/version.rb +1 -1
- data/paseto.gemspec +1 -1
- data/scripts/build-libsodium +10 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a421280a88036f2a55dd025ad6ac1c5f2d4650a1b3224e49aa8aace62c2c9bd0
|
4
|
+
data.tar.gz: eb70251af2fab9ec23bab85b462be6c492be09c95b22a0a673041d8f58fb2cef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55eb37eb857dd3643e15bf5934d6369b642da672098476404d993b329a43199e4df9e701d34eaeebc17b6b2825e283fa7ce0af5620993edd7954e1aaa26dedef
|
7
|
+
data.tar.gz: 40a37f1d9575b306f4a8a72146ac7f7324a85b02c6d8d5adc58089271455bf119b2c1a0c979a75977c0596819c50a4e9fbd4a17c4d6047a364dc17566e917d7a
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,29 +1,22 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/anirishduck/rbnacl
|
3
|
-
revision: ff58f9e5dcae0617a3ead398aadd51553c6baed1
|
4
|
-
specs:
|
5
|
-
rbnacl (5.0.0)
|
6
|
-
ffi
|
7
|
-
|
8
1
|
PATH
|
9
2
|
remote: .
|
10
3
|
specs:
|
11
|
-
paseto (0.
|
12
|
-
rbnacl
|
4
|
+
paseto (0.3.0)
|
5
|
+
rbnacl (~> 6.0)
|
13
6
|
|
14
7
|
GEM
|
15
8
|
remote: https://rubygems.org/
|
16
9
|
specs:
|
17
10
|
coderay (1.1.2)
|
18
11
|
diff-lcs (1.3)
|
19
|
-
ffi (1.9.
|
12
|
+
ffi (1.9.25)
|
20
13
|
method_source (0.9.0)
|
21
14
|
pry (0.11.3)
|
22
15
|
coderay (~> 1.1.0)
|
23
16
|
method_source (~> 0.9.0)
|
24
17
|
rake (10.5.0)
|
25
|
-
rbnacl
|
26
|
-
|
18
|
+
rbnacl (6.0.0)
|
19
|
+
ffi
|
27
20
|
rspec (3.7.0)
|
28
21
|
rspec-core (~> 3.7.0)
|
29
22
|
rspec-expectations (~> 3.7.0)
|
@@ -46,8 +39,7 @@ DEPENDENCIES
|
|
46
39
|
paseto!
|
47
40
|
pry (~> 0.11)
|
48
41
|
rake (~> 10.0)
|
49
|
-
rbnacl!
|
50
42
|
rspec (~> 3.0)
|
51
43
|
|
52
44
|
BUNDLED WITH
|
53
|
-
1.16.
|
45
|
+
1.16.3
|
data/README.md
CHANGED
@@ -8,6 +8,9 @@ Ruby implementation of [Paseto](https://github.com/paragonie/paseto) using [libs
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
+
To use Paseto, you will need to install [libsodium][] (at least version `1.0.12` is
|
12
|
+
required). See [Installing libsodium][] for installation instructions.
|
13
|
+
|
11
14
|
Add this line to your application's Gemfile:
|
12
15
|
|
13
16
|
```ruby
|
@@ -22,6 +25,9 @@ Or install it yourself as:
|
|
22
25
|
|
23
26
|
$ gem install paseto
|
24
27
|
|
28
|
+
[libsodium]: https://github.com/jedisct1/libsodium
|
29
|
+
[Installing libsodium]: https://github.com/crypto-rb/rbnacl/wiki/Installing-libsodium
|
30
|
+
|
25
31
|
## Usage
|
26
32
|
|
27
33
|
For all examples:
|
data/lib/paseto.rb
CHANGED
data/lib/paseto/version.rb
CHANGED
data/paseto.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
-
spec.add_dependency 'rbnacl
|
24
|
+
spec.add_dependency 'rbnacl', '~> 6.0'
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paseto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Guymon
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-04
|
12
|
+
date: 2018-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: rbnacl
|
15
|
+
name: rbnacl
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '6.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '6.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/paseto/token.rb
|
110
110
|
- lib/paseto/version.rb
|
111
111
|
- paseto.gemspec
|
112
|
+
- scripts/build-libsodium
|
112
113
|
homepage: https://github.com/mguymon/paseto.rb
|
113
114
|
licenses:
|
114
115
|
- MIT
|
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
130
|
version: '0'
|
130
131
|
requirements: []
|
131
132
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.6
|
133
|
+
rubygems_version: 2.7.6
|
133
134
|
signing_key:
|
134
135
|
specification_version: 4
|
135
136
|
summary: Ruby impl of Paseto
|