ribose 0.3.0 → 0.4.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.
Files changed (45) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/test.yml +27 -0
  3. data/.rubocop.yml +21 -16
  4. data/CHANGELOG.md +20 -0
  5. data/README.md +99 -0
  6. data/lib/ribose/actions/create.rb +2 -1
  7. data/lib/ribose/actions/update.rb +2 -1
  8. data/lib/ribose/calendar.rb +2 -2
  9. data/lib/ribose/client.rb +27 -9
  10. data/lib/ribose/configuration.rb +13 -4
  11. data/lib/ribose/connection.rb +15 -0
  12. data/lib/ribose/conversation.rb +18 -0
  13. data/lib/ribose/event.rb +86 -0
  14. data/lib/ribose/file_uploader.rb +20 -2
  15. data/lib/ribose/file_version.rb +97 -0
  16. data/lib/ribose/request.rb +49 -10
  17. data/lib/ribose/session.rb +36 -22
  18. data/lib/ribose/space.rb +4 -0
  19. data/lib/ribose/space_category.rb +15 -0
  20. data/lib/ribose/space_file.rb +29 -0
  21. data/lib/ribose/user.rb +9 -5
  22. data/lib/ribose/version.rb +1 -1
  23. data/lib/ribose/version_uploader.rb +27 -0
  24. data/lib/ribose.rb +3 -0
  25. data/ribose.gemspec +3 -4
  26. data/spec/fixtures/calendar_event.json +48 -0
  27. data/spec/fixtures/conversation.json +1 -1
  28. data/spec/fixtures/event_created.json +21 -0
  29. data/spec/fixtures/event_updated.json +23 -0
  30. data/spec/fixtures/file_version.json +14 -0
  31. data/spec/fixtures/space_categories.json +150 -0
  32. data/spec/fixtures/space_file_icon.json +4 -0
  33. data/spec/ribose/connection_spec.rb +11 -0
  34. data/spec/ribose/conversation_spec.rb +14 -0
  35. data/spec/ribose/event_spec.rb +85 -0
  36. data/spec/ribose/file_uploader_spec.rb +15 -2
  37. data/spec/ribose/file_version_spec.rb +76 -0
  38. data/spec/ribose/session_spec.rb +2 -2
  39. data/spec/ribose/space_category_spec.rb +13 -0
  40. data/spec/ribose/space_file_spec.rb +44 -0
  41. data/spec/ribose/space_spec.rb +11 -0
  42. data/spec/support/fake_ribose_api.rb +93 -5
  43. data/spec/support/file_upload_stub.rb +21 -15
  44. metadata +32 -34
  45. data/.travis.yml +0 -5
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-10 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: id_pack
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.1
27
- - !ruby/object:Gem::Dependency
28
- name: mechanize
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 2.7.5
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 2.7.5
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: mime-types
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,30 +56,30 @@ dependencies:
70
56
  name: bundler
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - "~>"
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: '1.14'
61
+ version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - "~>"
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: '1.14'
68
+ version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rake
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - "~>"
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
- version: '10.0'
75
+ version: '0'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - "~>"
80
+ - - ">="
95
81
  - !ruby/object:Gem::Version
96
- version: '10.0'
82
+ version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rspec
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +98,16 @@ dependencies:
112
98
  name: pry
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - "~>"
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
- version: 0.10.4
103
+ version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - "~>"
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
- version: 0.10.4
110
+ version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: webmock
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -143,12 +129,12 @@ executables: []
143
129
  extensions: []
144
130
  extra_rdoc_files: []
145
131
  files:
132
+ - ".github/workflows/test.yml"
146
133
  - ".gitignore"
147
134
  - ".hound.yml"
148
135
  - ".rspec"
149
136
  - ".rubocop.yml"
150
137
  - ".sample.pryrc"
151
- - ".travis.yml"
152
138
  - CHANGELOG.md
153
139
  - Gemfile
154
140
  - LICENSE.txt
@@ -176,8 +162,10 @@ files:
176
162
  - lib/ribose/connection_invitation.rb
177
163
  - lib/ribose/conversation.rb
178
164
  - lib/ribose/error.rb
165
+ - lib/ribose/event.rb
179
166
  - lib/ribose/feed.rb
180
167
  - lib/ribose/file_uploader.rb
168
+ - lib/ribose/file_version.rb
181
169
  - lib/ribose/join_space_request.rb
