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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe1da23ef28478f294186858a53686d1ffd4f29d
4
- data.tar.gz: b793ba5b0a34fe5316befca0be96054a9be1f933
3
+ metadata.gz: 5969f0e856fd75f191b5fec15165b4bce9ef8c8f
4
+ data.tar.gz: 063212d41f7b85e4a07b3b095a515fdbee1f4939
5
5
  SHA512:
6
- metadata.gz: 86d678241bee5a87e989038328b717e0ff09818f66d899871008e8cc6045c5707612dd13b757325b1704dcda3da151d612600c7537db434a98851fdc06046f80
7
- data.tar.gz: 3968d5381a974b3941bc27b2de9fa2a5369d3b48be7706cf83aecddc32ad622ee54eba4a4851da7ceb8c66d1086a6f4946544be2b02d31ae69ec102da22491b0
6
+ metadata.gz: ef99ce6753044bd1a0c4db59d74ab8ffbc592de4bef104df3b57e9f7fe60bb7ad2846bfbb235f4664b7f1377ff921751c7f1393c336328a27d76500452869565
7
+ data.tar.gz: a7f4597b213989e2af406e896ebec8e8d79798eb798f2129a71ef0444a8b93e4b270954a54b9020caf02a4287f535d645864b77f2ddeda837c6fe7e2e7bdb91d
@@ -52,7 +52,12 @@ module CONTENTdmAPI
52
52
  end
53
53
 
54
54
  def result
55
- values.first.merge(values.last)
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)
@@ -1,3 +1,3 @@
1
1
  module CONTENTdmAPI
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.3.7'.freeze
3
3
  end
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.5
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-06 00:00:00.000000000 Z
11
+ date: 2016-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler