submodule 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/submodule.rb +3 -8
- data/lib/submodule/version.rb +1 -1
- metadata +2 -2
data/lib/submodule.rb
CHANGED
@@ -19,14 +19,9 @@ module Submodule
|
|
19
19
|
|
20
20
|
gitmodules = IniFile.new('./.gitmodules').to_h
|
21
21
|
@path = gitmodules[gitmodules.keys.first]["path"]
|
22
|
-
@submodule_name = gitmodules.keys.first
|
23
|
-
|
24
|
-
|
25
|
-
.gsub('vendor/', '')
|
26
|
-
@github = gitmodules[gitmodules.keys.first]["url"]
|
27
|
-
.gsub('https://github.com/', '')
|
28
|
-
.gsub('.git', '')
|
29
|
-
define
|
22
|
+
@submodule_name = gitmodules.keys.first.gsub('submodule ', '').gsub('"', '').gsub('vendor/', '')
|
23
|
+
@github = gitmodules[gitmodules.keys.first]["url"].gsub('https://github.com/', '').gsub('.git', '')
|
24
|
+
define
|
30
25
|
end
|
31
26
|
|
32
27
|
def test
|
data/lib/submodule/version.rb
CHANGED