fig 1.19.0 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BUGS.md +5 -0
- data/Changes +10 -0
- data/lib/fig.rb +1 -1
- data/lib/fig/command.rb +2 -1
- data/lib/fig/command/options.rb +7 -0
- data/lib/fig/command/options/parser.rb +1 -1
- data/lib/fig/figrc.rb +11 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eba6113bed095e62bb10c9ce380218a6c2bc683
|
4
|
+
data.tar.gz: 94e175251848a3aced8fde64a97f53077864cf50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5c08a97c1edc70361abbaabbe3c9af162cc455bc01d690370ad895820bfe97b6073869adf84ca7f6a49bade00ba196f4f55f2177787cf94d10af908f089540c
|
7
|
+
data.tar.gz: 310fdd7c162cf1585ecd72a198298f8c73eefa58bd3a85cf2c308b291e1395c841a4c47bab757c8dab3685a08701ef5a7447380c040033256981f017724c020d
|
data/BUGS.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
- `sftp:` URLs are subject to https://github.com/net-ssh/net-sftp/issues/27.
|
2
|
+
- Packages containing symlinks fail to install on Windows. libarchive doesn't corectly report them as symlinks.
|
3
|
+
- Bad values in `FIG_HOME` and `FIG_REMOTE_URL` produce nasty errors.
|
4
|
+
- URLs with query parameters or involve redirects are untested.
|
5
|
+
- Repository locking doesn't happen on Windows.
|
data/Changes
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
v1.20.0 - 2014/10/7
|
2
|
+
|
3
|
+
New features:
|
4
|
+
|
5
|
+
- New --no-remote-figrc option that suppresses looking at
|
6
|
+
$FIG_REMOTE_URL/_meta/figrc.
|
7
|
+
- Treats an empty FIG_REMOTE_URL as equivalent to it being unset. This
|
8
|
+
allows temporary disabling remote access by invoking it like
|
9
|
+
"FIG_REMOTE_URL= fig <... whatever...>".
|
10
|
+
|
1
11
|
v1.19.0 - 2014/9/26
|
2
12
|
|
3
13
|
Miscellaneous:
|
data/lib/fig.rb
CHANGED
data/lib/fig/command.rb
CHANGED
data/lib/fig/command/options.rb
CHANGED
@@ -150,6 +150,10 @@ class Fig::Command::Options
|
|
150
150
|
return @no_figrc
|
151
151
|
end
|
152
152
|
|
153
|
+
def no_remote_figrc?()
|
154
|
+
return @no_remote_figrc
|
155
|
+
end
|
156
|
+
|
153
157
|
def suppress_warning_include_statement_missing_version?()
|
154
158
|
return @suppress_warning_include_statement_missing_version
|
155
159
|
end
|
@@ -622,6 +626,9 @@ class Fig::Command::Options
|
|
622
626
|
end
|
623
627
|
|
624
628
|
@parser.on('--no-figrc', 'ignore ~/.figrc') { @no_figrc = true }
|
629
|
+
@parser.on('--no-remote-figrc', 'ignore $FIG_REMOTE_URL/_meta/figrc') {
|
630
|
+
@no_remote_figrc = true
|
631
|
+
}
|
625
632
|
|
626
633
|
@parser.on(
|
627
634
|
'--log-config PATH',
|
@@ -93,7 +93,7 @@ Standard options (represented as "[...]" above):
|
|
93
93
|
[-l | --login]
|
94
94
|
|
95
95
|
[--log-level LEVEL] [--log-config PATH | --log-to-stdout]
|
96
|
-
[--figrc PATH] [--no-figrc]
|
96
|
+
[--figrc PATH] [--no-figrc] [--no-remote-figrc]
|
97
97
|
|
98
98
|
[--suppress-vcs-comments-in-published-packages]
|
99
99
|
[--suppress-warning-include-statement-missing-version]
|
data/lib/fig/figrc.rb
CHANGED
@@ -19,7 +19,8 @@ class Fig::FigRC
|
|
19
19
|
specified_repository_url,
|
20
20
|
operating_system,
|
21
21
|
fig_home,
|
22
|
-
disable_figrc = false
|
22
|
+
disable_figrc = false,
|
23
|
+
disable_remote_figrc = false
|
23
24
|
)
|
24
25
|
configuration = Fig::ApplicationConfiguration.new()
|
25
26
|
|
@@ -34,7 +35,7 @@ class Fig::FigRC
|
|
34
35
|
|
35
36
|
handle_repository_configuration(
|
36
37
|
configuration, repository_url, operating_system, fig_home
|
37
|
-
)
|
38
|
+
) if not disable_remote_figrc
|
38
39
|
|
39
40
|
return configuration
|
40
41
|
end
|
@@ -71,9 +72,15 @@ class Fig::FigRC
|
|
71
72
|
end
|
72
73
|
|
73
74
|
def self.derive_repository_url(specified_repository_url, configuration)
|
74
|
-
|
75
|
+
if specified_repository_url.nil?
|
76
|
+
return configuration['default FIG_REMOTE_URL']
|
77
|
+
end
|
78
|
+
|
79
|
+
if specified_repository_url.empty? || specified_repository_url =~ /\A\s*\z/
|
80
|
+
return nil
|
81
|
+
end
|
75
82
|
|
76
|
-
return
|
83
|
+
return specified_repository_url
|
77
84
|
end
|
78
85
|
|
79
86
|
def self.handle_repository_configuration(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Foemmel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -244,6 +244,7 @@ executables:
|
|
244
244
|
extensions: []
|
245
245
|
extra_rdoc_files: []
|
246
246
|
files:
|
247
|
+
- BUGS.md
|
247
248
|
- Changes
|
248
249
|
- LICENSE
|
249
250
|
- README.md
|