code-ruby 1.6.12 → 1.6.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a80b276ea3ad2c3a639d7adf3148cf4a4b869c6457340a36efa6a9668a492d6
4
- data.tar.gz: 23195c8b97452a3cf65a7596f8ee15375634b8c10ed89cc821df884bb2f8eb4f
3
+ metadata.gz: 2452c9fd1fc30ef29bcb2d227dafd442864ad42022d1eb2b50c71b7fb20360a6
4
+ data.tar.gz: 943582254e1c47851f40cb543ad62cdb923b1621da1ca59e3fc5012672527a1a
5
5
  SHA512:
6
- metadata.gz: ea6b229dad0cdadf095bc8e1bde1f6c8e186e675943a8202aef1f2fc51dc35ee1cbe16a6c08d93f7f21fe98b4d321e4d5d5733821d72727eed446394541ebb37
7
- data.tar.gz: ef8bb15a9ecb542e1300a5db2aef35788ff2e7975700748dede4190713f3851f921bb3844f09edd243b59394d0e705e70a55f43ee6befbc837dac9b358a84693
6
+ metadata.gz: 02eb69304d106eedfd8a53075e2a7bbe618da59aab317b16bf71cc586e1421cfa7341cf22e49f7284f25fc1382fe4341b3df6e3c307b7383b8b1d19163ddb62f
7
+ data.tar.gz: a25443c130ed4c4679ad9e6b8a897e3e80ce41a352484660e8a7d36d52a36b80e4373586ebc0cf7a6aa0b6345184f1294d69d07beffc015c36b9ce2a89ffba07
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- code-ruby (1.6.12)
4
+ code-ruby (1.6.13)
5
5
  activesupport
6
6
  base64
7
7
  bigdecimal
@@ -19,7 +19,7 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- activesupport (8.0.2)
22
+ activesupport (8.0.2.1)
23
23
  base64
24
24
  benchmark (>= 0.3)
25
25
  bigdecimal
@@ -37,13 +37,13 @@ GEM
37
37
  ast (2.4.3)
38
38
  base64 (0.3.0)
39
39
  benchmark (0.4.1)
40
- bigdecimal (3.2.2)
40
+ bigdecimal (3.2.3)
41
41
  bundler-audit (0.9.2)
42
42
  bundler (>= 1.2.0, < 3)
43
43
  thor (~> 1.0)
44
44
  cmdparse (3.0.7)
45
45
  concurrent-ruby (1.3.5)
46
- connection_pool (2.5.3)
46
+ connection_pool (2.5.4)
47
47
  crack (1.0.0)
48
48
  bigdecimal
49
49
  rexml
@@ -52,7 +52,7 @@ GEM
52
52
  did-you-mean (0.1.1)
53
53
  levenshtein (>= 0.2.0)
54
54
  diff-lcs (1.6.2)
55
- dorian (2.6.4)
55
+ dorian (2.6.7)
56
56
  csv
57
57
  dorian-arguments
58
58
  dorian-eval
@@ -79,7 +79,7 @@ GEM
79
79
  dorian-to_struct (2.0.2)
80
80
  drb (2.2.3)
81
81
  geom2d (0.4.1)
82
- git (4.0.4)
82
+ git (4.0.5)
83
83
  activesupport (>= 5.0)
84
84
  addressable (~> 2.8)
85
85
  process_executer (~> 4.0)
@@ -88,15 +88,15 @@ GEM
88
88
  temple (>= 0.8.2)
89
89
  thor
90
90
  tilt
91
- hashdiff (1.2.0)
92
- hexapdf (1.3.0)
91
+ hashdiff (1.2.1)
92
+ hexapdf (1.4.0)
93
93
  cmdparse (~> 3.0, >= 3.0.3)
94
94
  geom2d (~> 0.4, >= 0.4.1)
95
95
  openssl (>= 2.2.1)
