rtext 0.9.0 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +108 -98
- data/RText_Protocol +1 -1
- data/Rakefile +39 -46
- data/lib/rtext/default_completer.rb +212 -208
- data/lib/rtext/frontend/connector.rb +120 -53
- data/lib/rtext/instantiator.rb +11 -3
- data/lib/rtext/service.rb +264 -260
- data/test/completer_test.rb +606 -607
- data/test/context_builder_test.rb +952 -949
- data/test/frontend/context_test.rb +301 -302
- data/test/instantiator_test.rb +1773 -1733
- data/test/integration/test.rb +974 -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 +17 -19
- data/test/integration/backend.out +0 -16
- data/test/integration/frontend.log +0 -40058
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 747355cc5b17bf91ec5a902b0be20b9b13639baf
|
4
|
+
data.tar.gz: 808497bcef84bfcb8e5a5f5d50b4b6cda109337a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 987cf234234bb2284fe9d7c030be5c7837667cf051701985c2634f0cbee14d77c0abe4cad9eb962dd66312c9d35b1020f0578931cccc8c9f0de4a2fa3ea08295
|
7
|
+
data.tar.gz: 5425d8b7189dd74db31d97df3123cee9d27fb59716d73913b2f3d993f79f354f561d26d1f1a6a175f8ab7cc4a813977428a602898ba5748a71d71d58700da630
|
data/CHANGELOG
CHANGED
@@ -1,98 +1,108 @@
|
|
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
|
103
|
+
|
104
|
+
=0.9.2
|
105
|
+
|
106
|
+
* Fixed frontend connector
|
107
|
+
* Fixed frontend tests
|
108
|
+
* Automatic conversion of integer and float values to string
|
data/RText_Protocol
CHANGED
@@ -501,7 +501,7 @@ the parent commands wrapped around it. Any sibling commands can be omitted as we
|
|
501
501
|
any lines containing closing braces and brackets. The order of lines is the same as in the
|
502
502
|
RText file.
|
503
503
|
|
504
|
-
Here is an example. Consider the following RText file with the cursor in the line of "
|
504
|
+
Here is an example. Consider the following RText file with the cursor in the line of "Command5"
|
505
505
|
at the time when the auto completion command is issued.
|
506
506
|
|
507
507
|
Command1 {
|
data/Rakefile
CHANGED
@@ -1,46 +1,39 @@
|
|
1
|
-
require 'rubygems/package_task'
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
+
|
3
|
+
require 'rake'
|
4
|
+
require 'rdoc/task'
|
5
|
+
|
6
|
+
RTextGemSpec = eval(File.read('rtext.gemspec'))
|
7
|
+
|
8
|
+
gemfiles = Rake::FileList.new
|
9
|
+
gemfiles.include('{lib,test}/**/*')
|
10
|
+
gemfiles.include(DocFiles)
|
11
|
+
gemfiles.include('Rakefile')
|
12
|
+
gemfiles.exclude(/\b\.bak\b/)
|
13
|
+
RTextGemSpec.files = gemfiles
|
14
|
+
|
15
|
+
RDoc::Task.new do |rd|
|
16
|
+
rd.main = 'README.rdoc'
|
17
|
+
rd.rdoc_files.include(RTextGemSpec.extra_rdoc_files)
|
18
|
+
rd.rdoc_files.include('lib/**/*.rb')
|
19
|
+
rd.rdoc_dir = 'doc'
|
20
|
+
end
|
21
|
+
|
22
|
+
RTextPackageTask = Gem::PackageTask.new(RTextGemSpec) do |p|
|
23
|
+
p.need_zip = false
|
24
|
+
end
|
25
|
+
|
26
|
+
task :prepare_package_rdoc => :rdoc do
|
27
|
+
RTextPackageTask.package_files.include('doc/**/*')
|
28
|
+
end
|
29
|
+
|
30
|
+
task :release => [:prepare_package_rdoc, :package]
|
31
|
+
|
32
|
+
task :clobber => [:clobber_rdoc, :clobber_package]
|
33
|
+
|
34
|
+
require 'rake/testtask'
|
35
|
+
|
36
|
+
::Rake::TestTask.new(:test) do |t|
|
37
|
+
t.test_files = ['test/rtext_test.rb']
|
38
|
+
t.warning = false
|
39
|
+
end
|