almapi 0.1.13 → 0.1.15
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/lib/almapi/almapi.rb +5 -5
- data/lib/almapi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6621819cae2c78b1a7e011242624e34e184bfa3cf753b09bd0f9c88160717d5d
|
4
|
+
data.tar.gz: de8b2ce6ad6e7f7ded96a03411c89b49110bcc6136cf2f2e97735b30434e2587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b266e3d37a5ab7c4a6da77aea8d57196966ba5ecaf94bf506b9180bcee468458fc1058097f40cee67fb1905f43b68dc1ef513ca0a7ca699e22bb0415969bc6
|
7
|
+
data.tar.gz: 4549b524298cab18f5c11c315c5856c093b81ce3d3752b1b50d55efedb5a056b4a096cee4c019326b95b8289c6287c4cfe0a46772756674863dc42a180ac4612
|
data/lib/almapi/almapi.rb
CHANGED
@@ -61,7 +61,7 @@ module Almapi
|
|
61
61
|
"#{@uri_base}#{resource}" # All other cases
|
62
62
|
end
|
63
63
|
|
64
|
-
puts "[Almapi::Api.get] INFO URL #{url_api}"
|
64
|
+
#puts "[Almapi::Api.get] INFO URL #{url_api}"
|
65
65
|
handle_response(@conn.get(url_api), "GET")
|
66
66
|
end
|
67
67
|
|
@@ -73,7 +73,7 @@ module Almapi
|
|
73
73
|
# @return [Response] : the resulting response
|
74
74
|
def post(resource, data)
|
75
75
|
url_api = "#{@uri_base}#{resource}"
|
76
|
-
puts "[Almapi::Api.post] INFO URL #{url_api}"
|
76
|
+
#puts "[Almapi::Api.post] INFO URL #{url_api}"
|
77
77
|
handle_response(@conn.post(url_api, data.to_s), "POST")
|
78
78
|
end
|
79
79
|
|
@@ -85,7 +85,7 @@ module Almapi
|
|
85
85
|
# @return [Response] : the resulting response. If error occurs, raises an AlmapiError
|
86
86
|
def put(resource, data)
|
87
87
|
url_api = "#{@uri_base}#{resource}"
|
88
|
-
puts "[Almapi::Api.put] INFO URL #{url_api}"
|
88
|
+
#puts "[Almapi::Api.put] INFO URL #{url_api}"
|
89
89
|
handle_response(@conn.put(url_api, data.to_s), "PUT")
|
90
90
|
end
|
91
91
|
|
@@ -96,7 +96,7 @@ module Almapi
|
|
96
96
|
# @return [Response] : the resulting response. If error occurs, raises an AlmapiError
|
97
97
|
def delete(resource)
|
98
98
|
url_api = "#{@uri_base}#{resource}"
|
99
|
-
puts "[Almapi::Api.delete] INFO URL #{url_api}"
|
99
|
+
#puts "[Almapi::Api.delete] INFO URL #{url_api}"
|
100
100
|
handle_response(@conn.delete(url_api), "DELETE")
|
101
101
|
end
|
102
102
|
|
@@ -109,7 +109,7 @@ module Almapi
|
|
109
109
|
# @return [Response || AlmapiError] : the resulting response if the API call succeeded, else AlmapiError
|
110
110
|
def handle_response(response, method)
|
111
111
|
case response.status
|
112
|
-
when 200
|
112
|
+
when 200, 204
|
113
113
|
# Success
|
114
114
|
response
|
115
115
|
else
|
data/lib/almapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: almapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jszenb
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -135,7 +135,7 @@ licenses:
|
|
135
135
|
- MIT
|
136
136
|
metadata:
|
137
137
|
homepage_uri: https://rubygems.org/gems/almapi.
|
138
|
-
source_code_uri: https://
|
138
|
+
source_code_uri: https://gitlab.huma-num.fr/humatheque-condorcet/outils-numeriques/scripts-alma/almapi
|
139
139
|
changelog_uri: https://github.com/jszenb/almapi/blob/0dcb77349b61bfc2239c51600685bd16b1e7ebc0/CHANGELOG.md
|
140
140
|
rubygems_mfa_required: 'true'
|
141
141
|
post_install_message:
|