notion-sdk-ruby 0.4.1 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notion-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graham Marlow
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: httparty
14
+ name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.1
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.18.1
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +67,7 @@ dependencies:
53
67
  - !ruby/object:Gem::Version
54
68
  version: '3.0'
55
69
  - !ruby/object:Gem::Dependency
56
- name: standardrb
70
+ name: standard
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
@@ -108,7 +122,49 @@ dependencies:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
124
  version: '2.7'
111
- description:
125
+ - !ruby/object:Gem::Dependency
126
+ name: activesupport
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '6.1'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '6.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: yard
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.9.26
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.9.26
153
+ - !ruby/object:Gem::Dependency
154
+ name: vcr
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '6.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '6.0'
167
+ description:
112
168
  email:
113
169
  - mgmarlow@hey.com
114
170
  executables: []
@@ -118,7 +174,6 @@ files:
118
174
  - ".github/workflows/ci.yml"
119
175
  - ".gitignore"
120
176
  - ".rspec"
121
- - ".travis.yml"
122
177
  - ".vscode/settings.json"
123
178
  - Gemfile
124
179
  - Gemfile.lock
@@ -126,19 +181,26 @@ files:
126
181
  - README.md
127
182
  - Rakefile
128
183
  - bin/console
184
+ - bin/rake
129
185
  - bin/setup
130
186
  - lib/notion-sdk-ruby.rb
187
+ - lib/notion-sdk-ruby/api/blocks.rb
188
+ - lib/notion-sdk-ruby/api/databases.rb
189
+ - lib/notion-sdk-ruby/api/pages.rb
190
+ - lib/notion-sdk-ruby/api/search.rb
191
+ - lib/notion-sdk-ruby/api/users.rb
131
192
  - lib/notion-sdk-ruby/client.rb
132
193
  - lib/notion-sdk-ruby/config.rb
133
194
  - lib/notion-sdk-ruby/error.rb
134
- - lib/notion-sdk-ruby/operations/search.rb
195
+ - lib/notion-sdk-ruby/models/block.rb
196
+ - lib/notion-sdk-ruby/models/database.rb
197
+ - lib/notion-sdk-ruby/models/list.rb
198
+ - lib/notion-sdk-ruby/models/page.rb
199
+ - lib/notion-sdk-ruby/models/user.rb
135
200
  - lib/notion-sdk-ruby/request_client.rb
136
- - lib/notion-sdk-ruby/resources/blocks.rb
137
- - lib/notion-sdk-ruby/resources/databases.rb
138
- - lib/notion-sdk-ruby/resources/pages.rb
139
- - lib/notion-sdk-ruby/resources/users.rb
140
201
  - lib/notion-sdk-ruby/version.rb
141
202
  - notion-sdk-ruby.gemspec
203
+ - todos.md
142
204
  homepage: https://github.com/mgmarlow/notion-sdk-ruby
143
205
  licenses:
144
206
  - MIT
@@ -146,7 +208,7 @@ metadata:
146
208
  homepage_uri: https://github.com/mgmarlow/notion-sdk-ruby
147
209
  source_code_uri: https://github.com/mgmarlow/notion-sdk-ruby
148
210
  changelog_uri: https://github.com/mgmarlow/notion-sdk-ruby/blob/master/CHANGELOG.md
149
- post_install_message:
211
+ post_install_message:
150
212
  rdoc_options: []
151
213
  require_paths:
152
214
  - lib
@@ -161,8 +223,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
223
  - !ruby/object:Gem::Version
162
224
  version: '0'
163
225
  requirements: []
164
- rubygems_version: 3.1.2
165
- signing_key:
226
+ rubygems_version: 3.3.7
227
+ signing_key:
166
228
  specification_version: 4
167
229
  summary: Notion SDK
168
230
  test_files: []
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.5
6
- before_install: gem install bundler -v 2.1.4
@@ -1,9 +0,0 @@
1
- module Notion
2
- module Operations
3
- module Search
4
- def search(body)
5
- RequestClient.active_client.post("/v1/search", body: body.to_json)
6
- end
7
- end
8
- end
9
- end
@@ -1,25 +0,0 @@
1
- module Notion
2
- class Blocks
3
- def children
4
- Children.new
5
- end
6
-
7
- def retrieve(block_id)
8
- RequestClient.active_client.get("/v1/blocks/#{block_id}")
9
- end
10
-
11
- def update(block_id, body)
12
- RequestClient.active_client.patch("/v1/blocks/#{block_id}", body: body.to_json)
13
- end
14
- end
15
-
16
- class Children
17
- def list(block_id, query: {})
18
- RequestClient.active_client.get("/v1/blocks/#{block_id}/children", query: query)
19
- end
20
-
21
- def append(block_id, body)
22
- RequestClient.active_client.patch("/v1/blocks/#{block_id}/children", body: body.to_json)
23
- end
24
- end
25
- end
@@ -1,25 +0,0 @@
1
- module Notion
2
- class Databases
3
- def retrieve(id)
4
- RequestClient.active_client.get("/v1/databases/#{id}")
5
- end
6
-
7
- # DEPRECATED
8
- def list
9
- warn "DEPRECATED: client.databases.list is deprecated."
10
- RequestClient.active_client.get("/v1/databases")
11
- end
12
-
13
- def query(id, body)
14
- RequestClient.active_client.post("/v1/databases/#{id}/query", body: body.to_json)
15
- end
16
-
17
- def create(body)
18
- RequestClient.active_client.post("/v1/databases", body: body.to_json)
19
- end
20
-
21
- def update(id, body)
22
- RequestClient.active_client.patch("/v1/databases/#{id}", body: body.to_json)
23
- end
24
- end
25
- end
@@ -1,15 +0,0 @@
1
- module Notion
2
- class Pages
3
- def retrieve(id)
4
- RequestClient.active_client.get("/v1/pages/#{id}")
5
- end
6
-
7
- def create(body)
8
- RequestClient.active_client.post("/v1/pages", body: body.to_json)
9
- end
10
-
11
- def update(id, body)
12
- RequestClient.active_client.patch("/v1/pages/#{id}", body: body.to_json)
13
- end
14
- end
15
- end
@@ -1,11 +0,0 @@
1
- module Notion
2
- class Users
3
- def list
4
- RequestClient.active_client.get("/v1/users")
5
- end
6
-
7
- def retrieve(id)
8
- RequestClient.active_client.get("/v1/users/#{id}")
9
- end
10
- end
11
- end