bwapi 12.1.0.pre.668 → 12.1.0.pre.670

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2M0NGRjMTUxM2ZmZjI1NWI2YjhlNGY5MGNhOWJhZmMwYWQ2MDY0MA==
4
+ NzQwOGVkOTU2Zjg5YzdhN2I1ZTU2ZjA0M2VmNmFjYzgyYjljYWVlNA==
5
5
  data.tar.gz: !binary |-
6
- ZDc4OTZlNTczNzg1Y2I3ODNiMzNjOGFhZTA1OWE2Yjk3MjdmMThjYw==
6
+ MjQ3NTA3M2E4Njg0OTc0ODhkMjkzNzQ4YzFmNDJiZTliYmNhMzg5Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGJjNzAyNTk2MjMxN2RmMTg2YWQ1Y2FiYjFhZWZjMjdjYmIwZGM4ZTFmNzAy
10
- NTJkZWNhMjMzNWY2YjVlMjU1MWNlNzBlNTk0NmZmOWZlMjliMGIxOTc0MmRm
11
- OWM3N2VjNDIxY2M2YmYwNzU1YjA2NDViZDliYTIwN2Q4NmFmMWI=
9
+ NzBmM2MxYTFjNDQwYzAwM2EyOGIzNzI2ZWIxYzhmNjhmZTg3NDY3YzBhZDBj
10
+ YmU3YTZiY2Y1YjNkOTQzNmVlZmVhMzU1OGFkOGQ5YTA5MWI3MzQ5Y2Y1M2Zh
11
+ NjY2ZWI4MmE3NGQ3ZDIxMDI5M2NjMDJlYzBiZGQ5Y2I3ODg3YmQ=
12
12
  data.tar.gz: !binary |-
13
- M2RhMmY2ZTUyNTVmZjY1ODU0ZTYwOTBmMWUzOWUwMDZjNTNlNmNiYTI5ZDEz
14
- MTViZDFhZWMwZmUwMzQ5MTgzZWJlYTkwNjg4ZGNjN2ZjN2U5N2ZiYTk3Y2Rk
15
- MDk0N2M1YjgxNjg1NmJmNDQ4MDE5ODBlOTE5NmQyOWY1MDNiY2E=
13
+ MzNjMWJiMjI4Y2QwNGI1ODNhOWY5NDdkZjE2MjllMWZmMzkwOGQ3M2M4NzAy
14
+ NGQyNTNhN2FlNDVlZTMxMmJmMzhmMTYyNTAzOThiOGU4ZDk1Njk4NmIzMjNk
15
+ NmE1MzUzZjc2OWYyODNkMjQyZjAxNTk3NzhmZjgyMDZmYWJhODA=
@@ -1,5 +1,4 @@
1
1
  require 'bwapi/client/brandwatch/clients/command_center'
2
- require 'bwapi/client/brandwatch/clients/grant_types'
3
2
  require 'bwapi/client/brandwatch/clients/users'
4
3
  require 'bwapi/client/brandwatch/clients/modules'
5
4
 
@@ -97,7 +96,6 @@ module BWAPI
97
96
  end
98
97
 
99
98
  include BWAPI::Client::Brandwatch::Clients::CommandCenter
100
- include BWAPI::Client::Brandwatch::Clients::GrantTypes
101
99
  include BWAPI::Client::Brandwatch::Clients::Users
102
100
  include BWAPI::Client::Brandwatch::Clients::Modules
103
101
  end
@@ -1,4 +1,3 @@
1
- require 'bwapi/client/client/grant_types'
2
1
  require 'bwapi/client/client/pricing_options'
3
2
  require 'bwapi/client/client/sub_clients'
4
3
 
@@ -41,7 +40,6 @@ module BWAPI
41
40
  get '/client/usage'
42
41
  end
43
42
 
44
- include BWAPI::Client::Client::GrantTypes
45
43
  include BWAPI::Client::Client::PricingOptions
46
44
  include BWAPI::Client::Client::SubClients
47
45
  end
@@ -1,7 +1,6 @@
1
1
  require 'bwapi/client/user/facebook'
2
2
  require 'bwapi/client/user/instagram_credentials'
3
3
  require 'bwapi/client/user/notifications'
4
- require 'bwapi/client/user/tokens'
5
4
  require 'bwapi/client/user/twitter_credentials'
6
5
 
7
6
  module BWAPI
@@ -114,7 +113,6 @@ module BWAPI
114
113
  include BWAPI::Client::User::Facebook