96
96
  strscan (>= 3.1.2)
97
97
  i18n (1.14.7)
98
98
  concurrent-ruby (~> 1.0)
99
- json (2.13.0)
99
+ json (2.13.2)
100
100
  language-ruby (1.2.0)
101
101
  dorian-arguments
102
102
  zeitwerk
@@ -115,11 +115,11 @@ GEM
115
115
  mini_racer (0.19.0)
116
116
  libv8-node (~> 24.1.0.0)
117
117
  minitest (5.25.5)
118
- mustermann (3.0.3)
118
+ mustermann (3.0.4)
119
119
  ruby2_keywords (~> 0.0.1)
120
120
  net-http (0.6.0)
121
121
  uri
122
- net-imap (0.5.9)
122
+ net-imap (0.5.10)
123
123
  date
124
124
  net-protocol
125
125
  net-pop (0.1.2)
@@ -128,23 +128,23 @@ GEM
128
128
  timeout
129
129
  net-smtp (0.5.1)
130
130
  net-protocol
131
- nokogiri (1.18.9-arm64-darwin)
131
+ nokogiri (1.18.10-arm64-darwin)
132
132
  racc (~> 1.4)
133
- nokogiri (1.18.9-x86_64-linux-gnu)
133
+ nokogiri (1.18.10-x86_64-linux-gnu)
134
134
  racc (~> 1.4)
135
135
  openssl (3.3.0)
136
136
  ostruct (0.6.3)
137
137
  parallel (1.27.0)
138
- parser (3.3.8.0)
138
+ parser (3.3.9.0)
139
139
  ast (~> 2.4.1)
140
140
  racc
141
141
  prettier_print (1.2.1)
142
- prism (1.4.0)
142
+ prism (1.5.1)
143
143
  process_executer (4.0.0)
144
144
  track_open_instances (~> 0.1)
145
145
  public_suffix (6.0.2)
146
146
  racc (1.8.1)
147
- rack (3.1.16)
147
+ rack (3.2.1)
148
148
  rack-protection (4.1.1)
149
149
  base64 (>= 0.1.0)
150
150
  logger (>= 1.6.0)
@@ -154,9 +154,9 @@ GEM
154
154
  rack (>= 3.0.0)
155
155
  rainbow (3.1.1)
156
156
  rake (13.3.0)
157
- rchardet (1.9.0)
158
- regexp_parser (2.10.0)
159
- rexml (3.4.1)
157
+ rchardet (1.10.0)
158
+ regexp_parser (2.11.3)
159
+ rexml (3.4.4)
160
160
  rspec (3.13.1)
161
161
  rspec-core (~> 3.13.0)
162
162
  rspec-expectations (~> 3.13.0)
@@ -169,8 +169,8 @@ GEM
169
169
  rspec-mocks (3.13.5)
170
170
  diff-lcs (>= 1.2.0, < 2.0)
171
171
  rspec-support (~> 3.13.0)
172
- rspec-support (3.13.4)
173
- rubocop (1.78.0)
172
+ rspec-support (3.13.6)
173
+ rubocop (1.80.2)
174
174
  json (~> 2.3)
175
175
  language_server-protocol (~> 3.17.0.2)
176
176
  lint_roller (~> 1.1.0)
@@ -178,7 +178,7 @@ GEM
178
178
  parser (>= 3.3.0.2)
179
179
  rainbow (>= 2.2.2, < 4.0)
180
180
  regexp_parser (>= 2.9.3, < 3.0)
181
- rubocop-ast (>= 1.45.1, < 2.0)
181
+ rubocop-ast (>= 1.46.0, < 2.0)
182
182
  ruby-progressbar (~> 1.7)
183
183
  unicode-display_width (>= 2.4.0, < 4.0)
184
184
  rubocop-ast (1.46.0)
@@ -190,11 +190,11 @@ GEM
190
190
  rubocop-factory_bot (2.27.1)
