blockstack 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/README.md +2 -2
- data/blockstack.gemspec +1 -1
- data/circle.yml +12 -0
- data/lib/blockstack/version.rb +1 -1
- metadata +4 -4
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0ae25a74cbfba5ff2cc4ad49e4961aba83ecab
|
4
|
+
data.tar.gz: 86aee3c67f74bcc010d4be2a9b27458cd5bf38a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7c6c4a97e00aa1a99b4d684c8954308027cc595a7203845166288bcd60761f9e116f6fba926208cd5d0e21d6438842c7016ddd56de54d1c3695648066a9c3f
|
7
|
+
data.tar.gz: f11c41e1a38fc8689e3cf2b0f2a1371c4910b1f7f207712c36b1c050200dc8e0f87ad1fe26405e8b2415763cde15da717527abb1b53a9ad7af4ca301801463e2
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -39,13 +39,13 @@ require "blockstack"
|
|
39
39
|
begin
|
40
40
|
auth_response = request.params['authResponse']
|
41
41
|
|
42
|
-
decoded_auth_response =
|
42
|
+
decoded_auth_response = Blockstack.verify_auth_response auth_response
|
43
43
|
|
44
44
|
# login succeeded
|
45
45
|
users_unique_id = decoded_auth_response['iss']
|
46
46
|
verified_username = decoded_auth_response['username'] # nil if not provided
|
47
47
|
profile = decoded_auth_response['profile']
|
48
|
-
rescue
|
48
|
+
rescue Blockstack::InvalidAuthResponse => error
|
49
49
|
# login failed
|
50
50
|
end
|
51
51
|
```
|
data/blockstack.gemspec
CHANGED
data/circle.yml
ADDED
data/lib/blockstack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blockstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Larry Salibra
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: jwt
|
84
|
+
name: jwt-blockstack
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -130,7 +130,6 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- ".gitignore"
|
133
|
-
- ".travis.yml"
|
134
133
|
- Gemfile
|
135
134
|
- LICENSE.txt
|
136
135
|
- README.md
|
@@ -138,6 +137,7 @@ files:
|
|
138
137
|
- bin/console
|
139
138
|
- bin/setup
|
140
139
|
- blockstack.gemspec
|
140
|
+
- circle.yml
|
141
141
|
- lib/blockstack.rb
|
142
142
|
- lib/blockstack/version.rb
|
143
143
|
homepage: https://github.com/larrysalibra/blockstack-ruby
|