notion-ruby-client 0.0.8 → 0.1.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -0
  3. data/.gitignore +7 -0
  4. data/.rubocop.yml +9 -0
  5. data/CHANGELOG.md +19 -0
  6. data/Gemfile.lock +29 -7
  7. data/README.md +245 -55
  8. data/bin/console +31 -0
  9. data/lib/notion/api/endpoints/blocks.rb +35 -7
  10. data/lib/notion/api/endpoints/databases.rb +65 -37
  11. data/lib/notion/api/endpoints/pages.rb +6 -6
  12. data/lib/notion/api/endpoints/search.rb +41 -0
  13. data/lib/notion/api/endpoints/users.rb +6 -3
  14. data/lib/notion/api/endpoints.rb +3 -1
  15. data/lib/notion/api/errors/too_many_requests.rb +15 -0
  16. data/lib/notion/api/errors.rb +0 -2
  17. data/lib/notion/config.rb +2 -0
  18. data/lib/notion/pagination/cursor.rb +5 -2
  19. data/lib/notion/version.rb +2 -2
  20. data/lib/notion-ruby-client.rb +2 -0
  21. data/notion-ruby-client.gemspec +3 -1
  22. data/spec/fixtures/notion/block.yml +146 -0
  23. data/spec/fixtures/notion/block_append_children.yml +76 -62
  24. data/spec/fixtures/notion/block_children.yml +80 -65
  25. data/spec/fixtures/notion/create_database.yml +67 -58
  26. data/spec/fixtures/notion/create_page.yml +68 -59
  27. data/spec/fixtures/notion/database.yml +78 -61
  28. data/spec/fixtures/notion/database_query.yml +81 -62
  29. data/spec/fixtures/notion/databases_list.yml +77 -60
  30. data/spec/fixtures/notion/page.yml +70 -57
  31. data/spec/fixtures/notion/paginated_block_children.yml +296 -242
  32. data/spec/fixtures/notion/paginated_database_query.yml +79 -62
  33. data/spec/fixtures/notion/paginated_databases_list.yml +78 -61
  34. data/spec/fixtures/notion/paginated_search.yml +301 -0
  35. data/spec/fixtures/notion/paginated_users_list.yml +143 -130
  36. data/spec/fixtures/notion/search.yml +160 -0
  37. data/spec/fixtures/notion/search_with_query.yml +152 -0
  38. data/spec/fixtures/notion/update_block.yml +148 -0
  39. data/spec/fixtures/notion/update_database.yml +152 -0
  40. data/spec/fixtures/notion/update_page.yml +71 -59
  41. data/spec/fixtures/notion/users.yml +69 -56
  42. data/spec/fixtures/notion/users_list.yml +143 -130
  43. data/spec/notion/api/endpoints/blocks_spec.rb +37 -11
  44. data/spec/notion/api/endpoints/databases_spec.rb +25 -17
  45. data/spec/notion/api/endpoints/pages_spec.rb +7 -16
  46. data/spec/notion/api/endpoints/search_spec.rb +26 -0
  47. data/spec/notion/api/endpoints/users_spec.rb +4 -4
  48. data/spec/notion/pagination/cursor_spec.rb +126 -0
  49. metadata +52 -8
  50. data/.rspec_status +0 -19
  51. data/notion-ruby-client-0.0.4.gem +0 -0
  52. data/scratchpad.rb +0 -22
  53. data/screenshots/create_notion_bot.png +0 -0
@@ -3,38 +3,64 @@ require 'spec_helper'
3
3
 
4
4
  RSpec.describe Notion::Api::Endpoints::Blocks do
5
5
  let(:client) { Notion::Client.new }
6
- let(:page_id) { '723578f1-6e51-450c-8ee1-09158c19fd4c' }
6
+ let(:block_id) { '32af3324-ba02-4516-ae88-5728a4d569f4' }
7
7
  let(:children) do
