asana 0.8.0 → 0.8.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: 7d310a2dce08f1a0d3184d739bca9be4cd8ad88368337595f1ec7ac31330d745
4
- data.tar.gz: eef90d3cc06cf5a93725f20ab4b67e6b369c97a20952c6d50ed249f1c08dc666
3
+ metadata.gz: 9bc6296b155b3b42ce8fc8ab137e43e8d327865c00707e88cb46c9b73746dd92
4
+ data.tar.gz: 832942a530575433b30106c06dc2400434c430ea45b37da4ea91ecfaa9b21cee
5
5
  SHA512:
6
- metadata.gz: 44a15f43e827a51b5f215d892248d9304dd1fc5c584d8a0b6b15a197f550f5ce61b7f7a8c6181eb14581b2a2ff99d60403e7e71b82a342d111fe5e47bfae6f7e
7
- data.tar.gz: 707eb76c9827419e3b89188680bf979cc6007b81eb090b56c319f9b2cf8b4b90712f68796459f95bcda296c6d6df2d6ac27b5b99fc14708a1820f0539085daef
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
- self.new(parse(client.get("/projects/#{project}/sections", options: options)).first, client: client)
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.
@@ -1,5 +1,5 @@
1
1
  #:nodoc:
2
2
  module Asana
3
3
  # Public: Version of the gem.
4
- VERSION = '0.8.0'.freeze
4
+ VERSION = '0.8.1'.freeze
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2