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

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.
Files changed (55) 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 +32 -0
  6. data/CODE_OF_CONDUCT.md +128 -0
  7. data/Gemfile.lock +37 -11
  8. data/README.md +318 -47
  9. data/bin/console +31 -0
  10. data/lib/notion/api/endpoints/blocks.rb +35 -7
  11. data/lib/notion/api/endpoints/databases.rb +67 -17
  12. data/lib/notion/api/endpoints/pages.rb +7 -7
  13. data/lib/notion/api/endpoints/search.rb +41 -0
  14. data/lib/notion/api/endpoints/users.rb +6 -3
  15. data/lib/notion/api/endpoints.rb +3 -1
  16. data/lib/notion/api/errors/too_many_requests.rb +15 -0
  17. data/lib/notion/api/errors.rb +0 -2
  18. data/lib/notion/config.rb +2 -0
  19. data/lib/notion/faraday/request.rb +1 -0
  20. data/lib/notion/pagination/cursor.rb +5 -2
  21. data/lib/notion/version.rb +3 -2
  22. data/lib/notion-ruby-client.rb +2 -0
  23. data/notion-ruby-client.gemspec +3 -1
  24. data/spec/fixtures/notion/block.yml +146 -0
  25. data/spec/fixtures/notion/block_append_children.yml +76 -62
  26. data/spec/fixtures/notion/block_children.yml +80 -65
  27. data/spec/fixtures/notion/create_database.yml +149 -0
  28. data/spec/fixtures/notion/create_page.yml +76 -61
  29. data/spec/fixtures/notion/database.yml +78 -61
  30. data/spec/fixtures/notion/database_query.yml +81 -62
  31. data/spec/fixtures/notion/databases_list.yml +77 -60
  32. data/spec/fixtures/notion/page.yml +78 -61
  33. data/spec/fixtures/notion/paginated_block_children.yml +296 -242
  34. data/spec/fixtures/notion/paginated_database_query.yml +79 -62
  35. data/spec/fixtures/notion/paginated_databases_list.yml +78 -61
  36. data/spec/fixtures/notion/paginated_search.yml +301 -0
  37. data/spec/fixtures/notion/paginated_users_list.yml +143 -130
  38. data/spec/fixtures/notion/search.yml +160 -0
  39. data/spec/fixtures/notion/search_with_query.yml +152 -0
  40. data/spec/fixtures/notion/update_block.yml +148 -0
  41. data/spec/fixtures/notion/update_database.yml +152 -0
  42. data/spec/fixtures/notion/update_page.yml +79 -63
  43. data/spec/fixtures/notion/users.yml +69 -56
  44. data/spec/fixtures/notion/users_list.yml +143 -130
  45. data/spec/notion/api/endpoints/blocks_spec.rb +37 -11
  46. data/spec/notion/api/endpoints/databases_spec.rb +43 -9
  47. data/spec/notion/api/endpoints/pages_spec.rb +15 -13
  48. data/spec/notion/api/endpoints/search_spec.rb +26 -0
  49. data/spec/notion/api/endpoints/users_spec.rb +4 -4
  50. data/spec/notion/pagination/cursor_spec.rb +126 -0
  51. metadata +55 -8
  52. data/.rspec_status +0 -18
  53. data/notion-ruby-client-0.0.4.gem +0 -0
  54. data/scratchpad.rb +0 -22
  55. 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,27 +3,61 @@ 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' }
6
+ let(:database_id) { 'dd428e9dd3fe4171870da7a1902c748b' }
7
+ let(:page_id) { 'c7fd1abe811444eabe779632ea33e581' }
8
+ let(:title) do
9
+ [
10
+ {
11
+ "text": {
12
+ "content": 'Orbit 💜 Notion'
13
+ }
14
+ }
15
+ ]
16
+ end
17
+ let(:properties) do
18
+ {
19
+ "Name": {
20
+ "title": {}
21
+ }
22
+ }
23
+ end
7
24
 
8
25
  context 'databases' do