8
8
  [
9
9
  {
10
- "object": 'block',
11
- "type": 'heading_2',
12
- "heading_2": {
13
- "text": [{ "type": 'text', "text": { "content": 'Another Heading' } }]
10
+ 'object': 'block',
11
+ 'type': 'paragraph',
12
+ 'paragraph': {
13
+ 'text': [
14
+ {
15
+ 'type': 'text',
16
+ 'text': {
17
+ 'content': 'Another children'
18
+ }
19
+ }
20
+ ]
14
21
  }
15
22
  }
16
23
  ]
17
24
  end
18
25
 
19
26
  context 'blocks' do
27
+ it 'retrieves', vcr: { cassette_name: 'block' } do
28
+ response = client.block(block_id: block_id)
29
+ expect(response).not_to be_empty
30
+ end
31
+
32
+ it 'updates', vcr: { cassette_name: 'update_block' } do
33
+ to_do = {
34
+ 'text': [
35
+ {
36
+ 'text': { 'content': 'A todo' }
37
+ }
38
+ ],
39
+ 'checked': true
40
+ }
41
+ to_do_block_id = '6e842658-eb3d-4ea9-9bbf-e86104151729'
42
+ response = client.update_block(block_id: to_do_block_id, 'to_do' => to_do)
43
+ expect(response.id).to eql to_do_block_id
44
+ end
45
+
20
46
  it 'children', vcr: { cassette_name: 'block_children' } do
21
- response = client.block_children(id: page_id)
47
+ response = client.block_children(block_id: block_id)
22
48
  expect(response.results.length).to be >= 1
23
- expect(response.results[0].heading_1.text.first.plain_text).to eql 'A Header'
24
- expect(response.results[1].paragraph.text.first.plain_text).to eql 'A paragraph'
49
+ expect(response.results[0].paragraph.text.first.plain_text).to eql 'The first child'
50
+ expect(response.results[1].paragraph.text.first.plain_text).to eql 'The second child'
25
51
  end
26
52
 
27
53
  it 'paginated children', vcr: { cassette_name: 'paginated_block_children' } do
28
54
  children = []
29
- client.block_children(id: page_id, page_size: 1) do |page|
55
+ client.block_children(block_id: block_id, page_size: 1) do |page|
30
56
  children.concat page.results
31
57
  end
32
58
  expect(children.size).to be >= 1
33
59
  end
34
60
 
35
61
  it 'appends', vcr: { cassette_name: 'block_append_children' } do
36
- response = client.block_append_children(id: page_id, children: children)
37
- expect(response.id).to eql page_id
62
+ response = client.block_append_children(block_id: block_id, children: children)
63
+ expect(response.results.first.type).to eql 'paragraph'
38
64
  end
39
65
  end
40
66
  end
@@ -3,13 +3,13 @@ require 'spec_helper'
3
3
 
4
4
  RSpec.describe Notion::Api::Endpoints::Databases do
5
5
  let(:client) { Notion::Client.new }
6
- let(:database_id) { '89b30a70-ce51-4646-ab4f-5fdcb1d5e76c' }
7
- let(:page_id) { '7cbf38f8-5921-4422-bd3f-a647c3e2544b' }
6
+ let(:database_id) { 'dd428e9dd3fe4171870da7a1902c748b' }
7
+ let(:page_id) { 'c7fd1abe811444eabe779632ea33e581' }
8
8
  let(:title) do
9
9
  [
10
10
  {
11
11
  "text": {
12
- "content": 'Another Notion database'
12
+ "content": 'Orbit 💜 Notion'
13
13
  }
14
14
  }
15
15
  ]
@@ -23,31 +23,39 @@ RSpec.describe Notion::Api::Endpoints::Databases do
23
23
  end
24
24
 
25
25
  context 'databases' do
26
- it 'retrieves', vcr: { cassette_name: 'database' } do
27
- response = client.database(id: database_id)
28
- expect(response.title.first.plain_text).to eql 'A Notion database'
29
- end
30
-
31
26
  it 'queries', vcr: { cassette_name: 'database_query' } do
32
- response = client.database_query(id: database_id)
27
+ response = client.database_query(database_id: database_id)
33
28
  expect(response.results.length).to be >= 1
34
29
  end
35
30
 
31
+ it 'paginated queries', vcr: { cassette_name: 'paginated_database_query' } do
32
+ pages = []
33
+ client.database_query(database_id: database_id, page_size: 1) do |page|
34
+ pages.concat page.results
35
+ end
36
+ expect(pages.size).to be >= 1
37
+ end
38
+
36
39
  it 'creates', vcr: { cassette_name: 'create_database' } do
37
40
  response = client.create_database(
38
41
  parent: { page_id: page_id },
39
42
  title: title,
40
43
  properties: properties
41
44
  )
42
- expect(response.title.first.plain_text).to eql 'Another Notion database'
45
+ expect(response.title.first.plain_text).to eql 'Orbit 💜 Notion'
43
46
  end
44
47
 
45
- it 'paginated queries', vcr: { cassette_name: 'paginated_database_query' } do
46
- pages = []
47
- client.database_query(id: database_id, limit: 1) do |page|
48
- pages.concat page.results
49
- end
50
- expect(pages.size).to be >= 1
48
+ it 'updates', vcr: { cassette_name: 'update_database' } do
49
+ response = client.update_database(
50
+ database_id: database_id,
51
+ title: title
52
+ )
53
+ expect(response.title.first.plain_text).to eql 'Orbit 💜 Notion'
54
+ end
55
+
56
+ it 'retrieves', vcr: { cassette_name: 'database' } do
57
+ response = client.database(database_id: database_id)
58
+ expect(response.title.first.plain_text).to eql 'Orbit 💜 Notion'
51
59
  end
52
60
 
53
61
  it 'lists', vcr: { cassette_name: 'databases_list' } do
@@ -57,7 +65,7 @@ RSpec.describe Notion::Api::Endpoints::Databases do
57
65
 
58
66
  it 'paginated lists', vcr: { cassette_name: 'paginated_databases_list' } do
59
67
  databases = []
60
- client.databases_list(limit: 1) do |page|
68
+ client.databases_list(page_size: 1) do |page|
61
69
  databases.concat page.results
62
70
  end
63
71
  expect(databases.size).to be >= 1
@@ -3,8 +3,8 @@ require 'spec_helper'
3
3
 
4
4
  RSpec.describe Notion::Api::Endpoints::Pages do
5
5
  let(:client) { Notion::Client.new }
6
- let(:database_id) { 'ab7e7b22-7793-492a-ba6b-3295f8b19341' }
7
- let(:page_id) { '2de466f0-9861-466b-9bc2-c987965da010' }
6
+ let(:database_id) { 'dd428e9d-d3fe-4171-870d-a7a1902c748b' }
7
+ let(:page_id) { 'c7fd1abe-8114-44ea-be77-9632ea33e581' }
8
8
  let(:properties) do
9
9
  {
10
10
  "Name": {
@@ -15,15 +15,6 @@ RSpec.describe Notion::Api::Endpoints::Pages do
15
15
  }
16
16
  }
17
17
  ]
