bwapi 12.1.0.pre.655 → 12.1.0.pre.666

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODFlZTI4YTZmNjBlYTA0YmE0MTI2YzFlYjQxOGE0NTRjMTU5OTQwNA==
4
+ NzMzZmQ4ODJlNzgxOTE2ZTY5Y2I1YTFjMDc1MzNhZTIyZjJmMjU4Zg==
5
5
  data.tar.gz: !binary |-
6
- MjBiOWY2ZDMxYWM5MTEzMDhmMTYyZjc1ZjBiN2UxNjlmMjc2MDJiOQ==
6
+ OWEwYjgyNmEwNTk1MDAzOGM5NDJlNGNiMzg5MTFiNGRhMTkxZjRhNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2NiZGUzZDIyNWYxNGNhNzdlOWYzMTA1MDdkZWIxOGRmYTA4YmI0NWMwYWFj
10
- MDFlN2Y3MjM4ODk3YmNlMWViMGEzMWZhMjQxM2E1NWU1MDRhNjViYWIwNmMx
11
- MGIxN2QwZDkyNTFmZGU3ZGNmMGFiMjdkMzU5YWJkZWU1MDI0YmM=
9
+ ODRlZWUxM2ZkOGQ5NjA0Y2UwOGZlYjYzNjk2NTM4NGE1NTRjMGM2NjkyYTU4
10
+ MTZhODBhOWY0OWRiMjU1ZDkyMTE3YjA3ZjViN2QxMTA3NmI4ODVhZmExYmY5
11
+ ODM1MTdkNWMyN2NlNzNmY2Y4N2VhYjAxNjE0MDg0MDdmZjQ2Yzk=
12
12
  data.tar.gz: !binary |-
13
- Y2MxMmRiMDljOTdjMTc0NmViOTFjNDdkNzUyNDY1Zjg1Y2RjZDNiMDIzMGEy
14
- MGM5NWFhNTRkMWVlOGNjMTdjNDExMDFjMjhmODE5ZWZiN2U1NzgxMzhkZmJk
15
- N2JkMWRiODZhYjBmMGUxMGRkNTYyY2ZhMWQzODU4ZTk5MTA3NjI=
13
+ YTBlMjM5NDgwYWM1NWIyYmJiZDA2NmE0YjFiMzg5Zjg1NzVjOGE5MTViYzhl
14
+ YmZkOWFhMWUxZTdmMjAyYWIxZDhkMzJjM2UyMjliMTliMzNjZmUyMjBhY2Y4
15
+ YjVjYjJkNTliNWNkMzNlMjQyYzVmYzdmYzMzM2UyOTBjNjM1MDQ=
data/.travis.yml CHANGED
@@ -1,5 +1,10 @@
1
1
  language: ruby
2
+
3
+ before_install:
4
+ - gem update bundler
5
+
2
6
  cache: bundler
7
+
3
8
  rvm:
4
9
  - ruby-head
5
10
  - 2.2.0
@@ -23,7 +23,7 @@ module BWAPI
23
23
 
24
24
  oauth_request opts
25
25
  end
26
- alias_method :login, :oauth_token
26
+ alias login oauth_token
27
27
 
28
28
  # Refresh a authenticated users oauth_token
29
29
  #
@@ -46,7 +46,7 @@ module BWAPI
46
46
 
47
47
  oauth_request opts
48
48
  end
49
- alias_method :refresh, :oauth_refresh_token
49
+ alias refresh oauth_refresh_token
50
50
 
51
51
  # Determines grant-type used for client
52
52
  #
data/lib/bwapi/default.rb CHANGED
@@ -9,11 +9,11 @@ module BWAPI
9
9
  module Default
10
10
  ADAPTER = Faraday.default_adapter
11
11
 
12
- API_ENDPOINT = 'https://newapi.brandwatch.com/'
12
+ API_ENDPOINT = 'https://newapi.brandwatch.com/'.freeze
13
13
 
14
- CLIENT_ID = 'brandwatch-api-client'
14
+ CLIENT_ID = 'brandwatch-api-client'.freeze
15
15
 
16
- GRANT_TYPE = 'api-password'
16
+ GRANT_TYPE = 'api-password'.freeze
17
17
 
18
18
  USER_AGENT = "BWAPI Ruby Gem #{BWAPI::VERSION}".freeze
19
19
 
@@ -17,7 +17,7 @@ module BWAPI
17
17
  501 => BWAPI::NotImplemented,
18
18
  502 => BWAPI::BadGateway,
19
19
  503 => BWAPI::ServiceUnavailable
20
- }
20
+ }.freeze
21
21
 
22
22
  def on_complete(response)
23
23
  key = response[:status].to_i
@@ -18,7 +18,7 @@ module BWAPI
18
18
  end
19
19
 
20
20
  def call(env)
21
- @recording = ("#{env.method}#{env.url.path}").tr!('/', '_')
21
+ @recording = "#{env.method}#{env.url.path}".tr!('/', '_')
22
22
  Allotment.start(@recording)
23
23
  super
24
24
  end
data/lib/bwapi/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # BWAPI Version
2
2
  module BWAPI
3
- VERSION = '12.1.0'
3
+ VERSION = '12.1.0'.freeze
4
4
  end
@@ -229,26 +229,28 @@ describe BWAPI::Configuration do
229
229
 
230
230
  describe '.keys' do
231
231
  it 'should return the correct list of keys' do
232
- expect(BWAPI::Configuration.keys).to eql([
233
- :access_token,
234
- :access_token_expiry,
235
- :adapter,
236
- :api_endpoint,
237
- :client_id,
238
- :client_secret,
239
- :connection_options,
240
- :debug,
241
- :grant_type,
242
- :logger,
243
- :open_timeout,
244
- :password,
245
- :performance,
246
- :refresh_token,
247
- :timeout,
248
- :user_agent,
249
- :username,
250
- :verify_ssl
251
- ])
232
+ expect(BWAPI::Configuration.keys).to eql(
233
+ [
234
+ :access_token,
235
+ :access_token_expiry,
236
+ :adapter,
237
+ :api_endpoint,
238
+ :client_id,
239
+ :client_secret,
240
+ :connection_options,
241
+ :debug,
242
+ :grant_type,
243
+ :logger,
244
+ :open_timeout,
245
+ :password,
246
+ :performance,
247
+ :refresh_token,
248
+ :timeout,
249
+ :user_agent,
250
+ :username,
251
+ :verify_ssl
252
+ ]
253
+ )
252
254
  end
253
255
  end
254
256
 
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.655
4
+ version: 12.1.0.pre.666
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  version: 1.3.1
312
312
  requirements: []
313
313
  rubyforge_project:
314
- rubygems_version: 2.4.5
314
+ rubygems_version: 2.5.1
315
315
  signing_key:
316
316
  specification_version: 4
317
317
  summary: Brandwatch API Wrapper