microcms-ruby-sdk 1.0.1 → 1.0.2

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: 2892962110d682580cb5eb813bea75f334d47a7dde30f7aa67c07f0d7c8fc05c
4
- data.tar.gz: 822122a22a386cd1a46b3a605f5b1f162f5c700acd99e1fe34fda37f9f2b34d1
3
+ metadata.gz: ce42fc094821080f133ac9faf93e5efbe4cc7fec65ad4930e65e61a4eb3e4add
4
+ data.tar.gz: bf9c56b513719887e1ac417db6e903d2b299e583a66f6a39c515e315dc54b714
5
5
  SHA512:
6
- metadata.gz: 5b31e0ff740a05af775a86893ae6a3d502439878ced5665266ce8ea49031bf34518a52e1057820af2dd6a0dcd9e47ee219baf5f5e726698a75536299993cb571
7
- data.tar.gz: 95f62f1b8271769675dc06ce7a73c082183c04a0256507ec28854d0dffe8a3f0bc63f0bc1044fe5b1a50238bdffe143642aa2a3834b6b07959b7c74fbd39a39d
6
+ metadata.gz: 18650d072175f4ce851f0d66cb60b6e2a6bd588bb6184bd88b8424783a73f183391e60b2a2ac07f75546efba1c29bf863939edccd5c74d6f35796ebfc1013ebf
7
+ data.tar.gz: 6f92d78767727676f97041bbb4bbc934ead25ab774b73322517c7664640cca91c9589c1dd47340da2fca434655977cc9a715d6966a8914145fd9177e84659f9c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicroCMS
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
data/lib/microcms.rb CHANGED
@@ -28,7 +28,12 @@ module MicroCMS
28
28
  end
29
29
 
30
30
  def list(endpoint, option = {})
31
- send_http_request('GET', endpoint, nil, build_query(option))
31
+ list = send_http_request('GET', endpoint, nil, build_query(option))
32
+ if list[:totalCount]
33
+ list[:total_count] = list[:totalCount]
34
+ list.delete_field(:totalCount)
35
+ end
36
+ list
32
37
  end
33
38
 
34
39
  def get(endpoint, id = '', option = {})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microcms-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - microCMS
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-05 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: microCMS Ruby SDK
14
14
  email: