rtext 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +102 -98
- data/Rakefile +46 -46
- data/lib/rtext/default_completer.rb +212 -208
- data/lib/rtext/service.rb +264 -260
- data/test/completer_test.rb +606 -607
- data/test/context_builder_test.rb +948 -949
- data/test/frontend/context_test.rb +301 -302
- data/test/instantiator_test.rb +1732 -1733
- data/test/integration/frontend.log +401 -40039
- data/test/integration/test.rb +967 -968
- data/test/link_detector_test.rb +287 -288
- data/test/message_helper_test.rb +116 -117
- data/test/serializer_test.rb +1023 -1024
- data/test/tokenizer_test.rb +173 -174
- metadata +15 -17
- data/test/integration/backend.out +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 51b8fbadb70e46e456b58b2910f56862f5021d5fc1e0d22671aafb31236bfb85
|
4
|
+
data.tar.gz: f6df8e5a17c1dbc839f0ca751b4ae99671e4f9b21242389ba7c3e8190ae391ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93e358c961fedc1b3497229699f14cb5ecca26c9b4f6eb4c73609321dc2383fc6089b2b4db1f4781889a3be6701d439e9a37ca0f4d887ff75eb9eb37cd4ccd31
|
7
|
+
data.tar.gz: 36e6b72e7d2b7d78051a872cfcd173180b2831e570b3f7dc42a25b4966589edbf859f00809b9470518d5f3d85fadb0c48af5193238dbcba57f8b999afd370922
|
data/CHANGELOG
CHANGED
@@ -1,98 +1,102 @@
|
|
1
|
-
=0.2.0
|
2
|
-
|
3
|
-
* First public release
|
4
|
-
|
5
|
-
=0.3.0
|
6
|
-
|
7
|
-
* Added context sensitive commands
|
8
|
-
* Show child role lables in auto completer
|
9
|
-
* Show unlabled arguments in auto completer
|
10
|
-
* Show only arguments in auto completer which don't have a value yet
|
11
|
-
* Fixed auto completion within array values
|
12
|
-
* Fixed generation of child role labels in serializer
|
13
|
-
* Added :after_load hook to DefaultLoader
|
14
|
-
* Added result limit option to DefaultServiceProvider
|
15
|
-
* Removed short_class_names option from Language
|
16
|
-
|
17
|
-
=0.4.0
|
18
|
-
|
19
|
-
* Made instantiator a lot more robust against parse errors
|
20
|
-
* Added DefaultLoader option to not reload fragments with errors
|
21
|
-
* Added service load progress indication and custom problem severity
|
22
|
-
* Fixed serialization of enum literals starting with a digit
|
23
|
-
* Fixed used port detection in service
|
24
|
-
* Fixed completion option order to match order defined in lanugage
|
25
|
-
|
26
|
-
=0.5.0
|
27
|
-
|
28
|
-
* Added annotations
|
29
|
-
* Added generic value support
|
30
|
-
* Added RText frontend support (for Ruby based RText plugins and testing)
|
31
|
-
* Changed frontend/backend protocol to JSON over TCP
|
32
|
-
* Generally improved completer and context builder, fixed bugs, added tests
|
33
|
-
* Added automated frontend/backend tests
|
34
|
-
* Added example language (ECore editor)
|
35
|
-
* Added configurable backward reference attribute
|
36
|
-
* Fixed backward reference resolution in case line ends with name attribute
|
37
|
-
* Added more information to unlabled value completion options
|
38
|
-
* Added backend service support for lanugage exchange at runtime
|
39
|
-
* Extended support for relative reference calculation and resolution
|
40
|
-
* Added on_progress hook to default_loader
|
41
|
-
* Added explicit handling of encoding
|
42
|
-
* Improved backend service progress reporting
|
43
|
-
* Fixed backward reference list to not include opposites of forward references
|
44
|
-
* Fixed problem with backend service socket connection on some machines
|
45
|
-
|
46
|
-
=0.5.1
|
47
|
-
|
48
|
-
* Fixed service connection problem when ports are in use by other processes
|
49
|
-
|
50
|
-
=0.5.2
|
51
|
-
|
52
|
-
* Fixed exception in default service provider when trying to follow a reference on an attribute value
|
53
|
-
* Ignore BOM in instantiator
|
54
|
-
|
55
|
-
=0.5.3
|
56
|
-
|
57
|
-
* Fixed completion of enum values which need to be quoted
|
58
|
-
* Added support for BigDecimal
|
59
|
-
|
60
|
-
=0.6.0
|
61
|
-
|
62
|
-
* Changed service provider interface to allow for more customization
|
63
|
-
* Changed Completer into DefaultCompleter to allow for customization
|
64
|
-
* Added labeled_containments language parameter
|
65
|
-
* Made DefaultLoader robust against missing files
|
66
|
-
|
67
|
-
=0.7.0
|
68
|
-
|
69
|
-
* Added DefaultResolver and support for custom resolvers for DefaultLoader and DefaultServiceProvider
|
70
|
-
* Changed instantiator on_progress proc to take a second argument with the number of progress steps
|
71
|
-
* Changed tokenizer to start new tokens immediately after error tokens
|
72
|
-
* Fixed line number in instantiator problem report for multiple childs in one-role
|
73
|
-
* Fixed unit tests for Ruby 2.0
|
74
|
-
* Fixed context builder prefixes for strings
|
75
|
-
* Fixed DefaultLoader to let fragments calculate their elements list by themselves
|
76
|
-
* Minor performance improvements, mainly for instantiator and when passing large RText messages
|
77
|
-
* Improved performance of frontend connector especially for large amounts of data
|
78
|
-
|
79
|
-
=0.8.0
|
80
|
-
|
81
|
-
* Added line breaks support
|
82
|
-
* Fixed problem when there is no whitespace before a curly bracket
|
83
|
-
* Fixed problem when loading frontend context extractor in vim
|
84
|
-
|
85
|
-
=0.8.1
|
86
|
-
|
87
|
-
* Fixed frontend content extraction to support line breaks with backslash
|
88
|
-
* Fixed frontend content extraction, joining of broken lines
|
89
|
-
|
90
|
-
=0.8.2
|
91
|
-
|
92
|
-
* Fixed serializer negative decimal quotation
|
93
|
-
* Added Object attribute test case
|
94
|
-
|
95
|
-
=0.9.0
|
96
|
-
|
97
|
-
* Added protocol versioning support
|
98
|
-
* Added completion options for square brackets and curly braces
|
1
|
+
=0.2.0
|
2
|
+
|
3
|
+
* First public release
|
4
|
+
|
5
|
+
=0.3.0
|
6
|
+
|
7
|
+
* Added context sensitive commands
|
8
|
+
* Show child role lables in auto completer
|
9
|
+
* Show unlabled arguments in auto completer
|
10
|
+
* Show only arguments in auto completer which don't have a value yet
|
11
|
+
* Fixed auto completion within array values
|
12
|
+
* Fixed generation of child role labels in serializer
|
13
|
+
* Added :after_load hook to DefaultLoader
|
14
|
+
* Added result limit option to DefaultServiceProvider
|
15
|
+
* Removed short_class_names option from Language
|
16
|
+
|
17
|
+
=0.4.0
|
18
|
+
|
19
|
+
* Made instantiator a lot more robust against parse errors
|
20
|
+
* Added DefaultLoader option to not reload fragments with errors
|
21
|
+
* Added service load progress indication and custom problem severity
|
22
|
+
* Fixed serialization of enum literals starting with a digit
|
23
|
+
* Fixed used port detection in service
|
24
|
+
* Fixed completion option order to match order defined in lanugage
|
25
|
+
|
26
|
+
=0.5.0
|
27
|
+
|
28
|
+
* Added annotations
|
29
|
+
* Added generic value support
|
30
|
+
* Added RText frontend support (for Ruby based RText plugins and testing)
|
31
|
+
* Changed frontend/backend protocol to JSON over TCP
|
32
|
+
* Generally improved completer and context builder, fixed bugs, added tests
|
33
|
+
* Added automated frontend/backend tests
|
34
|
+
* Added example language (ECore editor)
|
35
|
+
* Added configurable backward reference attribute
|
36
|
+
* Fixed backward reference resolution in case line ends with name attribute
|
37
|
+
* Added more information to unlabled value completion options
|
38
|
+
* Added backend service support for lanugage exchange at runtime
|
39
|
+
* Extended support for relative reference calculation and resolution
|
40
|
+
* Added on_progress hook to default_loader
|
41
|
+
* Added explicit handling of encoding
|
42
|
+
* Improved backend service progress reporting
|
43
|
+
* Fixed backward reference list to not include opposites of forward references
|
44
|
+
* Fixed problem with backend service socket connection on some machines
|
45
|
+
|
46
|
+
=0.5.1
|
47
|
+
|
48
|
+
* Fixed service connection problem when ports are in use by other processes
|
49
|
+
|
50
|
+
=0.5.2
|
51
|
+
|
52
|
+
* Fixed exception in default service provider when trying to follow a reference on an attribute value
|
53
|
+
* Ignore BOM in instantiator
|
54
|
+
|
55
|
+
=0.5.3
|
56
|
+
|
57
|
+
* Fixed completion of enum values which need to be quoted
|
58
|
+
* Added support for BigDecimal
|
59
|
+
|
60
|
+
=0.6.0
|
61
|
+
|
62
|
+
* Changed service provider interface to allow for more customization
|
63
|
+
* Changed Completer into DefaultCompleter to allow for customization
|
64
|
+
* Added labeled_containments language parameter
|
65
|
+
* Made DefaultLoader robust against missing files
|
66
|
+
|
67
|
+
=0.7.0
|
68
|
+
|
69
|
+
* Added DefaultResolver and support for custom resolvers for DefaultLoader and DefaultServiceProvider
|
70
|
+
* Changed instantiator on_progress proc to take a second argument with the number of progress steps
|
71
|
+
* Changed tokenizer to start new tokens immediately after error tokens
|
72
|
+
* Fixed line number in instantiator problem report for multiple childs in one-role
|
73
|
+
* Fixed unit tests for Ruby 2.0
|
74
|
+
* Fixed context builder prefixes for strings
|
75
|
+
* Fixed DefaultLoader to let fragments calculate their elements list by themselves
|
76
|
+
* Minor performance improvements, mainly for instantiator and when passing large RText messages
|
77
|
+
* Improved performance of frontend connector especially for large amounts of data
|
78
|
+
|
79
|
+
=0.8.0
|
80
|
+
|
81
|
+
* Added line breaks support
|
82
|
+
* Fixed problem when there is no whitespace before a curly bracket
|
83
|
+
* Fixed problem when loading frontend context extractor in vim
|
84
|
+
|
85
|
+
=0.8.1
|
86
|
+
|
87
|
+
* Fixed frontend content extraction to support line breaks with backslash
|
88
|
+
* Fixed frontend content extraction, joining of broken lines
|
89
|
+
|
90
|
+
=0.8.2
|
91
|
+
|
92
|
+
* Fixed serializer negative decimal quotation
|
93
|
+
* Added Object attribute test case
|
94
|
+
|
95
|
+
=0.9.0
|
96
|
+
|
97
|
+
* Added protocol versioning support
|
98
|
+
* Added completion options for square brackets and curly braces
|
99
|
+
|
100
|
+
=0.9.1
|
101
|
+
|
102
|
+
* Fixed backward compatibility issues
|
data/Rakefile
CHANGED
@@ -1,46 +1,46 @@
|
|
1
|
-
require 'rubygems/package_task'
|
2
|
-
require 'rdoc/task'
|
3
|
-
|
4
|
-
DocFiles = [
|
5
|
-
"README.rdoc", "CHANGELOG", "MIT-LICENSE",
|
6
|
-
"RText_Users_Guide",
|
7
|
-
"RText_Protocol"]
|
8
|
-
|
9
|
-
RTextGemSpec = Gem::Specification.new do |s|
|
10
|
-
s.name = %q{rtext}
|
11
|
-
s.version = "0.9.
|
12
|
-
s.date = Time.now.strftime("%Y-%m-%d")
|
13
|
-
s.summary = %q{Ruby Textual Modelling}
|
14
|
-
s.email = %q{martin dot thiede at gmx de}
|
15
|
-
s.homepage = %q{http://ruby-gen.org}
|
16
|
-
s.description = %q{RText can be used to derive textual languages from an RGen metamodel with very little effort.}
|
17
|
-
s.authors = ["Martin Thiede"]
|
18
|
-
s.add_dependency('rgen', '>= 0.8.2')
|
19
|
-
gemfiles = Rake::FileList.new
|
20
|
-
gemfiles.include("{lib,test}/**/*")
|
21
|
-
gemfiles.include(DocFiles)
|
22
|
-
gemfiles.include("Rakefile")
|
23
|
-
gemfiles.exclude(/\b\.bak\b/)
|
24
|
-
s.files = gemfiles
|
25
|
-
s.rdoc_options = ["--main", "README.rdoc", "-x", "test"]
|
26
|
-
s.extra_rdoc_files = DocFiles
|
27
|
-
end
|
28
|
-
|
29
|
-
RDoc::Task.new do |rd|
|
30
|
-
rd.main = "README.rdoc"
|
31
|
-
rd.rdoc_files.include(DocFiles)
|
32
|
-
rd.rdoc_files.include("lib/**/*.rb")
|
33
|
-
rd.rdoc_dir = "doc"
|
34
|
-
end
|
35
|
-
|
36
|
-
RTextPackageTask = Gem::PackageTask.new(RTextGemSpec) do |p|
|
37
|
-
p.need_zip = false
|
38
|
-
end
|
39
|
-
|
40
|
-
task :prepare_package_rdoc => :rdoc do
|
41
|
-
RTextPackageTask.package_files.include("doc/**/*")
|
42
|
-
end
|
43
|
-
|
44
|
-
task :release => [:prepare_package_rdoc, :package]
|
45
|
-
|
46
|
-
task :clobber => [:clobber_rdoc, :clobber_package]
|
1
|
+
require 'rubygems/package_task'
|
2
|
+
require 'rdoc/task'
|
3
|
+
|
4
|
+
DocFiles = [
|
5
|
+
"README.rdoc", "CHANGELOG", "MIT-LICENSE",
|
6
|
+
"RText_Users_Guide",
|
7
|
+
"RText_Protocol"]
|
8
|
+
|
9
|
+
RTextGemSpec = Gem::Specification.new do |s|
|
10
|
+
s.name = %q{rtext}
|
11
|
+
s.version = "0.9.1"
|
12
|
+
s.date = Time.now.strftime("%Y-%m-%d")
|
13
|
+
s.summary = %q{Ruby Textual Modelling}
|
14
|
+
s.email = %q{martin dot thiede at gmx de}
|
15
|
+
s.homepage = %q{http://ruby-gen.org}
|
16
|
+
s.description = %q{RText can be used to derive textual languages from an RGen metamodel with very little effort.}
|
17
|
+
s.authors = ["Martin Thiede"]
|
18
|
+
s.add_dependency('rgen', '>= 0.8.2')
|
19
|
+
gemfiles = Rake::FileList.new
|
20
|
+
gemfiles.include("{lib,test}/**/*")
|
21
|
+
gemfiles.include(DocFiles)
|
22
|
+
gemfiles.include("Rakefile")
|
23
|
+
gemfiles.exclude(/\b\.bak\b/)
|
24
|
+
s.files = gemfiles
|
25
|
+
s.rdoc_options = ["--main", "README.rdoc", "-x", "test"]
|
26
|
+
s.extra_rdoc_files = DocFiles
|
27
|
+
end
|
28
|
+
|
29
|
+
RDoc::Task.new do |rd|
|
30
|
+
rd.main = "README.rdoc"
|
31
|
+
rd.rdoc_files.include(DocFiles)
|
32
|
+
rd.rdoc_files.include("lib/**/*.rb")
|
33
|
+
rd.rdoc_dir = "doc"
|
34
|
+
end
|
35
|
+
|
36
|
+
RTextPackageTask = Gem::PackageTask.new(RTextGemSpec) do |p|
|
37
|
+
p.need_zip = false
|
38
|
+
end
|
39
|
+
|
40
|
+
task :prepare_package_rdoc => :rdoc do
|
41
|
+
RTextPackageTask.package_files.include("doc/**/*")
|
42
|
+
end
|
43
|
+
|
44
|
+
task :release => [:prepare_package_rdoc, :package]
|
45
|
+
|
46
|
+
task :clobber => [:clobber_rdoc, :clobber_package]
|