arkaan 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9aac1ec9c0b45d28f7864692b4b58e3527a4a32
4
- data.tar.gz: 669584f1e5309b66bffc318becc9a65cff63d19e
3
+ metadata.gz: b41bc45ca378ea3096c7b01067649bd3e329e936
4
+ data.tar.gz: f9a5e0b1e69dcf9a5ca960d425aa6eff0fbde84d
5
5
  SHA512:
6
- metadata.gz: 6657a8de6e536913f6fe750a46f8a87d702857bc02eb3cd6b4a96aec6303823afe8226cc12aca81e7a50b213976fafba3260e2bd7aeb8d55425e819d77702406
7
- data.tar.gz: 8d1a928213fa2402adc06ed720331fb67f50d9af752dad55c426e85721174d0702ef8646d3475ed3270fda1e72d8110842d8d1bbf3279c74ca6bec3c81281f1e
6
+ metadata.gz: 61a7f9b312a46c385014a9cb0dd54a731037bed5d4424e8b22e8f72298db66918bed060fc461f58828416b2dfd69dc05e255c7aa41c80d4a171f2f8c95c96f57
7
+ data.tar.gz: f27cc60e0a0cafef2b3a5c9cf16d6378c039f9ac4931816c737e182bcbeb0f75570f91f2bdea27b40e2460cb8f60c71794e469864aa1f6cc72c2fb7319b43ef5
@@ -81,6 +81,15 @@ module Arkaan
81
81
  return session
82
82
  end
83
83
 
84
+ def check_application(action)
85
+ check_presence('app_key', route: action)
86
+ application = Arkaan::OAuth::Appliation.where(keu: params['app_key']).first
87
+ if application.nil?
88
+ custom_error(404, "#{action}.app_key.unknown")
89
+ end
90
+ return application
91
+ end
92
+
84
93
  # Adds the parsed body to the parameters, overwriting the parameters of the querystring with the values
85
94
  # of the SON body if they have similar keys.
86
95
  def add_body_to_params
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois