-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.post_process.yml
84 lines (84 loc) · 2.21 KB
/
.post_process.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
tasks:
- name: 'Update models'
file_glob: './src/stripe/models/*cr'
changes:
-
name: "card_present"
pattern: 'ignore_serialize: card_present\.'
new_value: 'ignore_serialize: card_present2.'
-
name: "card_present"
pattern: 'property card_present :'
new_value: 'property card_present2 :'
-
name: "card_present"
pattern: '@card_present '
new_value: '@card_present2 '
-
name: "card_present"
pattern: '@card_present,'
new_value: '@card_present2,'
-
name: "card_present_present"
pattern: 'card_present_present'
new_value: 'card_present2_present'
- name: 'Update all'
file_glob: './src/stripe/**/*.cr'
changes:
-
name: 'Correct JSON::Any?'
pattern: 'JSON::Any\?'
new_value: 'JSON::Any?'
-
name: 'Correct JSONAny'
pattern: 'JSONAny'
new_value: 'JSON::Any'
-
name: 'Correct Stripe::String'
pattern: 'Stripe::String'
new_value: 'String'
-
name: 'Correct Int32'
pattern: ': Int32'
new_value: ': Int64'
-
name: 'Correct ::::'
pattern: '::::'
new_value: '::'
-
name: "Remove empty if blocks"
pattern: '^\s+if _[^\s]+ = [^\s]+$\n^\s+end$'
new_value: ''
multi_line: true
-
name: "Remove empty if blocks"
pattern: '^\s+if [^\s]+$\n^\s+end$'
new_value: ''
multi_line: true
-
name: "Remove empty unless blocks"
pattern: '(^\s+unless [^\s]+ = [^\s]+$\n^\s+end$|^\s+unless [^\s]+$\n^\s+end$)'
new_value: ''
multi_line: true
# -
# name: "Replace 1?"
# pattern: '1\?'
# new_value: '?'
# -
# name: "Replace 1)"
# pattern: '1\)'
# new_value: ')'
- name: 'Update api error'
file_glob: './src/stripe/api_error.cr'
changes:
-
name: 'Correct Int64'
pattern: 'Int64'
new_value: 'Int32'
- name: 'Update api error'
file_glob: './src/stripe/api_client.cr'
changes:
-
name: 'Correct Int64'
pattern: 'Int64'
new_value: 'Int32'