macaroons 0.5.1 → 0.5.2

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: b14107765c3e83a14fc187461933dfe1e729e8b0
4
- data.tar.gz: 2e84c062ea4002193849926bf7922fc73a81d900
3
+ metadata.gz: 7f785b41ab8ed215285dc2066792f04e1ff997b9
4
+ data.tar.gz: c88ad0cefcc87905148f860aeddaa838a99a4e03
5
5
  SHA512:
6
- metadata.gz: da89cecf838fa7f57ee11ac0fb278a59adcb48cc6a5636a03723c520f2e69ffd9cd9af6cf03e53fe245292da01bc524d77e83231a7e4a4f4ac47e74d7e1f68ca
7
- data.tar.gz: 58a3c3bd502981104c3aa409a07ac6e749561d8af8a82456df4a10304aca1de79b89329f9c7fb2b75073672cb09b9b779a3062cc1e915c98835b58ee92c249d3
6
+ metadata.gz: 03da7e58f5d9ba2579bcd8fe5de8274551e6e191eb3a22e8df0833e37a1985091b425715cfef95d3157af79ee1eeab17d7e2a7957d8416dcb265072e28208887
7
+ data.tar.gz: 02d7bc8aac1c6d55527e4829bfcf21ca89d498aac69f536bbb3d15c16f474b6fa06a51301b06718496614c7698ec91640adfbc8b745c6615090c0501de170e4d
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Macaroons
2
2
  [![Build Status](https://travis-ci.org/localmed/ruby-macaroons.svg?branch=master)](https://travis-ci.org/localmed/ruby-macaroons)
3
3
  [![Coverage Status](https://img.shields.io/coveralls/localmed/ruby-macaroons.svg)](https://coveralls.io/r/localmed/ruby-macaroons?branch=master)
4
+ [![Gem Version](https://badge.fury.io/rb/macaroons.svg)](http://badge.fury.io/rb/macaroons)
4
5
 
5
6
  This is a Ruby implementation of Macaroons. It is still under active development but is in a useable state - please report any bugs in the issue tracker.
6
7
 
@@ -86,7 +86,10 @@ module Macaroons
86
86
  end
87
87
 
88
88
  def base64_url_decode(str)
89
+ str = str.delete('=')
90
+ p str
89
91
  str += '=' * (4 - str.length.modulo(4)).modulo(4)
92
+ p str
90
93
  Base64.urlsafe_decode64(str)
91
94
  end
92
95
 
@@ -1,3 +1,3 @@
1
1
  module Macaroons
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
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.5.1
4
+ version: 0.5.2
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-03-05 00:00:00.000000000 Z
13
+ date: 2015-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json