macaroons 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +6 -10
- data/README.md +1 -1
- data/Rakefile +6 -0
- data/lib/macaroons/raw_macaroon.rb +1 -1
- data/lib/macaroons/version.rb +1 -1
- data/macaroons.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c24ccbb616bafba7546cb904283b8c19224799c
|
4
|
+
data.tar.gz: 96698e3f05b423e8c0f474e02c2743e1efa7e39c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ccf628dd21a2391328cf8f8a108a2b7d8e4b1aced95925f286b967925cfde11e2b8f4d80c67e331198f44300188830dcc9fe2fca05485033d007082e8c9624
|
7
|
+
data.tar.gz: 482f6d19165844ca29d8d4ef6d899b6f35588644c66415aa557750df9b5289a40b04c0518ad3214d2201abf9d2ea257c09896f113116db74820283348a3c36fa
|
data/.travis.yml
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
+
sudo: false
|
1
2
|
language: ruby
|
2
3
|
rvm:
|
3
|
-
- 2.1
|
4
|
+
- 2.3.1
|
5
|
+
- 2.2.5
|
6
|
+
- 2.1.10
|
4
7
|
- 2.0.0
|
5
|
-
|
6
|
-
|
7
|
-
- tar xzvf libsodium-0.7.0.tar.gz
|
8
|
-
- cd libsodium-0.7.0
|
9
|
-
- ./configure && make && make check && sudo make install
|
10
|
-
- sudo ldconfig
|
11
|
-
- cd ..
|
12
|
-
install: "bundle install"
|
13
|
-
script: rspec .
|
8
|
+
cache: bundler
|
9
|
+
script: bundle exec rspec
|
14
10
|
after_success: coveralls
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](https://coveralls.io/r/localmed/ruby-macaroons?branch=master)
|
4
4
|
[](http://badge.fury.io/rb/macaroons)
|
5
5
|
|
6
|
-
This is a Ruby implementation of macaroons. The implementation is stable but
|
6
|
+
This is a Ruby implementation of macaroons. The implementation is stable but could still be subject to change, pending any standardization attempts around macaroons.
|
7
7
|
|
8
8
|
## What is a Macaroon?
|
9
9
|
Macaroons, like cookies, are a form of bearer credential. Unlike opaque tokens, macaroons embed *caveats* that define specific authorization requirements for the *target service*, the service that issued the root macaroon and which is capable of verifying the integrity of macaroons it recieves.
|
data/Rakefile
ADDED
@@ -12,7 +12,7 @@ module Macaroons
|
|
12
12
|
|
13
13
|
def initialize(key: nil, identifier: nil, location: nil)
|
14
14
|
if key.nil? || identifier.nil? || location.nil?
|
15
|
-
raise ArgumentError, 'Must provide all three: (key,
|
15
|
+
raise ArgumentError, 'Must provide all three: (key, identifier, location)'
|
16
16
|
end
|
17
17
|
|
18
18
|
@key = key
|
data/lib/macaroons/version.rb
CHANGED
data/macaroons.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
spec.required_ruby_version = "~> 2.0"
|
19
|
-
spec.add_dependency "multi_json", "~> 1.10
|
19
|
+
spec.add_dependency "multi_json", "~> 1.10"
|
20
20
|
spec.add_dependency "rbnacl", "~> 3.2"
|
21
21
|
spec.add_dependency "rbnacl-libsodium", "~> 1.0"
|
22
22
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macaroons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Cordell
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.10
|
21
|
+
version: '1.10'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.10
|
28
|
+
version: '1.10'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rbnacl
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- Gemfile
|
154
154
|
- LICENSE
|
155
155
|
- README.md
|
156
|
+
- Rakefile
|
156
157
|
- lib/macaroons.rb
|
157
158
|
- lib/macaroons/caveat.rb
|
158
159
|
- lib/macaroons/errors.rb
|