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.
@@ -157,11 +157,13 @@ module Fig
157
157
  r0
158
158
  end
159
159
 
160
- end
161
160
 
162
- class V1Parser < Treetop::Runtime::CompiledParser
163
- include V1
161
+ class Parser < Treetop::Runtime::CompiledParser
162
+ include V1
163
+ end
164
164
  end
165
165
 
166
+ V1Parser = V1::Parser
167
+
166
168
  end
167
169
  end
@@ -166,7 +166,7 @@ module Fig
166
166
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
167
167
  @index += match_len
168
168
  else
169
- terminal_parse_failure('archive')
169
+ terminal_parse_failure('\'archive\'')
170
170
  r1 = nil
171
171
  end
172
172
  s0 << r1
@@ -240,7 +240,7 @@ module Fig
240
240
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
241
241
  @index += match_len
242
242
  else
243
- terminal_parse_failure('resource')
243
+ terminal_parse_failure('\'resource\'')
244
244
  r1 = nil
245
245
  end
246
246
  s0 << r1
@@ -318,7 +318,7 @@ module Fig
318
318
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
319
319
  @index += match_len
320
320
  else
321
- terminal_parse_failure('retrieve')
321
+ terminal_parse_failure('\'retrieve\'')
322
322
  r1 = nil
323
323
  end
324
324
  s0 << r1
@@ -347,7 +347,7 @@ module Fig
347
347
  r5 = instantiate_node(SyntaxNode,input, index...(index + match_len))
348
348
  @index += match_len
349
349
  else
350
- terminal_parse_failure('->')
350
+ terminal_parse_failure('\'->\'')
351
351
  r5 = nil
352
352
  end
353
353
  s0 << r5
@@ -411,7 +411,7 @@ module Fig
411
411
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
412
412
  @index += match_len
413
413
  else
414
- terminal_parse_failure('config')
414
+ terminal_parse_failure('\'config\'')
415
415
  r1 = nil
416
416
  end
417
417
  s0 << r1
@@ -469,7 +469,7 @@ module Fig
469
469
  r9 = instantiate_node(SyntaxNode,input, index...(index + match_len))
470
470
  @index += match_len
471
471
  else
472
- terminal_parse_failure('end')
472
+ terminal_parse_failure('\'end\'')
473
473
  r9 = nil
474
474
  end
475
475
  s0 << r9
@@ -585,7 +585,7 @@ module Fig
585
585
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
586
586
  @index += match_len
587
587
  else
588
- terminal_parse_failure('include')
588
+ terminal_parse_failure('\'include\'')
589
589
  r1 = nil
590
590
  end
591
591
  s0 << r1
@@ -659,7 +659,7 @@ module Fig
659
659
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
660
660
  @index += match_len
661
661
  else
662
- terminal_parse_failure('override')
662
+ terminal_parse_failure('\'override\'')
663
663
  r1 = nil
664
664
  end
665
665
  s0 << r1
@@ -733,7 +733,7 @@ module Fig
733
733
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
734
734
  @index += match_len
735
735
  else
736
- terminal_parse_failure('set')
736
+ terminal_parse_failure('\'set\'')
737
737
  r1 = nil
738
738
  end
739
739
  s0 << r1
@@ -808,7 +808,7 @@ module Fig
808
808
  r2 = instantiate_node(SyntaxNode,input, index...(index + match_len))
809
809
  @index += match_len
810
810
  else
811
- terminal_parse_failure('add')
811
+ terminal_parse_failure('\'add\'')
812
812
  r2 = nil
813
813
  end
814
814
  if r2
@@ -819,7 +819,7 @@ module Fig
819
819
  r3 = instantiate_node(SyntaxNode,input, index...(index + match_len))
820
820
  @index += match_len
821
821
  else
822
- terminal_parse_failure('append')
822
+ terminal_parse_failure('\'append\'')
823
823
  r3 = nil
824
824
  end
825
825
  if r3
@@ -830,7 +830,7 @@ module Fig
830
830
  r4 = instantiate_node(SyntaxNode,input, index...(index + match_len))
831
831
  @index += match_len
832
832
  else
833
- terminal_parse_failure('path')
833
+ terminal_parse_failure('\'path\'')
834
834
  r4 = nil
835
835
  end
836
836
  if r4
