Skip to content

Commit bbf3d8a

Browse files
author
蔡耀賢
committed
Merge branch 'fix-readme-typo' into 'master'
Fix readme typo See merge request kdanmobile/shared-code-base/gems/error_response!39
2 parents a77e8cc + 66f0e08 commit bbf3d8a

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rspec:
1515
tags:
1616
- arm64
1717
script:
18-
- bundle install
18+
- bundle install
1919
- rspec spec
2020
only:
2121
- master

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## [1.1.6] - 2025-07-18
2+
- Fix readme typo.
13
## [1.1.5] - 2025-07-16
24
- Update development_dependency.
35
- Update require `active_support/concern` instead of `active_support/all`.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
error_response (1.1.5)
4+
error_response (1.1.6)
55

66
GEM
77
remote: https://rubygems.org/

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ return success_response(data) if success?
6666
```
6767

6868
> response status: 200
69+
>
6970
> response body:
7071

7172
```json
@@ -87,11 +88,12 @@ return error_response(:bad_request_1) if failed?
8788
```
8889

8990
> response status: 400
91+
>
9092
> response body:
9193

9294
```json
9395
{
94-
"error_code": 400_001,
96+
"error_code": 400001,
9597
"error_message": "bad request 1",
9698
"error_key": "bad_request_1"
9799
}
@@ -105,11 +107,12 @@ return error_response(:bad_request_1, 'no required data', { a: 1, b: 2 }) if fai
105107
```
106108

107109
> response status: 400
110+
>
108111
> response body:
109112

110113
```json
111114
{
112-
"error_code": 400_001,
115+
"error_code": 400001,
113116
"error_message": "bad request 1: no required data",
114117
"error_key": "bad_request_1",
115118
"a": 1,
@@ -144,11 +147,12 @@ ErrorResponse.to_hash(:bad_request_1)
144147
gives you
145148

146149
> response status: 400
150+
>
147151
> response body:
148152

149153
```json
150154
{
151-
"error_code": 400_001,
155+
"error_code": 400001,
152156
"error_message": "bad request 1",
153157
"error_key": "bad_request_1"
154158
}

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.5
1+
1.1.6

0 commit comments

Comments
 (0)