9
- it 'retrieves', vcr: { cassette_name: 'database' } do
10
- response = client.database(id: database_id)
11
- expect(response.title.first.plain_text).to eql 'A Notion database'
12
- end
13
-
14
26
  it 'queries', vcr: { cassette_name: 'database_query' } do
15
- response = client.database_query(id: database_id)
27
+ response = client.database_query(database_id: database_id)
16
28
  expect(response.results.length).to be >= 1
17
29
  end
18
30
 
19
31
  it 'paginated queries', vcr: { cassette_name: 'paginated_database_query' } do
20
32
  pages = []
21
- client.database_query(id: database_id, limit: 1) do |page|
33
+ client.database_query(database_id: database_id, page_size: 1) do |page|
22
34
  pages.concat page.results
23
35
  end
24
36
  expect(pages.size).to be >= 1
25
37
  end
26
38
 
39
+ it 'creates', vcr: { cassette_name: 'create_database' } do
40
+ response = client.create_database(
41
+ parent: { page_id: page_id },
42
+ title: title,
43
+ properties: properties
44
+ )
45
+ expect(response.title.first.plain_text).to eql 'Orbit 💜 Notion'
46
+ end
47
+
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'
59
+ end
60
+
27
61
  it 'lists', vcr: { cassette_name: 'databases_list' } do
28
62
  response = client.databases_list
29
63
  expect(response.results.length).to be >= 1
@@ -31,7 +65,7 @@ RSpec.describe Notion::Api::Endpoints::Databases do
31
65
 
32
66
  it 'paginated lists', vcr: { cassette_name: 'paginated_databases_list' } do
33
67
  databases = []
34
- client.databases_list(limit: 1) do |page|
68
+ client.databases_list(page_size: 1) do |page|
35
69
  databases.concat page.results
36
70
  end
37
71
  expect(databases.size).to be >= 1
@@ -3,17 +3,19 @@ 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) { '89b30a70-ce51-4646-ab4f-5fdcb1d5e76c' }
7
- let(:page_id) { '723578f1-6e51-450c-8ee1-09158c19fd4c' }
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
- "Name": [
11
- {
12
- "text": {
13
- "content": 'Another Notion page'
10
+ "Name": {
11
+ "title": [
12
+ {
13
+ "text": {
14
+ "content": 'Another Notion page'
15
+ }
14
16
  }
15
- }
16
- ]
17
+ ]
18
+ }
17
19
  }
18
20
  end
19
21
  let(:children) do
@@ -30,9 +32,9 @@ RSpec.describe Notion::Api::Endpoints::Pages do
30
32
 
31
33
  context 'pages' do
32
34
  it 'retrieves', vcr: { cassette_name: 'page' } do
33
- response = client.page(id: page_id)
35
+ response = client.page(page_id: page_id)
34
36
  expect(response.properties.Name.type).to eql 'title'
35
- 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'
36
38
  end
37
39
 
38
40
  it 'creates', vcr: { cassette_name: 'create_page' } do
@@ -49,16 +51,16 @@ RSpec.describe Notion::Api::Endpoints::Pages do
49
51
  "Name": [
50
52
  {
51
53
  "text": {
52
- "content": 'A Notion page'
54
+ "content": 'Nicolas Goutay'
53
55
  }
54
56
  }
55
57
  ]
56
58
  }
57
59
  response = client.update_page(
58
- id: page_id,
60
+ page_id: page_id,
59
61
  properties: properties
60
62
  )
61
- 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'
62
64
  end
63
65
  end
64
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.5
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-04-25 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,27 +199,31 @@ 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
207
+ - CODE_OF_CONDUCT.md
179
208
  - Gemfile
180
209
  - Gemfile.lock
181
210
  - LICENSE.md
182
211
  - README.md
183
212
  - Rakefile
213
+ - bin/console
184
214
  - lib/notion-ruby-client.rb
185
215
  - lib/notion.rb
186
216
  - lib/notion/api/endpoints.rb
187
217
  - lib/notion/api/endpoints/blocks.rb
188
218
  - lib/notion/api/endpoints/databases.rb
189
219
  - lib/notion/api/endpoints/pages.rb