182
170
  - lib/ribose/leaderboard.rb
183
171
  - lib/ribose/member.rb
@@ -191,11 +179,13 @@ files:
191
179
  - lib/ribose/session.rb
192
180
  - lib/ribose/setting.rb
193
181
  - lib/ribose/space.rb
182
+ - lib/ribose/space_category.rb
194
183
  - lib/ribose/space_file.rb
195
184
  - lib/ribose/space_invitation.rb
196
185
  - lib/ribose/stream.rb
197
186
  - lib/ribose/user.rb
198
187
  - lib/ribose/version.rb
188
+ - lib/ribose/version_uploader.rb
199
189
  - lib/ribose/widget.rb
200
190
  - lib/ribose/wiki.rb
201
191
  - ribose.gemspec
@@ -203,6 +193,7 @@ files:
203
193
  - spec/fixtures/app_relation.json
204
194
  - spec/fixtures/app_relations.json
205
195
  - spec/fixtures/calendar.json
196
+ - spec/fixtures/calendar_event.json
206
197
  - spec/fixtures/calendar_events.json
207
198
  - spec/fixtures/calendars.json
208
199
  - spec/fixtures/connection_invitation.json
@@ -215,9 +206,12 @@ files:
215
206
  - spec/fixtures/conversation_created.json
216
207
  - spec/fixtures/conversations.json
217
208
  - spec/fixtures/empty.json
209
+ - spec/fixtures/event_created.json
210
+ - spec/fixtures/event_updated.json
218
211
  - spec/fixtures/feeds.json
219
212
  - spec/fixtures/file_upload_prepared.json
220
213
  - spec/fixtures/file_uploaded.json
214
+ - spec/fixtures/file_version.json
221
215
  - spec/fixtures/general_information.json
222
216
  - spec/fixtures/join_space_request.json
223
217
  - spec/fixtures/join_space_request_created.json
@@ -235,8 +229,10 @@ files:
235
229
  - spec/fixtures/setting.json
236
230
  - spec/fixtures/settings.json
237
231
  - spec/fixtures/space.json
232
+ - spec/fixtures/space_categories.json
238
233
  - spec/fixtures/space_created.json
239
234
  - spec/fixtures/space_file.json
235
+ - spec/fixtures/space_file_icon.json
240
236
  - spec/fixtures/space_files.json
241
237
  - spec/fixtures/space_invitation.json
242
238
  - spec/fixtures/space_invitation_updated.json
@@ -261,8 +257,10 @@ files:
261
257
  - spec/ribose/connection_spec.rb
262
258
  - spec/ribose/conversation_spec.rb
263
259
  - spec/ribose/error_spec.rb
260
+ - spec/ribose/event_spec.rb
264
261
  - spec/ribose/feed_spec.rb
265
262
  - spec/ribose/file_uploader_spec.rb
263
+ - spec/ribose/file_version_spec.rb
266
264
  - spec/ribose/join_space_request_spec.rb
267
265
  - spec/ribose/leaderboard_spec.rb
268
266
  - spec/ribose/member_role_spec.rb
@@ -273,6 +271,7 @@ files:
273
271
  - spec/ribose/resource_helper_spec.rb
274
272
  - spec/ribose/session_spec.rb
275
273
  - spec/ribose/setting_spec.rb
274
+ - spec/ribose/space_category_spec.rb
276
275
  - spec/ribose/space_file_spec.rb
277
276
  - spec/ribose/space_invitation_spec.rb
278
277
  - spec/ribose/space_spec.rb
@@ -287,7 +286,7 @@ homepage: https://github.com/riboseinc/ribose-ruby
287
286
  licenses:
288
287
  - MIT
289
288
  metadata: {}
290
- post_install_message:
289
+ post_install_message:
291
290
  rdoc_options: []
292
291
  require_paths:
293
292
  - lib
@@ -302,9 +301,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
301
  - !ruby/object:Gem::Version
303
302
  version: '0'
304
303
  requirements: []
305
- rubyforge_project:
306
- rubygems_version: 2.6.14
307
- signing_key:
304
+ rubygems_version: 3.0.1
305
+ signing_key:
308
306
  specification_version: 4
309
307
  summary: The Ruby interface for Ribose API
310
308
  test_files: []
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.0
5
- before_install: gem install bundler -v 1.14.6