whimsy-asf 0.0.69 → 0.0.70
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/asf.version +1 -1
- data/lib/whimsy/asf/bundler.rb +5 -5
- data/lib/whimsy/asf/config.rb +1 -1
- data/lib/whimsy/asf/ldap.rb +13 -7
- data/lib/whimsy/asf/svn.rb +6 -2
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f924b1857e96a3bd4a2bd75839d149c7878a00e6
|
4
|
+
data.tar.gz: 09c84284eb5d791040fb2289d2c4ee6ac5d9ee63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654ef995bd682ff067ccaafe09bbbab30356fe5e367201057d89bc990466e95ae438029fb53390490887da510518f3ce177d4d568831c2562845b700242d53b5
|
7
|
+
data.tar.gz: 1c69d9652038b168085544dae93b210e1b4bb1be931820ae50e3bc94e3c707178b81654d2f1ab3f8685c94ab8b2bbff7ef2e1951dd950cb5de2120c3a3afed7f
|
data/asf.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.70
|
data/lib/whimsy/asf/bundler.rb
CHANGED
@@ -14,14 +14,14 @@ module Bundler
|
|
14
14
|
|
15
15
|
path = nil
|
16
16
|
libs.each do |lib|
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
if File.exist?("#{lib}/#{pname}")
|
18
|
+
path = lib
|
19
|
+
end
|
20
20
|
end
|
21
21
|
|
22
22
|
if path
|
23
|
-
|
24
|
-
|
23
|
+
args.push({}) unless args.last.is_a?(Hash)
|
24
|
+
args.last[:path] = File.dirname(path)
|
25
25
|
end
|
26
26
|
|
27
27
|
bundler_gem.bind(self).(name, *args)
|
data/lib/whimsy/asf/config.rb
CHANGED
@@ -10,7 +10,7 @@ module ASF
|
|
10
10
|
@config = YAML.load_file("#@home/.whimsy") rescue {}
|
11
11
|
|
12
12
|
# default :svn for backwards compatibility
|
13
|
-
@config[:svn] ||= ['/home/whimsysvn/svn/*']
|
13
|
+
@config[:svn] ||= ['/srv/svn/*', '/home/whimsysvn/svn/*', "#{@home}/svn/*"]
|
14
14
|
|
15
15
|
# add libraries to RUBYLIB, load path
|
16
16
|
(@config[:lib] || []).reverse.each do |lib|
|
data/lib/whimsy/asf/ldap.rb
CHANGED
@@ -2,6 +2,18 @@ require 'wunderbar'
|
|
2
2
|
require 'ldap'
|
3
3
|
|
4
4
|
module ASF
|
5
|
+
module LDAP
|
6
|
+
# https://www.pingmybox.com/dashboard?location=304
|
7
|
+
# https://github.com/apache/infrastructure-puppet/blob/deployment/data/common.yaml (ldapserver::slapd_peers)
|
8
|
+
HOSTS = %w(
|
9
|
+
ldaps://ldap1-us-west.apache.org:636
|
10
|
+
ldaps://ldap1-eu-central.apache.org:636
|
11
|
+
ldaps://ldap2-us-west.apache.org:636
|
12
|
+
ldaps://ldap1-us-east.apache.org:636
|
13
|
+
ldaps://snappy5.apache.org:636
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
5
17
|
# determine where ldap.conf resides
|
6
18
|
if Dir.exist? '/etc/openldap'
|
7
19
|
ETCLDAP = '/etc/openldap'
|
@@ -349,13 +361,7 @@ module ASF
|
|
349
361
|
end
|
350
362
|
|
351
363
|
# if all else fails, pick one at random
|
352
|
-
unless host
|
353
|
-
# https://www.pingmybox.com/dashboard?location=304
|
354
|
-
host = %w(ldaps://ldap1-us-west.apache.org:636
|
355
|
-
ldaps://ldap1-eu-central.apache.org:636
|
356
|
-
ldaps://ldap2-us-west.apache.org:636
|
357
|
-
ldaps://ldap1-us-east.apache.org:636).sample
|
358
|
-
end
|
364
|
+
host = ASF::LDAP::HOSTS.sample unless host
|
359
365
|
|
360
366
|
host
|
361
367
|
end
|
data/lib/whimsy/asf/svn.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'uri'
|
2
2
|
require 'thread'
|
3
|
+
require 'open3'
|
3
4
|
|
4
5
|
module ASF
|
5
6
|
|
@@ -14,9 +15,12 @@ module ASF
|
|
14
15
|
svn = ASF::Config.get(:svn).map {|dir| dir.untaint}
|
15
16
|
@repos ||= Hash[Dir[*svn].map { |name|
|
16
17
|
Dir.chdir name.untaint do
|
17
|
-
|
18
|
+
out, err, status = Open3.capture3('svn', 'info')
|
19
|
+
if status.success?
|
20
|
+
[out[/URL: (.*)/,1].sub(/^http:/,'https:'), Dir.pwd.untaint]
|
21
|
+
end
|
18
22
|
end
|
19
|
-
}]
|
23
|
+
}.compact]
|
20
24
|
end
|
21
25
|
end
|
22
26
|
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whimsy-asf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-ldap
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tzinfo
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tzinfo-data
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: wunderbar
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: |2
|
@@ -137,12 +137,12 @@ require_paths:
|
|
137
137
|
- lib
|
138
138
|
required_ruby_version: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
|
-
- -
|
140
|
+
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|