@@ -930,7 +930,7 @@ module Fig
930
930
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
931
931
  @index += match_len
932
932
  else
933
- terminal_parse_failure('command')
933
+ terminal_parse_failure('\'command\'')
934
934
  r1 = nil
935
935
  end
936
936
  s0 << r1
@@ -976,7 +976,7 @@ module Fig
976
976
  r7 = instantiate_node(SyntaxNode,input, index...(index + match_len))
977
977
  @index += match_len
978
978
  else
979
- terminal_parse_failure('end')
979
+ terminal_parse_failure('\'end\'')
980
980
  r7 = nil
981
981
  end
982
982
  s0 << r7
@@ -1029,9 +1029,15 @@ module Fig
1029
1029
  if r1
1030
1030
  i2 = index
1031
1031
  r3 = lambda { |sequence| sequence[-1].text_value == 'end' }.call(s0)
1032
+ if !r3
1033
+ terminal_parse_failure("<semantic predicate>")
1034
+ end
1032
1035
  if r3
1036
+ @index = i2
1033
1037
  r2 = nil
1038
+ terminal_parse_failure("<semantic predicate>", true)
1034
1039
  else
1040
+ @terminal_failures.pop
1035
1041
  @index = i2
1036
1042
  r2 = instantiate_node(SyntaxNode,input, index...index)
1037
1043
  end
@@ -1062,9 +1068,15 @@ module Fig
1062
1068
  if r8
1063
1069
  i9 = index
1064
1070
  r10 = lambda { |sequence| sequence[-1].text_value == 'end' }.call(s5)
1071
+ if !r10
1072
+ terminal_parse_failure("<semantic predicate>")
1073
+ end
1065
1074
  if r10
1075
+ @index = i9
1066
1076
  r9 = nil
1077
+ terminal_parse_failure("<semantic predicate>", true)
1067
1078
  else
1079
+ @terminal_failures.pop
1068
1080
  @index = i9
1069
1081
  r9 = instantiate_node(SyntaxNode,input, index...index)
1070
1082
  end
@@ -1236,7 +1248,7 @@ module Fig
1236
1248
  r4 = true
1237
1249
  @index += match_len
1238
1250
  else
1239
- terminal_parse_failure('"')
1251
+ terminal_parse_failure('\'"\'')
1240
1252
  r4 = nil
1241
1253
  end
1242
1254
  s1 << r4
@@ -1260,7 +1272,7 @@ module Fig
1260
1272
  r9 = true
1261
1273
  @index += match_len
1262
1274
  else
1263
- terminal_parse_failure('\\')
1275
+ terminal_parse_failure('\'\\\\\'')
1264
1276
  r9 = nil
1265
1277
  end
1266
1278
  s8 << r9
@@ -1302,7 +1314,7 @@ module Fig
1302
1314
  r11 = true
1303
1315
  @index += match_len
1304
1316
  else
1305
- terminal_parse_failure('"')
1317
+ terminal_parse_failure('\'"\'')
1306
1318
  r11 = nil
1307
1319
  end
1308
1320
  s1 << r11
@@ -1344,7 +1356,7 @@ module Fig
1344
1356
  r15 = true
1345
1357
  @index += match_len
1346
1358
  else
1347
- terminal_parse_failure("'")
1359
+ terminal_parse_failure('"\'"')
1348
1360
  r15 = nil
1349
1361
  end
1350
1362
  s12 << r15
@@ -1368,7 +1380,7 @@ module Fig
1368
1380
  r20 = true
1369
1381
  @index += match_len
1370
1382
  else
1371
- terminal_parse_failure('\\')
1383
+ terminal_parse_failure('\'\\\\\'')
1372
1384
  r20 = nil
1373
1385
  end
1374
1386
  s19 << r20
@@ -1410,7 +1422,7 @@ module Fig
1410
1422
  r22 = true
1411
1423
  @index += match_len
1412
1424
  else
1413
- terminal_parse_failure("'")
1425
+ terminal_parse_failure('"\'"')
1414
1426
  r22 = nil
1415
1427
  end
1416
1428
  s12 << r22
@@ -1450,6 +1462,7 @@ module Fig
1450
1462
  else
1451
1463
  r23 = instantiate_node(SyntaxNode,input, i23...index, s23)
1452
1464
  r23.extend(QuotedOrBareString6)
