fig 1.23.0 → 1.23.1.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes +14 -0
- data/bin/fig +76 -14
- data/bin/fig-debug +76 -14
- data/bin/fig.bat +3 -1
- data/lib/fig.rb +3 -1
- data/lib/fig/application_configuration.rb +2 -0
- data/lib/fig/at_exit.rb +2 -0
- data/lib/fig/command.rb +2 -0
- data/lib/fig/command/action.rb +2 -0
- data/lib/fig/command/action/clean.rb +2 -0
- data/lib/fig/command/action/dump_package_definition_for_command_line.rb +2 -0
- data/lib/fig/command/action/dump_package_definition_parsed.rb +2 -0
- data/lib/fig/command/action/dump_package_definition_text.rb +2 -0
- data/lib/fig/command/action/get.rb +2 -0
- data/lib/fig/command/action/help.rb +2 -0
- data/lib/fig/command/action/help_long.rb +2 -0
- data/lib/fig/command/action/list_configs.rb +2 -0
- data/lib/fig/command/action/list_dependencies.rb +2 -0
- data/lib/fig/command/action/list_dependencies/all_configs.rb +2 -0
- data/lib/fig/command/action/list_dependencies/default.rb +2 -0
- data/lib/fig/command/action/list_dependencies/graphviz.rb +2 -0
- data/lib/fig/command/action/list_dependencies/graphviz_all_configs.rb +2 -0
- data/lib/fig/command/action/list_dependencies/tree.rb +2 -0
- data/lib/fig/command/action/list_dependencies/tree_all_configs.rb +2 -0
- data/lib/fig/command/action/list_local.rb +2 -0
- data/lib/fig/command/action/list_remote.rb +2 -0
- data/lib/fig/command/action/list_variables.rb +2 -0
- data/lib/fig/command/action/list_variables/all_configs.rb +2 -0
- data/lib/fig/command/action/list_variables/default.rb +2 -0
- data/lib/fig/command/action/list_variables/graphviz.rb +2 -0
- data/lib/fig/command/action/list_variables/graphviz_all_configs.rb +2 -0
- data/lib/fig/command/action/list_variables/tree.rb +2 -0
- data/lib/fig/command/action/list_variables/tree_all_configs.rb +2 -0
- data/lib/fig/command/action/options.rb +2 -0
- data/lib/fig/command/action/publish.rb +2 -0
- data/lib/fig/command/action/publish_local.rb +2 -0
- data/lib/fig/command/action/role/has_no_sub_action.rb +2 -0
- data/lib/fig/command/action/role/has_sub_action.rb +2 -0
- data/lib/fig/command/action/role/list_all_configs.rb +2 -0
- data/lib/fig/command/action/role/list_as_graphviz.rb +2 -0
- data/lib/fig/command/action/role/list_base_config.rb +2 -0
- data/lib/fig/command/action/role/list_dependencies_as_graphviz.rb +2 -0
- data/lib/fig/command/action/role/list_dependencies_flat.rb +2 -0
- data/lib/fig/command/action/role/list_dependencies_in_a_tree.rb +2 -0
- data/lib/fig/command/action/role/list_variables_as_graphviz.rb +2 -0
- data/lib/fig/command/action/role/list_variables_in_a_tree.rb +2 -0
- data/lib/fig/command/action/role/list_walking_dependency_tree.rb +2 -0
- data/lib/fig/command/action/role/publish.rb +2 -0
- data/lib/fig/command/action/role/update.rb +2 -0
- data/lib/fig/command/action/run_command_line.rb +2 -0
- data/lib/fig/command/action/run_command_statement.rb +2 -0
- data/lib/fig/command/action/source_package.rb +2 -0
- data/lib/fig/command/action/update.rb +2 -0
- data/lib/fig/command/action/update_if_missing.rb +2 -0
- data/lib/fig/command/action/version.rb +3 -1
- data/lib/fig/command/action/version_plain.rb +2 -0
- data/lib/fig/command/coverage_support.rb +2 -0
- data/lib/fig/command/initialization.rb +21 -0
- data/lib/fig/command/option_error.rb +2 -0
- data/lib/fig/command/options.rb +17 -0
- data/lib/fig/command/options/parser.rb +2 -0
- data/lib/fig/command/package_applier.rb +2 -0
- data/lib/fig/command/package_loader.rb +2 -0
- data/lib/fig/config_file_error.rb +2 -0
- data/lib/fig/deparser.rb +2 -0
- data/lib/fig/deparser/v0.rb +2 -0
- data/lib/fig/deparser/v1.rb +2 -0
- data/lib/fig/deparser/v1_base.rb +2 -0
- data/lib/fig/deparser/v2.rb +2 -0
- data/lib/fig/environment_variables.rb +2 -0
- data/lib/fig/environment_variables/case_insensitive.rb +2 -0
- data/lib/fig/environment_variables/case_sensitive.rb +2 -0
- data/lib/fig/external_program.rb +64 -25
- data/lib/fig/figrc.rb +2 -0
- data/lib/fig/file_not_found_error.rb +2 -0
- data/lib/fig/grammar/base.rb +3 -1
- data/lib/fig/grammar/base.treetop +2 -0
- data/lib/fig/grammar/v0.rb +3 -1
- data/lib/fig/grammar/v0.treetop +2 -0
- data/lib/fig/grammar/v1.rb +3 -1
- data/lib/fig/grammar/v1.treetop +2 -0
- data/lib/fig/grammar/v1_base.rb +3 -1
- data/lib/fig/grammar/v1_base.treetop +2 -0
- data/lib/fig/grammar/v2.rb +3 -1
- data/lib/fig/grammar/v2.treetop +2 -0
- data/lib/fig/grammar/version.rb +3 -1
- data/lib/fig/grammar/version.treetop +2 -0
- data/lib/fig/grammar/version_identification.rb +3 -1
- data/lib/fig/grammar/version_identification.treetop +2 -0
- data/lib/fig/grammar_monkey_patches.rb +2 -0
- data/lib/fig/include_backtrace.rb +2 -0
- data/lib/fig/log4r/outputter.rb +2 -0
- data/lib/fig/log4r_config_error.rb +2 -0
- data/lib/fig/logging.rb +2 -0
- data/lib/fig/logging/colorizable.rb +2 -0
- data/lib/fig/network_error.rb +2 -0
- data/lib/fig/no_such_package_config_error.rb +2 -0
- data/lib/fig/not_yet_parsed_package.rb +2 -0
- data/lib/fig/operating_system.rb +2 -0
- data/lib/fig/package.rb +2 -0
- data/lib/fig/package_cache.rb +2 -0
- data/lib/fig/package_definition_text_assembler.rb +2 -0
- data/lib/fig/package_descriptor.rb +2 -0
- data/lib/fig/package_descriptor_parse_error.rb +2 -0
- data/lib/fig/package_parse_error.rb +2 -0
- data/lib/fig/parser.rb +2 -0
- data/lib/fig/parser_package_build_state.rb +2 -0
- data/lib/fig/protocol.rb +2 -0
- data/lib/fig/protocol/file.rb +2 -0
- data/lib/fig/protocol/ftp.rb +2 -0
- data/lib/fig/protocol/http.rb +2 -0
- data/lib/fig/protocol/netrc_enabled.rb +2 -0
- data/lib/fig/protocol/sftp.rb +2 -0
- data/lib/fig/protocol/ssh.rb +2 -0
- data/lib/fig/repository.rb +2 -0
- data/lib/fig/repository_error.rb +2 -0
- data/lib/fig/repository_package_publisher.rb +31 -5
- data/lib/fig/runtime_environment.rb +2 -0
- data/lib/fig/statement/archive.rb +2 -0
- data/lib/fig/statement/asset.rb +2 -0
- data/lib/fig/statement/command.rb +2 -0
- data/lib/fig/statement/configuration.rb +2 -0
- data/lib/fig/statement/environment_variable.rb +2 -0
- data/lib/fig/statement/grammar_version.rb +2 -0
- data/lib/fig/statement/include.rb +2 -0
- data/lib/fig/statement/include_file.rb +2 -0
- data/lib/fig/statement/override.rb +2 -0
- data/lib/fig/statement/path.rb +2 -0
- data/lib/fig/statement/resource.rb +2 -0
- data/lib/fig/statement/retrieve.rb +2 -0
- data/lib/fig/statement/set.rb +2 -0
- data/lib/fig/statement/synthetic_raw_text.rb +2 -0
- data/lib/fig/tokenized_string.rb +2 -0
- data/lib/fig/tokenized_string/plain_segment.rb +2 -0
- data/lib/fig/tokenized_string/token.rb +2 -0
- data/lib/fig/update_lock.rb +2 -0
- data/lib/fig/url.rb +2 -0
- data/lib/fig/url_access_disallowed_error.rb +2 -0
- data/lib/fig/user_input_error.rb +2 -0
- data/lib/fig/working_directory_maintainer.rb +2 -0
- data/lib/fig/working_directory_metadata.rb +2 -0
- metadata +5 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac946a785b3deeaa56e34430492cfe17e02165a5
|
4
|
+
data.tar.gz: 878e05d1f2f3bc1b442e73b3542438463071b23a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ed29d75094152fb4e53303bd3d1867a06d569ba836a5060dcd1ff59a517e443d75d20da02b553e271e62f914ca628790675273300c92167040836397f77e50d
|
7
|
+
data.tar.gz: 57fbb4235b4369b18f0de4b1821cf3f88a2e1fa4b17c43970c4ef0ebd570599faff208ee3b5a9653d0196b4877977cfec02abbac9dbb575941c60352eb65b4f0
|
data/Changes
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
v1.23.1.beta.1 - 2015/01/09
|
2
|
+
|
3
|
+
New feature:
|
4
|
+
|
5
|
+
- New --publish-comment-file option similar to the --publish-comment option
|
6
|
+
that allows you to put a comment at the top of published packages. Instead
|
7
|
+
of specifying the comment as the argument, specify the path to a file that
|
8
|
+
will be pulled in and added.
|
9
|
+
|
10
|
+
Miscellaneous:
|
11
|
+
|
12
|
+
- All I/O now done using UTF-8 as the encoding.
|
13
|
+
- No longer uses the open4 gem.
|
14
|
+
|
1
15
|
v1.23.0 - 2015/01/02
|
2
16
|
|
3
17
|
Bug fixes:
|
data/bin/fig
CHANGED
@@ -1,20 +1,82 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env bash
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
function emit-stack-trace {
|
4
|
+
local -i x
|
5
|
+
local -i stack_frames="${#FUNCNAME[@]}"
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
File.join(
|
9
|
-
File.dirname(__FILE__), %w< .. lib fig command coverage_support.rb >
|
10
|
-
)
|
11
|
-
)
|
12
|
-
end
|
7
|
+
{
|
8
|
+
echo "ERROR in ${FUNCNAME[1]}() at ${BASH_SOURCE[1]}:${BASH_LINENO[0]}"
|
13
9
|
|
14
|
-
|
10
|
+
for (( x=2; x < stack_frames; x++ ))
|
11
|
+
do
|
12
|
+
echo "called by ${FUNCNAME[x]}() at ${BASH_SOURCE[x]}:${BASH_LINENO[x - 1]}"
|
13
|
+
done
|
14
|
+
} >&2
|
15
|
+
} # end emit-stack-trace()
|
15
16
|
|
16
|
-
|
17
|
+
function strict-errors {
|
18
|
+
set -o errexit
|
19
|
+
set -o errtrace
|
17
20
|
|
18
|
-
|
21
|
+
trap emit-stack-trace ERR
|
22
|
+
} # end strict-errors()
|
19
23
|
|
20
|
-
|
24
|
+
function loose-errors {
|
25
|
+
set +o errexit
|
26
|
+
set +o errtrace
|
27
|
+
|
28
|
+
trap - ERR
|
29
|
+
} # end loose-errors()
|
30
|
+
|
31
|
+
|
32
|
+
strict-errors
|
33
|
+
|
34
|
+
|
35
|
+
# "dirname $0" does not work if we were invoked via a symlink, so we've got to
|
36
|
+
# go through this fun. See http://mywiki.wooledge.org/BashFAQ/028
|
37
|
+
if readlink -e /dev/null &>/dev/null
|
38
|
+
then
|
39
|
+
# GNU readlink(1)
|
40
|
+
self="$(readlink -e "${BASH_SOURCE[0]}")"
|
41
|
+
else
|
42
|
+
# BSD readlink(1)
|
43
|
+
loose-errors
|
44
|
+
self="${BASH_SOURCE[0]}"
|
45
|
+
if [[ ! $self =~ ^/ ]]
|
46
|
+
then
|
47
|
+
if [[ $self =~ / ]]
|
48
|
+
then
|
49
|
+
self="$PWD/$self"
|
50
|
+
else
|
51
|
+
echo 'Could not determine base directory for Fig.' >&2
|
52
|
+
exit 1
|
53
|
+
fi
|
54
|
+
fi
|
55
|
+
|
56
|
+
self_link="$(! readlink -n "$self")"
|
57
|
+
while [[ -n $self_link ]]
|
58
|
+
do
|
59
|
+
if [[ ! $self_link =~ ^/ ]]
|
60
|
+
then
|
61
|
+
self_link="$(dirname "$self")/$self_link"
|
62
|
+
fi
|
63
|
+
|
64
|
+
self="$self_link"
|
65
|
+
self_link="$(! readlink -n "$self")"
|
66
|
+
done
|
67
|
+
strict-errors
|
68
|
+
fi
|
69
|
+
|
70
|
+
fig_dir=$(dirname "$self")
|
71
|
+
|
72
|
+
|
73
|
+
# No longer strict on errors; let Ruby code determine how this script exits.
|
74
|
+
loose-errors
|
75
|
+
|
76
|
+
|
77
|
+
exec ruby \
|
78
|
+
--external-encoding UTF-8 \
|
79
|
+
--internal-encoding UTF-8 \
|
80
|
+
-r "$fig_dir/../lib/fig/command/initialization.rb" \
|
81
|
+
-e 'exit Fig::Command.new.run_fig_with_exception_handling ARGV' \
|
82
|
+
-- "$@"
|
data/bin/fig-debug
CHANGED
@@ -1,22 +1,84 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env bash
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
function emit-stack-trace {
|
4
|
+
local -i x
|
5
|
+
local -i stack_frames="${#FUNCNAME[@]}"
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
File.join(
|
9
|
-
File.dirname(__FILE__), %w< .. lib fig command coverage_support.rb >
|
10
|
-
)
|
11
|
-
)
|
12
|
-
end
|
7
|
+
{
|
8
|
+
echo "ERROR in ${FUNCNAME[1]}() at ${BASH_SOURCE[1]}:${BASH_LINENO[0]}"
|
13
9
|
|
14
|
-
|
10
|
+
for (( x=2; x < stack_frames; x++ ))
|
11
|
+
do
|
12
|
+
echo "called by ${FUNCNAME[x]}() at ${BASH_SOURCE[x]}:${BASH_LINENO[x - 1]}"
|
13
|
+
done
|
14
|
+
} >&2
|
15
|
+
} # end emit-stack-trace()
|
15
16
|
|
16
|
-
|
17
|
+
function strict-errors {
|
18
|
+
set -o errexit
|
19
|
+
set -o errtrace
|
20
|
+
|
21
|
+
trap emit-stack-trace ERR
|
22
|
+
} # end strict-errors()
|
23
|
+
|
24
|
+
function loose-errors {
|
25
|
+
set +o errexit
|
26
|
+
set +o errtrace
|
27
|
+
|
28
|
+
trap - ERR
|
29
|
+
} # end loose-errors()
|
30
|
+
|
31
|
+
|
32
|
+
strict-errors
|
33
|
+
|
34
|
+
|
35
|
+
# "dirname $0" does not work if we were invoked via a symlink, so we've got to
|
36
|
+
# go through this fun. See http://mywiki.wooledge.org/BashFAQ/028
|
37
|
+
if readlink -e /dev/null &>/dev/null
|
38
|
+
then
|
39
|
+
# GNU readlink(1)
|
40
|
+
self="$(readlink -e "${BASH_SOURCE[0]}")"
|
41
|
+
else
|
42
|
+
# BSD readlink(1)
|
43
|
+
loose-errors
|
44
|
+
self="${BASH_SOURCE[0]}"
|
45
|
+
if [[ ! $self =~ ^/ ]]
|
46
|
+
then
|
47
|
+
if [[ $self =~ / ]]
|
48
|
+
then
|
49
|
+
self="$PWD/$self"
|
50
|
+
else
|
51
|
+
echo 'Could not determine base directory for Fig.' >&2
|
52
|
+
exit 1
|
53
|
+
fi
|
54
|
+
fi
|
55
|
+
|
56
|
+
self_link="$(! readlink -n "$self")"
|
57
|
+
while [[ -n $self_link ]]
|
58
|
+
do
|
59
|
+
if [[ ! $self_link =~ ^/ ]]
|
60
|
+
then
|
61
|
+
self_link="$(dirname "$self")/$self_link"
|
62
|
+
fi
|
63
|
+
|
64
|
+
self="$self_link"
|
65
|
+
self_link="$(! readlink -n "$self")"
|
66
|
+
done
|
67
|
+
strict-errors
|
68
|
+
fi
|
69
|
+
|
70
|
+
fig_dir=$(dirname "$self")
|
71
|
+
|
72
|
+
|
73
|
+
# No longer strict on errors; let Ruby code determine how this script exits.
|
74
|
+
loose-errors
|
17
75
|
|
18
|
-
require 'fig/command'
|
19
76
|
|
20
77
|
# Identical to regular fig, but doesn't use exception handling so you can see
|
21
78
|
# stack traces.
|
22
|
-
|
79
|
+
exec ruby \
|
80
|
+
--external-encoding UTF-8 \
|
81
|
+
--internal-encoding UTF-8 \
|
82
|
+
-r "$fig_dir/../lib/fig/command/initialization.rb" \
|
83
|
+
-e 'exit Fig::Command.new.run_fig ARGV' \
|
84
|
+
-- "$@"
|
data/bin/fig.bat
CHANGED
data/lib/fig.rb
CHANGED
data/lib/fig/at_exit.rb
CHANGED
data/lib/fig/command.rb
CHANGED
data/lib/fig/command/action.rb
CHANGED