fig 0.1.50 → 0.1.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  require 'fig/userinputerror'
2
2
 
3
3
  module Fig
4
+ # Configuration attempted to specify a URL outside of the whitelist.
4
5
  class URLAccessError < UserInputError
5
6
  attr_reader :urls, :package, :version
6
7
 
@@ -1,4 +1,6 @@
1
1
  module Fig
2
+ # Bad user! Bad! (Indicates we should exit with an error, but because it's
3
+ # a user caused issue, it's not a bug and should not produce a stack trace.)
2
4
  class UserInputError < StandardError
3
5
  end
4
6
  end
data/lib/fig/windows.rb CHANGED
@@ -1,5 +1,3 @@
1
- # Keeping Windows-specific implementation details here.
2
-
3
1
  require 'erb'
4
2
  require 'fileutils'
5
3
 
@@ -8,8 +6,8 @@ require 'fileutils'
8
6
  # on the fly to run a user supplied command.
9
7
 
10
8
  module Fig
9
+ # Windows-specific implementation details.
11
10
  class Windows
12
-
13
11
  BATCH_SCRIPT_TEMPLATE = <<EOF
14
12
  @echo off
15
13
  % ENV.each do |k,v|
metadata CHANGED
@@ -1,414 +1,293 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fig
3
- version: !ruby/object:Gem::Version
4
- hash: 127
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 50
10
- version: 0.1.50
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.51
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matthew Foemmel
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-05 00:00:00 -06:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: libarchive-static
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &260685620 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.0.0
35
22
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: libarchive-static
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *260685620
25
+ - !ruby/object:Gem::Dependency
26
+ name: libarchive-static
27
+ requirement: &260606860 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 23
46
- segments:
47
- - 1
48
- - 0
49
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
50
32
  version: 1.0.0
51
33
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: highline
55
34
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *260606860
36
+ - !ruby/object:Gem::Dependency
37
+ name: highline
38
+ requirement: &260605860 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 11
62
- segments:
63
- - 1
64
- - 6
65
- - 2
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
66
43
  version: 1.6.2
67
44
  type: :runtime
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: log4r
71
45
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *260605860
47
+ - !ruby/object:Gem::Dependency
48
+ name: log4r
49
+ requirement: &260604640 !ruby/object:Gem::Requirement
73
50
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 25
78
- segments:
79
- - 1
80
- - 1
81
- - 5
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
82
54
  version: 1.1.5
83
55
  type: :runtime
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: net-netrc
87
56
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *260604640
58
+ - !ruby/object:Gem::Dependency
59
+ name: net-netrc
60
+ requirement: &260603600 !ruby/object:Gem::Requirement
89
61
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 19
94
- segments:
95
- - 0
96
- - 2
97
- - 2
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
98
65
  version: 0.2.2
99
66
  type: :runtime
100
- version_requirements: *id005
101
- - !ruby/object:Gem::Dependency
102
- name: net-sftp
103
67
  prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *260603600
69
+ - !ruby/object:Gem::Dependency
70
+ name: net-sftp
71
+ requirement: &260602700 !ruby/object:Gem::Requirement
105
72
  none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 7
110
- segments:
111
- - 2
112
- - 0
113
- - 4
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
114
76
  version: 2.0.4
115
77
  type: :runtime
116
- version_requirements: *id006
117
- - !ruby/object:Gem::Dependency
118
- name: net-ssh
119
78
  prerelease: false
120
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *260602700
80
+ - !ruby/object:Gem::Dependency
81
+ name: net-ssh
82
+ requirement: &260601440 !ruby/object:Gem::Requirement
121
83
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 17
126
- segments:
127
- - 2
128
- - 0
129
- - 15
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
130
87
  version: 2.0.15
131
88
  type: :runtime
132
- version_requirements: *id007
133
- - !ruby/object:Gem::Dependency
134
- name: polyglot
135
89
  prerelease: false
136
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *260601440
91
+ - !ruby/object:Gem::Dependency
92
+ name: polyglot
93
+ requirement: &260600440 !ruby/object:Gem::Requirement
137
94
  none: false
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- hash: 5
142
- segments:
143
- - 0
144
- - 2
145
- - 9
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
146
98
  version: 0.2.9
147
99
  type: :runtime
148
- version_requirements: *id008
149
- - !ruby/object:Gem::Dependency
150
- name: rdoc
151
100
  prerelease: false
