kitaboo_service 0.4.0 → 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/README.md +8 -0
- data/lib/kitaboo_service/api_client.rb +2 -2
- data/lib/kitaboo_service/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b0905ab1b7b7662d19a747fa16096465400dffdf126cfe02bb6c2485cf3a201
|
4
|
+
data.tar.gz: 8edd0c533d287e7369bb7ce41cbb4d2c65a35d6b8ed98f170d4e373691007be5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ed1b7e8c6636255178506159ce7e0b27967ae2e137eaa367ae7eedba2b0960d129e8912eb053de2699cee9dad2639f826a90b4a36f3db63ec010d64ce60b473
|
7
|
+
data.tar.gz: e00a854ce089cc693d67f3fe914cd54b2537a51a5504ed556e460987837a6504591c0ce0473be624d20cde929ae6e6b995c8de80e523a411e506eb857e3a3025
|
data/README.md
CHANGED
@@ -23,3 +23,11 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
23
23
|
## Code of Conduct
|
24
24
|
|
25
25
|
Everyone interacting in the SophiaApiService project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/sophia_api_service/blob/master/CODE_OF_CONDUCT.md).
|
26
|
+
|
27
|
+
# Generating a new GEM
|
28
|
+
|
29
|
+
1 - Define new version number on `version.rb` file;
|
30
|
+
|
31
|
+
2 - Use the command `gem build` to create the gem package;
|
32
|
+
|
33
|
+
3 - Publish the gem on rubygem through the command `gem push kitaboo_service-[VERSION].gem`
|
@@ -36,14 +36,14 @@ module KitabooService
|
|
36
36
|
KitabooResponse.new(https.request(request))
|
37
37
|
end
|
38
38
|
|
39
|
-
def create_order(order_number, course_code, student_email, password)
|
39
|
+
def create_order(order_number, course_code, student_email, password, device_limit)
|
40
40
|
url = URI(@kitaboo_routes.orders_route)
|
41
41
|
https = Net::HTTP.new(url.host, url.port)
|
42
42
|
https.use_ssl = true
|
43
43
|
request = Net::HTTP::Post.new(url.path)
|
44
44
|
request["Authorization"] = "Bearer #{@kitaboo_auth_token}"
|
45
45
|
request["Content-Type"] = "application/x-www-form-urlencoded"
|
46
|
-
request.body = "orderNo=#{order_number}&bookID=#{course_code}&userID=#{student_email}&firstName=#{student_email}&lastName=#{student_email}&userName=#{student_email}&password=#{password}&email=#{student_email}"
|
46
|
+
request.body = "orderNo=#{order_number}&bookID=#{course_code}&userID=#{student_email}&firstName=#{student_email}&lastName=#{student_email}&userName=#{student_email}&password=#{password}&email=#{student_email}&deviceLimit=#{device_limit}"
|
47
47
|
KitabooResponse.new(https.request(request))
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitaboo_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- João F.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Implement Kitaboo API method access
|
14
14
|
email:
|