18
- },
19
- "Description": {
20
- "rich_text": [
21
- {
22
- "text": {
23
- "content": 'Page description'
24
- }
25
- }
26
- ]
27
18
  }
28
19
  }
29
20
  end
@@ -41,9 +32,9 @@ RSpec.describe Notion::Api::Endpoints::Pages do
41
32
 
42
33
  context 'pages' do
43
34
  it 'retrieves', vcr: { cassette_name: 'page' } do
44
- response = client.page(id: page_id)
35
+ response = client.page(page_id: page_id)
45
36
  expect(response.properties.Name.type).to eql 'title'
46
- expect(response.properties.Name.title.first.plain_text).to eql 'A Notion page'
37
+ expect(response.properties.Name.title.first.plain_text).to eql 'Nicolas Goutay'
47
38
  end
48
39
 
49
40
  it 'creates', vcr: { cassette_name: 'create_page' } do
@@ -60,16 +51,16 @@ RSpec.describe Notion::Api::Endpoints::Pages do
60
51
  "Name": [
61
52
  {
62
53
  "text": {
63
- "content": 'A Notion page'
54
+ "content": 'Nicolas Goutay'
64
55
  }
65
56
  }
66
57
  ]
67
58
  }
68
59
  response = client.update_page(
69
- id: page_id,
60
+ page_id: page_id,
70
61
  properties: properties
71
62
  )
72
- expect(response.properties.Name.title.first.plain_text).to eql 'A Notion page'
63
+ expect(response.properties.Name.title.first.plain_text).to eql 'Nicolas Goutay'
73
64
  end
74
65
  end
