ribose 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- otp: "OTP_RECEIVED_VIA_EMAIL",
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
- "signup.user",
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.user_email
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.1
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-18 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
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.md
138
+ - CHANGELOG.adoc
139
139
  - Gemfile
140
140
  - LICENSE.txt
141
- - README.md
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.0.1
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.