fig 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Changes +50 -0
- data/bin/fig +3 -0
- data/bin/fig-debug +3 -0
- data/bin/fig-download +4 -1
- data/lib/fig.rb +1 -1
- data/lib/fig/command.rb +10 -6
- data/lib/fig/command/action.rb +1 -1
- data/lib/fig/command/action/dump_package_definition_for_command_line.rb +7 -3
- data/lib/fig/command/action/role/list_walking_dependency_tree.rb +2 -1
- data/lib/fig/command/action/role/publish.rb +9 -9
- data/lib/fig/command/options.rb +9 -9
- data/lib/fig/command/package_applier.rb +7 -2
- data/lib/fig/command/package_loader.rb +15 -8
- data/lib/fig/include_backtrace.rb +1 -1
- data/lib/fig/operating_system.rb +33 -31
- data/lib/fig/package.rb +6 -10
- data/lib/fig/package_descriptor.rb +17 -5
- data/lib/fig/parser_package_build_state.rb +1 -0
- data/lib/fig/repository.rb +10 -3
- data/lib/fig/repository_package_publisher.rb +29 -4
- data/lib/fig/runtime_environment.rb +14 -12
- data/lib/fig/statement/configuration.rb +7 -1
- data/lib/fig/statement/synthetic_raw_text.rb +30 -0
- data/lib/fig/unparser.rb +6 -0
- metadata +125 -124
data/lib/fig/package.rb
CHANGED
@@ -20,14 +20,16 @@ class Fig::Package
|
|
20
20
|
|
21
21
|
attr_reader :name
|
22
22
|
attr_reader :version
|
23
|
+
attr_reader :description
|
23
24
|
attr_reader :directory
|
24
25
|
attr_reader :statements
|
25
26
|
attr_accessor :backtrace
|
26
27
|
attr_accessor :unparsed_text
|
27
28
|
|
28
|
-
def initialize(name, version, directory, statements)
|
29
|
+
def initialize(name, version, description, directory, statements)
|
29
30
|
@name = name
|
30
31
|
@version = version
|
32
|
+
@description = description
|
31
33
|
@directory = directory
|
32
34
|
@statements = statements
|
33
35
|
@applied_config_names = []
|
@@ -39,7 +41,9 @@ class Fig::Package
|
|
39
41
|
return stmt if stmt.is_a?(Fig::Statement::Configuration) && stmt.name == config_name
|
40
42
|
end
|
41
43
|
|
42
|
-
descriptor = Fig::PackageDescriptor.new(
|
44
|
+
descriptor = Fig::PackageDescriptor.new(
|
45
|
+
@name, @version, config_name, :description => @description
|
46
|
+
)
|
43
47
|
config_description = nil
|
44
48
|
if @name.nil? and @version.nil?
|
45
49
|
config_description = config_name
|
@@ -122,14 +126,6 @@ class Fig::Package
|
|
122
126
|
return
|
123
127
|
end
|
124
128
|
|
125
|
-
def ==(other)
|
126
|
-
return false if other.nil?
|
127
|
-
|
128
|
-
return @name == other.name &&
|
129
|
-
@version == other.version &&
|
130
|
-
@statements.to_yaml == other.statements.to_yaml
|
131
|
-
end
|
132
|
-
|
133
129
|
def to_s
|
134
130
|
name = @name || UNPUBLISHED
|
135
131
|
version = @version || '<empty>'
|
@@ -7,10 +7,15 @@ module Fig; end
|
|
7
7
|
class Fig::PackageDescriptor
|
8
8
|
include Comparable
|
9
9
|
|
10
|
-
attr_reader :name, :version, :config, :original_string
|
10
|
+
attr_reader :name, :version, :config, :original_string, :description
|
11
11
|
|
12
|
-
def self.format(
|
13
|
-
|
12
|
+
def self.format(
|
13
|
+
name, version, config, use_default_config = false, description = nil
|
14
|
+
)
|
15
|
+
string = name
|
16
|
+
if ! string
|
17
|
+
string = description ? "<#{description}>" : ''
|
18
|
+
end
|
14
19
|
|
15
20
|
if version
|
16
21
|
string += '/'
|
@@ -50,6 +55,8 @@ class Fig::PackageDescriptor
|
|
50
55
|
# :version => { :required | :forbidden }
|
51
56
|
# :config => { :required | :forbidden }
|
52
57
|
# :original_string => the unparsed form
|
58
|
+
# :description => meta-information, if this is for a
|
59
|
+
# synthetic package
|
53
60
|
# :require_at_least_one_component => should we have at least one of
|
54
61
|
# name, version, and config
|
55
62
|
# :validation_context => what the descriptor is for
|
@@ -61,6 +68,7 @@ class Fig::PackageDescriptor
|
|
61
68
|
@version = version
|
62
69
|
@config = config
|
63
70
|
@original_string = options[:original_string]
|
71
|
+
@description = options[:description]
|
64
72
|
|
65
73
|
validate_component name, 'name', :name, options
|
66
74
|
validate_component version, 'version', :version, options
|
@@ -69,9 +77,13 @@ class Fig::PackageDescriptor
|
|
69
77
|
end
|
70
78
|
|
71
79
|
# Specifically not named :to_s because it doesn't act like that should.
|
72
|
-
def to_string(use_default_config = false)
|
80
|
+
def to_string(use_default_config = false, use_description = false)
|
73
81
|
return Fig::PackageDescriptor.format(
|
74
|
-
@name,
|
82
|
+
@name,
|
83
|
+
@version,
|
84
|
+
@config,
|
85
|
+
use_default_config,
|
86
|
+
use_description ? @description : nil
|
75
87
|
)
|
76
88
|
end
|
77
89
|
|
data/lib/fig/repository.rb
CHANGED
@@ -269,11 +269,11 @@ class Fig::Repository
|
|
269
269
|
install_package(descriptor, temp_dir)
|
270
270
|
rescue Fig::FileNotFoundError => error
|
271
271
|
Fig::Logging.fatal \
|
272
|
-
"Package #{descriptor.to_string
|
272
|
+
"Package #{descriptor.to_string} not found in remote repository. (Was looking for #{error.path}.)"
|
273
273
|
|
274
274
|
raise Fig::RepositoryError.new
|
275
275
|
rescue StandardError => exception
|
276
|
-
Fig::Logging.fatal %Q<Install failed: #{exception}>
|
276
|
+
Fig::Logging.fatal %Q<Install of #{descriptor.to_string} failed: #{exception}>
|
277
277
|
|
278
278
|
raise Fig::RepositoryError.new
|
279
279
|
ensure
|
@@ -336,7 +336,14 @@ class Fig::Repository
|
|
336
336
|
def read_package_from_directory(directory, descriptor)
|
337
337
|
dot_fig_file = File.join(directory, PACKAGE_FILE_IN_REPO)
|
338
338
|
if not File.exist?(dot_fig_file)
|
339
|
-
|
339
|
+
message =
|
340
|
+
%Q<Fig file not found for package "#{descriptor.name || '<unnamed>'}". There is nothing in "#{dot_fig_file}".>
|
341
|
+
if ! @update_condition
|
342
|
+
message +=
|
343
|
+
' You might want to try specifying the --update or --update-if-missing options.'
|
344
|
+
end
|
345
|
+
|
346
|
+
Fig::Logging.fatal message
|
340
347
|
raise Fig::RepositoryError.new
|
341
348
|
end
|
342
349
|
|
@@ -56,7 +56,7 @@ class Fig::RepositoryPackagePublisher
|
|
56
56
|
@operating_system.delete_and_recreate_directory(@local_dir_for_package)
|
57
57
|
|
58
58
|
fig_file = File.join(temp_dir, Fig::Repository::PACKAGE_FILE_IN_REPO)
|
59
|
-
content = derive_definition_file
|
59
|
+
content, published_package = derive_definition_file
|
60
60
|
@operating_system.write(fig_file, content)
|
61
61
|
|
62
62
|
publish_package_contents
|
@@ -69,6 +69,8 @@ class Fig::RepositoryPackagePublisher
|
|
69
69
|
|
70
70
|
FileUtils.rm_rf(temp_dir)
|
71
71
|
|
72
|
+
check_published_environment_variables published_package
|
73
|
+
|
72
74
|
return true
|
73
75
|
end
|
74
76
|
|
@@ -117,10 +119,11 @@ class Fig::RepositoryPackagePublisher
|
|
117
119
|
explanations.each {|explanation| Fig::Logging.info explanation}
|
118
120
|
end
|
119
121
|
|
122
|
+
published_package = nil
|
120
123
|
begin
|
121
|
-
Fig::Parser.new(nil, false).parse_package(
|
124
|
+
published_package = Fig::Parser.new(nil, false).parse_package(
|
122
125
|
@descriptor,
|
123
|
-
|
126
|
+
@local_dir_for_package,
|
124
127
|
'<package to be published>',
|
125
128
|
file_content
|
126
129
|
)
|
@@ -130,7 +133,7 @@ class Fig::RepositoryPackagePublisher
|
|
130
133
|
"#{error}\n\nGenerated contents:\n#{file_content}"
|
131
134
|
end
|
132
135
|
|
133
|
-
return file_content
|
136
|
+
return file_content, published_package
|
134
137
|
end
|
135
138
|
|
136
139
|
def add_package_metadata_comments()
|
@@ -341,6 +344,28 @@ class Fig::RepositoryPackagePublisher
|
|
341
344
|
return
|
342
345
|
end
|
343
346
|
|
347
|
+
def check_published_environment_variables(published_package)
|
348
|
+
published_package.walk_statements do
|
349
|
+
|statement|
|
350
|
+
|
351
|
+
if statement.is_environment_variable?
|
352
|
+
tokenized_value = statement.tokenized_value
|
353
|
+
expansion_happened = false
|
354
|
+
expanded_value = tokenized_value.to_expanded_string {
|
355
|
+
expansion_happened = true; published_package.directory
|
356
|
+
}
|
357
|
+
|
358
|
+
if expansion_happened && ! File.exists?(expanded_value) && ! File.symlink?(expanded_value)
|
359
|
+
Fig::Logging.warn(
|
360
|
+
%Q<The #{statement.name} variable points to a path that does not exist (#{expanded_value}); retrieve statements that are active when this package is included may fail.>
|
361
|
+
)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
return
|
367
|
+
end
|
368
|
+
|
344
369
|
# 'paths' is an Array of fileglob patterns: ['tmp/foo/file1',
|
345
370
|
# 'tmp/foo/*.jar']
|
346
371
|
def expand_globs_from(paths)
|
@@ -4,8 +4,8 @@ require 'fig/include_backtrace'
|
|
4
4
|
require 'fig/logging'
|
5
5
|
require 'fig/package'
|
6
6
|
require 'fig/repository_error'
|
7
|
-
require 'fig/statement/command'
|
8
7
|
require 'fig/statement/include'
|
8
|
+
require 'fig/statement/override'
|
9
9
|
require 'fig/statement/path'
|
10
10
|
require 'fig/statement/set'
|
11
11
|
require 'fig/user_input_error'
|
@@ -84,7 +84,12 @@ class Fig::RuntimeEnvironment
|
|
84
84
|
new_backtrace = backtrace ||
|
85
85
|
Fig::IncludeBacktrace.new(
|
86
86
|
nil,
|
87
|
-
Fig::PackageDescriptor.new(
|
87
|
+
Fig::PackageDescriptor.new(
|
88
|
+
package.name,
|
89
|
+
package.version,
|
90
|
+
config_name,
|
91
|
+
:description => package.description
|
92
|
+
)
|
88
93
|
)
|
89
94
|
|
90
95
|
config = package[config_name]
|
@@ -144,12 +149,6 @@ class Fig::RuntimeEnvironment
|
|
144
149
|
include_config(package, statement.descriptor, backtrace)
|
145
150
|
when Fig::Statement::Override
|
146
151
|
backtrace.add_override(statement)
|
147
|
-
when Fig::Statement::Command
|
148
|
-
# Skip - has no effect on environment.
|
149
|
-
else
|
150
|
-
text, * =
|
151
|
-
Fig::Unparser.determine_version_and_unparse(statement, :emit_as_input)
|
152
|
-
raise "Unexpected statement in a config block: #{text.strip}"
|
153
152
|
end
|
154
153
|
|
155
154
|
return
|
@@ -357,13 +356,16 @@ class Fig::RuntimeEnvironment
|
|
357
356
|
end
|
358
357
|
|
359
358
|
def retrieve_files(variable_name, variable_value, package, backtrace)
|
359
|
+
destination_path =
|
360
|
+
derive_retrieve_destination(variable_name, variable_value, package)
|
361
|
+
|
362
|
+
# Check this *after* determining destination so that
|
363
|
+
# derive_retrieve_destination() can mark retrieve statements as being
|
364
|
+
# referenced.
|
360
365
|
check_source_existence(
|
361
366
|
variable_name, variable_value, package, backtrace
|
362
367
|
)
|
363
368
|
|
364
|
-
destination_path =
|
365
|
-
derive_retrieve_destination(variable_name, variable_value, package)
|
366
|
-
|
367
369
|
@working_directory_maintainer.switch_to_package_version(
|
368
370
|
package.name, package.version
|
369
371
|
)
|
@@ -415,7 +417,7 @@ class Fig::RuntimeEnvironment
|
|
415
417
|
package = get_package(package_name)
|
416
418
|
if package.nil?
|
417
419
|
raise_repository_error(
|
418
|
-
%Q<Command
|
420
|
+
%Q<Command referenced the "#{package_name}" package, which has not been referenced by any other package, so there's nothing to substitute with.>,
|
419
421
|
nil,
|
420
422
|
nil
|
421
423
|
)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'fig/statement'
|
2
2
|
require 'fig/statement/command'
|
3
|
+
require 'fig/statement/synthetic_raw_text'
|
3
4
|
|
4
5
|
module Fig; end
|
5
6
|
|
@@ -18,7 +19,12 @@ class Fig::Statement::Configuration < Fig::Statement
|
|
18
19
|
|statement| statement.is_a?(Fig::Statement::Override)
|
19
20
|
end
|
20
21
|
|
21
|
-
|
22
|
+
text = []
|
23
|
+
if ! overrides.empty?
|
24
|
+
text << Fig::Statement::SyntheticRawText.new(nil, nil, "\n")
|
25
|
+
end
|
26
|
+
|
27
|
+
@statements = [overrides, text, others].flatten
|
22
28
|
end
|
23
29
|
|
24
30
|
def statement_type()
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'fig/statement'
|
2
|
+
|
3
|
+
module Fig; end
|
4
|
+
|
5
|
+
# Some raw text that we want emitted as part of unparsing.
|
6
|
+
class Fig::Statement::SyntheticRawText < Fig::Statement
|
7
|
+
attr_reader :text
|
8
|
+
|
9
|
+
def initialize(line_column, source_description, text)
|
10
|
+
super(line_column, source_description)
|
11
|
+
|
12
|
+
@text = text
|
13
|
+
end
|
14
|
+
|
15
|
+
def statement_type()
|
16
|
+
return nil
|
17
|
+
end
|
18
|
+
|
19
|
+
def unparse_as_version(unparser)
|
20
|
+
return unparser.synthetic_raw_text(self)
|
21
|
+
end
|
22
|
+
|
23
|
+
def minimum_grammar_for_emitting_input()
|
24
|
+
return [0]
|
25
|
+
end
|
26
|
+
|
27
|
+
def minimum_grammar_for_publishing()
|
28
|
+
return [0]
|
29
|
+
end
|
30
|
+
end
|
data/lib/fig/unparser.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
16
|
-
requirement: &
|
16
|
+
requirement: &6009940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.5.8
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *6009940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: highline
|
27
|
-
requirement: &
|
27
|
+
requirement: &6009220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.6.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *6009220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: json
|
38
|
-
requirement: &
|
38
|
+
requirement: &6008500 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.6.5
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *6008500
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: libarchive-static
|
49
|
-
requirement: &
|
49
|
+
requirement: &6007740 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.0.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *6007740
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: log4r
|
60
|
-
requirement: &
|
60
|
+
requirement: &6077320 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.1.5
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *6077320
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: net-netrc
|
71
|
-
requirement: &
|
71
|
+
requirement: &6076540 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.2.2
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *6076540
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: net-sftp
|
82
|
-
requirement: &
|
82
|
+
requirement: &6075840 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.0.4
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *6075840
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: net-ssh
|
93
|
-
requirement: &
|
93
|
+
requirement: &6075060 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 2.0.15
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *6075060
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rdoc
|
104
|
-
requirement: &
|
104
|
+
requirement: &6074180 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '3.12'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *6074180
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: sys-admin
|
115
|
-
requirement: &
|
115
|
+
requirement: &6072300 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 1.5.6
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *6072300
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: treetop
|
126
|
-
requirement: &
|
126
|
+
requirement: &6070800 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 1.4.2
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *6070800
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: open4
|
137
|
-
requirement: &
|
137
|
+
requirement: &6069900 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: 1.0.1
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *6069900
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: bundler
|
148
|
-
requirement: &
|
148
|
+
requirement: &6069300 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: 1.0.15
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *6069300
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: rake
|
159
|
-
requirement: &
|
159
|
+
requirement: &6085460 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: 0.8.7
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *6085460
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: rspec
|
170
|
-
requirement: &
|
170
|
+
requirement: &6082800 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ~>
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '2'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *6082800
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: rspec-core
|
181
|
-
requirement: &
|
181
|
+
requirement: &6081600 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ! '>='
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
version: 2.7.1
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *6081600
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: rspec-expectations
|
192
|
-
requirement: &
|
192
|
+
requirement: &6079340 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
195
|
- - ! '>='
|
@@ -197,10 +197,10 @@ dependencies:
|
|
197
197
|
version: 2.7.0
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
|
-
version_requirements: *
|
200
|
+
version_requirements: *6079340
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: rspec-mocks
|
203
|
-
requirement: &
|
203
|
+
requirement: &6099940 !ruby/object:Gem::Requirement
|
204
204
|
none: false
|
205
205
|
requirements:
|
206
206
|
- - ! '>='
|
@@ -208,10 +208,10 @@ dependencies:
|
|
208
208
|
version: 2.7.0
|
209
209
|
type: :development
|
210
210
|
prerelease: false
|
211
|
-
version_requirements: *
|
211
|
+
version_requirements: *6099940
|
212
212
|
- !ruby/object:Gem::Dependency
|
213
213
|
name: simplecov
|
214
|
-
requirement: &
|
214
|
+
requirement: &6098400 !ruby/object:Gem::Requirement
|
215
215
|
none: false
|
216
216
|
requirements:
|
217
217
|
- - ! '>='
|
@@ -219,10 +219,10 @@ dependencies:
|
|
219
219
|
version: 0.6.2
|
220
220
|
type: :development
|
221
221
|
prerelease: false
|
222
|
-
version_requirements: *
|
222
|
+
version_requirements: *6098400
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: simplecov-html
|
225
|
-
requirement: &
|
225
|
+
requirement: &6096480 !ruby/object:Gem::Requirement
|
226
226
|
none: false
|
227
227
|
requirements:
|
228
228
|
- - ! '>='
|
@@ -230,7 +230,7 @@ dependencies:
|
|
230
230
|
version: 0.5.3
|
231
231
|
type: :development
|
232
232
|
prerelease: false
|
233
|
-
version_requirements: *
|
233
|
+
version_requirements: *6096480
|
234
234
|
description: Fig is a utility for configuring environments and managing dependencies
|
235
235
|
across a team of developers. Given a list of packages and a command to run, Fig
|
236
236
|
builds environment variables named in those packages (e.g., CLASSPATH), then executes
|
@@ -244,123 +244,124 @@ extra_rdoc_files: []
|
|
244
244
|
files:
|
245
245
|
- Changes
|
246
246
|
- bin/fig
|
247
|
-
- bin/fig.bat
|
248
247
|
- bin/fig-debug
|
249
248
|
- bin/fig-download
|
249
|
+
- bin/fig.bat
|
250
250
|
- lib/fig.rb
|
251
|
-
- lib/fig/logging/colorizable.rb
|
252
|
-
- lib/fig/command.rb
|
253
|
-
- lib/fig/include_backtrace.rb
|
254
|
-
- lib/fig/tokenized_string.rb
|
255
|
-
- lib/fig/grammar_monkey_patches.rb
|
256
|
-
- lib/fig/string_tokenizer.rb
|
257
|
-
- lib/fig/repository_package_publisher.rb
|
258
251
|
- lib/fig/application_configuration.rb
|
259
|
-
- lib/fig/
|
260
|
-
- lib/fig/
|
261
|
-
- lib/fig/
|
262
|
-
- lib/fig/
|
263
|
-
- lib/fig/
|
264
|
-
- lib/fig/
|
265
|
-
- lib/fig/package_descriptor_parse_error.rb
|
266
|
-
- lib/fig/package.rb
|
267
|
-
- lib/fig/network_error.rb
|
268
|
-
- lib/fig/package_definition_text_assembler.rb
|
269
|
-
- lib/fig/command/package_loader.rb
|
270
|
-
- lib/fig/command/package_applier.rb
|
271
|
-
- lib/fig/command/options/parser.rb
|
272
|
-
- lib/fig/command/option_error.rb
|
273
|
-
- lib/fig/command/coverage_support.rb
|
274
|
-
- lib/fig/command/action/list_local.rb
|
252
|
+
- lib/fig/at_exit.rb
|
253
|
+
- lib/fig/command.rb
|
254
|
+
- lib/fig/command/action.rb
|
255
|
+
- lib/fig/command/action/clean.rb
|
256
|
+
- lib/fig/command/action/dump_package_definition_for_command_line.rb
|
257
|
+
- lib/fig/command/action/dump_package_definition_parsed.rb
|
275
258
|
- lib/fig/command/action/dump_package_definition_text.rb
|
259
|
+
- lib/fig/command/action/get.rb
|
276
260
|
- lib/fig/command/action/help.rb
|
277
261
|
- lib/fig/command/action/help_long.rb
|
278
|
-
- lib/fig/command/action/
|
279
|
-
- lib/fig/command/action/
|
262
|
+
- lib/fig/command/action/list_configs.rb
|
263
|
+
- lib/fig/command/action/list_dependencies.rb
|
264
|
+
- lib/fig/command/action/list_dependencies/all_configs.rb
|
265
|
+
- lib/fig/command/action/list_dependencies/default.rb
|
266
|
+
- lib/fig/command/action/list_dependencies/tree.rb
|
267
|
+
- lib/fig/command/action/list_dependencies/tree_all_configs.rb
|
268
|
+
- lib/fig/command/action/list_local.rb
|
269
|
+
- lib/fig/command/action/list_remote.rb
|
270
|
+
- lib/fig/command/action/list_variables.rb
|
280
271
|
- lib/fig/command/action/list_variables/all_configs.rb
|
281
272
|
- lib/fig/command/action/list_variables/default.rb
|
273
|
+
- lib/fig/command/action/list_variables/tree.rb
|
282
274
|
- lib/fig/command/action/list_variables/tree_all_configs.rb
|
283
|
-
- lib/fig/command/action/
|
275
|
+
- lib/fig/command/action/options.rb
|
276
|
+
- lib/fig/command/action/publish.rb
|
277
|
+
- lib/fig/command/action/publish_local.rb
|
278
|
+
- lib/fig/command/action/role/has_no_sub_action.rb
|
279
|
+
- lib/fig/command/action/role/has_sub_action.rb
|
284
280
|
- lib/fig/command/action/role/list_all_configs.rb
|
285
|
-
- lib/fig/command/action/role/update.rb
|
286
|
-
- lib/fig/command/action/role/list_walking_dependency_tree.rb
|
287
|
-
- lib/fig/command/action/role/publish.rb
|
288
|
-
- lib/fig/command/action/role/list_variables_in_a_tree.rb
|
289
281
|
- lib/fig/command/action/role/list_base_config.rb
|
290
|
-
- lib/fig/command/action/role/has_sub_action.rb
|
291
|
-
- lib/fig/command/action/role/has_no_sub_action.rb
|
292
282
|
- lib/fig/command/action/role/list_dependencies_flat.rb
|
293
|
-
- lib/fig/command/action/
|
294
|
-
- lib/fig/command/action/
|
295
|
-
- lib/fig/command/action/
|
296
|
-
- lib/fig/command/action/
|
297
|
-
- lib/fig/command/action/
|
298
|
-
- lib/fig/command/action/clean.rb
|
299
|
-
- lib/fig/command/action/version_plain.rb
|
283
|
+
- lib/fig/command/action/role/list_dependencies_in_a_tree.rb
|
284
|
+
- lib/fig/command/action/role/list_variables_in_a_tree.rb
|
285
|
+
- lib/fig/command/action/role/list_walking_dependency_tree.rb
|
286
|
+
- lib/fig/command/action/role/publish.rb
|
287
|
+
- lib/fig/command/action/role/update.rb
|
300
288
|
- lib/fig/command/action/run_command_line.rb
|
301
|
-
- lib/fig/command/action/update_if_missing.rb
|
302
|
-
- lib/fig/command/action/list_remote.rb
|
303
|
-
- lib/fig/command/action/list_variables.rb
|
304
|
-
- lib/fig/command/action/list_configs.rb
|
305
|
-
- lib/fig/command/action/get.rb
|
306
289
|
- lib/fig/command/action/run_command_statement.rb
|
307
|
-
- lib/fig/command/action/
|
308
|
-
- lib/fig/command/action/
|
309
|
-
- lib/fig/command/action/
|
310
|
-
- lib/fig/command/action/
|
311
|
-
- lib/fig/command/
|
312
|
-
- lib/fig/command/
|
313
|
-
- lib/fig/command/action.rb
|
290
|
+
- lib/fig/command/action/update.rb
|
291
|
+
- lib/fig/command/action/update_if_missing.rb
|
292
|
+
- lib/fig/command/action/version.rb
|
293
|
+
- lib/fig/command/action/version_plain.rb
|
294
|
+
- lib/fig/command/coverage_support.rb
|
295
|
+
- lib/fig/command/option_error.rb
|
314
296
|
- lib/fig/command/options.rb
|
315
|
-
- lib/fig/
|
316
|
-
- lib/fig/
|
317
|
-
- lib/fig/
|
318
|
-
- lib/fig/
|
319
|
-
- lib/fig/
|
320
|
-
- lib/fig/
|
321
|
-
- lib/fig/
|
297
|
+
- lib/fig/command/options/parser.rb
|
298
|
+
- lib/fig/command/package_applier.rb
|
299
|
+
- lib/fig/command/package_loader.rb
|
300
|
+
- lib/fig/config_file_error.rb
|
301
|
+
- lib/fig/environment_variables.rb
|
302
|
+
- lib/fig/environment_variables/case_insensitive.rb
|
303
|
+
- lib/fig/environment_variables/case_sensitive.rb
|
304
|
+
- lib/fig/figrc.rb
|
305
|
+
- lib/fig/file_not_found_error.rb
|
306
|
+
- lib/fig/grammar/base.treetop
|
322
307
|
- lib/fig/grammar/v0.treetop
|
323
308
|
- lib/fig/grammar/v1.treetop
|
324
309
|
- lib/fig/grammar/version.treetop
|
325
|
-
- lib/fig/grammar/base.treetop
|
326
310
|
- lib/fig/grammar/version_identification.treetop
|
327
|
-
- lib/fig/
|
328
|
-
- lib/fig/
|
329
|
-
- lib/fig/
|
330
|
-
- lib/fig/unparser/v1.rb
|
331
|
-
- lib/fig/figrc.rb
|
332
|
-
- lib/fig/working_directory_metadata.rb
|
311
|
+
- lib/fig/grammar_monkey_patches.rb
|
312
|
+
- lib/fig/include_backtrace.rb
|
313
|
+
- lib/fig/log4r/outputter.rb
|
333
314
|
- lib/fig/log4r_config_error.rb
|
315
|
+
- lib/fig/logging.rb
|
316
|
+
- lib/fig/logging/colorizable.rb
|
317
|
+
- lib/fig/network_error.rb
|
318
|
+
- lib/fig/no_such_package_config_error.rb
|
319
|
+
- lib/fig/operating_system.rb
|
320
|
+
- lib/fig/package.rb
|
321
|
+
- lib/fig/package_cache.rb
|
322
|
+
- lib/fig/package_definition_text_assembler.rb
|
323
|
+
- lib/fig/package_descriptor.rb
|
324
|
+
- lib/fig/package_descriptor_parse_error.rb
|
325
|
+
- lib/fig/package_parse_error.rb
|
326
|
+
- lib/fig/parser.rb
|
327
|
+
- lib/fig/parser_package_build_state.rb
|
328
|
+
- lib/fig/repository.rb
|
334
329
|
- lib/fig/repository_error.rb
|
330
|
+
- lib/fig/repository_package_publisher.rb
|
331
|
+
- lib/fig/runtime_environment.rb
|
332
|
+
- lib/fig/statement.rb
|
333
|
+
- lib/fig/statement/archive.rb
|
334
|
+
- lib/fig/statement/asset.rb
|
335
335
|
- lib/fig/statement/command.rb
|
336
|
+
- lib/fig/statement/configuration.rb
|
337
|
+
- lib/fig/statement/environment_variable.rb
|
336
338
|
- lib/fig/statement/grammar_version.rb
|
337
|
-
- lib/fig/statement/
|
339
|
+
- lib/fig/statement/include.rb
|
338
340
|
- lib/fig/statement/override.rb
|
339
341
|
- lib/fig/statement/path.rb
|
340
|
-
- lib/fig/statement/asset.rb
|
341
|
-
- lib/fig/statement/configuration.rb
|
342
342
|
- lib/fig/statement/resource.rb
|
343
|
-
- lib/fig/statement/environment_variable.rb
|
344
343
|
- lib/fig/statement/retrieve.rb
|
345
|
-
- lib/fig/statement/
|
346
|
-
- lib/fig/statement/
|
344
|
+
- lib/fig/statement/set.rb
|
345
|
+
- lib/fig/statement/synthetic_raw_text.rb
|
346
|
+
- lib/fig/string_tokenizer.rb
|
347
|
+
- lib/fig/tokenized_string.rb
|
347
348
|
- lib/fig/tokenized_string/plain_segment.rb
|
348
349
|
- lib/fig/tokenized_string/token.rb
|
350
|
+
- lib/fig/unparser.rb
|
351
|
+
- lib/fig/unparser/v0.rb
|
352
|
+
- lib/fig/unparser/v1.rb
|
349
353
|
- lib/fig/update_lock.rb
|
350
|
-
- lib/fig/
|
351
|
-
- lib/fig/
|
352
|
-
- lib/fig/
|
353
|
-
- lib/fig/
|
354
|
-
- lib/fig/
|
355
|
-
- lib/fig/at_exit.rb
|
356
|
-
- lib/fig/no_such_package_config_error.rb
|
357
|
-
- lib/fig/operating_system.rb
|
354
|
+
- lib/fig/url.rb
|
355
|
+
- lib/fig/url_access_disallowed_error.rb
|
356
|
+
- lib/fig/user_input_error.rb
|
357
|
+
- lib/fig/working_directory_maintainer.rb
|
358
|
+
- lib/fig/working_directory_metadata.rb
|
358
359
|
- LICENSE
|
359
360
|
- README.md
|
361
|
+
- lib/fig/grammar/base.rb
|
360
362
|
- lib/fig/grammar/v0.rb
|
361
363
|
- lib/fig/grammar/v1.rb
|
362
364
|
- lib/fig/grammar/version.rb
|
363
|
-
- lib/fig/grammar/base.rb
|
364
365
|
- lib/fig/grammar/version_identification.rb
|
365
366
|
homepage: http://github.com/mfoemmel/fig
|
366
367
|
licenses: []
|
@@ -373,7 +374,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
373
374
|
requirements:
|
374
375
|
- - ! '>='
|
375
376
|
- !ruby/object:Gem::Version
|
376
|
-
version:
|
377
|
+
version: 1.9.2
|
377
378
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
378
379
|
none: false
|
379
380
|
requirements:
|