1465
+ r23.extend(QuotedOrBareString6)
1453
1466
  end
1454
1467
  if r23
1455
1468
  r23 = SyntaxNode.new(input, (index-1)...index) if r23 == true
@@ -1551,7 +1564,7 @@ module Fig
1551
1564
  r4 = true
1552
1565
  @index += match_len
1553
1566
  else
1554
- terminal_parse_failure('"')
1567
+ terminal_parse_failure('\'"\'')
1555
1568
  r4 = nil
1556
1569
  end
1557
1570
  s1 << r4
@@ -1575,7 +1588,7 @@ module Fig
1575
1588
  r9 = true
1576
1589
  @index += match_len
1577
1590
  else
1578
- terminal_parse_failure('\\')
1591
+ terminal_parse_failure('\'\\\\\'')
1579
1592
  r9 = nil
1580
1593
  end
1581
1594
  s8 << r9
@@ -1617,7 +1630,7 @@ module Fig
1617
1630
  r11 = true
1618
1631
  @index += match_len
1619
1632
  else
1620
- terminal_parse_failure('"')
1633
+ terminal_parse_failure('\'"\'')
1621
1634
  r11 = nil
1622
1635
  end
1623
1636
  s1 << r11
@@ -1658,7 +1671,7 @@ module Fig
1658
1671
  r15 = true
1659
1672
  @index += match_len
1660
1673
  else
1661
- terminal_parse_failure("'")
1674
+ terminal_parse_failure('"\'"')
1662
1675
  r15 = nil
1663
1676
  end
1664
1677
  s12 << r15
@@ -1682,7 +1695,7 @@ module Fig
1682
1695
  r20 = true
1683
1696
  @index += match_len
1684
1697
  else
1685
- terminal_parse_failure('\\')
1698
+ terminal_parse_failure('\'\\\\\'')
1686
1699
  r20 = nil
1687
1700
  end
1688
1701
  s19 << r20
@@ -1724,7 +1737,7 @@ module Fig
1724
1737
  r22 = true
1725
1738
  @index += match_len
1726
1739
  else
1727
- terminal_parse_failure("'")
1740
+ terminal_parse_failure('"\'"')
1728
1741
  r22 = nil
1729
1742
  end
1730
1743
  s12 << r22
@@ -1778,11 +1791,13 @@ module Fig
1778
1791
  r0
1779
1792
  end
1780
1793
 
1781
- end
1782
1794
 
1783
- class V1BaseParser < Treetop::Runtime::CompiledParser
1784
- include V1Base
1795
+ class Parser < Treetop::Runtime::CompiledParser
1796
+ include V1Base
1797
+ end
1785
1798
  end
1786
1799
 
1800
+ V1BaseParser = V1Base::Parser
1801
+
1787
1802
  end
1788
1803
  end
@@ -212,7 +212,7 @@ module Fig
212
212
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
213
213
  @index += match_len
214
214
  else
215
- terminal_parse_failure('include-file')
215
+ terminal_parse_failure('\'include-file\'')
216
216
  r1 = nil
217
217
  end
218
218
  s0 << r1
@@ -242,7 +242,7 @@ module Fig
242
242
  r7 = true
243
243
  @index += match_len
244
244
  else
245
- terminal_parse_failure(':')
245
+ terminal_parse_failure('\':\'')
246
246
  r7 = nil
247
247
  end
248
248
  s6 << r7
@@ -309,7 +309,7 @@ module Fig
309
309
  r2 = true
310
310
  @index += match_len
311
311
  else
312
- terminal_parse_failure('"')
312
+ terminal_parse_failure('\'"\'')
313
313
  r2 = nil
314
314
  end
315
315
  s1 << r2
@@ -333,7 +333,7 @@ module Fig
333
333
  r7 = true
334
334
  @index += match_len
335
335
  else
336
- terminal_parse_failure('\\')
336
+ terminal_parse_failure('\'\\\\\'')
337
337
  r7 = nil
338
338
  end
339
339
  s6 << r7
@@ -375,7 +375,7 @@ module Fig
375
375
  r9 = true
376
376
  @index += match_len
377
377
  else
378
- terminal_parse_failure('"')
378
+ terminal_parse_failure('\'"\'')
379
379
  r9 = nil
380
380
  end
