asana 0.8.0 → 0.8.1
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 +4 -4
- data/lib/asana/resources/section.rb +4 -3
- data/lib/asana/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: 9bc6296b155b3b42ce8fc8ab137e43e8d327865c00707e88cb46c9b73746dd92
|
|
4
|
+
data.tar.gz: 832942a530575433b30106c06dc2400434c430ea45b37da4ea91ecfaa9b21cee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f8f4196cf80c3b6101853a51f04b63d2a938f51f8d748d97c736130fa48f843f1a68d21d4728b3f8f206252f8cc203f6dcf3d42bbca2a5a4371c96426e268b2
|
|
7
|
+
data.tar.gz: d46be8861327941a32f0e5a4ae46c178be58859ca0e4db6814d6d57bd8fee518d5c24ed27a90d12f84b008a63e398aec2820986c3ad9591121739f376331a8fc
|
|
@@ -39,10 +39,11 @@ module Asana
|
|
|
39
39
|
# Returns the compact records for all sections in the specified project.
|
|
40
40
|
#
|
|
41
41
|
# project - [Id] The project to get sections from.
|
|
42
|
+
# per_page - [Integer] the number of records to fetch per page.
|
|
42
43
|
# options - [Hash] the request I/O options.
|
|
43
|
-
def find_by_project(client, project: required("project"), options: {})
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
def find_by_project(client, project: required("project"), per_page: 20, options: {})
|
|
45
|
+
params = { limit: per_page }.reject { |_,v| v.nil? || Array(v).empty? }
|
|
46
|
+
Collection.new(parse(client.get("/projects/#{project}/sections", params: params, options: options)), type: self, client: client)
|
|
46
47
|
end
|
|
47
48
|
|
|
48
49
|
# Returns the complete record for a single section.
|
data/lib/asana/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asana
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Txus
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-08
|
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|