152
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *260600440
102
+ - !ruby/object:Gem::Dependency
103
+ name: rdoc
104
+ requirement: &260599500 !ruby/object:Gem::Requirement
153
105
  none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- hash: 27
158
- segments:
159
- - 2
160
- - 4
161
- - 2
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
162
109
  version: 2.4.2
163
110
  type: :runtime
164
- version_requirements: *id009
165
- - !ruby/object:Gem::Dependency
166
- name: treetop
167
111
  prerelease: false
168
- requirement: &id010 !ruby/object:Gem::Requirement
112
+ version_requirements: *260599500
113
+ - !ruby/object:Gem::Dependency
114
+ name: treetop
115
+ requirement: &260593160 !ruby/object:Gem::Requirement
169
116
  none: false
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- hash: 3
174
- segments:
175
- - 1
176
- - 4
177
- - 2
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
178
120
  version: 1.4.2
179
121
  type: :runtime
180
- version_requirements: *id010
181
- - !ruby/object:Gem::Dependency
182
- name: open4
183
122
  prerelease: false
184
- requirement: &id011 !ruby/object:Gem::Requirement
123
+ version_requirements: *260593160
124
+ - !ruby/object:Gem::Dependency
125
+ name: open4
126
+ requirement: &260592040 !ruby/object:Gem::Requirement
185
127
  none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- hash: 21
190
- segments:
191
- - 1
192
- - 0
193
- - 1
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
194
131
  version: 1.0.1
195
132
  type: :development
196
- version_requirements: *id011
197
- - !ruby/object:Gem::Dependency
198
- name: rspec
199
133
  prerelease: false
200
- requirement: &id012 !ruby/object:Gem::Requirement
134
+ version_requirements: *260592040
135
+ - !ruby/object:Gem::Dependency
136
+ name: rspec
137
+ requirement: &260591040 !ruby/object:Gem::Requirement
201
138
  none: false
202
- requirements:
139
+ requirements:
203
140
  - - ~>
204
- - !ruby/object:Gem::Version
205
- hash: 7
206
- segments:
207
- - 2
208
- version: "2"
141
+ - !ruby/object:Gem::Version
142
+ version: '2'
209
143
  type: :development
210
- version_requirements: *id012
211
- - !ruby/object:Gem::Dependency
212
- name: libarchive-static
213
144
  prerelease: false
214
- requirement: &id013 !ruby/object:Gem::Requirement
145
+ version_requirements: *260591040
146
+ - !ruby/object:Gem::Dependency
147
+ name: libarchive-static
148
+ requirement: &260590100 !ruby/object:Gem::Requirement
215
149
  none: false
216
- requirements:
217
- - - ">="
218
- - !ruby/object:Gem::Version
219
- hash: 23
220
- segments:
221
- - 1
222
- - 0
223
- - 0
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
224
153
  version: 1.0.0
225
154
  type: :development
226
- version_requirements: *id013
227
- - !ruby/object:Gem::Dependency
228
- name: libarchive-static
229
155
  prerelease: false
230
- requirement: &id014 !ruby/object:Gem::Requirement
156
+ version_requirements: *260590100
157
+ - !ruby/object:Gem::Dependency
158
+ name: libarchive-static
159
+ requirement: &260589080 !ruby/object:Gem::Requirement
231
160
  none: false
232
- requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- hash: 23
236
- segments:
237
- - 1
238
- - 0
239
- - 0
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
240
164
  version: 1.0.0
241
165
  type: :runtime
242
- version_requirements: *id014
243
- - !ruby/object:Gem::Dependency
244
- name: highline
245
166
  prerelease: false
246
- requirement: &id015 !ruby/object:Gem::Requirement
167
+ version_requirements: *260589080
168
+ - !ruby/object:Gem::Dependency
169
+ name: highline
170
+ requirement: &260588060 !ruby/object:Gem::Requirement
247
171
  none: false
248
- requirements:
249
- - - ">="
250
- - !ruby/object:Gem::Version
251
- hash: 11
252
- segments:
253
- - 1
254
- - 6
255
- - 2
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
256
175
  version: 1.6.2
257
176
  type: :runtime
258
- version_requirements: *id015
259
- - !ruby/object:Gem::Dependency
260
- name: log4r
261
177
  prerelease: false
262
- requirement: &id016 !ruby/object:Gem::Requirement
178
+ version_requirements: *260588060
179
+ - !ruby/object:Gem::Dependency
180
+ name: log4r
181
+ requirement: &260586720 !ruby/object:Gem::Requirement
263
182
  none: false
