autoproj 1.9.5.rc4 → 1.9.5.rc5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autoproj/gitorious.rb +11 -6
- data/lib/autoproj/version.rb +1 -1
- metadata +5 -5
data/lib/autoproj/gitorious.rb
CHANGED
@@ -21,6 +21,9 @@ module Autoproj
|
|
21
21
|
# as import failed
|
22
22
|
def self.gitorious_server_configuration(name, base_url, options = Hash.new)
|
23
23
|
options = Kernel.validate_options options,
|
24
|
+
:git_url => "git://#{base_url}",
|
25
|
+
:http_url => "https://git.#{base_url}",
|
26
|
+
:ssh_url => "git@#{base_url}:",
|
24
27
|
:fallback_to_http => true
|
25
28
|
|
26
29
|
gitorious_long_doc = [
|
@@ -40,15 +43,17 @@ module Autoproj
|
|
40
43
|
|
41
44
|
access_mode = Autoproj.user_config(name)
|
42
45
|
if access_mode == "git"
|
43
|
-
Autoproj.change_option("#{name}_ROOT",
|
46
|
+
Autoproj.change_option("#{name}_ROOT", options[:git_url])
|
47
|
+
Autoproj.change_option("#{name}_PUSH_ROOT", options[:ssh_url])
|
44
48
|
elsif access_mode == "http"
|
45
|
-
Autoproj.change_option("#{name}_ROOT",
|
49
|
+
Autoproj.change_option("#{name}_ROOT", options[:http_url])
|
50
|
+
Autoproj.change_option("#{name}_PUSH_ROOT", options[:http_url])
|
46
51
|
elsif access_mode == "ssh"
|
47
|
-
Autoproj.change_option("#{name}_ROOT",
|
52
|
+
Autoproj.change_option("#{name}_ROOT", options[:ssh_url])
|
53
|
+
Autoproj.change_option("#{name}_PUSH_ROOT", options[:ssh_url])
|
48
54
|
end
|
49
|
-
Autoproj.change_option("#{name}_PUSH_ROOT", "git@#{base_url}:")
|
50
55
|
|
51
|
-
Autoproj.add_source_handler name.downcase do |url,
|
56
|
+
Autoproj.add_source_handler name.downcase do |url, vcs_options|
|
52
57
|
if url !~ /\.git$/
|
53
58
|
url += ".git"
|
54
59
|
end
|
@@ -57,7 +62,7 @@ module Autoproj
|
|
57
62
|
end
|
58
63
|
pull_base_url = Autoproj.user_config("#{name}_ROOT")
|
59
64
|
push_base_url = Autoproj.user_config("#{name}_PUSH_ROOT")
|
60
|
-
Hash[:type => 'git', :url => "#{pull_base_url}#{url}", :push_to => "#{push_base_url}#{url}", :retry_count => 10].merge(
|
65
|
+
Hash[:type => 'git', :url => "#{pull_base_url}#{url}", :push_to => "#{push_base_url}#{url}", :retry_count => 10].merge(vcs_options)
|
61
66
|
end
|
62
67
|
end
|
63
68
|
end
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.5.
|
4
|
+
version: 1.9.5.rc5
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: autobuild
|
@@ -206,10 +206,10 @@ signing_key:
|
|
206
206
|
specification_version: 3
|
207
207
|
summary: Easy installation and management of sets of software packages
|
208
208
|
test_files:
|
209
|
-
- test/test_manifest.rb
|
210
|
-
- test/test_package_manifest.rb
|
211
209
|
- test/test_os_dependencies.rb
|
212
210
|
- test/test_debian.rb
|
213
|
-
- test/
|
211
|
+
- test/test_manifest.rb
|
214
212
|
- test/package_managers/test_apt_dpkg_manager.rb
|
215
213
|
- test/package_managers/test_gem.rb
|
214
|
+
- test/package_managers/test_pip.rb
|
215
|
+
- test/test_package_manifest.rb
|