andrewfun 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/andrewfun.rb +1 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a66364fa6ea8fa0e38f3f9b63642e125eb6bfcd9b6525384dafc975d01834d06
4
- data.tar.gz: 18c817c7cd0c7ba359bf6c8ac74e7458c3976ddb73d2bbdc55dde50ca21d25f2
3
+ metadata.gz: 1a3f2e10ab44dc4288c96e6ede0f6425a8306f85b30e64043e95eb0784afbf5f
4
+ data.tar.gz: 1b3d33fb1b1c6f6eb886086fcfc40af7d3db10bcb167b78545870464370ae9a0
5
5
  SHA512:
6
- metadata.gz: 4e74cfa47501a38fbd7de20de662c62e597dd50e7d06a45eb662870ef71dda3166c91112449f46aeb39fd22d9d76a0887445544f6ddf9919a2d6c2e10440bf5f
7
- data.tar.gz: bea473da9d2a62ce2fc465b25abb6411b090891e9267371c0cd5bd46e7c4cd993b7e84946dfd91f5d4cc12af954cb55f1445aa9ef7399713a333a4ba83bae953
6
+ metadata.gz: 654a1977a9ef336fc32c2b0df735a33901a91dabdc797d99db0031bc2de54fa9fd5fbc786e6d3b33e06cf0d388686d293e65a6ac997c33788b6bd0e132bd493a
7
+ data.tar.gz: 2b9727d32dbdd2eaa9f2dce5751047a9bcf0d174cc2d983916d6cf376dc82227692f0125b5fb1f8a3d382c69e3490b983c2c6b2db798a5fd6f197e865a87303d
data/lib/andrewfun.rb CHANGED
@@ -48,9 +48,7 @@ class Andrewfun
48
48
  puts headers
49
49
  authorizedMessage = HTTParty.get(url, :headers => headers)
50
50
  authorizationResult = JSON.parse(authorizedMessage.body)
51
- if authorizationResult["authorized"] != true
52
- render json: authorizationResult, status: 401
53
- end
51
+ return authorizationResult
54
52
  end
55
53
 
56
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andrewfun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - andrew van beek