191
191
  lint_roller (~> 1.1)
192
192
  rubocop (~> 1.72, >= 1.72.1)
193
- rubocop-performance (1.25.0)
193
+ rubocop-performance (1.26.0)
194
194
  lint_roller (~> 1.1)
195
195
  rubocop (>= 1.75.0, < 2.0)
196
- rubocop-ast (>= 1.38.0, < 2.0)
197
- rubocop-rails (2.32.0)
196
+ rubocop-ast (>= 1.44.0, < 2.0)
197
+ rubocop-rails (2.33.3)
198
198
  activesupport (>= 4.2.0)
199
199
  lint_roller (~> 1.1)
200
200
  rack (>= 1.1)
@@ -203,7 +203,7 @@ GEM
203
203
  rubocop-rake (0.7.1)
204
204
  lint_roller (~> 1.1)
205
205
  rubocop (>= 1.72.1)
206
- rubocop-rspec (3.6.0)
206
+ rubocop-rspec (3.7.0)
207
207
  lint_roller (~> 1.1)
208
208
  rubocop (~> 1.72, >= 1.72.1)
209
209
  rubocop-rspec_rails (2.31.0)
@@ -232,7 +232,7 @@ GEM
232
232
  syntax_tree-xml (0.1.0)
233
233
  prettier_print
234
234
  syntax_tree (>= 2.0.1)
235
- temple (0.10.3)
235
+ temple (0.10.4)
236
236
  terminal-table (4.0.0)
237
237
  unicode-display_width (>= 1.1.1, < 4)
238
238
  thor (1.4.0)
@@ -241,9 +241,9 @@ GEM
241
241
  track_open_instances (0.1.15)
242
242
  tzinfo (2.0.6)
243
243
  concurrent-ruby (~> 1.0)
244
- unicode-display_width (3.1.4)
245
- unicode-emoji (~> 4.0, >= 4.0.4)
246
- unicode-emoji (4.0.4)
244
+ unicode-display_width (3.2.0)
245
+ unicode-emoji (~> 4.1)
246
+ unicode-emoji (4.1.0)
247
247
  uri (1.0.3)
248
248
  w_syntax_tree-erb (0.12.0)
249
249
  prettier_print (~> 1.2, >= 1.2.0)
@@ -281,4 +281,4 @@ RUBY VERSION
281
281
  ruby 3.4.5p51
282
282
 
283
283
  BUNDLED WITH
284
- 2.7.1
284
+ 2.7.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.12
1
+ 1.6.13
data/bin/code CHANGED
@@ -62,8 +62,8 @@ else
62
62
  timeout: parsed.options.timeout
63
63
  )
64
64
  )
65
- rescue Exception => e
66
- warn e.message
65
+ rescue Code::Error => e
66
+ warn "#{e.class}: #{e.message}"
67
67
  end
68
68
  end
69
69
 
@@ -1025,6 +1025,7 @@ class Code
1025
1025
  return 0 if raw == code_other.raw
1026
1026
  return -1 if raw < code_other.raw
1027
1027
  return 1 if raw > code_other.raw
1028
+
1028
1029
  -1
1029
1030
  end
1030
1031
  end
@@ -25,7 +25,7 @@ class Code
25
25
  if code_operator.to_s == "="
26
26
  code_value
27
27
  else
28
- code_context.fetch(raw.last).call(
28
+ code_context.code_fetch(raw.last).call(
29
29
  **args,
30
30
  operator: code_operator.to_s.chop,
31
31
  arguments: [code_value]
data/lib/code/type/sig.rb CHANGED
@@ -40,7 +40,7 @@ class Code
40
40
  end
41
41
 
42
42
  def actual_arguments
43
- args[:arguments]&.raw || []
43
+ args[:arguments].to_code.raw || []
44
44
  end
45
45
 
46
46
  def operator
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.12
4
+ version: 1.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié