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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 511f7637a0d6963e65acfd2cbaaf7dd00dabf788
4
- data.tar.gz: 74a86c0ef1aae46ec7f2dc850c9c584e9a637b3b
2
+ SHA256:
3
+ metadata.gz: a421280a88036f2a55dd025ad6ac1c5f2d4650a1b3224e49aa8aace62c2c9bd0
4
+ data.tar.gz: eb70251af2fab9ec23bab85b462be6c492be09c95b22a0a673041d8f58fb2cef
5
5
  SHA512:
6
- metadata.gz: '05862baa88aaeb0d3867c2862dc5a10ee1ab5fe4a9347abf12a6ff106f5b8306618a572fa9613d778f13aa566eb3aeee0f32c9a689151cc2b90a82105720e0dc'
7
- data.tar.gz: 0ecb74d4b10ec7ce169825a606321b27e6e3ccd75da35146b9b0ab54c2dc09f293449966507b33924d8c79a86bb3a11fc07723867c12a17f790386fd25b5e208
6
+ metadata.gz: 55eb37eb857dd3643e15bf5934d6369b642da672098476404d993b329a43199e4df9e701d34eaeebc17b6b2825e283fa7ce0af5620993edd7954e1aaa26dedef
7
+ data.tar.gz: 40a37f1d9575b306f4a8a72146ac7f7324a85b02c6d8d5adc58089271455bf119b2c1a0c979a75977c0596819c50a4e9fbd4a17c4d6047a364dc17566e917d7a
data/.travis.yml CHANGED
@@ -1,5 +1,9 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.3.3
5
- before_install: gem install bundler -v 1.16.1
3
+ - 2.3.8
4
+ - 2.4.5
5
+ - 2.5.3
6
+ dist: xenial
7
+ before_install:
8
+ - scripts/build-libsodium
9
+ - gem install bundler -v 1.16.1
data/Gemfile CHANGED
@@ -4,5 +4,3 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in paseto.gemspec
6
6
  gemspec
7
-
8
- gem 'rbnacl', :git => 'https://github.com/anirishduck/rbnacl'
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.2.0)
12
- rbnacl-libsodium (~> 1.0)
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.23)
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-libsodium (1.0.16)
26
- rbnacl (>= 3.0.1)
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.1
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
@@ -1,5 +1,5 @@
1
1
  require 'base64'
2
- require 'rbnacl/libsodium'
2
+ require 'rbnacl'
3
3
 
4
4
  require 'paseto/version'
5
5
  require 'paseto/error'
@@ -1,3 +1,3 @@
1
1
  module Paseto
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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-libsodium', '~> 1.0'
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'
@@ -0,0 +1,10 @@
1
+ #!/bin/sh
2
+
3
+ set -e
4
+
5
+ wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz
6
+ tar -zxf libsodium-1.0.16.tar.gz
7
+ cd libsodium-1.0.16
8
+ ./configure
9
+ make
10
+ sudo make install
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.2.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-16 00:00:00.000000000 Z
12
+ date: 2018-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rbnacl-libsodium
15
+ name: rbnacl
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.0'
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: '1.0'
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.8
133
+ rubygems_version: 2.7.6
133
134
  signing_key:
134
135
  specification_version: 4
135
136
  summary: Ruby impl of Paseto