fig 1.27.10 → 2.0.0.pre.alpha.2
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.
- checksums.yaml +4 -4
- data/Changes +186 -1
- data/README.md +1 -1
- data/bin/fig +3 -81
- data/lib/fig/command/action/source_package.rb +1 -1
- data/lib/fig/command/action/version.rb +1 -1
- data/lib/fig/command/action/version_plain.rb +1 -1
- data/lib/fig/command/initialization.rb +1 -0
- data/lib/fig/command/options/parser.rb +1 -0
- data/lib/fig/command/options.rb +26 -1
- data/lib/fig/command/package_applier.rb +1 -1
- data/lib/fig/command.rb +35 -2
- data/lib/fig/figrc.rb +1 -1
- data/lib/fig/grammar/base.rb +7 -5
- data/lib/fig/grammar/v0.rb +22 -20
- data/lib/fig/grammar/v1.rb +5 -3
- data/lib/fig/grammar/v1_base.rb +44 -29
- data/lib/fig/grammar/v2.rb +13 -11
- data/lib/fig/grammar/version.rb +7 -5
- data/lib/fig/grammar/version_identification.rb +5 -3
- data/lib/fig/operating_system.rb +69 -42
- data/lib/fig/package.rb +16 -5
- data/lib/fig/package_descriptor.rb +3 -1
- data/lib/fig/parser.rb +0 -9
- data/lib/fig/protocol/http.rb +2 -0
- data/lib/fig/protocol.rb +1 -1
- data/lib/fig/repository.rb +1 -2
- data/lib/fig/repository_package_publisher.rb +2 -2
- data/lib/fig/runtime_environment.rb +37 -13
- data/lib/fig/update_lock.rb +1 -1
- data/lib/fig/version.rb +5 -0
- data/lib/fig/working_directory_maintainer.rb +24 -8
- data/lib/fig.rb +4 -4
- data/lib/git_helper.rb +17 -0
- metadata +144 -76
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8016bb7d559da6494a599f732340222272f56f001fcae4186f6f43377d57823f
|
4
|
+
data.tar.gz: 8fe1d2462572ba968651d6c66e41e4f0a657a2dbcf17408592b03e00055694ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc59c14253bd39d46a5a44cbdce3efb103e41ed089eba614f27bc246fb41333ab23cd439d8d6bcd1d0eaed88c720f07e48655e261e5f1ec27fd10bc8c9069cc1
|
7
|
+
data.tar.gz: dceb0d12693a8df6229b04e52b1fc9cf8a4e74ad007b0897fe08564d5455b69acca53e16090bff08354c52dcc216bfce29da8e0aa7f1c31e0055d06f0ad4ccc2
|
data/Changes
CHANGED
@@ -1,3 +1,188 @@
|
|
1
|
+
v2.0.0.beta.1 - 2025/2/3
|
2
|
+
|
3
|
+
Announcement:
|
4
|
+
|
5
|
+
- Fig now requires miminum of ruby 3.1.2.
|
6
|
+
- Switch libarchive backend from libarchive-static to ffi-libarchive-binary
|
7
|
+
- Use stdlib for typical package tarball creation.
|
8
|
+
|
9
|
+
Bug Fixes:
|
10
|
+
|
11
|
+
- Abandon use of deprecated APIs.
|
12
|
+
|
13
|
+
Miscellaneous:
|
14
|
+
|
15
|
+
- Add github CI support.
|
16
|
+
- Add build matrix for windows, mac, and linux.
|
17
|
+
|
18
|
+
v1.27.29 - 2023/2/7
|
19
|
+
|
20
|
+
Bug fix:
|
21
|
+
|
22
|
+
- Updated libarchive-static gem to pick up newer libarchive and zlib.
|
23
|
+
- Updated rdoc for security fixes.
|
24
|
+
|
25
|
+
v1.27.28 - 2023/1/24
|
26
|
+
|
27
|
+
Bug fix:
|
28
|
+
|
29
|
+
- Updated gems for Ruby 3 (specifically libarchive-static and net-ftp).
|
30
|
+
|
31
|
+
v1.27.27 - 2022/6/15
|
32
|
+
|
33
|
+
Bug fix:
|
34
|
+
|
35
|
+
- Fixed HTTP download success detection.
|
36
|
+
|
37
|
+
v1.27.26 - 2022/5/26
|
38
|
+
|
39
|
+
Bug fix:
|
40
|
+
|
41
|
+
- Fixed up-to-dateness checking for unauthenticated protocols.
|
42
|
+
|
43
|
+
v1.27.25 - 2021/8/12
|
44
|
+
|
45
|
+
Miscellaneous:
|
46
|
+
|
47
|
+
- Now looks for environment variables that start with "FIG_EXPORT_VARIABLE_"
|
48
|
+
and exports those without the prefix to all running commands and options
|
49
|
+
such as "--get". So, assuming no packages manipulate variable FOO, running
|
50
|
+
|
51
|
+
> FOO=direct FIG_EXPORT_VARIABLE_FOO=overridden fig --get FOO
|
52
|
+
|
53
|
+
will emit "overridden". This is useful for writing wrappers for Fig that
|
54
|
+
save the values of environment variables that affect the Ruby runtime used
|
55
|
+
by Fig itself, e.g.
|
56
|
+
|
57
|
+
for variable in GEM_HOME GEM_PATH GEM_SKIP LD_LIBRARY_PATH RUBYLIB RUBYLIB_PREFIX RUBYOPT RUBYPATH RUBYSHELL
|
58
|
+
do
|
59
|
+
eval variable_value="\"\$$variable\""
|
60
|
+
|
61
|
+
if [[ -n $variable_value ]]
|
62
|
+
then
|
63
|
+
eval export "FIG_EXPORT_VARIABLE_$variable=\"$variable_value\""
|
64
|
+
unset $variable
|
65
|
+
fi
|
66
|
+
done
|
67
|
+
|
68
|
+
v1.27.24.beta.2 - 2021/8/12
|
69
|
+
|
70
|
+
- Test release.
|
71
|
+
|
72
|
+
v1.27.24.beta.1 - 2021/8/12
|
73
|
+
|
74
|
+
- Test release.
|
75
|
+
|
76
|
+
v1.27.23 - 2021/8/3
|
77
|
+
|
78
|
+
Bug fix:
|
79
|
+
|
80
|
+
- Fix for traversing include-file dependencies with non-default config names.
|
81
|
+
Thanks for to Gabriel Burca for the bug report.
|
82
|
+
|
83
|
+
v1.27.22 - 2021/4/28
|
84
|
+
|
85
|
+
Miscellaneous:
|
86
|
+
|
87
|
+
- Update net-ssh and add dependencies on non-Windows platforms to be
|
88
|
+
compatible with ED25519 SSH keys.
|
89
|
+
|
90
|
+
v1.27.21.beta.1 - 2021/4/26
|
91
|
+
|
92
|
+
- Test release.
|
93
|
+
|
94
|
+
v1.27.20 - 2021/3/17
|
95
|
+
|
96
|
+
Miscellaneous:
|
97
|
+
|
98
|
+
- Add --suppress-includes-beyond-package-depth command-line option to allow
|
99
|
+
looking at dependencies to a limited level. Most likely, you want to
|
100
|
+
specify a value of 2 to get at your direct dependencies, but not your
|
101
|
+
indirect ones. This is because there is a virtual package for the
|
102
|
+
command-line, your base package, whether from a file or a descriptor, and
|
103
|
+
then the dependency.
|
104
|
+
- Better debugging output when dealing with file-based package.
|
105
|
+
|
106
|
+
Bug fixes:
|
107
|
+
|
108
|
+
- Fixed comparison of synthetic packages and comparison of file-based
|
109
|
+
packages.
|
110
|
+
|
111
|
+
v1.27.19.beta.1 - 2021/3/15
|
112
|
+
|
113
|
+
- Test release.
|
114
|
+
|
115
|
+
v1.27.18 - 2020/10/21
|
116
|
+
|
117
|
+
Miscellaneous:
|
118
|
+
|
119
|
+
- Bump Bundler version in Gemfile.lock in order to facilitate use of MRI/YARV
|
120
|
+
v2.7.x.
|
121
|
+
|
122
|
+
v1.27.17 - 2019/7/19
|
123
|
+
|
124
|
+
Miscellaneous:
|
125
|
+
|
126
|
+
- Add --microsecond-only-file-modification-time-comparisons command-line
|
127
|
+
option to deal with unnamed environments (ok, VirtualBox) truncating file
|
128
|
+
mtime values. There is no need to use this option on macOS because it is
|
129
|
+
forced on on that platform (see v1.27.12 below).
|
130
|
+
- Add app configuration option equivalent to that command-line option: "only
|
131
|
+
compare file modification times to the microsecond".
|
132
|
+
|
133
|
+
v1.27.16.beta.2 - 2019/7/19
|
134
|
+
|
135
|
+
- Test release.
|
136
|
+
|
137
|
+
v1.27.16.beta.1 - 2019/7/18
|
138
|
+
|
139
|
+
- Test release.
|
140
|
+
|
141
|
+
v1.27.15 - 2019/5/3
|
142
|
+
|
143
|
+
Bug fixes:
|
144
|
+
|
145
|
+
- Recursive resource globbing (i.e. use of double asterisks) could result in
|
146
|
+
files being stored multiple times in an a package. Thanks to bug report
|
147
|
+
and code digging from Matt Hellige.
|
148
|
+
|
149
|
+
v1.27.14.beta.1 - 2019/4/26
|
150
|
+
|
151
|
+
- Test release.
|
152
|
+
|
153
|
+
v1.27.13 - 2019/4/9
|
154
|
+
|
155
|
+
Miscellaneous:
|
156
|
+
|
157
|
+
- Declare the v2 grammar no longer experimental. It's been six years.
|
158
|
+
|
159
|
+
v1.27.12 - 2018/9/4
|
160
|
+
|
161
|
+
Miscellaneous:
|
162
|
+
|
163
|
+
- In deciding whether a retrieved file has changed, in addition to checking
|
164
|
+
file modification times, we check file sizes.
|
165
|
+
|
166
|
+
Bug fixes:
|
167
|
+
|
168
|
+
- On macOS, only compare file modification times to the microsecond. This
|
169
|
+
works around a problem with APFS where copied timestamps have the
|
170
|
+
nanoseconds truncated. Bug reported by Jay Fields.
|
171
|
+
- Fixed a bug in warning when one retrieve statement overrides another. Bug
|
172
|
+
reported by Tom Anderson.
|
173
|
+
|
174
|
+
v1.27.11.beta.3 - 2018/8/31
|
175
|
+
|
176
|
+
- Test release.
|
177
|
+
|
178
|
+
v1.27.11.beta.2 - 2018/8/31
|
179
|
+
|
180
|
+
- Test release.
|
181
|
+
|
182
|
+
v1.27.11.beta.1 - 2018/8/30
|
183
|
+
|
184
|
+
- Test release.
|
185
|
+
|
1
186
|
v1.27.10 - 2018/8/1
|
2
187
|
|
3
188
|
Miscellaneous:
|
@@ -9,7 +194,7 @@ v1.27.10 - 2018/8/1
|
|
9
194
|
|
10
195
|
v1.27.9.beta.1 - 2018/8/1
|
11
196
|
|
12
|
-
|
197
|
+
- Test release.
|
13
198
|
|
14
199
|
v1.27.8 - 2018/6/18
|
15
200
|
|
data/README.md
CHANGED
data/bin/fig
CHANGED
@@ -1,82 +1,4 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
local -i stack_frames="${#FUNCNAME[@]}"
|
6
|
-
|
7
|
-
{
|
8
|
-
echo "ERROR in ${FUNCNAME[1]}() at ${BASH_SOURCE[1]}:${BASH_LINENO[0]}"
|
9
|
-
|
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()
|
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
|
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
|
-
-- "$@"
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'fig'
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# This is not a normal module/class. It contains code to be run by bin/fig and
|
4
4
|
# bin/fig-debug just after process startup.
|
5
5
|
|
6
|
+
# FIXME remove this check and rely on gem/bundler enforcement
|
6
7
|
( [2, 0, 0] <=> ( RUBY_VERSION.split(".").collect {|x| x.to_i} ) ) <= 0 or
|
7
8
|
abort "Ruby v2.0.0 is required; this is v#{RUBY_VERSION}."
|
8
9
|
|
@@ -87,6 +87,7 @@ Standard options (represented as "[...]" above):
|
|
87
87
|
|
88
88
|
[-R | --suppress-retrieves] [--suppress-cleanup-of-retrieves]
|
89
89
|
[--suppress-all-includes] [--suppress-cross-package-includes]
|
90
|
+
[--suppress-includes-beyond-package-depth COUNT]
|
90
91
|
|
91
92
|
[--file PATH] [--no-file]
|
92
93
|
[{-c | --config} CONFIG]
|
data/lib/fig/command/options.rb
CHANGED
@@ -165,6 +165,10 @@ class Fig::Command::Options
|
|
165
165
|
return @no_remote_figrc
|
166
166
|
end
|
167
167
|
|
168
|
+
def usec_mtime_comparisons?
|
169
|
+
return @usec_mtime_comparisons
|
170
|
+
end
|
171
|
+
|
168
172
|
def suppress_warning_include_statement_missing_version?()
|
169
173
|
return @suppress_warning_include_statement_missing_version
|
170
174
|
end
|
@@ -298,6 +302,20 @@ Running commands:
|
|
298
302
|
set_suppress_includes(:cross_package)
|
299
303
|
end
|
300
304
|
|
305
|
+
@parser.on(
|
306
|
+
'--suppress-includes-beyond-package-depth DEPTH',
|
307
|
+
STARTS_WITH_NON_HYPHEN,
|
308
|
+
%q<only process includes to the package depth specified (you want 2 or greater)>,
|
309
|
+
) do |depth|
|
310
|
+
if depth !~ /\A\d+\z/
|
311
|
+
raise Fig::Command::OptionError.new(
|
312
|
+
'Value of --suppress-includes-beyond-package-depth must be an integer.'
|
313
|
+
)
|
314
|
+
end
|
315
|
+
|
316
|
+
set_suppress_includes(depth.to_i)
|
317
|
+
end
|
318
|
+
|
301
319
|
return
|
302
320
|
end
|
303
321
|
|
@@ -735,6 +753,13 @@ Running commands:
|
|
735
753
|
@update_lock_response = response
|
736
754
|
end
|
737
755
|
|
756
|
+
@parser.on(
|
757
|
+
'--microsecond-only-file-modification-time-comparisons',
|
758
|
+
%q<to deal with situations with truncated times; always on on macOS>
|
759
|
+
) do
|
760
|
+
@usec_mtime_comparisons = true
|
761
|
+
end
|
762
|
+
|
738
763
|
@parser.on(
|
739
764
|
'--suppress-warning-include-statement-missing-version',
|
740
765
|
%q<don't complain about an include statement without a version>
|
@@ -821,7 +846,7 @@ Running commands:
|
|
821
846
|
def set_suppress_includes(value)
|
822
847
|
if @suppress_includes
|
823
848
|
raise Fig::Command::OptionError.new(
|
824
|
-
'Can only specify one --suppress-all-includes/--suppress-cross-package-includes option.'
|
849
|
+
'Can only specify one --suppress-all-includes/--suppress-cross-package-includes/--suppress-includes-beyond-package-depth option.'
|
825
850
|
)
|
826
851
|
end
|
827
852
|
|
@@ -44,7 +44,7 @@ class Fig::Command::PackageApplier
|
|
44
44
|
@synthetic_package_for_command_line =
|
45
45
|
synthesize_package_for_command_line_options(ignore_base_config)
|
46
46
|
@environment.apply_config(
|
47
|
-
@synthetic_package_for_command_line, Fig::Package::DEFAULT_CONFIG, nil
|
47
|
+
@synthetic_package_for_command_line, Fig::Package::DEFAULT_CONFIG, nil,
|
48
48
|
)
|
49
49
|
rescue Fig::NoSuchPackageConfigError => exception
|
50
50
|
make_no_such_package_exception_descriptive(exception)
|
data/lib/fig/command.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
+
require 'bundler/setup'
|
3
4
|
require 'fileutils'
|
4
5
|
require 'net/ftp'
|
5
6
|
require 'set'
|
@@ -272,7 +273,17 @@ class Fig::Command
|
|
272
273
|
|
273
274
|
def prepare_runtime_environment()
|
274
275
|
if retrieves_should_happen?
|
275
|
-
|
276
|
+
# With APFS, at least on High Sierra, even «/bin/cp -p» does not preserve
|
277
|
+
# timestamps properly. The timestamps get truncated to microseconds.
|
278
|
+
usec_mtime_comparisons =
|
279
|
+
Fig::OperatingSystem.macos? \
|
280
|
+
|| @options.usec_mtime_comparisons? \
|
281
|
+
|| @application_configuration[
|
282
|
+
'only compare file modification times to the microsecond'
|
283
|
+
]
|
284
|
+
|
285
|
+
@working_directory_maintainer =
|
286
|
+
Fig::WorkingDirectoryMaintainer.new('.', usec_mtime_comparisons)
|
276
287
|
|
277
288
|
Fig::AtExit.add do
|
278
289
|
@working_directory_maintainer.prepare_for_shutdown(
|
@@ -281,9 +292,31 @@ class Fig::Command
|
|
281
292
|
end
|
282
293
|
end
|
283
294
|
|
295
|
+
initial_environment_variables = nil
|
296
|
+
ENV.keys.each do
|
297
|
+
|variable_name|
|
298
|
+
|
299
|
+
if variable_name.start_with? 'FIG_EXPORT_VARIABLE_'
|
300
|
+
initial_environment_variables ||= {}
|
301
|
+
|
302
|
+
initial_environment_variables[ variable_name[20..-1] ] =
|
303
|
+
ENV.delete(variable_name)
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
284
307
|
environment_variables = nil
|
285
308
|
if reset_environment?
|
286
|
-
environment_variables = Fig::OperatingSystem.get_environment_variables(
|
309
|
+
environment_variables = Fig::OperatingSystem.get_environment_variables(
|
310
|
+
initial_environment_variables || {},
|
311
|
+
)
|
312
|
+
elsif initial_environment_variables
|
313
|
+
environment_variables = Fig::OperatingSystem.get_environment_variables
|
314
|
+
|
315
|
+
initial_environment_variables.each_pair do
|
316
|
+
|key, value|
|
317
|
+
|
318
|
+
environment_variables[key] = value
|
319
|
+
end
|
287
320
|
end
|
288
321
|
|
289
322
|
@environment = Fig::RuntimeEnvironment.new(
|
data/lib/fig/figrc.rb
CHANGED
@@ -61,7 +61,7 @@ class Fig::FigRC
|
|
61
61
|
|
62
62
|
def self.handle_figrc(configuration)
|
63
63
|
user_figrc_path = File.expand_path('~/.figrc')
|
64
|
-
return if not File.
|
64
|
+
return if not File.exist? user_figrc_path
|
65
65
|
|
66
66
|
begin
|
67
67
|
configuration_text = File::open(user_figrc_path).read
|
data/lib/fig/grammar/base.rb
CHANGED
@@ -106,7 +106,7 @@ module Fig
|
|
106
106
|
r1 = true
|
107
107
|
@index += match_len
|
108
108
|
else
|
109
|
-
terminal_parse_failure('
|
109
|
+
terminal_parse_failure('\'#\'')
|
110
110
|
r1 = nil
|
111
111
|
end
|
112
112
|
s0 << r1
|
@@ -133,7 +133,7 @@ module Fig
|
|
133
133
|
r4 = true
|
134
134
|
@index += match_len
|
135
135
|
else
|
136
|
-
terminal_parse_failure("
|
136
|
+
terminal_parse_failure('"\\n"')
|
137
137
|
r4 = nil
|
138
138
|
end
|
139
139
|
s0 << r4
|
@@ -211,11 +211,13 @@ module Fig
|
|
211
211
|
r0
|
212
212
|
end
|
213
213
|
|
214
|
-
end
|
215
214
|
|
216
|
-
|
217
|
-
|
215
|
+
class Parser < Treetop::Runtime::CompiledParser
|
216
|
+
include Base
|
217
|
+
end
|
218
218
|
end
|
219
219
|
|
220
|
+
BaseParser = Base::Parser
|
221
|
+
|
220
222
|
end
|
221
223
|
end
|
data/lib/fig/grammar/v0.rb
CHANGED
@@ -205,7 +205,7 @@ module Fig
|
|
205
205
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
206
206
|
@index += match_len
|
207
207
|
else
|
208
|
-
terminal_parse_failure('archive')
|
208
|
+
terminal_parse_failure('\'archive\'')
|
209
209
|
r1 = nil
|
210
210
|
end
|
211
211
|
s0 << r1
|
@@ -279,7 +279,7 @@ module Fig
|
|
279
279
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
280
280
|
@index += match_len
|
281
281
|
else
|
282
|
-
terminal_parse_failure('resource')
|
282
|
+
terminal_parse_failure('\'resource\'')
|
283
283
|
r1 = nil
|
284
284
|
end
|
285
285
|
s0 << r1
|
@@ -358,7 +358,7 @@ module Fig
|
|
358
358
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
359
359
|
@index += match_len
|
360
360
|
else
|
361
|
-
terminal_parse_failure('retrieve')
|
361
|
+
terminal_parse_failure('\'retrieve\'')
|
362
362
|
r1 = nil
|
363
363
|
end
|
364
364
|
s0 << r1
|
@@ -387,7 +387,7 @@ module Fig
|
|
387
387
|
r5 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
388
388
|
@index += match_len
|
389
389
|
else
|
390
|
-
terminal_parse_failure('
|
390
|
+
terminal_parse_failure('\'->\'')
|
391
391
|
r5 = nil
|
392
392
|
end
|
393
393
|
s0 << r5
|
@@ -469,7 +469,7 @@ module Fig
|
|
469
469
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
470
470
|
@index += match_len
|
471
471
|
else
|
472
|
-
terminal_parse_failure('config')
|
472
|
+
terminal_parse_failure('\'config\'')
|
473
473
|
r1 = nil
|
474
474
|
end
|
475
475
|
s0 << r1
|
@@ -527,7 +527,7 @@ module Fig
|
|
527
527
|
r9 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
528
528
|
@index += match_len
|
529
529
|
else
|
530
|
-
terminal_parse_failure('end')
|
530
|
+
terminal_parse_failure('\'end\'')
|
531
531
|
r9 = nil
|
532
532
|
end
|
533
533
|
s0 << r9
|
@@ -653,7 +653,7 @@ module Fig
|
|
653
653
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
654
654
|
@index += match_len
|
655
655
|
else
|
656
|
-
terminal_parse_failure('include')
|
656
|
+
terminal_parse_failure('\'include\'')
|
657
657
|
r1 = nil
|
658
658
|
end
|
659
659
|
s0 << r1
|
@@ -746,7 +746,7 @@ module Fig
|
|
746
746
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
747
747
|
@index += match_len
|
748
748
|
else
|
749
|
-
terminal_parse_failure('override')
|
749
|
+
terminal_parse_failure('\'override\'')
|
750
750
|
r1 = nil
|
751
751
|
end
|
752
752
|
s0 << r1
|
@@ -839,7 +839,7 @@ module Fig
|
|
839
839
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
840
840
|
@index += match_len
|
841
841
|
else
|
842
|
-
terminal_parse_failure('set')
|
842
|
+
terminal_parse_failure('\'set\'')
|
843
843
|
r1 = nil
|
844
844
|
end
|
845
845
|
s0 << r1
|
@@ -933,7 +933,7 @@ module Fig
|
|
933
933
|
r2 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
934
934
|
@index += match_len
|
935
935
|
else
|
936
|
-
terminal_parse_failure('add')
|
936
|
+
terminal_parse_failure('\'add\'')
|
937
937
|
r2 = nil
|
938
938
|
end
|
939
939
|
if r2
|
@@ -944,7 +944,7 @@ module Fig
|
|
944
944
|
r3 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
945
945
|
@index += match_len
|
946
946
|
else
|
947
|
-
terminal_parse_failure('append')
|
947
|
+
terminal_parse_failure('\'append\'')
|
948
948
|
r3 = nil
|
949
949
|
end
|
950
950
|
if r3
|
@@ -955,7 +955,7 @@ module Fig
|
|
955
955
|
r4 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
956
956
|
@index += match_len
|
957
957
|
else
|
958
|
-
terminal_parse_failure('path')
|
958
|
+
terminal_parse_failure('\'path\'')
|
959
959
|
r4 = nil
|
960
960
|
end
|
961
961
|
if r4
|
@@ -1057,7 +1057,7 @@ module Fig
|
|
1057
1057
|
r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
1058
1058
|
@index += match_len
|
1059
1059
|
else
|
1060
|
-
terminal_parse_failure('command')
|
1060
|
+
terminal_parse_failure('\'command\'')
|
1061
1061
|
r1 = nil
|
1062
1062
|
end
|
1063
1063
|
s0 << r1
|
@@ -1134,7 +1134,7 @@ module Fig
|
|
1134
1134
|
r1 = true
|
1135
1135
|
@index += match_len
|
1136
1136
|
else
|
1137
|
-
terminal_parse_failure('"')
|
1137
|
+
terminal_parse_failure('\'"\'')
|
1138
1138
|
r1 = nil
|
1139
1139
|
end
|
1140
1140
|
s0 << r1
|
@@ -1161,7 +1161,7 @@ module Fig
|
|
1161
1161
|
r4 = true
|
1162
1162
|
@index += match_len
|
1163
1163
|
else
|
1164
|
-
terminal_parse_failure('"')
|
1164
|
+
terminal_parse_failure('\'"\'')
|
1165
1165
|
r4 = nil
|
1166
1166
|
end
|
1167
1167
|
s0 << r4
|
@@ -1407,7 +1407,7 @@ module Fig
|
|
1407
1407
|
r6 = true
|
1408
1408
|
@index += match_len
|
1409
1409
|
else
|
1410
|
-
terminal_parse_failure('"')
|
1410
|
+
terminal_parse_failure('\'"\'')
|
1411
1411
|
r6 = nil
|
1412
1412
|
end
|
1413
1413
|
s5 << r6
|
@@ -1439,7 +1439,7 @@ module Fig
|
|
1439
1439
|
r9 = true
|
1440
1440
|
@index += match_len
|
1441
1441
|
else
|
1442
|
-
terminal_parse_failure('"')
|
1442
|
+
terminal_parse_failure('\'"\'')
|
1443
1443
|
r9 = nil
|
1444
1444
|
end
|
1445
1445
|
s5 << r9
|
@@ -1508,11 +1508,13 @@ module Fig
|
|
1508
1508
|
r0
|
1509
1509
|
end
|
1510
1510
|
|
1511
|
-
end
|
1512
1511
|
|
1513
|
-
|
1514
|
-
|
1512
|
+
class Parser < Treetop::Runtime::CompiledParser
|
1513
|
+
include V0
|
1514
|
+
end
|
1515
1515
|
end
|
1516
1516
|
|
1517
|
+
V0Parser = V0::Parser
|
1518
|
+
|
1517
1519
|
end
|
1518
1520
|
end
|