bwapi 7.0.4 → 7.1.0.pre.317
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 +13 -5
- data/bwapi.gemspec +1 -1
- data/lib/bwapi/client.rb +2 -2
- data/lib/bwapi/client/{location.rb → locations.rb} +6 -6
- data/lib/bwapi/client/projects/categories.rb +5 -0
- data/lib/bwapi/client/projects/categories/copy.rb +23 -0
- data/lib/bwapi/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MzEwMGQzODhhYWYzMTc3MDIyODk3Yjk5ZDMzMzE1MDg3OGM0ZGRkMw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
Mjc5NzM0NDZlMDI1MWM4NmU3NmM3ZmQ3ODY1Zjk2ZDVlMTgyOTBhNA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NmJmMTg2MzdhNTA0OGY0MWEzNmFkM2VmYzAwMDU0NjMwY2QyZWQxNWQ5MGI0
|
10
|
+
ZjBmODQ4NTBmYWYyZDIzMDczMDRiMzA1ZTY4OGVkOGIyZGJhYzcwMWE0MjE0
|
11
|
+
MTg2NTUwZWRkMDYyMTAwZWE3MzJiYTg2NWUwY2FkYjE3ODcwOTY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZDEwMjAwMzNkNzg3YjcwYWZmZmI3MzM0ZTI3ZGEyZjVkMWI2ODA1ZGQzZjJj
|
14
|
+
ZDllMmQxZjJjMWRhOTdiMDYwOTY3ZTVlMTFmZmJhMGM3YTZmNjZkMGUzODNi
|
15
|
+
Y2M0NzY0MDRkODI4NzNlOTY3ZjNlMDZiMzQyMjI3ODA2NDIxYWQ=
|
data/bwapi.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'bwapi'
|
7
7
|
s.version = BWAPI::VERSION
|
8
8
|
s.version = BWAPI::VERSION + ".pre.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
9
|
-
s.date = '2014-05-
|
9
|
+
s.date = '2014-05-05'
|
10
10
|
s.summary = 'Brandwatch API Wrapper'
|
11
11
|
s.description = 'A Ruby wrapper for the Brandwatch API'
|
12
12
|
s.author = 'Jonathan Chrisp'
|
data/lib/bwapi/client.rb
CHANGED
@@ -11,7 +11,7 @@ require 'bwapi/client/command_center'
|
|
11
11
|
require 'bwapi/client/error_codes'
|
12
12
|
require 'bwapi/client/filters'
|
13
13
|
require 'bwapi/client/languages'
|
14
|
-
require 'bwapi/client/
|
14
|
+
require 'bwapi/client/locations'
|
15
15
|
require 'bwapi/client/logout'
|
16
16
|
require 'bwapi/client/me'
|
17
17
|
require 'bwapi/client/metrics'
|
@@ -48,7 +48,7 @@ module BWAPI
|
|
48
48
|
include BWAPI::Client::ErrorCodes
|
49
49
|
include BWAPI::Client::Filters
|
50
50
|
include BWAPI::Client::Languages
|
51
|
-
include BWAPI::Client::
|
51
|
+
include BWAPI::Client::Locations
|
52
52
|
include BWAPI::Client::Logout
|
53
53
|
include BWAPI::Client::Me
|
54
54
|
include BWAPI::Client::Metrics
|
@@ -3,23 +3,23 @@
|
|
3
3
|
module BWAPI
|
4
4
|
class Client
|
5
5
|
# Location module for locations endpoints
|
6
|
-
module
|
6
|
+
module Locations
|
7
7
|
# Request the information for a given location code
|
8
8
|
#
|
9
9
|
# @return [Hashie::Mash] Information about the location
|
10
|
-
def
|
11
|
-
get "
|
10
|
+
def locations(location_code)
|
11
|
+
get "locations/#{location_code}"
|
12
12
|
end
|
13
13
|
|
14
|
-
#
|
14
|
+
# Locations a location name with candidates
|
15
15
|
#
|
16
16
|
# @param opts [String] prefix that the location starts with
|
17
17
|
# @option opts [Array] a list of location types to return
|
18
18
|
# @option opts [Integer] page number of results to retrieve
|
19
19
|
# @option opts [Integer] pageSize of the results to retrieve
|
20
20
|
# @return [Hashie::Mash] The list of matching locations
|
21
|
-
def
|
22
|
-
post '
|
21
|
+
def locations(opts = {})
|
22
|
+
post 'locations', opts
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -1,4 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'bwapi/client/projects/categories/copy'
|
4
|
+
|
2
5
|
module BWAPI
|
3
6
|
class Client
|
4
7
|
module Projects
|
@@ -50,6 +53,8 @@ module BWAPI
|
|
50
53
|
def delete_category(project_id, category_id)
|
51
54
|
delete "projects/#{project_id}/categories/#{category_id}"
|
52
55
|
end
|
56
|
+
|
57
|
+
include BWAPI::Client::Projects::Categories::Copy
|
53
58
|
end
|
54
59
|
end
|
55
60
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module BWAPI
|
4
|
+
class Client
|
5
|
+
module Projects
|
6
|
+
module Categories
|
7
|
+
# Mentions module for projects/categories/copy endpoints
|
8
|
+
module Copy
|
9
|
+
# Copy and existing category to another project
|
10
|
+
#
|
11
|
+
# @param project_id [Integer] Id of project
|
12
|
+
# @param category_id [Integer] Id of query group
|
13
|
+
# @param opts [Hash] options hash of parameters
|
14
|
+
# @option opts [Hash] destinationProjectId target project id for copy
|
15
|
+
# @return [Hashie::Mash] Copied category
|
16
|
+
def copy_category(project_id, category_id, opts = {})
|
17
|
+
post "projects/#{project_id}/categories/#{category_id}/copy", opts
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/bwapi/version.rb
CHANGED
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: 7.0.
|
4
|
+
version: 7.1.0.pre.317
|
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-05-
|
11
|
+
date: 2014-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.14.1
|
20
|
-
- - '>='
|
20
|
+
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.14.1
|
23
23
|
type: :development
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 2.14.1
|
30
|
-
- - '>='
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.14.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
@@ -37,7 +37,7 @@ dependencies:
|
|
37
37
|
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 0.21.0
|
40
|
-
- - '>='
|
40
|
+
- - ! '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.21.0
|
43
43
|
type: :development
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 0.21.0
|
50
|
-
- - '>='
|
50
|
+
- - ! '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 0.21.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
- - ~>
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: 0.9.0
|
74
|
-
- - '>='
|
74
|
+
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 0.9.0
|
77
77
|
type: :runtime
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 0.9.0
|
84
|
-
- - '>='
|
84
|
+
- - ! '>='
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 0.9.0
|
87
87
|
- !ruby/object:Gem::Dependency
|
@@ -91,7 +91,7 @@ dependencies:
|
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 0.9.0
|
94
|
-
- - '>='
|
94
|
+
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.9.0
|
97
97
|
type: :runtime
|
@@ -101,7 +101,7 @@ dependencies:
|
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 0.9.0
|
104
|
-
- - '>='
|
104
|
+
- - ! '>='
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: 0.9.0
|
107
107
|
- !ruby/object:Gem::Dependency
|
@@ -111,7 +111,7 @@ dependencies:
|
|
111
111
|
- - ~>
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: 2.1.1
|
114
|
-
- - '>='
|
114
|
+
- - ! '>='
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 2.1.1
|
117
117
|
type: :runtime
|
@@ -121,7 +121,7 @@ dependencies:
|
|
121
121
|
- - ~>
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: 2.1.1
|
124
|
-
- - '>='
|
124
|
+
- - ! '>='
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: 2.1.1
|
127
127
|
- !ruby/object:Gem::Dependency
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
- - ~>
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: 0.7.7
|
134
|
-
- - '>='
|
134
|
+
- - ! '>='
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: 0.7.7
|
137
137
|
type: :runtime
|
@@ -141,7 +141,7 @@ dependencies:
|
|
141
141
|
- - ~>
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: 0.7.7
|
144
|
-
- - '>='
|
144
|
+
- - ! '>='
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: 0.7.7
|
147
147
|
description: A Ruby wrapper for the Brandwatch API
|
@@ -189,7 +189,7 @@ files:
|
|
189
189
|
- lib/bwapi/client/error_codes.rb
|
190
190
|
- lib/bwapi/client/filters.rb
|
191
191
|
- lib/bwapi/client/languages.rb
|
192
|
-
- lib/bwapi/client/
|
192
|
+
- lib/bwapi/client/locations.rb
|
193
193
|
- lib/bwapi/client/logout.rb
|
194
194
|
- lib/bwapi/client/me.rb
|
195
195
|
- lib/bwapi/client/metrics.rb
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/bwapi/client/projects/bulkactions/author.rb
|
201
201
|
- lib/bwapi/client/projects/bulkactions/mentions.rb
|
202
202
|
- lib/bwapi/client/projects/categories.rb
|
203
|
+
- lib/bwapi/client/projects/categories/copy.rb
|
203
204
|
- lib/bwapi/client/projects/data.rb
|
204
205
|
- lib/bwapi/client/projects/data/mentions.rb
|
205
206
|
- lib/bwapi/client/projects/data/volume.rb
|
@@ -253,14 +254,14 @@ require_paths:
|
|
253
254
|
- lib
|
254
255
|
required_ruby_version: !ruby/object:Gem::Requirement
|
255
256
|
requirements:
|
256
|
-
- - '>='
|
257
|
+
- - ! '>='
|
257
258
|
- !ruby/object:Gem::Version
|
258
259
|
version: 1.9.2
|
259
260
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
261
|
requirements:
|
261
|
-
- - '
|
262
|
+
- - ! '>'
|
262
263
|
- !ruby/object:Gem::Version
|
263
|
-
version:
|
264
|
+
version: 1.3.1
|
264
265
|
requirements: []
|
265
266
|
rubyforge_project:
|
266
267
|
rubygems_version: 2.2.2
|
@@ -273,4 +274,3 @@ test_files:
|
|
273
274
|
- spec/bwapi_spec.rb
|
274
275
|
- spec/fixtures/.netrc
|
275
276
|
- spec/helper.rb
|
276
|
-
has_rdoc:
|