bwapi 3.0.0 → 3.0.1.pre.95
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/bwapi.gemspec +1 -1
- data/lib/bwapi/client/projects/sharing.rb +5 -4
- data/lib/bwapi/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDUxMmEwMjkwZTU0OTE4NGQ1ZmUzYzE2MDFiOGI2ZTQwMzhjMTMyMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NDhhNGY5MTlmNWI3YTEzMDViNjRmYzVkODFkODUwYWI0YTI2M2Y4OQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YmQ1NDYwMzhhOGZhZjQ5NDFjZTg2NjY5MGU5ZmQzODQ5MDI0ZTIzMDNiMDcy
|
10
|
+
NTAyMzY2ZjFjYThlMDM3MGY3MDg3YzBkZjU4MzAyMjI5ZTBhNTRjNmEyNTlm
|
11
|
+
ZDkzZTZlZTNjZTczZmY3ODQzMmQxZWJjODI0MWJlODdhM2NhOTc=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjVhYWFhNjQ1ZjE5NmM4OTZjMTM5OWUxMWI3OGI3YTBjOGY1NGQwMTk3YzRm
|
14
|
+
NDkwMGE5OWU3MDVjMzI4M2RhNjM3ODY4MzE2YjhmYTEwMzM2YTMyYzhjOWQw
|
15
|
+
ZjhjNDUyZjg1MzdhZWFlNTE2ZmY4NmE4ZWJmMzI5N2Q4ZThmOTc=
|
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 = '2013-
|
7
|
+
s.date = '2013-12-08'
|
8
8
|
s.summary = 'Brandwatch API Wrapper'
|
9
9
|
s.description = 'A Ruby wrapper for the Brandwatch API'
|
10
10
|
s.author = 'Jonathan Chrisp'
|
@@ -16,7 +16,7 @@ module BWAPI
|
|
16
16
|
#
|
17
17
|
# @param project_id [Integer] Id of project
|
18
18
|
# @param opts [Hash] options hash of parameters
|
19
|
-
# @options
|
19
|
+
# @options opts [Boolean] sharedOnly Boolean flag to return only shared shares (default: false)
|
20
20
|
# @return [Hashie::Mash] Specific project shares
|
21
21
|
def project_sharing project_id, opts={}
|
22
22
|
get "projects/#{project_id}/sharing", opts
|
@@ -26,7 +26,7 @@ module BWAPI
|
|
26
26
|
#
|
27
27
|
# @param project_id [Integer] Id of project
|
28
28
|
# @param opts [Hash] options hash of parameters
|
29
|
-
# @options
|
29
|
+
# @options opts [Array] ProjectShareDTO Shares to be edited
|
30
30
|
# @return [Hashie::Mash] Updated project shares
|
31
31
|
def update_project_sharing project_id, opts={}
|
32
32
|
put "projects/#{project_id}/sharing", opts
|
@@ -45,9 +45,10 @@ module BWAPI
|
|
45
45
|
#
|
46
46
|
# @param project_id [Integer] Id of project
|
47
47
|
# @param user_id [Integer] Id of user
|
48
|
+
# @options opts [Hash] User share to be edited
|
48
49
|
# @return [Hashie::Mash] Updated share of project for user
|
49
|
-
def update_project_sharing_user project_id, user_id
|
50
|
-
put "projects/#{project_id}/sharing/#{user_id}"
|
50
|
+
def update_project_sharing_user project_id, user_id, opts={}
|
51
|
+
put "projects/#{project_id}/sharing/#{user_id}", opts
|
51
52
|
end
|
52
53
|
|
53
54
|
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: 3.0.
|
4
|
+
version: 3.0.1.pre.95
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -172,17 +172,17 @@ require_paths:
|
|
172
172
|
- lib
|
173
173
|
required_ruby_version: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
|
-
- - '>='
|
175
|
+
- - ! '>='
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: 1.9.2
|
178
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- - '
|
180
|
+
- - ! '>'
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version:
|
182
|
+
version: 1.3.1
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.1.
|
185
|
+
rubygems_version: 2.1.11
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Brandwatch API Wrapper
|
@@ -192,4 +192,3 @@ test_files:
|
|
192
192
|
- spec/bwapi_spec.rb
|
193
193
|
- spec/fixtures/.netrc
|
194
194
|
- spec/helper.rb
|
195
|
-
has_rdoc:
|