Skip to content

Commit d599da3

Browse files
committed
v1.6.0
1 parent 057d213 commit d599da3

File tree

4 files changed

+71
-42
lines changed

4 files changed

+71
-42
lines changed

CHANGELOG.md

+53-28
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,85 @@
1+
## v1.6.0
2+
3+
### Fixes
4+
5+
- Fix Money Filter to use the correct default Rails path for Currency and Percentage;
6+
7+
### Updates
8+
9+
- Adds Code Quality;
10+
- Adds Test Coverage;
11+
- Migrates the build to Github Actions;
12+
- Removes Git dependency for build;
13+
114
## v1.5.0
215

3-
- Features:
4-
- Filter `date` now supports call object that respond to `beginning_of_day` or `end_of_day`;
16+
### Features
17+
18+
- Filter `date` now supports call object that respond to `beginning_of_day` or `end_of_day`;
519

620
## v1.4.0
721

8-
- Features:
9-
- Adds `date` support for `Date` class.
22+
### Features
23+
24+
- Adds `date` support for `Date` class.
1025

1126
## v1.3.0
1227

13-
- Changes:
14-
- Support Rails 6.
28+
### Updates
29+
30+
- Support Rails 6.
1531

1632
## v1.2.0
1733

18-
- Features:
19-
- `money` filter now allows negative numbers.
34+
### Features
35+
36+
- `money` filter now allows negative numbers.
2037

2138
## v1.1.1
2239

23-
- Fixes:
24-
- When use `slug` filter the original values was not saved.
40+
### Fixes
41+
42+
- When use `slug` filter the original values was not saved.
2543

2644
## v1.1.0
2745

28-
- Features:
29-
- Added `slug` filter with option to apply the value on other field.
46+
### Features
47+
48+
- Added `slug` filter with option to apply the value on other field.
3049

3150
## v1.0.1
3251

33-
- Fixes:
34-
- When `type` options was `cents` and had no decimal on number, extra decimal were added.
52+
### Fixes
53+
54+
- When `type` options was `cents` and had no decimal on number, extra decimal were added.
3555

3656
## v1.0.0
3757

38-
- Changes:
39-
- `raw` options was dropped since `prepend` already works before type cast;
40-
- Multiple lines of `normalizy` will be evaluated from the bottom to top.
58+
### Updates
59+
60+
- `raw` options was dropped since `prepend` already works before type cast;
61+
- Multiple lines of `normalizy` will be evaluated from the bottom to top.
4162

42-
- Features:
43-
- `alias` configuration now accepts options;
63+
### Features
4464

45-
- Fixes:
46-
- Multiple filters were not running together.
65+
- `alias` configuration now accepts options;
66+
67+
### Fixes
68+
69+
- Multiple filters were not running together.
4770

4871
## v0.2.0
4972

50-
- Changes:
51-
- `number` filter no more make cast automatically.
52-
- `number` now accept `cast` options with method to be used on cast type;
73+
### Updates
74+
75+
- `number` filter no more make cast automatically.
76+
- `number` now accept `cast` options with method to be used on cast type;
77+
78+
### Features
5379

54-
- Features:
55-
- add `date` filter with `format`, `time_zone` and I18n error message support;
56-
- add `money` filter with `cast`, `type` and I18n support;
57-
- add `percent` filter with `cast`, `type` and I18n support.
80+
- add `date` filter with `format`, `time_zone` and I18n error message support;
81+
- add `money` filter with `cast`, `type` and I18n support;
82+
- add `percent` filter with `cast`, `type` and I18n support.
5883

5984
## v0.1.0
6085

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
normalizy (1.5.0)
4+
normalizy (1.6.0)
55
activerecord (>= 4.1)
66

77
GEM

README.md

+16-12
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ If you do not want pass it as options, Normalizy will fetch your I18n config:
142142

143143
```yaml
144144
en:
145-
currency:
146-
format:
147-
separator: '.'
145+
number:
146+
currency:
147+
format:
148+
separator: '.'
148149
```
149150
150151
And if it does not exists, `.` will be used as default.
@@ -192,9 +193,10 @@ If you do not want pass it as options, Normalizy will fetch your I18n config:
192193

193194
```yaml
194195
en:
195-
currency:
196-
format:
197-
precision: 2
196+
number:
197+
currency:
198+
format:
199+
precision: 2
198200
```
199201

200202
And if it does not exists, `2` will be used as default.
@@ -267,9 +269,10 @@ If you do not want pass it as options, Normalizy will fetch your I18n config:
267269

268270
```yaml
269271
en:
270-
percentage:
271-
format:
272-
separator: '.'
272+
number:
273+
percentage:
274+
format:
275+
separator: '.'
273276
```
274277

275278
And if it does not exists, `.` will be used as default.
@@ -317,9 +320,10 @@ If you do not want pass it as options, Normalizy will fetch your I18n config:
317320

318321
```yaml
319322
en:
320-
percentage:
321-
format:
322-
separator: 2
323+
number:
324+
percentage:
325+
format:
326+
separator: 2
323327
```
324328

325329
And if it does not exists, `2` will be used as default.

lib/normalizy/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Normalizy
4-
VERSION = '1.5.0'
4+
VERSION = '1.6.0'
55
end

0 commit comments

Comments
 (0)