zooppa_api 0.0.4 → 0.0.5

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: 4d1955b69eae804f624281b446291d70addabf30
4
- data.tar.gz: cf07034a60e450100af697fc22cd7997d3f19fe2
3
+ metadata.gz: 3daab4d44b1e8b1e33632412ec30887d3a427655
4
+ data.tar.gz: 98a02147d38070efbc1c3e3e1531b3dc3358f63d
5
5
  SHA512:
6
- metadata.gz: b11ee07eb513bac401a384a11ab3ca05d384612953ab56d95928e2dbba9e3894394e1cd2f79037e91337a2e35df961b00203a42516f2dba5daa9c61e70852089
7
- data.tar.gz: 418450a1544fc58bad188afe10ea3c7e18d7c205499d850f1b31dce9772f1c854478194baed732e59d7b1ff2dada78829156543ed7eb5a1e6ea21782f8d4f585
6
+ metadata.gz: 335f43098533535affd26d4a31914ec6f0e93f908239d49c230956dc7d1610ba0af4cfd530c567f611da71e66261e949d0e9b6d451c0442233cfe77ac3a4dac6
7
+ data.tar.gz: 255e63f5be9ab9a7f4deb299f61cf8f7aacca923e3675af474ae835b866a966852521a2a60622d4b21e52ea2f91b5a899540ec3b6df7a815dab30f15deb5ea47
@@ -0,0 +1,9 @@
1
+ module Exceptions
2
+ class Standard < StandardError; end
3
+
4
+ class MissingAuthToken < Standard
5
+ def message
6
+ 'You have to provide a valid auth_token since the API request requires authentication'
7
+ end
8
+ end
9
+ end
data/lib/zooppa_api.rb CHANGED
@@ -3,6 +3,7 @@ require 'json'
3
3
  require 'active_support/core_ext'
4
4
  require 'oauth2'
5
5
  require 'encryptor'
6
+ require 'zooppa_api/exceptions'
6
7
 
7
8
  # Builds a Rest Request
8
9
  # Handles authentication which should slim down logic inside our controllers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooppa_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ulrich Soeffing
@@ -87,6 +87,7 @@ extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
89
  - lib/zooppa_api.rb
90
+ - lib/zooppa_api/exceptions.rb
90
91
  homepage: http://github.com/soeffing/zooppa_api
91
92
  licenses:
92
93
  - MIT