-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.post_process.yml
119 lines (119 loc) · 3.54 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
tasks:
- name: 'Update models'
file_glob: './src/twilio/models/*cr'
changes:
-
name: 'Correct datetime converter'
pattern: 'Time::RFC3339Converter'
new_value: 'Time::RFC2822Converter'
- name: 'Update all'
file_glob: './src/twilio/**/*.cr'
changes:
-
name: 'Correct JSON::Any?'
pattern: 'JSON::Any\?'
new_value: 'JSON::Any?'
-
name: 'Correct JSONAny'
pattern: 'JSONAny'
new_value: 'JSON::Any'
-
name: 'Correct Twilio::String'
pattern: 'Twilio::String'
new_value: 'String'
-
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: 'Update apis'
file_glob: './src/twilio/api/*cr'
changes:
-
name: 'Update account_sid param'
pattern: 'account_sid : String\? = nil'
new_value: 'account_sid : String? = @account_sid'
-
name: 'Update account_sid2 param'
pattern: 'account_sid2 : String\? = nil'
new_value: 'account_sid2 : String? = @account_sid'
-
name: 'Correct datetime formatting'
pattern: 'Time::Format::RFC_3339'
new_value: 'Time::Format::RFC_2822'
-
name: 'Update api initializer'
pattern: '$\n^ def initialize\(api_client = ApiClient.default\)$\n^ @api_client = api_client$\n^ end'
new_value: "
\ property account_sid : String\n\n
\ def initialize(api_client = ApiClient.default)\n
\ @api_client = api_client\n
\ @account_sid = api_client.config.username.not_nil!
\ end"
multi_line: true
-
name: 'Update collection format'
pattern: ', \"csv\"\)'
new_value: ', "multi")'
-
name: 'Update start_time2'
pattern: 'start_time2'
new_value: 'start_time_before'
-
name: 'Update start_time3'
pattern: 'start_time3'
new_value: 'start_time_after'
-
name: 'Update end_time2'
pattern: 'end_time2'
new_value: 'end_time_before'
-
name: 'Update end_time3'
pattern: 'end_time3'
new_value: 'end_time_after'
-
name: 'Update message_date2'
pattern: 'message_date2'
new_value: 'message_date_before'
-
name: 'Update message_date3'
pattern: 'message_date3'
new_value: 'message_date_after'
-
name: 'Update date_sent2'
pattern: 'date_sent2'
new_value: 'date_sent_before'
-
name: 'Update date_sent3'
pattern: 'date_sent3'
new_value: 'date_sent_after'
-
name: 'Update date_created2'
pattern: 'date_created2'
new_value: 'date_created_before'
-
name: 'Update date_created3'
pattern: 'date_created3'
new_value: 'date_created_after'
-
name: 'Update date_updated2'
pattern: 'date_updated2'
new_value: 'date_updated_before'
-
name: 'Update date_updated3'
pattern: 'date_updated3'
new_value: 'date_updated_after'