dina 0.5.3.0 → 0.5.4.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bd91960b1bdd12e80298ec10a00fbb667f4eb54d1395c6ffa8f9a623c74baee
|
4
|
+
data.tar.gz: e323a54e622ea8b29f0ac6d0f61b36194df1f59308ebb15f7df65d2c29668612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08981c9cab7306ceaafd89e5fa86f91f6abe96dbfcef74604bab6636da5b5b42084f55228d08f1001b8573e424046094965f6f9ad5cc7ffbfcf6470af62f4a0b'
|
7
|
+
data.tar.gz: d846e3986c30490f49745b35356796ab058ed2ab608c4554ccf3af2b1253aaa84e2b2d424ba1b42f0083f82d7aae90994380f2698f51808d7d66314fe499c66d
|
@@ -28,10 +28,18 @@ module Dina
|
|
28
28
|
"collection"
|
29
29
|
end
|
30
30
|
|
31
|
+
# Finds a Collection object by name
|
32
|
+
#
|
33
|
+
# @param email [String] a name
|
34
|
+
# @return object [Object] a Collection object
|
31
35
|
def self.find_by_name(name)
|
32
36
|
where(name: name).all.first
|
33
37
|
end
|
34
38
|
|
39
|
+
# Finds a Collection object by code
|
40
|
+
#
|
41
|
+
# @param code [String] a code
|
42
|
+
# @return object [Object] a Collection object
|
35
43
|
def self.find_by_code(code)
|
36
44
|
where(code: code).all.first
|
37
45
|
end
|
@@ -30,7 +30,7 @@ module Dina
|
|
30
30
|
begin
|
31
31
|
response = RestClient::Request.execute(
|
32
32
|
method: method,
|
33
|
-
url: endpoint + endpoint_path + "?" + params.to_query,
|
33
|
+
url: endpoint + "/" + endpoint_path + "?" + params.to_query,
|
34
34
|
payload: payload.to_json,
|
35
35
|
headers: {
|
36
36
|
accept: 'application/json',
|
data/lib/dina/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David P. Shorthouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|