75
66
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ require 'spec_helper'
3
+
4
+ RSpec.describe Notion::Api::Endpoints::Search do
5
+ let(:client) { Notion::Client.new }
6
+
7
+ context 'search' do
8
+ it 'searches', vcr: { cassette_name: 'search' } do
9
+ response = client.search
10
+ expect(response.results.size).to eq 2
11
+ end
12
+
13
+ it 'searches with a query', vcr: { cassette_name: 'search_with_query' } do
14
+ response = client.search(query: 'Nicolas')
15
+ expect(response.results.size).to eq 1
16
+ end
17
+
18
+ it 'paginated search', vcr: { cassette_name: 'paginated_search' } do
19
+ results = []
20
+ client.search(page_size: 2) do |page|
21
+ results.concat page.results
22
+ end
23
+ expect(results.size).to eq 2
24
+ end
25
+ end
26
+ end
@@ -7,19 +7,19 @@ RSpec.describe Notion::Api::Endpoints::Users do
7
7
  context 'users' do
8
8
  it 'lists', vcr: { cassette_name: 'users_list' } do
9
9
  response = client.users_list
10
- expect(response.results.size).to be 3
10
+ expect(response.results.size).to be 1
11
11
  end
12
12
 
13
13
  it 'paginated list', vcr: { cassette_name: 'paginated_users_list' } do
14
14
  members = []
15
- client.users_list(limit: 2) do |page|
15
+ client.users_list(page_size: 1) do |page|
16
16
  members.concat page.results
17
17
  end
18
- expect(members.size).to eq 3
18
+ expect(members.size).to eq 1
19
19
  end
20
20
 
21
21
  it 'retrieves', vcr: { cassette_name: 'users' } do
22
- response = client.user(id: 'a8da8d30-c858-4c3d-87ad-3f2d477bd98d')
22
+ response = client.user(user_id: 'a8da8d30-c858-4c3d-87ad-3f2d477bd98d')
23
23
  expect(response.name).to eql 'Nicolas Goutay'
24
24
  end
25
25
  end
