git-projects 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-projects/version.rb +1 -1
- data/lib/helpers/git_project.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe45d61f427d639abe280a7fc9f77320dd0acb6b
|
4
|
+
data.tar.gz: 3177a725a3714191ea8aa7beaa5a5a2c322e92fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e9809aea43758d370ded358d81a14cbd69a2a7a13ecd6c5a47bc04059e12e9d5cfab26bb5aa9f8e6af378a281a3942de09cd373c5f7cdf23a9f2ef164befe9
|
7
|
+
data.tar.gz: cf22b053a66d66846dbc252ff78e79a7088e15bdc103c87d8d7615f6a57e394d277d4efc867b0b628a4e44cd34ee1c22a50b8786d6070b869df6c8649763893a
|
data/lib/git-projects/version.rb
CHANGED
data/lib/helpers/git_project.rb
CHANGED
@@ -37,13 +37,13 @@ class GitProject
|
|
37
37
|
# Create a configuration file based on a root path
|
38
38
|
def create_config(dir, group=nil)
|
39
39
|
dir = dir.is_a?(Array) ? dir.first : dir
|
40
|
-
config_file = "
|
41
|
-
group ||= dir.split(File::SEPARATOR).last
|
40
|
+
config_file = File.join(dir, "git-projects.yml")
|
41
|
+
group ||= dir.split(File::SEPARATOR).last if dir
|
42
42
|
|
43
43
|
unless File.exists?(config_file)
|
44
44
|
projects = []
|
45
45
|
Dir.entries(dir)[2..-1].each do |project|
|
46
|
-
g = Git.open(
|
46
|
+
g = Git.open(File.join(dir, project))
|
47
47
|
p = {}
|
48
48
|
p[project] = add_remotes_to_hash(g, p, dir)
|
49
49
|
p[project]['group'] = group
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-projects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katherine Pe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|