220
+ - lib/notion/api/endpoints/search.rb
190
221
  - lib/notion/api/endpoints/users.rb
191
222
  - lib/notion/api/error.rb
192
223
  - lib/notion/api/errors.rb
193
224
  - lib/notion/api/errors/internal_error.rb
194
225
  - lib/notion/api/errors/notion_error.rb
226
+ - lib/notion/api/errors/too_many_requests.rb
195
227
  - lib/notion/client.rb
196
228
  - lib/notion/config.rb
197
229
  - lib/notion/faraday/connection.rb
@@ -203,12 +235,11 @@ files:
203
235
  - lib/notion/pagination/cursor.rb
204
236
  - lib/notion/version.rb
205
237
  - lib/notion_ruby_client.rb
206
- - notion-ruby-client-0.0.4.gem
207
238
  - notion-ruby-client.gemspec
208
- - scratchpad.rb
209
- - screenshots/create_notion_bot.png
239
+ - spec/fixtures/notion/block.yml
210
240
  - spec/fixtures/notion/block_append_children.yml
211
241
  - spec/fixtures/notion/block_children.yml
242
+ - spec/fixtures/notion/create_database.yml
212
243
  - spec/fixtures/notion/create_page.yml
213
244
  - spec/fixtures/notion/database.yml
214
245
  - spec/fixtures/notion/database_query.yml
@@ -217,15 +248,22 @@ files:
217
248
  - spec/fixtures/notion/paginated_block_children.yml
218
249
  - spec/fixtures/notion/paginated_database_query.yml
219
250
  - spec/fixtures/notion/paginated_databases_list.yml
251
+ - spec/fixtures/notion/paginated_search.yml
220
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
221
257
  - spec/fixtures/notion/update_page.yml
222
258
  - spec/fixtures/notion/users.yml
223
259
  - spec/fixtures/notion/users_list.yml
224
260
  - spec/notion/api/endpoints/blocks_spec.rb
225
261
  - spec/notion/api/endpoints/databases_spec.rb
226
262
  - spec/notion/api/endpoints/pages_spec.rb
263
+ - spec/notion/api/endpoints/search_spec.rb
227
264
  - spec/notion/api/endpoints/users_spec.rb
228
265
  - spec/notion/config_spec.rb
266
+ - spec/notion/pagination/cursor_spec.rb
229
267
  - spec/notion/version_spec.rb
230
268
  - spec/spec_helper.rb
231
269
  - spec/support/token.rb
@@ -254,8 +292,10 @@ signing_key:
254
292
  specification_version: 4
255
293
  summary: Notion API client for Ruby.
256
294
  test_files:
295
+ - spec/fixtures/notion/block.yml
257
296
  - spec/fixtures/notion/block_append_children.yml
258
297
  - spec/fixtures/notion/block_children.yml
298
+ - spec/fixtures/notion/create_database.yml
259
299
  - spec/fixtures/notion/create_page.yml
260
300
  - spec/fixtures/notion/database.yml
261
301
  - spec/fixtures/notion/database_query.yml
@@ -264,15 +304,22 @@ test_files:
264
304
  - spec/fixtures/notion/paginated_block_children.yml
265
305
  - spec/fixtures/notion/paginated_database_query.yml
266
306
  - spec/fixtures/notion/paginated_databases_list.yml
307
+ - spec/fixtures/notion/paginated_search.yml
267
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
268
313
  - spec/fixtures/notion/update_page.yml
269
314
  - spec/fixtures/notion/users.yml
270
315
  - spec/fixtures/notion/users_list.yml
271
316
  - spec/notion/api/endpoints/blocks_spec.rb
272
317
  - spec/notion/api/endpoints/databases_spec.rb
273
318
  - spec/notion/api/endpoints/pages_spec.rb
319
+ - spec/notion/api/endpoints/search_spec.rb
274
320
  - spec/notion/api/endpoints/users_spec.rb
275
321
  - spec/notion/config_spec.rb
322
+ - spec/notion/pagination/cursor_spec.rb
276
323
  - spec/notion/version_spec.rb
277
324
  - spec/spec_helper.rb
278
325
  - spec/support/token.rb