bwapi 9.2.0 → 10.0.0.pre.462

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 54745a7fe83b43554cf7150273f94a647ed39ac1
4
- data.tar.gz: 686636443ed408321d31d6d7df970dfdb2c1675d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ N2MxM2RiMzM4NjBiODljMmQyNDc0NTUzNWFhMWYxODNmZjlhZWMxYQ==
5
+ data.tar.gz: !binary |-
6
+ NTNkOTg3ZTM2NGRjMGRmYTIwZTQxNjE5NDcwZmExYThlZWIxYjA4Ng==
5
7
  SHA512:
6
- metadata.gz: a19c53601f03a90d5e9ee47ef6fac5d6e376ac99270b98741f77f2749d49fbc3735536ba0ea447e087127c603f86fc47fe9f6f2c2fbab16c85d5019c558b4ed4
7
- data.tar.gz: bd5bfa23ab480303be7b795d3c99cfc7056aaf31e2b4a2d5636b811b6d7db363ad62bea9ee958af08d528b22b4af7895a4c6b145f85891f9c188bcf8af289237
8
+ metadata.gz: !binary |-
9
+ ZGVhOTg5N2VhNDg3ZTM4NjQ4Y2IzMzI3MzM1NTI4ZjQzOGIxNWQ2NzYxNDIx
10
+ Mzc5NjM2MTcyZDhmMzE0N2JjY2QzMGQ0N2M2YjZkODM5Y2IyMTc4YTRmYjA0
11
+ MWMzNDcyM2NkNGJiOGE5OTg0ZWMyZWY5NGI3YWE4M2MxMmY5NmU=
12
+ data.tar.gz: !binary |-
13
+ NzgzY2EzNTViMTNkYWE3NDg0Zjc5MjdhOGM3NGViZTNjY2RhMThjYTg3NDgw
14
+ ZTE0OGZjYjViNzBjNWU5OWMwMjI2MGZkMGUxNTAxMDQ0ZTlmMGYxNjIxOTM0
15
+ Y2IwYWM2ZGFkNzNmZDA3ZDE5ZmM4M2FiODY0MTU0YWM1NTg5MDM=
data/.gitignore CHANGED
@@ -2,6 +2,7 @@
2
2
  *.rbc
3
3
  .bundle
4
4
  .config
5
+ .idea
5
6
  coverage
6
7
  InstalledFiles
7
8
  lib/bundler/man
data/.travis.yml CHANGED
@@ -17,5 +17,5 @@ deploy:
17
17
  secure: g7xKyeiMs2o1HLokzOWCiLKxmTaEmuQDB0he9kxFhjqMLbRQHu1pVL0uE2bD0K/zq8Ebb+OPchVmej/6s5Be97AOK5d1wGdBAhXISwlxPoXxLJ6zU5DF1vjF3YCZK197z81ATcGcocsD2eYXZ4NzJcI+FW3kzO6QQhfHfUUeHvM=
18
18
  gem: bwapi
19
19
  on:
20
- branch: master
20
+ branch: staging
21
21
  repo: jonathanchrisp/bwapi
data/CONTRIBUTING.md CHANGED
@@ -8,7 +8,8 @@ If you would like to contribute to this project please fork the repo and follow
8
8
  * Exisiting RSpec unit tests still pass
