-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathRelatedFiles.sublime-settings
84 lines (75 loc) · 1.77 KB
/
RelatedFiles.sublime-settings
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
{
"patterns": {
// Test/specs for ruby files
".+\/(app|lib)\/(.+).rb":
[
"spec/$2_spec.rb",
"test/$2_test.rb"
],
// Ruby files for test/specs
".+\/(test|spec)\/(.+)_(test|spec).rb":
[
"app/$2.rb",
"lib/$2.rb"
],
// Rails controllers
".+\/app\/controllers\/(.+)_controller.rb":
[
"app/views/$1/**",
"app/helpers/$1_helper.rb",
"config/routes.rb",
"spec/requests/$1_spec.rb",
"spec/routing/$1_routing_spec.rb"
],
// Rails helpers
".+\/app\/helpers\/(.+)_helper.rb":
[
"app/views/$1/**",
"app/controllers/$1_controller.rb",
"config/routes.rb",
"spec/requests/$1_spec.rb"
],
// Rails views
".+\/app\/views\/(.+)\/[^\/].+":
[
"app/views/$1/**",
"app/controllers/$1_controller.rb",
"app/helpers/$1_helper.rb",
"config/routes.rb",
"spec/controllers/$1_spec.rb",
"spec/requests/$1_spec.rb"
],
// Rails routes
".+\/config\/routes.rb":
[
"spec/routing/**"
],
// Rails libs
".+\/(lib)\/(.+).rb":
[
"spec/lib/$2_spec.rb",
"test/lib/$2_test.rb"
],
// Rails controllers specs
".+/spec/controllers/(.+)_controller_spec.rb":
[
"app/controllers/$1_controller.rb",
"app/helpers/$1_helper.rb",
"app/views/$1/**",
"config/routes.rb"
],
// Rails request specs
".+/spec/requests/(.+)_spec.rb":
[
"app/controllers/$1_controller.rb",
"app/helpers/$1_helper.rb",
"app/views/$1/**",
"config/routes.rb"
],
// Rails libs specs
".+/spec/lib/(.+)_spec.rb":
[
"lib/$1.rb"
]
}
}