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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bf0e0af220a8b22f1b3543c7d929b4b4a6e0ed1
4
- data.tar.gz: 11c9b54a6a523373e405cb361ea9a8ce8a14d15d
3
+ metadata.gz: fe45d61f427d639abe280a7fc9f77320dd0acb6b
4
+ data.tar.gz: 3177a725a3714191ea8aa7beaa5a5a2c322e92fa
5
5
  SHA512:
6
- metadata.gz: 01d2cce71c5173d68e3fca746593a7f628be481f3175f6d1cc84737906692f373ef54950afd18561410d960316e227cb369d58d1ce07985b15830e9cc64b1cba
7
- data.tar.gz: 72742b92441389515054902dad5edcbaf6ebf05a4676044459775fb95068787940f0667c228ed8a77ecb5ea912fec38b482c54a4af9f37fa738bf40aeedaad00
6
+ metadata.gz: 36e9809aea43758d370ded358d81a14cbd69a2a7a13ecd6c5a47bc04059e12e9d5cfab26bb5aa9f8e6af378a281a3942de09cd373c5f7cdf23a9f2ef164befe9
7
+ data.tar.gz: cf22b053a66d66846dbc252ff78e79a7088e15bdc103c87d8d7615f6a57e394d277d4efc867b0b628a4e44cd34ee1c22a50b8786d6070b869df6c8649763893a
@@ -1,3 +1,3 @@
1
1
  module GitProjects
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -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 = "#{dir}/git-projects.yml"
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("#{dir}/#{project}")
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.3
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-01-31 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git