ribose 0.4.1 → 0.5.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/.rubocop.yml +8 -648
- data/CHANGELOG.adoc +36 -0
- data/{README.md → README.adoc} +414 -339
- data/lib/ribose/actions/create.rb +1 -1
- data/lib/ribose/client.rb +18 -18
- data/lib/ribose/configuration.rb +15 -7
- data/lib/ribose/event.rb +1 -1
- data/lib/ribose/file_uploader.rb +1 -1
- data/lib/ribose/file_version.rb +12 -16
- data/lib/ribose/request.rb +27 -30
- data/lib/ribose/response/raise_error.rb +0 -2
- data/lib/ribose/session.rb +47 -37
- data/lib/ribose/space_file.rb +1 -1
- data/lib/ribose/version.rb +1 -1
- data/lib/ribose/version_uploader.rb +1 -1
- data/ribose.gemspec +1 -1
- data/spec/ribose/client_spec.rb +18 -19
- data/spec/ribose/config_spec.rb +0 -1
- data/spec/ribose/file_uploader_spec.rb +2 -2
- data/spec/ribose/file_version_spec.rb +1 -1
- data/spec/ribose/message_spec.rb +3 -2
- data/spec/ribose/session_spec.rb +18 -24
- data/spec/ribose/space_file_spec.rb +1 -1
- data/spec/ribose/space_spec.rb +1 -1
- data/spec/ribose/user_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -1
- data/spec/support/fake_ribose_api.rb +2 -2
- metadata +7 -7
- data/CHANGELOG.md +0 -25
data/spec/ribose/user_spec.rb
CHANGED
@@ -18,7 +18,7 @@ RSpec.describe Ribose::User do
|
|
18
18
|
describe ".activate" do
|
19
19
|
it "complete the user signup process" do
|
20
20
|
stub_ribose_app_user_activate_api(user_attributes)
|
21
|
-
user = Ribose::User.activate(user_attributes)
|
21
|
+
user = Ribose::User.activate(**user_attributes)
|
22
22
|
|
23
23
|
expect(user.id).not_to be_nil
|
24
24
|
expect(user.name).to eq("John Doe")
|
@@ -30,7 +30,7 @@ RSpec.describe Ribose::User do
|
|
30
30
|
@user_attributes ||= {
|
31
31
|
email: "john.doe@example.com",
|
32
32
|
password: "SecurePassword",
|
33
|
-
|
33
|
+
edata: "OTP_RECEIVED_VIA_EMAIL",
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
data/spec/spec_helper.rb
CHANGED
@@ -15,8 +15,9 @@ RSpec.configure do |config|
|
|
15
15
|
|
16
16
|
config.before :all do
|
17
17
|
Ribose.configure do |ribose_config|
|
18
|
-
ribose_config.api_token = ENV["RIBOSE_API_TOKEN"] || "RIBOSE_API_TOKEN"
|
19
18
|
ribose_config.user_email = ENV["RIBOSE_USER_EMAIL"] || "RIBOSE_USER_EMAIL"
|
19
|
+
ribose_config.user_password = ENV["RIBOSE_USER_PASSWORD"] || "SECRET_PASS"
|
20
|
+
ribose_config.client = Ribose::Client.new
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
@@ -179,7 +179,7 @@ module Ribose
|
|
179
179
|
def stub_ribose_app_user_activate_api(attributes)
|
180
180
|
stub_api_response(
|
181
181
|
:post,
|
182
|
-
"
|
182
|
+
"api/v2/auth",
|
183
183
|
data: { user: attributes },
|
184
184
|
filename: "user_activated",
|
185
185
|
)
|
@@ -549,7 +549,7 @@ module Ribose
|
|
549
549
|
|
550
550
|
if Ribose.configuration.api_token
|
551
551
|
headers["X-Indigo-Token"] = client.api_token
|
552
|
-
headers["X-Indigo-Email"] = client.
|
552
|
+
headers["X-Indigo-Email"] = client.api_email
|
553
553
|
end
|
554
554
|
end
|
555
555
|
end
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: id_pack
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '3.0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '3.0'
|
125
125
|
description: The Ruby interface for Ribose API
|
126
126
|
email:
|
127
127
|
- operations@ribose.com
|
@@ -135,10 +135,10 @@ files:
|
|
135
135
|
- ".rspec"
|
136
136
|
- ".rubocop.yml"
|
137
137
|
- ".sample.pryrc"
|
138
|
-
- CHANGELOG.
|
138
|
+
- CHANGELOG.adoc
|
139
139
|
- Gemfile
|
140
140
|
- LICENSE.txt
|
141
|
-
- README.
|
141
|
+
- README.adoc
|
142
142
|
- Rakefile
|
143
143
|
- bin/console
|
144
144
|
- bin/rspec
|
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
301
301
|
- !ruby/object:Gem::Version
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
|
-
rubygems_version: 3.
|
304
|
+
rubygems_version: 3.2.3
|
305
305
|
signing_key:
|
306
306
|
specification_version: 4
|
307
307
|
summary: The Ruby interface for Ribose API
|
data/CHANGELOG.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
## 0.4.0 (2018-12-15)
|
2
|
-
|
3
|
-
Features:
|
4
|
-
- Add new interface to remove a user's space
|
5
|
-
- Add an interface to disconnect a connection
|
6
|
-
- Interface to create & download file version
|
7
|
-
|
8
|
-
Fixes:
|
9
|
-
- Fix the unknown file upload related issues
|
10
|
-
|
11
|
-
## 0.3.2 (2018-06-28)
|
12
|
-
|
13
|
-
Features:
|
14
|
-
- Add interface for calendar event resources
|
15
|
-
- Add interface for space category, file icon
|
16
|
-
- Add interface to fetch file version and etc.
|
17
|
-
|
18
|
-
Fixes:
|
19
|
-
- Fix file upload related error
|
20
|
-
|
21
|
-
## 0.2.0 (2017-11-30)
|
22
|
-
|
23
|
-
Features:
|
24
|
-
|
25
|
-
- Initial functional release.
|