9
9
  * No [Rubocop](https://github.com/bbatsov/rubocop) offenses have been introduced
10
10
  4. Create a new pull request merging into the staging branch (unit and rubocop tests will automatically run on travis)
11
- 5. Update PR if the code reviewer returns comments or tests fail in step above
12
- 6. Once merged the gem version + gemspec date will be updated and merged into the master branch
13
- 7. Travis will create a pre release gem on any merge into the master branch
14
- 8. Once the pre release gem is tested and approved the new gem version will be pushed to rubygems
11
+ 5. Update PR if the code reviewer returns comments or tests fail in the step above
12
+ 6. Once merged into the staging branch travis will create a new pre release gem
13
+ 7. Please test your changes locally using the new pre release gem
14
+ 8. Subject to confirmation that the changes are working as expected the gem version + gemspec date will be updated
15
+ 9. As before a new pre release gem will be created for the new version, once tested and approved the new gem version will be pushed to rubygems
data/bwapi.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.name = 'bwapi'
5
5
  s.version = BWAPI::VERSION
6
6
  s.version = BWAPI::VERSION + ".pre.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
7
- s.date = '2014-10-20'
7
+ s.date = '2014-10-29'
8
8
  s.summary = 'Brandwatch API Wrapper'
9
9
  s.description = 'A Ruby wrapper for the Brandwatch API'
10
10
  s.author = 'Jonathan Chrisp'
@@ -1,5 +1,4 @@
1
1
  require 'bwapi/client/brandwatch/become'
2
- require 'bwapi/client/brandwatch/client_modules'
3
2
  require 'bwapi/client/brandwatch/clients'
4
3
 
5
4
  module BWAPI
@@ -26,7 +25,6 @@ module BWAPI
26
25
  end
27
26
 
28
27
  include BWAPI::Client::Brandwatch::Become
29
- include BWAPI::Client::Brandwatch::ClientModules
30
28
  include BWAPI::Client::Brandwatch::Clients
31
29
  end
32
30
  end
@@ -1,3 +1,5 @@
1
+ require 'bwapi/client/brandwatch/clients/modules'
2
+
1
3
  module BWAPI
2
4
  class Client
3
5
  module Brandwatch
@@ -90,6 +92,8 @@ module BWAPI
90
92
  def update_client(client_id, opts = {})
91
93
  put "brandwatch/clients/#{client_id}", opts
92
94
  end
95
+
96
+ include BWAPI::Client::Brandwatch::Clients::Modules
93
97
  end
94
98
  end
95
99
  end
@@ -0,0 +1,27 @@
1
+ module BWAPI
2
+ class Client
3
+ module Brandwatch
4
+ module Clients
5
+ # Clientmodules module for brandwatch/client/modules endpoints
6
+ module Modules
7
+ # Get a specific clients modules
8
+ #
9
+ # @param client_id [Integer] Id of the client
10
+ # @return [Hash] Specific clients modules
11
+ def brandwatch_client_modules(client_id)
12
+ get "brandwatch/clients/#{client_id}/modules"
13
+ end
14
+
15
+ # Update brandwatch client modules
16
+ #
17
+ # @param opts [Hash] options Hash of parameters
18
+ # @option opts [Array] brandwatch/client/modules Client Modules to edit
19
+ # @return [Hash] Updated client modules
20
+ def update_brandwatch_client_modules(opts = {})
21
+ put "brandwatch/clients/#{client_id}/modules", opts
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
data/lib/bwapi/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # BWAPI Version
2
2
  module BWAPI
3
- VERSION = '9.2.0'
3
+ VERSION = '10.0.0'
4
4
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.0
4
+ version: 10.0.0.pre.462
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-20 00:00:00.000000000 Z
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.24.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.24.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: allotment
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.9.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.9.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: faraday_middleware
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.9.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.9.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: faraday_middleware-parse_oj
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.3.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.3.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: oj
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.10.2
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.10.2
111
111
  description: A Ruby wrapper for the Brandwatch API
@@ -115,10 +115,10 @@ executables:
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".editorconfig"
119
- - ".gitignore"
120
- - ".rubocop.yml"
121
- - ".travis.yml"
118
+ - .editorconfig
119
+ - .gitignore
120
+ - .rubocop.yml
121
+ - .travis.yml
122
122
  - CHANGELOG.md
123
123
  - CONTRIBUTING.md
124
124
  - Gemfile
@@ -137,8 +137,8 @@ files:
137
137
  - lib/bwapi/client/admin/search.rb
138
138
  - lib/bwapi/client/brandwatch.rb
139
139
  - lib/bwapi/client/brandwatch/become.rb
140
- - lib/bwapi/client/brandwatch/client_modules.rb
141
140
  - lib/bwapi/client/brandwatch/clients.rb
141
+ - lib/bwapi/client/brandwatch/clients/modules.rb
142
142
  - lib/bwapi/client/client.rb
143
143
  - lib/bwapi/client/command_center.rb
144
144
  - lib/bwapi/client/command_center/client.rb
@@ -225,17 +225,17 @@ require_paths:
225
225
  - lib
226
226
  required_ruby_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - ">="
228
+ - - ! '>='
229
229
  - !ruby/object:Gem::Version
230
230
  version: 1.9.2
231
231
  required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - ">="
233
+ - - ! '>'
234
234
  - !ruby/object:Gem::Version
235
- version: '0'
235
+ version: 1.3.1
236
236
  requirements: []
237
237
  rubyforge_project:
238
- rubygems_version: 2.2.2
238
+ rubygems_version: 2.4.2
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Brandwatch API Wrapper
@@ -243,4 +243,3 @@ test_files:
243
243
  - spec/bwapi/client_spec.rb
244
244
  - spec/bwapi_spec.rb
245
245
  - spec/helper.rb
246
- has_rdoc:
@@ -1,25 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Brandwatch
4
- # ClientModules module for brandwatch/clientModules endpoints
5
- module ClientModules
6
- # Get a specific clients modules
7
- #
8
- # @param client_id [Integer] Id of the client
9
- # @return [Hash] Specific clients modules
10
- def brandwatch_client_modules(client_id)
11
- get "brandwatch/clientModules/#{client_id}"
12
- end
13
-
14
- # Update brandwatch client modules
15
- #
16
- # @param opts [Hash] options Hash of parameters
17
- # @option opts [Array] ClientModules Client Modules to edit
18
- # @return [Hash] Update client modules
19
- def update_brandwatch_client_module(opts = {})
20
- put 'brandwatch/clientModules', opts
21
- end
22
- end
23
- end
24
- end
25
- end