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 +4 -4
- data/lib/boxr/groups.rb +11 -11
- data/lib/boxr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81bc808dde71fc65c270c2a145ee55c5dd6ac48ef964e9156512dbc04bb6ddf7
|
4
|
+
data.tar.gz: cc3d5e5140ef46fc95ff138d1fa79534e0bae12dc14e04bc54d212236cfc0ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f9bbc5f449301705e0919f122f9d55819ea7be821f2e081ee5d5f913db4d4cddf31d50f98cb831f4a9bbb2b59687a39ccbbecd71ac5d489d33d81760ea43b2e
|
7
|
+
data.tar.gz: 2181831ee3b4732c7ad4152aad85b51ef8f7dd951f25ab1cc6059b031f8653e6554961e3159585fe1ef1d72f125f0afe2d916f1acf4f0c26b7d69aaf2b5c0701
|
data/lib/boxr/groups.rb
CHANGED
@@ -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:
|
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:
|
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:
|
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:
|
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:
|
95
|
+
collaborations = get_all_with_pagination(uri, offset: offset, limit: limit)
|
96
96
|
end
|
97
97
|
|
98
98
|
end
|
99
|
-
end
|
99
|
+
end
|
data/lib/boxr/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|