115
114
  include BWAPI::Client::User::InstagramCredentials
116
115
  include BWAPI::Client::User::Notifications
117
- include BWAPI::Client::User::Tokens
118
116
  include BWAPI::Client::User::TwitterCredentials
119
117
  end
120
118
  end
@@ -21,7 +21,7 @@ module BWAPI
21
21
 
22
22
  def on_complete(response)
23
23
  key = response[:status].to_i
24
- fail ERROR_MAP[key].new(response) if ERROR_MAP.key? key
24
+ raise ERROR_MAP[key].new(response) if ERROR_MAP.key? key
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.1.0.pre.668
4
+ version: 12.1.0.pre.670
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -165,7 +165,6 @@ files:
165
165
  - lib/bwapi/client/brandwatch/clients/command_center/themes.rb
166
166
  - lib/bwapi/client/brandwatch/clients/command_center/users.rb
167
167
  - lib/bwapi/client/brandwatch/clients/command_center/users/access.rb
168
- - lib/bwapi/client/brandwatch/clients/grant_types.rb
169
168
  - lib/bwapi/client/brandwatch/clients/modules.rb
170
169
  - lib/bwapi/client/brandwatch/clients/users.rb
171
170
  - lib/bwapi/client/brandwatch/command_center.rb
@@ -178,7 +177,6 @@ files:
178
177
  - lib/bwapi/client/brandwatch/price_structures/clients.rb
179
178
  - lib/bwapi/client/brandwatch/usage_report.rb
180
179
  - lib/bwapi/client/client.rb
181
- - lib/bwapi/client/client/grant_types.rb
182
180
  - lib/bwapi/client/client/pricing_options.rb
183
181
  - lib/bwapi/client/client/sub_clients.rb
184
182
  - lib/bwapi/client/command_center.rb
@@ -275,7 +273,6 @@ files:
275
273
  - lib/bwapi/client/user/facebook.rb
276
274
  - lib/bwapi/client/user/instagram_credentials.rb
277
275
  - lib/bwapi/client/user/notifications.rb
278
- - lib/bwapi/client/user/tokens.rb
279
276
  - lib/bwapi/client/user/twitter_credentials.rb
280
277
  - lib/bwapi/configuration.rb
281
278
  - lib/bwapi/connection.rb
@@ -1,38 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Brandwatch
4
- module Clients
5
- # GrantTypes module for brandwatch/clients/{client_id}/granttypes endpoints
6
- module GrantTypes
7
- # Retrieve grant type specified for given client, if a configured oAuth grant type constraint exists.
8
- #
9
- # TODO: Add parameters documentation
10
- def get_grant_type(client_id, grant_type)
11
- get "brandwatch/clients/#{client_id}/grantTypes/#{grant_type}"
12
- end
13
-
14
- # Create a new ClientGrantType constraint
15
- #
16
- # TODO: Add parameters documentation
17
- def create_grant_type(opts = {})
18
- post 'brandwatch/clients/grantTypes', opts
19
- end
20
-
21
- # Update an existing ClientGrantType constraint
22
- #
23
- # TODO: Add parameters documentation
24
- def update_grant_type(opts = {})
25
- put 'brandwatch/clients/grantTypes', opts
26
- end
27
-
28
- # Delete an existing ClientGrantType constraint
29
- #
30
- # TODO: Add parameters documentation
31
- def delete_grant_type(opts = {})
32
- delete 'brandwatch/clients/grantTypes', opts
33
- end
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,15 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Client
4
- # GrantTypes module for client/grantTypes endpoints
5
- module GrantTypes
6
- # Retrieve current User's Client's grant type specified.
7
- #
8
- # TODO: Add parameters documentation
9
- def client_grant_type(grant_type)
10
- get "/client/grantTypes/#{grant_type}"
11
- end
12
- end
13
- end
14
- end
15
- end
@@ -1,22 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module User
4
- # Tokens module for user/tokens endpoints
5
- module Tokens
6
- # Get all active API access tokens owned by the current user
7
- #
8
- # TODO: Add parameters documentation
9
- def user_tokens(opts = {})
10
- get '/user/tokens', opts
11
- end
12
-
13
- # Remove a token
14
- #
15
- # TODO: Add parameters documentation
16
- def delete_user_token(access_token)
17
- delete "/user/tokens/#{access_token}"
18
- end
19
- end
20
- end
21
- end
22
- end