@@ -13,6 +13,7 @@ mod cargo;
13
13
mod cmake;
14
14
mod meson;
15
15
mod python;
16
+ mod ruby;
16
17
17
18
pub type Error = Box < dyn std:: error:: Error > ;
18
19
@@ -26,6 +27,8 @@ pub enum System {
26
27
Meson ,
27
28
PythonPep517 ,
28
29
PythonSetupTools ,
30
+ RubyGem ,
31
+ RubyTarball ,
29
32
}
30
33
31
34
impl System {
@@ -36,6 +39,8 @@ impl System {
36
39
Self :: Meson ,
37
40
Self :: PythonPep517 ,
38
41
Self :: PythonSetupTools ,
42
+ Self :: RubyGem ,
43
+ Self :: RubyTarball ,
39
44
] ;
40
45
41
46
pub fn environment ( & self ) -> Option < & ' static str > {
@@ -46,6 +51,8 @@ impl System {
46
51
System :: Meson => None ,
47
52
System :: PythonPep517 => None ,
48
53
System :: PythonSetupTools => None ,
54
+ System :: RubyGem => None ,
55
+ System :: RubyTarball => None ,
49
56
}
50
57
}
51
58
@@ -57,6 +64,8 @@ impl System {
57
64
System :: Meson => meson:: phases ( ) ,
58
65
System :: PythonPep517 => python:: pep517:: phases ( ) ,
59
66
System :: PythonSetupTools => python:: setup_tools:: phases ( ) ,
67
+ System :: RubyGem => ruby:: gemfile:: phases ( ) ,
68
+ System :: RubyTarball => ruby:: tarball:: phases ( ) ,
60
69
}
61
70
}
62
71
@@ -76,6 +85,8 @@ impl System {
76
85
System :: Meson => meson:: process ( state, file) ,
77
86
System :: PythonPep517 => python:: pep517:: process ( state, file) ,
78
87
System :: PythonSetupTools => python:: setup_tools:: process ( state, file) ,
88
+ System :: RubyGem => ruby:: gemfile:: process ( state, file) ,
89
+ System :: RubyTarball => ruby:: tarball:: process ( state, file) ,
79
90
}
80
91
}
81
92
}
0 commit comments