381
381
  s1 << r9
@@ -397,7 +397,7 @@ module Fig
397
397
  r11 = true
398
398
  @index += match_len
399
399
  else
400
- terminal_parse_failure("'")
400
+ terminal_parse_failure('"\'"')
401
401
  r11 = nil
402
402
  end
403
403
  s10 << r11
@@ -421,7 +421,7 @@ module Fig
421
421
  r16 = true
422
422
  @index += match_len
423
423
  else
424
- terminal_parse_failure('\\')
424
+ terminal_parse_failure('\'\\\\\'')
425
425
  r16 = nil
426
426
  end
427
427
  s15 << r16
@@ -463,7 +463,7 @@ module Fig
463
463
  r18 = true
464
464
  @index += match_len
465
465
  else
466
- terminal_parse_failure("'")
466
+ terminal_parse_failure('"\'"')
467
467
  r18 = nil
468
468
  end
469
469
  s10 << r18
@@ -516,11 +516,13 @@ module Fig
516
516
  r0
517
517
  end
518
518
 
519
- end
520
519
 
521
- class V2Parser < Treetop::Runtime::CompiledParser
522
- include V2
520
+ class Parser < Treetop::Runtime::CompiledParser
521
+ include V2
522
+ end
523
523
  end
524
524
 
525
+ V2Parser = V2::Parser
526
+
525
527
  end
526
528
  end
@@ -54,7 +54,7 @@ module Fig
54
54
  r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
55
55
  @index += match_len
56
56
  else
57
- terminal_parse_failure('grammar')
57
+ terminal_parse_failure('\'grammar\'')
58
58
  r1 = nil
59
59
  end
60
60
  s0 << r1
@@ -80,7 +80,7 @@ module Fig
80
80
  r4 = true
81
81
  @index += match_len
82
82
  else
83
- terminal_parse_failure('v')
83
+ terminal_parse_failure('\'v\'')
84
84
  r4 = nil
85
85
  end
86
86
  s0 << r4
@@ -137,11 +137,13 @@ module Fig
137
137
  r0
138
138
  end
139
139
 
140
- end
141
140
 
142
- class VersionParser < Treetop::Runtime::CompiledParser
143
- include Version
141
+ class Parser < Treetop::Runtime::CompiledParser
142
+ include Version
143
+ end
144
144
  end
145
145
 
146
+ VersionParser = Version::Parser
147
+
146
148
  end
147
149
  end
@@ -105,11 +105,13 @@ module Fig
105
105
  r0
106
106
  end
107
107
 
108
- end
109
108
 
110
- class VersionIdentificationParser < Treetop::Runtime::CompiledParser
111
- include VersionIdentification
109
+ class Parser < Treetop::Runtime::CompiledParser
110
+ include VersionIdentification
111
+ end
112
112
  end
113
113
 
114
+ VersionIdentificationParser = VersionIdentification::Parser
115
+
114
116
  end
115
117
  end
@@ -4,8 +4,11 @@ require 'cgi'
4
4
  require 'fileutils'
5
5
  # Must specify absolute path of ::Archive when using
6
6
  # this module to avoid conflicts with Fig::Statement::Archive
7
- require 'libarchive_ruby'
7
+ require 'ffi-libarchive-binary'
8
8
  require 'rbconfig'
9
+ require 'set'
10
+ require 'zlib'
11
+ require 'rubygems/package'
9
12
 
10
13
  require 'fig/at_exit'
11
14
  require 'fig/environment_variables/case_insensitive'
