boxr 1.11.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6969054c88e9121a9e493624a6ca310e25ecef80e7e090a0787072316c134d14
4
- data.tar.gz: 3bfbb76ecc1ea2b5ee087957d287c6c19cd83ad1ae7223cfaf63e15860c85746
3
+ metadata.gz: 81bc808dde71fc65c270c2a145ee55c5dd6ac48ef964e9156512dbc04bb6ddf7
4
+ data.tar.gz: cc3d5e5140ef46fc95ff138d1fa79534e0bae12dc14e04bc54d212236cfc0ab9
5
5
  SHA512:
6
- metadata.gz: d13fcc1f7f992e067ca2e08c46dc76b415e61876081cdfd3d0431d5eebe3e7a012647278e4242a649c50b94cc29f44cc06ae1a817040b1fa979f4bd1eb9d850e
7
- data.tar.gz: b60656c4fe173dd46ab2db57cad3d9db619c2e9eb234a47b7894ef7a22a37b35fad1bcdaf4842258f8fc0da490686b0b8a1b4be7620e0e0d05aded338947947d
6
+ metadata.gz: 8f9bbc5f449301705e0919f122f9d55819ea7be821f2e081ee5d5f913db4d4cddf31d50f98cb831f4a9bbb2b59687a39ccbbecd71ac5d489d33d81760ea43b2e
7
+ data.tar.gz: 2181831ee3b4732c7ad4152aad85b51ef8f7dd951f25ab1cc6059b031f8653e6554961e3159585fe1ef1d72f125f0afe2d916f1acf4f0c26b7d69aaf2b5c0701
@@ -1,9 +1,9 @@
1
1
  module Boxr
2
2
  class Client
3
3
 
4
- def groups(fields: [])
4
+ def groups(fields: [], offset: 0, limit: DEFAULT_LIMIT)
5
5
  query = build_fields_query(fields, GROUP_FIELDS_QUERY)
6
- groups = get_all_with_pagination(GROUPS_URI, query: query, offset: 0, limit: DEFAULT_LIMIT)
6
+ groups = get_all_with_pagination(GROUPS_URI, query: query, offset: offset, limit: limit)
7
7
  end
8
8
 
9
9
  def group_from_id(group_id, fields: [])
@@ -39,21 +39,21 @@ module Boxr
39
39
  result
40
40
  end
41
41
 
42
- def group_memberships(group)
42
+ def group_memberships(group, offset: 0, limit: DEFAULT_LIMIT)
43
43
  group_id = ensure_id(group)
44
44
  uri = "#{GROUPS_URI}/#{group_id}/memberships"
45
- memberships = get_all_with_pagination(uri, offset: 0, limit: DEFAULT_LIMIT)
45
+ memberships = get_all_with_pagination(uri, offset: offset, limit: limit)
46
46
  end
47
47
 
48
- def group_memberships_for_user(user)
48
+ def group_memberships_for_user(user, offset: 0, limit: DEFAULT_LIMIT)
49
49
  user_id = ensure_id(user)
50
50
  uri = "#{USERS_URI}/#{user_id}/memberships"
51
- memberships = get_all_with_pagination(uri, offset: 0, limit: DEFAULT_LIMIT)
51
+ memberships = get_all_with_pagination(uri, offset: offset, limit: limit)
52
52
  end
53
53
 
54
- def group_memberships_for_me
54
+ def group_memberships_for_me(offset: 0, limit: DEFAULT_LIMIT)
55
55
  uri = "#{USERS_URI}/me/memberships"
56
- memberships = get_all_with_pagination(uri, offset: 0, limit: DEFAULT_LIMIT)
56
+ memberships = get_all_with_pagination(uri, offset: offset, limit: limit)
57
57
  end
58
58
 
59
59
  def group_membership_from_id(membership_id)
@@ -89,11 +89,11 @@ module Boxr
89
89
  result
90
90
  end
91
91
 
92
- def group_collaborations(group)
92
+ def group_collaborations(group, offset: 0, limit: DEFAULT_LIMIT)
93
93
  group_id = ensure_id(group)
94
94
  uri = "#{GROUPS_URI}/#{group_id}/collaborations"
95
- collaborations = get_all_with_pagination(uri, offset: 0, limit: DEFAULT_LIMIT)
95
+ collaborations = get_all_with_pagination(uri, offset: offset, limit: limit)
96
96
  end
97
97
 
98
98
  end
99
- end
99
+ end
@@ -1,3 +1,3 @@
1
1
  module Boxr
2
- VERSION = "1.11.0"
2
+ VERSION = "1.11.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Burnette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-06 00:00:00.000000000 Z
11
+ date: 2019-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler