contentdm_api 0.3.5 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contentdm_api/item.rb +6 -1
- data/lib/contentdm_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5969f0e856fd75f191b5fec15165b4bce9ef8c8f
|
4
|
+
data.tar.gz: 063212d41f7b85e4a07b3b095a515fdbee1f4939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef99ce6753044bd1a0c4db59d74ab8ffbc592de4bef104df3b57e9f7fe60bb7ad2846bfbb235f4664b7f1377ff921751c7f1393c336328a27d76500452869565
|
7
|
+
data.tar.gz: a7f4597b213989e2af406e896ebec8e8d79798eb798f2129a71ef0444a8b93e4b270954a54b9020caf02a4287f535d645864b77f2ddeda837c6fe7e2e7bdb91d
|
data/lib/contentdm_api/item.rb
CHANGED
@@ -52,7 +52,12 @@ module CONTENTdmAPI
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def result
|
55
|
-
values.first
|
55
|
+
return if values.first == {} && values.last == {}
|
56
|
+
if values.length > 1
|
57
|
+
values.first.merge('page' => values.last['page'])
|
58
|
+
else
|
59
|
+
values.first
|
60
|
+
end
|
56
61
|
end
|
57
62
|
|
58
63
|
def compounds(page)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentdm_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Fennell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|