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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8498c4c1e991f18931e689597455d07c1712fb6c
4
- data.tar.gz: 89b739527df5976a3c4ce2b1f5af3f7abc085f06
3
+ metadata.gz: 0eba6113bed095e62bb10c9ce380218a6c2bc683
4
+ data.tar.gz: 94e175251848a3aced8fde64a97f53077864cf50
5
5
  SHA512:
6
- metadata.gz: 16f1d66f05c0ac196b93e44d042b2912203470852b30328652894d109cadf3d76e528c80c1fa519df961af6341bd7d1208a324148d6adf41b20d7486f3c1d862
7
- data.tar.gz: ef7cf7f2d060b488f9fc974a69cfe435889daaf06d7f023df36b8f424a40466b0f25ce0572f27f084ec0a2459bf0f6533fe72319bcc01a9f7b0664f9adaeae0f
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
@@ -1,3 +1,3 @@
1
1
  module Fig
2
- VERSION = '1.19.0'
2
+ VERSION = '1.20.0'
3
3
  end
@@ -230,7 +230,8 @@ class Fig::Command
230
230
  ENV['FIG_REMOTE_URL'],
231
231
  @operating_system,
232
232
  @options.home,
233
- @options.no_figrc?
233
+ @options.no_figrc?,
234
+ @options.no_remote_figrc?
234
235
  )
235
236
 
236
237
  if \
@@ -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]
@@ -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
- return specified_repository_url if specified_repository_url
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 configuration['default FIG_REMOTE_URL']
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.19.0
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-09-26 00:00:00.000000000 Z
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