@@ -0,0 +1,126 @@
1
+ # frozen_string_literal: true
2
+ require 'spec_helper'
3
+
4
+ RSpec.describe Notion::Api::Pagination::Cursor do
5
+ let(:client) { Notion::Client.new }
6
+
7
+ context 'default cursor' do
8
+ let(:cursor) { described_class.new(client, 'users_list', {}) }
9
+
10
+ it 'provides a default page_size' do
11
+ expect(client).to receive(:users_list).with(page_size: 100)
12
+ cursor.first
13
+ end
14
+
15
+ it 'handles blank response metadata' do
16
+ expect(client).to receive(:users_list).once.and_return(Notion::Messages::Message.new)
17
+ cursor.to_a
18
+ end
19
+
20
+ it 'handles nil response metadata' do
21
+ expect(client).to(
22
+ receive(:users_list).once.and_return(Notion::Messages::Message.new(response: nil))
23
+ )
24
+ cursor.to_a
25
+ end
26
+
27
+ it 'paginates with a cursor inside response metadata' do
28
+ expect(client).to receive(:users_list).twice.and_return(
29
+ Notion::Messages::Message.new(has_more: true, next_cursor: 'next'),
30
+ Notion::Messages::Message.new
31
+ )
32
+ expect(cursor).not_to receive(:sleep)
33
+ cursor.to_a
34
+ end
35
+
36
+ context 'with rate limiting' do
37
+ let(:error) { Notion::Api::Errors::TooManyRequests.new({}) }
38
+
39
+ context 'with default max retries' do
40
+ it 'sleeps after a TooManyRequestsError' do
41
+ expect(client).to(
42
+ receive(:users_list)
43
+ .with(page_size: 100)
44
+ .ordered
45
+ .and_return(Notion::Messages::Message.new({ has_more: true, next_cursor: 'next' }))
46
+ )
47
+ expect(client).to(
48
+ receive(:users_list).with(page_size: 100, start_cursor: 'next').and_raise(error)
49
+ )
50
+ expect(cursor).to receive(:sleep).once.ordered.with(10)
51
+ expect(client).to(
52
+ receive(:users_list)
53
+ .with(page_size: 100, start_cursor: 'next')
54
+ .ordered
55
+ .and_return(Notion::Messages::Message.new)
56
+ )
57
+ cursor.to_a
58
+ end
59
+ end
60
+
61
+ context 'with a custom max_retries' do
62
+ let(:cursor) { described_class.new(client, 'users_list', max_retries: 4) }
63
+
64
+ it 'raises the error after hitting the max retries' do
65
+ expect(client).to(
66
+ receive(:users_list)
67
+ .with(page_size: 100)
68
+ .and_return(Notion::Messages::Message.new({ has_more: true, next_cursor: 'next' }))
69
+ )
70
+ expect(client).to(
71
+ receive(:users_list).with(page_size: 100, start_cursor: 'next').exactly(5).times.and_raise(error)
72
+ )
73
+ expect(cursor).to receive(:sleep).exactly(4).times.with(10)
74
+ expect { cursor.to_a }.to raise_error(error)
75
+ end
76
+ end
77
+
78
+ context 'with a custom retry_after' do
79
+ let(:cursor) { described_class.new(client, 'users_list', retry_after: 5) }
80
+
81
+ it 'sleeps for retry_after seconds after a TooManyRequestsError' do
82
+ expect(client).to(
83
+ receive(:users_list)
84
+ .with(page_size: 100)
85
+ .ordered
86
+ .and_return(Notion::Messages::Message.new({ has_more: true, next_cursor: 'next' }))
87
+ )
88
+ expect(client).to(
89
+ receive(:users_list).with(page_size: 100, start_cursor: 'next').ordered.and_raise(error)
90
+ )
91
+ expect(cursor).to receive(:sleep).once.ordered.with(5)
92
+ expect(client).to(
93
+ receive(:users_list)
94
+ .with(page_size: 100, start_cursor: 'next')
95
+ .ordered
96
+ .and_return(Notion::Messages::Message.new)
97
+ )
98
+ cursor.to_a
99
+ end
100
+ end
101
+ end
102
+ end
103
+
104
+ context 'with a custom page_size' do
105
+ let(:cursor) { described_class.new(client, 'users_list', page_size: 42) }
106
+
107
+ it 'overrides default page_size' do
108
+ expect(client).to receive(:users_list).with(page_size: 42)
109
+ cursor.first
110
+ end
111
+ end
112
+
113
+ context 'with a custom sleep_interval' do
114
+ let(:cursor) { described_class.new(client, 'users_list', sleep_interval: 3) }
115
+
116
+ it 'sleeps between requests' do
117
+ expect(client).to receive(:users_list).exactly(3).times.and_return(
118
+ Notion::Messages::Message.new(has_more: true, next_cursor: 'next_a'),
119
+ Notion::Messages::Message.new(has_more: true, next_cursor: 'next_b'),
120
+ Notion::Messages::Message.new
121
+ )
122
+ expect(cursor).to receive(:sleep).with(3).twice
123
+ cursor.to_a
124
+ end
125
+ end
126
+ end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notion-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0.pre.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Goutay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-27 00:00:00.000000000 Z
11
+ date: 2021-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: faraday
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +86,14 @@ dependencies:
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '10'
89
+ version: '13'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '10'
96
+ version: '13'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rspec
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -171,8 +199,8 @@ extensions: []
171
199
  extra_rdoc_files: []
172
200
  files:
173
201
  - ".github/workflows/ci.yml"
202
+ - ".gitignore"
174
203
  - ".rspec"
175
- - ".rspec_status"
176
204
  - ".rubocop.yml"
177
205
  - ".rubocop_todo.yml"
178
206
  - CHANGELOG.md
@@ -182,17 +210,20 @@ files:
182
210
  - LICENSE.md
183
211
  - README.md
184
212
  - Rakefile
213
+ - bin/console
185
214
  - lib/notion-ruby-client.rb
186
215
  - lib/notion.rb
187
216
  - lib/notion/api/endpoints.rb
188
217
  - lib/notion/api/endpoints/blocks.rb
189
218
  - lib/notion/api/endpoints/databases.rb
190
219
  - lib/notion/api/endpoints/pages.rb
220
+ - lib/notion/api/endpoints/search.rb
191
221
  - lib/notion/api/endpoints/users.rb
192
222
  - lib/notion/api/error.rb