264
- requirements:
265
- - - ">="
266
- - !ruby/object:Gem::Version
267
- hash: 25
268
- segments:
269
- - 1
270
- - 1
271
- - 5
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
272
186
  version: 1.1.5
273
187
  type: :runtime
274
- version_requirements: *id016
275
- - !ruby/object:Gem::Dependency
276
- name: net-netrc
277
188
  prerelease: false
278
- requirement: &id017 !ruby/object:Gem::Requirement
189
+ version_requirements: *260586720
190
+ - !ruby/object:Gem::Dependency
191
+ name: net-netrc
192
+ requirement: &260527840 !ruby/object:Gem::Requirement
279
193
  none: false
280
- requirements:
281
- - - ">="
282
- - !ruby/object:Gem::Version
283
- hash: 19
284
- segments:
285
- - 0
286
- - 2
287
- - 2
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
288
197
  version: 0.2.2
289
198
  type: :runtime
290
- version_requirements: *id017
291
- - !ruby/object:Gem::Dependency
292
- name: net-sftp
293
199
  prerelease: false
294
- requirement: &id018 !ruby/object:Gem::Requirement
200
+ version_requirements: *260527840
201
+ - !ruby/object:Gem::Dependency
202
+ name: net-sftp
203
+ requirement: &260526660 !ruby/object:Gem::Requirement
295
204
  none: false
296
- requirements:
297
- - - ">="
298
- - !ruby/object:Gem::Version
299
- hash: 7
300
- segments:
301
- - 2
302
- - 0
303
- - 4
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
304
208
  version: 2.0.4
305
209
  type: :runtime
306
- version_requirements: *id018
307
- - !ruby/object:Gem::Dependency
308
- name: net-ssh
309
210
  prerelease: false
310
- requirement: &id019 !ruby/object:Gem::Requirement
211
+ version_requirements: *260526660
212
+ - !ruby/object:Gem::Dependency
213
+ name: net-ssh
214
+ requirement: &260525460 !ruby/object:Gem::Requirement
311
215
  none: false
312
- requirements:
313
- - - ">="
314
- - !ruby/object:Gem::Version
315
- hash: 17
316
- segments:
317
- - 2
318
- - 0
319
- - 15
216
+ requirements:
217
+ - - ! '>='
218
+ - !ruby/object:Gem::Version
320
219
  version: 2.0.15
321
220
  type: :runtime
322
- version_requirements: *id019
323
- - !ruby/object:Gem::Dependency
324
- name: polyglot
325
221
  prerelease: false
326
- requirement: &id020 !ruby/object:Gem::Requirement
222
+ version_requirements: *260525460
223
+ - !ruby/object:Gem::Dependency
224
+ name: polyglot
225
+ requirement: &260524660 !ruby/object:Gem::Requirement
327
226
  none: false
328
- requirements:
329
- - - ">="
330
- - !ruby/object:Gem::Version
331
- hash: 5
332
- segments:
333
- - 0
334
- - 2
335
- - 9
227
+ requirements:
228
+ - - ! '>='
229
+ - !ruby/object:Gem::Version
336
230
  version: 0.2.9
337
231
  type: :runtime
338
- version_requirements: *id020
339
- - !ruby/object:Gem::Dependency
340
- name: rdoc
341
232
  prerelease: false
342
- requirement: &id021 !ruby/object:Gem::Requirement
233
+ version_requirements: *260524660
234
+ - !ruby/object:Gem::Dependency
235
+ name: rdoc
236
+ requirement: &260523720 !ruby/object:Gem::Requirement
343
237
  none: false
344
- requirements:
345
- - - ">="
346
- - !ruby/object:Gem::Version
347
- hash: 27
348
- segments:
349
- - 2
350
- - 4
351
- - 2
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
352
241
  version: 2.4.2
353
242
  type: :runtime
354
- version_requirements: *id021
355
- - !ruby/object:Gem::Dependency
356
- name: treetop
357
243
  prerelease: false
358
- requirement: &id022 !ruby/object:Gem::Requirement
244
+ version_requirements: *260523720
245
+ - !ruby/object:Gem::Dependency
246
+ name: treetop
247
+ requirement: &260522460 !ruby/object:Gem::Requirement
359
248
  none: false
360
- requirements:
361
- - - ">="
362
- - !ruby/object:Gem::Version
363
- hash: 3
364
- segments:
365
- - 1
366
- - 4
367
- - 2
249
+ requirements:
250
+ - - ! '>='
251
+ - !ruby/object:Gem::Version
368
252
  version: 1.4.2
