gitjour 1.0.0 → 2.0.0
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.
- data/bin/gitjour +3 -3
- data/lib/gitjour/version.rb +1 -1
- metadata +1 -1
data/bin/gitjour
CHANGED
@@ -26,17 +26,17 @@ def service_list(looking_for = nil)
|
|
26
26
|
service_list
|
27
27
|
end
|
28
28
|
|
29
|
-
case ARGV.
|
29
|
+
case ARGV.shift
|
30
30
|
when "list"
|
31
31
|
service_list.each do |service|
|
32
32
|
puts "#{service.name} on #{service.host}: gitjour clone #{service.name}"
|
33
33
|
end
|
34
34
|
when "clone"
|
35
35
|
name_of_share = ARGV[1] || flunk("You have to pass in a name")
|
36
|
-
host = service_list(name_of_share).detect{|service| service.name}.host
|
36
|
+
host = service_list(name_of_share).detect{|service| service.name == name_of_share}.host
|
37
37
|
system("git clone git://#{host}/ #{name_of_share}")
|
38
38
|
when "serve"
|
39
|
-
name = File.basename(Dir.pwd)
|
39
|
+
name = ARGV.shift || File.basename(Dir.pwd)
|
40
40
|
tr = DNSSD::TextRecord.new
|
41
41
|
tr['unfortunately'] = 'have to have a text record'
|
42
42
|
DNSSD.register(name, "_git._tcp", 'local', 9148, tr.encode) do |register_reply|
|
data/lib/gitjour/version.rb
CHANGED