193
223
  - lib/notion/api/errors.rb
194
224
  - lib/notion/api/errors/internal_error.rb
195
225
  - lib/notion/api/errors/notion_error.rb
226
+ - lib/notion/api/errors/too_many_requests.rb
196
227
  - lib/notion/client.rb
197
228
  - lib/notion/config.rb
198
229
  - lib/notion/faraday/connection.rb
@@ -204,10 +235,8 @@ files:
204
235
  - lib/notion/pagination/cursor.rb
205
236
  - lib/notion/version.rb
206
237
  - lib/notion_ruby_client.rb
207
- - notion-ruby-client-0.0.4.gem
208
238
  - notion-ruby-client.gemspec
209
- - scratchpad.rb
210
- - screenshots/create_notion_bot.png
239
+ - spec/fixtures/notion/block.yml
211
240
  - spec/fixtures/notion/block_append_children.yml
212
241
  - spec/fixtures/notion/block_children.yml
213
242
  - spec/fixtures/notion/create_database.yml
@@ -219,15 +248,22 @@ files:
219
248
  - spec/fixtures/notion/paginated_block_children.yml
220
249
  - spec/fixtures/notion/paginated_database_query.yml
221
250
  - spec/fixtures/notion/paginated_databases_list.yml
251
+ - spec/fixtures/notion/paginated_search.yml
222
252
  - spec/fixtures/notion/paginated_users_list.yml
253
+ - spec/fixtures/notion/search.yml
254
+ - spec/fixtures/notion/search_with_query.yml
255
+ - spec/fixtures/notion/update_block.yml
256
+ - spec/fixtures/notion/update_database.yml
223
257
  - spec/fixtures/notion/update_page.yml
224
258
  - spec/fixtures/notion/users.yml
225
259
  - spec/fixtures/notion/users_list.yml
226
260
  - spec/notion/api/endpoints/blocks_spec.rb
227
261
  - spec/notion/api/endpoints/databases_spec.rb
228
262
  - spec/notion/api/endpoints/pages_spec.rb
263
+ - spec/notion/api/endpoints/search_spec.rb
229
264
  - spec/notion/api/endpoints/users_spec.rb
230
265
  - spec/notion/config_spec.rb
266
+ - spec/notion/pagination/cursor_spec.rb
231
267
  - spec/notion/version_spec.rb
232
268
  - spec/spec_helper.rb
233
269
  - spec/support/token.rb
@@ -256,6 +292,7 @@ signing_key:
256
292
  specification_version: 4
257
293
  summary: Notion API client for Ruby.
258
294
  test_files:
295
+ - spec/fixtures/notion/block.yml
259
296
  - spec/fixtures/notion/block_append_children.yml
260
297
  - spec/fixtures/notion/block_children.yml
261
298
  - spec/fixtures/notion/create_database.yml
@@ -267,15 +304,22 @@ test_files:
267
304
  - spec/fixtures/notion/paginated_block_children.yml
268
305
  - spec/fixtures/notion/paginated_database_query.yml
269
306
  - spec/fixtures/notion/paginated_databases_list.yml
307
+ - spec/fixtures/notion/paginated_search.yml
270
308
  - spec/fixtures/notion/paginated_users_list.yml
309
+ - spec/fixtures/notion/search.yml
310
+ - spec/fixtures/notion/search_with_query.yml
311
+ - spec/fixtures/notion/update_block.yml
312
+ - spec/fixtures/notion/update_database.yml
271
313
  - spec/fixtures/notion/update_page.yml
272
314
  - spec/fixtures/notion/users.yml
273
315
  - spec/fixtures/notion/users_list.yml
274
316
  - spec/notion/api/endpoints/blocks_spec.rb
275
317
  - spec/notion/api/endpoints/databases_spec.rb
276
318
  - spec/notion/api/endpoints/pages_spec.rb
319
+ - spec/notion/api/endpoints/search_spec.rb
277
320
  - spec/notion/api/endpoints/users_spec.rb
278
321
  - spec/notion/config_spec.rb
322
+ - spec/notion/pagination/cursor_spec.rb
279
323
  - spec/notion/version_spec.rb
280
324
  - spec/spec_helper.rb
281
325
  - spec/support/token.rb