macaroons 0.7.0 → 0.7.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
  SHA1:
3
- metadata.gz: 12077081feaaf8fc5433f0ad4b46dfbc37d740fc
4
- data.tar.gz: eb5b5f1d3028790cebd36e218233cf0d5c4df5c3
3
+ metadata.gz: 5c24ccbb616bafba7546cb904283b8c19224799c
4
+ data.tar.gz: 96698e3f05b423e8c0f474e02c2743e1efa7e39c
5
5
  SHA512:
6
- metadata.gz: b6e419caf63482deeda7157835841f35d5dcdf7a1f7ade2e668a760801ee1615ebb4b140987a7305d5387161a7264448095ab459532cf4b2f26e7b095149d31f
7
- data.tar.gz: 3f107670dd47a75d3ec007d7263b4536ee439e80f91c95a0b99a6c84689679bc174e6ffc10037335bd153ffa71301262a5f7fd5f9ce5e2bef2dd6cc49ad8380f
6
+ metadata.gz: c7ccf628dd21a2391328cf8f8a108a2b7d8e4b1aced95925f286b967925cfde11e2b8f4d80c67e331198f44300188830dcc9fe2fca05485033d007082e8c9624
7
+ data.tar.gz: 482f6d19165844ca29d8d4ef6d899b6f35588644c66415aa557750df9b5289a40b04c0518ad3214d2201abf9d2ea257c09896f113116db74820283348a3c36fa
@@ -1,14 +1,10 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
- - 2.1.0
4
+ - 2.3.1
5
+ - 2.2.5
6
+ - 2.1.10
4
7
  - 2.0.0
5
- before_install:
6
- - wget https://github.com/jedisct1/libsodium/releases/download/0.7.0/libsodium-0.7.0.tar.gz
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
  [![Coverage Status](https://img.shields.io/coveralls/localmed/ruby-macaroons.svg)](https://coveralls.io/r/localmed/ruby-macaroons?branch=master)
4
4
  [![Gem Version](https://badge.fury.io/rb/macaroons.svg)](http://badge.fury.io/rb/macaroons)
5
5
 
6
- This is a Ruby implementation of macaroons. The implementation is stable but should be considered temporary, pending any standardization attempts around macaroons.
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.
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -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, id, location)'
15
+ raise ArgumentError, 'Must provide all three: (key, identifier, location)'
16
16
  end
17
17
 
18
18
  @key = key
@@ -1,3 +1,3 @@
1
1
  module Macaroons
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
@@ -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.1"
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.0
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: 2015-12-23 00:00:00.000000000 Z
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.1
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.1
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