@@ -29,36 +32,50 @@ class Fig::OperatingSystem
29
32
  WINDOWS_FILE_NAME_ILLEGAL_CHARACTERS = %w[ \\ / : * ? " < > | ]
30
33
  UNIX_FILE_NAME_ILLEGAL_CHARACTERS = %w[ / ]
31
34
 
32
- def self.windows?
33
- return !! (RbConfig::CONFIG['host_os'] =~ /mswin|mingw/)
34
- end
35
+ class << self
36
+ def windows?
37
+ return @is_windows if not @is_windows.nil?
35
38
 
36
- def self.unix?
37
- ! Fig::OperatingSystem.windows?
38
- end
39
+ @is_windows = !! (RbConfig::CONFIG['host_os'] =~ /mswin|mingw/)
39
40
 
40
- def self.file_name_illegal_characters()
41
- if Fig::OperatingSystem.windows?
42
- return WINDOWS_FILE_NAME_ILLEGAL_CHARACTERS
41
+ return @is_windows
43
42
  end
44
43
 
45
- return UNIX_FILE_NAME_ILLEGAL_CHARACTERS
46
- end
44
+ def macos?
45
+ return @is_macos if not @is_macos.nil?
47
46
 
48
- def self.wrap_variable_name_with_shell_expansion(variable_name)
49
- if Fig::OperatingSystem.windows?
50
- return "%#{variable_name}%"
51
- else
52
- return "$#{variable_name}"
47
+ @is_macos = !! (RbConfig::CONFIG['host_os'] =~ /^darwin/)
48
+
49
+ return @is_macos
53
50
  end
54
- end
55
51
 
56
- def self.get_environment_variables(initial_values = nil)
57
- if Fig::OperatingSystem.windows?
58
- return Fig::EnvironmentVariables::CaseInsensitive.new(initial_values)
52
+ def unix?
53
+ ! Fig::OperatingSystem.windows?
59
54
  end
60
55
 
61
- return Fig::EnvironmentVariables::CaseSensitive.new(initial_values)
56
+ def file_name_illegal_characters()
57
+ if windows?
58
+ return WINDOWS_FILE_NAME_ILLEGAL_CHARACTERS
59
+ end
60
+
61
+ return UNIX_FILE_NAME_ILLEGAL_CHARACTERS
62
+ end
63
+
64
+ def wrap_variable_name_with_shell_expansion(variable_name)
65
+ if Fig::OperatingSystem.windows?
66
+ return "%#{variable_name}%"
67
+ else
68
+ return "$#{variable_name}"
69
+ end
70
+ end
71
+
72
+ def get_environment_variables(initial_values = nil)
73
+ if windows?
74
+ return Fig::EnvironmentVariables::CaseInsensitive.new(initial_values)
75
+ end
76
+
77
+ return Fig::EnvironmentVariables::CaseSensitive.new(initial_values)
78
+ end
62
79
  end
63
80
 
64
81
  def initialize(login)
@@ -186,12 +203,14 @@ class Fig::OperatingSystem
186
203
 
187
204
  # Expects paths_to_archive as an Array of paths.
188
205
  def create_archive(archive_name, paths_to_archive)
206
+ existing_files = Set.new
207
+
189
208
  # TODO: Need to verify files_to_archive exists.
190
- ::Archive.write_open_filename(
191
- archive_name, ::Archive::COMPRESSION_GZIP, ::Archive::FORMAT_TAR
192
- ) do |writer|
193
- paths_to_archive.each do |path|
194
- add_path_to_archive(path, writer)
209
+ Zlib::GzipWriter.open(archive_name) do |gz|
210
+ Gem::Package::TarWriter.new(gz) do |writer|
211
+ paths_to_archive.each do |path|
212
+ add_path_to_archive(path, existing_files, writer)
213
+ end
195
214
  end
196
215
  end
197
216
  end
@@ -204,7 +223,7 @@ class Fig::OperatingSystem
204
223
  def unpack_archive(directory, archive_path)
205
224
  FileUtils.mkdir_p directory
206
225
  Dir.chdir(directory) do
207
- if ! File.exists? archive_path
226
+ if ! File.exist? archive_path
208
227
  raise Fig::RepositoryError.new "#{archive_path} does not exist."
209
228
  end
210
229
 
@@ -276,27 +295,35 @@ class Fig::OperatingSystem
276
295
  return protocol, uri
277
296
  end
278
297
 
279
- def add_path_to_archive(path, archive_writer)
298
+ def add_path_to_archive(path, existing_files, archive_writer)
299
+ # #chomp() required on Windows for #copy_lstat(), but also useful for
300
+ # de-duping directories specified both with and without trailing slash.
301
+ cleaned_path = path.chomp '/'
302
+
303
+ return if existing_files.include? cleaned_path
304
+
280
305
  children = []
281
- archive_writer.new_entry do |entry|
282
- entry.copy_lstat(path.chomp '/') # chomp required on Windows
283
- entry.pathname = path
284
- if entry.symbolic_link?
285
- linked = File.readlink(path)
286
- entry.symlink = linked
287
- end
288
- archive_writer.write_header(entry)
289
306
 
290
- if entry.regular?
291
- archive_writer.write_data(open(path) {|f| f.binmode; f.read })
292
- elsif entry.directory?
293
- children = Dir.entries(path) - ['.', '..']
307
+ stat = File.lstat(path)
308
+ if stat.symlink?
309
+ archive_writer.add_symlink(path, File.readlink(path), stat.mode)
310
+ elsif stat.file?
311
+ archive_writer.add_file_simple(path, stat.mode, stat.size) do |dst_io|
312
+ File.open path, "rb" do |src_io|
313
+ IO.copy_stream(src_io, dst_io)
314
+ end
294
315
  end
316
+ elsif stat.directory?
317
+ children = Dir.entries(path) - ['.', '..']
295
318
  end
296
319
 
320
+ existing_files << cleaned_path
321
+
297
322
  children.each do
298
323
  |child|
299
- add_path_to_archive(File.join(path, child), archive_writer)
324
+ add_path_to_archive(
325
+ File.join(path, child), existing_files, archive_writer,
326
+ )
300
327
  end
301
328
 
302
329
  return
data/lib/fig/package.rb CHANGED
@@ -102,8 +102,19 @@ class Fig::Package
102
102
 
103
103
  def <=>(other)
104
104
  return if not other
105
-
106
- compared = compare_components(name, other.name)
105
+ return if synthetic?
106
+ return if other.synthetic?
107
+
108
+ if (
109
+ not name \
110
+ and not other.name \
111
+ and not description \
112
+ and not other.description
113
+ )
114
+ compared = compare_components(file_path, other.file_path)
115
+ else
116
+ compared = compare_components(name, other.name)
117
+ end
107
118
  return compared if compared != 0
108
119
 
109
120
  return compare_components(version, other.version)
@@ -158,7 +169,7 @@ class Fig::Package
158
169
  full_path = statement.full_path_relative_to self
159
170
 
160
171
  descriptors << Fig::PackageDescriptor.new(
161
- nil, nil, nil, :file_path => full_path
172
+ nil, nil, statement.config_name, :file_path => full_path
162
173
  )
163
174
  elsif statement.is_a?(Fig::Statement::Override)
164
175
  backtrace.add_override(statement)
@@ -185,7 +196,7 @@ class Fig::Package
185
196
  return "[#{@file_path}]"
186
197
  end
187
198
 
188
- return @description
199
+ return "<#{@description}>"
189
200
  end
190
201
 
191
202
  def to_s
@@ -204,7 +215,7 @@ class Fig::Package
204
215
  # Useful for debugging; should not be used for regular output.
205
216
  def to_descriptive_string_with_config(config_name)
206
217
  return Fig::PackageDescriptor.format(
207
- name, version, config_name, :use_default_config, description
218
+ name_or_file_or_description, version, config_name, :use_default_config, description
208
219
  )
209
220
  end
210
221
 
@@ -101,7 +101,9 @@ class Fig::PackageDescriptor
101
101
  end
102
102
 
103
103
  def <=>(other)
104
- return to_string() <=> other.to_string()
104
+ self_string = to_string(:use_default_config, :use_file_or_description)
105
+ other_string = other.to_string(:use_default_config, :use_file_or_description)
106
+ return self_string <=> other_string
105
107
  end
106
108
 
107
109
 
data/lib/fig/parser.rb CHANGED
@@ -42,9 +42,6 @@ class Fig::Parser
42
42
  2 => Fig::Grammar::V2Parser,
43
43
  }
44
44
 
45
- # TODO: Remove this once stablized.
46
- @@seen_v2 = false
47
-
48
45
  def get_grammar_version(unparsed_package)
49
46
  version_parser = Fig::Grammar::VersionIdentificationParser.new()
50
47
 
@@ -72,12 +69,6 @@ class Fig::Parser
72
69
  %Q<Don't know how to parse grammar version #{version}#{statement.position_string()}.>
73
70
  )
74
71
  end
75
- if version == 2 && ! @@seen_v2
76
- @@seen_v2 = true
77
- Fig::Logging.info(
78
- 'Encountered v2 grammar. This is experimental and subject to change without notice.'
79
- )
80
- end
81
72
 
82
73
  return version
83
74
  end