rtext 0.9.4 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0e14d27070197af864d0b24a38f9d41cb4115c3
4
- data.tar.gz: '0984afc951a23e67def08c00be574c3b9b92647d'
3
+ metadata.gz: fb4a1d69fdbd2a206533e794037b5ef402fe0211
4
+ data.tar.gz: 605e53ea50a4af9adc9fa9dfef056d9f33700066
5
5
  SHA512:
6
- metadata.gz: a8ad0fbe93721f12c413f839d4448cc606e50c0ad001272d35f47f67c57fe54b404472a7164f2abee3dec526d9dbd33c60bc16ea80a2b68fc0b7c486ce1ac43f
7
- data.tar.gz: bc569b6b09999d14abf10f05c606b738880ffe6f480c520982b052ef3a39124548932e9dfd7901bc92b6f99e6495d6ddf3f87e88a04a97e4f52ec405caeb5b67
6
+ metadata.gz: 8dcfad15c3d4de23ec459bb2ed7cb78791135a451f3968f43050cc588d23691139f5e5569cd7b9e9ee5eb96f5a676d1ae31143d5d62597fba448441c0e25d4a1
7
+ data.tar.gz: 3ae19eeb2b28ad8bd1e1f1f2399b60b45bf6f6c73305ae0ef426b672d774cf98bcc73417902c6cb3d1dc6d8cfe08c37f4a78acea0356466c4cf0e06f10ef3be2
data/CHANGELOG CHANGED
@@ -114,3 +114,11 @@
114
114
  =0.9.4
115
115
 
116
116
  * Fixed issue with unquoted multiline strings
117
+
118
+ =0.10.0
119
+
120
+ * Switch to Ruby 2.7
121
+
122
+ =0.11.0
123
+
124
+ * Add support for Ruby up to 3.2
data/Project.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: rtext
2
- version: 0.9.4
2
+ version: 0.11.0
3
3
  git: https://github.com/mthiede/rtext.git
4
4
  summary: Ruby Textual Modelling
5
5
  email: martin dot thiede at gmx de
@@ -8,8 +8,8 @@ description: RText can be used to derive textual languages from an RGen metamode
8
8
  authors: [Martin Thiede]
9
9
  dependencies:
10
10
  http://rubygems.org:
11
- - {name: rgen, version: '~> 0.8.0'}
12
- - {name: filelock, version: '~> 1.1.0'}
11
+ - {name: rgen, version: ['>= 0.10.0', '< 0.11']}
12
+ - {name: filelock, version: ['>= 1.1.1', '< 1.2']}
13
13
  rdoc_options: [--main, README.rdoc, -x, test]
14
14
  extra_rdoc_files: [README.rdoc, CHANGELOG, MIT-LICENSE, RText_Users_Guide, RText_Protocol]
15
15
  encrypt_sources: false
@@ -120,7 +120,12 @@ def ensure_process_cleanup(process_id, out_file, timeout)
120
120
  ensure
121
121
  unless process_id.nil?
122
122
  begin
123
- Process.kill('QUIT', process_id)
123
+ begin
124
+ Process.kill('QUIT', process_id)
125
+ rescue ArgumentError
126
+ # SIGQUIT not supported in Ruby 2.7 on Windows
127
+ Process.kill('KILL', process_id)
128
+ end
124
129
  rescue Errno::ESRCH => _
125
130
  end
126
131
  end
@@ -112,18 +112,18 @@ class Instantiator
112
112
  element = clazz.new
113
113
  @env << element if @env
114
114
  @root_elements << element if is_root
115
- unlabled_args = @lang.unlabled_arguments(clazz.ecore).name
115
+ unlabeled_args = @lang.unlabled_arguments(clazz.ecore).name
116
116
  di_index = 0
117
117
  defined_args = {}
118
118
  arg_list.each do |a|
119
119
  if is_labeled(a)
120
120
  set_argument(element, a[0].value, a[1], defined_args, command.line)
121
121
  else
122
- if di_index < unlabled_args.size
123
- set_argument(element, unlabled_args[di_index], a, defined_args, command.line)
122
+ if di_index < unlabeled_args.size
123
+ set_argument(element, unlabeled_args[di_index], a, defined_args, command.line)
124
124
  di_index += 1
125
125
  elsif a != nil
126
- problem("Unexpected unlabled argument, #{unlabled_args.size} unlabled arguments expected", command.line)
126
+ problem("Unexpected unlabeled argument, #{unlabeled_args.size} unlabeled arguments expected", command.line)
127
127
  end
128
128
  end
129
129
  end
@@ -249,9 +249,9 @@ class Instantiator
249
249
  begin
250
250
  v_value = v.value
251
251
  feature_instance_class = feature.eType.instanceClass
252
- if feature_instance_class == String && (v_value.is_a?(Float) || v_value.is_a?(Fixnum))
252
+ if feature_instance_class == String && (v_value.is_a?(Float) || v_value.is_a?(Integer))
253
253
  element.setOrAddGeneric(feature.name, v_value.to_s)
254
- elsif feature_instance_class == Float && v_value.is_a?(Fixnum)
254
+ elsif feature_instance_class == Float && v_value.is_a?(Integer)
255
255
  element.setOrAddGeneric(feature.name, v_value.to_f)
256
256
  else
257
257
  element.setOrAddGeneric(feature.name, v_value)
@@ -49,7 +49,7 @@ module Tokenizer
49
49
  if val.size <= 16
50
50
  val = val.to_f
51
51
  else
52
- val = BigDecimal.new(val)
52
+ val = BigDecimal(val)
53
53
  end
54
54
  result << Token.new(:float, val, idx, col, col+$&.size-1)
55
55
  col += $&.size
metadata CHANGED
@@ -1,43 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Thiede
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-17 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.0
19
+ version: 0.10.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.11'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.10.0
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 0.8.0
32
+ version: '0.11'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: filelock
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - "~>"
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: 1.1.0
39
+ version: 1.1.1
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.2'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - "~>"
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.1.1
50
+ - - "<"
39
51
  - !ruby/object:Gem::Version
40
- version: 1.1.0
52
+ version: '1.2'
41
53
  description: RText can be used to derive textual languages from an RGen metamodel
42
54
  with very little effort.
43
55
  email: