git-superproject 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.pryrc +4 -0
- data/exe/git-superproject +1 -1
- data/lib/git/superproject/version.rb +1 -1
- data/lib/git/superproject.rb +9 -5
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a09b0b6841e89f8a79c70c9725cbe8c27d378430
|
4
|
+
data.tar.gz: 6ce5c12bb293926a99aff78ad5f30ab6e75b461e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b75807381c1a981f5682f53c90452341898ec9cd89548de931df35f227bd0d73e9ca568d0fe6f6925852e33a9bf4b458d5e17b099f8f39177e6daeb4737491d
|
7
|
+
data.tar.gz: b1568599d2a18a884df07099ca2b7d3c124fe86fe21dd56fc580a9c716aadcc0fc4bbc5ea4cd8ce6fea7611f4d2770f923611c7dde929128e7c4840f6190ec01
|
data/.pryrc
ADDED
data/exe/git-superproject
CHANGED
data/lib/git/superproject.rb
CHANGED
@@ -54,15 +54,12 @@ module Git
|
|
54
54
|
list(name)
|
55
55
|
end
|
56
56
|
|
57
|
-
def
|
57
|
+
def save(file)
|
58
58
|
# create backup of original file
|
59
59
|
FileUtils.mv(file, "#{file}~") if File.exist? file
|
60
60
|
|
61
61
|
@superprojects.keys.each do |name|
|
62
|
-
|
63
|
-
list(name).each do |repo|
|
64
|
-
`git config --file #{file} --add #{key} #{repo}`
|
65
|
-
end
|
62
|
+
write_to(file, name)
|
66
63
|
end
|
67
64
|
|
68
65
|
# copy across all the comments from the original file
|
@@ -93,6 +90,13 @@ module Git
|
|
93
90
|
@superprojects[name].delete(repo)
|
94
91
|
end
|
95
92
|
|
93
|
+
def write_to(file, name)
|
94
|
+
key = "superproject.#{name}.repo"
|
95
|
+
list(name).each do |repo|
|
96
|
+
`git config --file #{file} --add #{key} #{repo}`
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
96
100
|
end
|
97
101
|
|
98
102
|
module Commands
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-superproject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenberk
|
@@ -75,6 +75,7 @@ extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- ".gitignore"
|
78
|
+
- ".pryrc"
|
78
79
|
- ".rubocop.yml"
|
79
80
|
- ".ruby-version"
|
80
81
|
- ".travis.yml"
|