language-ruby 0.8.4 → 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/.github/workflows/ci.yml +0 -1
- data/.gitignore +29 -0
- data/.node-version +1 -0
- data/.ruby-version +1 -1
- data/.tool-versions +3 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +34 -30
- data/LICENSE +19 -0
- data/language-ruby.gemspec +2 -5
- data/lib/language/atom/repeat.rb +1 -1
- data/lib/language/version.rb +1 -1
- data/package.json +7 -2
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba4f94a14ea8f040370edbe17890444cb1157112c185bb3162fa5a0e4b6ad496
|
4
|
+
data.tar.gz: e9640b1cd51c4ec1eab8451795dd6e57f75e4b93e39382fcd9957bcbe15dcf38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '096ac8f569124f89a5cf6f7270d066415fc8f60906e808751fb08f29afa21c3a47812f97f7634eeaa1055915a336838665e64970c0ab3fa087446964b571a22f'
|
7
|
+
data.tar.gz: 3e50b29f2e344205aa0a9e2f53fe9899348260f420c25a20ca9a678247cd36f1d86f107894af8ab17025e948d2c000aabe963e2f87c76d15ec7ba84666bfc29b
|
data/.github/workflows/ci.yml
CHANGED
data/.gitignore
CHANGED
@@ -1 +1,30 @@
|
|
1
|
+
.DS_Store
|
1
2
|
*.gem
|
3
|
+
/.bundle
|
4
|
+
/.env
|
5
|
+
/.env.*.local
|
6
|
+
/.env.prod
|
7
|
+
/.env.staging
|
8
|
+
/.expo
|
9
|
+
/app/assets/builds
|
10
|
+
/config/*.key
|
11
|
+
/config/credentials/*.key
|
12
|
+
/log
|
13
|
+
/node_modules
|
14
|
+
/public/assets
|
15
|
+
/spec/examples.txt
|
16
|
+
/storage
|
17
|
+
/tmp
|
18
|
+
/tmp/pids
|
19
|
+
/tmp/storage
|
20
|
+
/vendor/bundle
|
21
|
+
!/.env*.erb
|
22
|
+
!/app/assets/builds/.keep
|
23
|
+
!/db/.keep
|
24
|
+
!/log/.keep
|
25
|
+
!/storage/.keep
|
26
|
+
!/tmp/.keep
|
27
|
+
!/tmp/pids/
|
28
|
+
!/tmp/pids/.keep
|
29
|
+
!/tmp/storage/
|
30
|
+
!/tmp/storage/.keep
|
data/.node-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
22.5.1
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.4
|
data/.tool-versions
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,77 +1,79 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
language-ruby (0.
|
5
|
-
zeitwerk
|
4
|
+
language-ruby (0.9.2)
|
5
|
+
zeitwerk
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (7.
|
10
|
+
activesupport (7.2.0)
|
11
11
|
base64
|
12
12
|
bigdecimal
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
14
14
|
connection_pool (>= 2.2.5)
|
15
15
|
drb
|
16
16
|
i18n (>= 1.6, < 2)
|
17
|
+
logger (>= 1.4.2)
|
17
18
|
minitest (>= 5.1)
|
18
|
-
|
19
|
-
tzinfo (~> 2.0)
|
19
|
+
securerandom (>= 0.3)
|
20
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
20
21
|
ast (2.4.2)
|
21
22
|
base64 (0.2.0)
|
22
|
-
bigdecimal (3.1.
|
23
|
-
concurrent-ruby (1.
|
23
|
+
bigdecimal (3.1.8)
|
24
|
+
concurrent-ruby (1.3.4)
|
24
25
|
connection_pool (2.4.1)
|
25
26
|
diff-lcs (1.5.1)
|
26
27
|
drb (2.2.1)
|
27
|
-
i18n (1.14.
|
28
|
+
i18n (1.14.5)
|
28
29
|
concurrent-ruby (~> 1.0)
|
29
|
-
json (2.7.
|
30
|
+
json (2.7.2)
|
30
31
|
language_server-protocol (3.17.0.3)
|
31
|
-
|
32
|
-
|
33
|
-
parallel (1.
|
34
|
-
parser (3.3.
|
32
|
+
logger (1.6.0)
|
33
|
+
minitest (5.25.1)
|
34
|
+
parallel (1.26.3)
|
35
|
+
parser (3.3.4.2)
|
35
36
|
ast (~> 2.4.1)
|
36
37
|
racc
|
37
|
-
racc (1.
|
38
|
-
rack (3.
|
38
|
+
racc (1.8.1)
|
39
|
+
rack (3.1.7)
|
39
40
|
rainbow (3.1.1)
|
40
|
-
regexp_parser (2.9.
|
41
|
-
rexml (3.
|
41
|
+
regexp_parser (2.9.2)
|
42
|
+
rexml (3.3.5)
|
43
|
+
strscan
|
42
44
|
rspec (3.13.0)
|
43
45
|
rspec-core (~> 3.13.0)
|
44
46
|
rspec-expectations (~> 3.13.0)
|
45
47
|
rspec-mocks (~> 3.13.0)
|
46
48
|
rspec-core (3.13.0)
|
47
49
|
rspec-support (~> 3.13.0)
|
48
|
-
rspec-expectations (3.13.
|
50
|
+
rspec-expectations (3.13.1)
|
49
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
52
|
rspec-support (~> 3.13.0)
|
51
|
-
rspec-mocks (3.13.
|
53
|
+
rspec-mocks (3.13.1)
|
52
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
55
|
rspec-support (~> 3.13.0)
|
54
56
|
rspec-support (3.13.1)
|
55
|
-
rubocop (1.
|
57
|
+
rubocop (1.65.1)
|
56
58
|
json (~> 2.3)
|
57
59
|
language_server-protocol (>= 3.17.0)
|
58
60
|
parallel (~> 1.10)
|
59
61
|
parser (>= 3.3.0.2)
|
60
62
|
rainbow (>= 2.2.2, < 4.0)
|
61
|
-
regexp_parser (>=
|
63
|
+
regexp_parser (>= 2.4, < 3.0)
|
62
64
|
rexml (>= 3.2.5, < 4.0)
|
63
65
|
rubocop-ast (>= 1.31.1, < 2.0)
|
64
66
|
ruby-progressbar (~> 1.7)
|
65
67
|
unicode-display_width (>= 2.4.0, < 3.0)
|
66
|
-
rubocop-ast (1.
|
67
|
-
parser (>= 3.3.0
|
68
|
-
rubocop-minitest (0.35.
|
68
|
+
rubocop-ast (1.32.1)
|
69
|
+
parser (>= 3.3.1.0)
|
70
|
+
rubocop-minitest (0.35.1)
|
69
71
|
rubocop (>= 1.61, < 2.0)
|
70
72
|
rubocop-ast (>= 1.31.1, < 2.0)
|
71
|
-
rubocop-performance (1.21.
|
73
|
+
rubocop-performance (1.21.1)
|
72
74
|
rubocop (>= 1.48.1, < 2.0)
|
73
75
|
rubocop-ast (>= 1.31.1, < 2.0)
|
74
|
-
rubocop-rails (2.
|
76
|
+
rubocop-rails (2.25.1)
|
75
77
|
activesupport (>= 4.2.0)
|
76
78
|
rack (>= 1.1)
|
77
79
|
rubocop (>= 1.33.0, < 2.0)
|
@@ -82,10 +84,12 @@ GEM
|
|
82
84
|
rubocop-performance
|
83
85
|
rubocop-rails
|
84
86
|
ruby-progressbar (1.13.0)
|
87
|
+
securerandom (0.3.1)
|
88
|
+
strscan (3.1.0)
|
85
89
|
tzinfo (2.0.6)
|
86
90
|
concurrent-ruby (~> 1.0)
|
87
91
|
unicode-display_width (2.5.0)
|
88
|
-
zeitwerk (2.6.
|
92
|
+
zeitwerk (2.6.17)
|
89
93
|
|
90
94
|
PLATFORMS
|
91
95
|
arm64-darwin-22
|
@@ -97,7 +101,7 @@ DEPENDENCIES
|
|
97
101
|
rubocop-rails-omakase
|
98
102
|
|
99
103
|
RUBY VERSION
|
100
|
-
ruby 3.3.
|
104
|
+
ruby 3.3.4p94
|
101
105
|
|
102
106
|
BUNDLED WITH
|
103
|
-
2.5.
|
107
|
+
2.5.17
|
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright 2024 Dorian Marié <dorian@dorianmarie.com>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the “Software”), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to
|
8
|
+
do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
16
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/language-ruby.gemspec
CHANGED
@@ -6,7 +6,7 @@ require_relative "lib/language/version"
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "language-ruby"
|
8
8
|
s.version = ::Language::Version
|
9
|
-
s.summary = "
|
9
|
+
s.summary = "parser dsl"
|
10
10
|
s.description = s.summary
|
11
11
|
s.authors = ["Dorian Marié"]
|
12
12
|
s.email = "dorian@dorianmarie.fr"
|
@@ -14,8 +14,5 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.require_paths = ["lib"]
|
15
15
|
s.homepage = "https://github.com/dorianmariecom/language-ruby"
|
16
16
|
s.license = "MIT"
|
17
|
-
|
18
|
-
s.add_dependency "zeitwerk", "~> 2"
|
19
|
-
|
20
|
-
s.required_ruby_version = ">= 3.3.0"
|
17
|
+
s.add_dependency "zeitwerk"
|
21
18
|
end
|
data/lib/language/atom/repeat.rb
CHANGED
@@ -30,7 +30,7 @@ class Language
|
|
30
30
|
minimum = @minimum.zero? ? "" : @minimum.to_s
|
31
31
|
maximum = @maximum.nil? ? "" : ", #{@maximum}"
|
32
32
|
parenthesis =
|
33
|
-
minimum.empty? && maximum.empty? ? "" : "(#{minimum}#{maximum})"
|
33
|
+
(minimum.empty? && maximum.empty?) ? "" : "(#{minimum}#{maximum})"
|
34
34
|
|
35
35
|
@parent ? "(#{@parent}).repeat#{parenthesis}" : "repeat#{parenthesis}"
|
36
36
|
end
|
data/lib/language/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: language-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dorian Marié
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
description:
|
26
|
+
version: '0'
|
27
|
+
description: parser dsl
|
28
28
|
email: dorian@dorianmarie.fr
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
@@ -33,12 +33,14 @@ files:
|
|
33
33
|
- ".github/dependabot.yml"
|
34
34
|
- ".github/workflows/ci.yml"
|
35
35
|
- ".gitignore"
|
36
|
+
- ".node-version"
|
36
37
|
- ".rspec"
|
37
38
|
- ".rubocop.yml"
|
38
39
|
- ".ruby-version"
|
39
40
|
- ".tool-versions"
|
40
41
|
- Gemfile
|
41
42
|
- Gemfile.lock
|
43
|
+
- LICENSE
|
42
44
|
- README.md
|
43
45
|
- bin/rspec
|
44
46
|
- bin/test
|
@@ -82,15 +84,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
84
|
requirements:
|
83
85
|
- - ">="
|
84
86
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
87
|
+
version: '0'
|
86
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
89
|
requirements:
|
88
90
|
- - ">="
|
89
91
|
- !ruby/object:Gem::Version
|
90
92
|
version: '0'
|
91
93
|
requirements: []
|
92
|
-
rubygems_version: 3.5.
|
94
|
+
rubygems_version: 3.5.11
|
93
95
|
signing_key:
|
94
96
|
specification_version: 4
|
95
|
-
summary:
|
97
|
+
summary: parser dsl
|
96
98
|
test_files: []
|