369
253
  type: :runtime
370
- version_requirements: *id022
371
- - !ruby/object:Gem::Dependency
372
- name: open4
373
254
  prerelease: false
374
- requirement: &id023 !ruby/object:Gem::Requirement
255
+ version_requirements: *260522460
256
+ - !ruby/object:Gem::Dependency
257
+ name: open4
258
+ requirement: &260521740 !ruby/object:Gem::Requirement
375
259
  none: false
376
- requirements:
377
- - - ">="
378
- - !ruby/object:Gem::Version
379
- hash: 21
380
- segments:
381
- - 1
382
- - 0
383
- - 1
260
+ requirements:
261
+ - - ! '>='
262
+ - !ruby/object:Gem::Version
384
263
  version: 1.0.1
385
264
  type: :development
386
- version_requirements: *id023
387
- - !ruby/object:Gem::Dependency
388
- name: rspec
389
265
  prerelease: false
390
- requirement: &id024 !ruby/object:Gem::Requirement
266
+ version_requirements: *260521740
267
+ - !ruby/object:Gem::Dependency
268
+ name: rspec
269
+ requirement: &260520660 !ruby/object:Gem::Requirement
391
270
  none: false
392
- requirements:
271
+ requirements:
393
272
  - - ~>
394
- - !ruby/object:Gem::Version
395
- hash: 7
396
- segments:
397
- - 2
398
- version: "2"
273
+ - !ruby/object:Gem::Version
274
+ version: '2'
399
275
  type: :development
400
- version_requirements: *id024
401
- description: Fig is a utility for configuring environments and managing dependencies across a team of developers. Given a list of packages and a command to run, Fig builds environment variables named in those packages (e.g., CLASSPATH), then executes the command in that environment. The caller's environment is not affected.
276
+ prerelease: false
277
+ version_requirements: *260520660
278
+ description: Fig is a utility for configuring environments and managing dependencies
279
+ across a team of developers. Given a list of packages and a command to run, Fig
280
+ builds environment variables named in those packages (e.g., CLASSPATH), then executes
281
+ the command in that environment. The caller's environment is not affected.
402
282
  email: git@foemmel.com
403
- executables:
283
+ executables:
404
284
  - fig
405
285
  - fig-download
406
286
  extensions: []
407
-
408
- extra_rdoc_files:
287
+ extra_rdoc_files:
409
288
  - LICENSE
410
289
  - README.md
411
- files:
290
+ files:
412
291
  - Changes
413
292
  - VERSION
414
293
  - bin/fig
@@ -449,39 +328,29 @@ files:
449
328
  - lib/fig/windows.rb
450
329
  - LICENSE
451
330
  - README.md
452
- has_rdoc: true
453
331
  homepage: http://github.com/mfoemmel/fig
454
332
  licenses: []
455
-
456
333
  post_install_message:
457
334
  rdoc_options: []
458
-
459
- require_paths:
335
+ require_paths:
460
336
  - lib
461
- required_ruby_version: !ruby/object:Gem::Requirement
337
+ required_ruby_version: !ruby/object:Gem::Requirement
462
338
  none: false
463
- requirements:
464
- - - ">="
465
- - !ruby/object:Gem::Version
466
- hash: 3
467
- segments:
468
- - 0
469
- version: "0"
470
- required_rubygems_version: !ruby/object:Gem::Requirement
339
+ requirements:
340
+ - - ! '>='
341
+ - !ruby/object:Gem::Version
342
+ version: '0'
343
+ required_rubygems_version: !ruby/object:Gem::Requirement
471
344
  none: false
472
- requirements:
473
- - - ">="
474
- - !ruby/object:Gem::Version
475
- hash: 3
476
- segments:
477
- - 0
478
- version: "0"
345
+ requirements:
346
+ - - ! '>='
347
+ - !ruby/object:Gem::Version
348
+ version: '0'
479
349
  requirements: []
480
-
481
350
  rubyforge_project:
482
- rubygems_version: 1.3.7
351
+ rubygems_version: 1.8.10
483
352
  signing_key:
484
353
  specification_version: 3
485
- summary: Fig is a utility for configuring environments and managing dependencies across a team of developers. (fig/ruby version)
354
+ summary: Fig is a utility for configuring environments and managing dependencies across
355
+ a team of developers. (fig/ruby version)
486
356
  test_files: []
487
-