code-ruby 0.15.16 → 1.1.0

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +3 -3
  3. data/.prettierignore +2 -0
  4. data/.rubocop.yml +121 -5
  5. data/Gemfile +9 -1
  6. data/Gemfile.lock +30 -22
  7. data/VERSION +1 -1
  8. data/bin/bundle +123 -0
  9. data/bin/code +8 -10
  10. data/code-ruby.gemspec +3 -1
  11. data/lib/code/node/dictionary.rb +1 -3
  12. data/lib/code/node/if.rb +20 -15
  13. data/lib/code/node/left_operation.rb +1 -3
  14. data/lib/code/node/right_operation.rb +6 -6
  15. data/lib/code/node/while.rb +6 -6
  16. data/lib/code/object/boolean.rb +1 -1
  17. data/lib/code/object/class.rb +1 -1
  18. data/lib/code/object/code.rb +1 -1
  19. data/lib/code/object/context.rb +1 -1
  20. data/lib/code/object/date.rb +1 -1
  21. data/lib/code/object/decimal.rb +2 -2
  22. data/lib/code/object/dictionary.rb +12 -34
  23. data/lib/code/object/duration.rb +1 -1
  24. data/lib/code/object/function.rb +1 -1
  25. data/lib/code/object/global.rb +1 -1
  26. data/lib/code/object/html.rb +1 -1
  27. data/lib/code/object/integer.rb +2 -2
  28. data/lib/code/object/json.rb +2 -4
  29. data/lib/code/object/list.rb +3 -5
  30. data/lib/code/object/nothing.rb +1 -1
  31. data/lib/code/object/parameter.rb +1 -5
  32. data/lib/code/object/range.rb +1 -1
  33. data/lib/code/object/string.rb +1 -1
  34. data/lib/code/object/time.rb +1 -1
  35. data/lib/code/object.rb +7 -13
  36. data/lib/code/parser/string.rb +7 -7
  37. data/lib/code/type/repeat.rb +1 -1
  38. data/lib/code/version.rb +1 -1
  39. data/lib/code-ruby.rb +1 -1
  40. data/package-lock.json +14 -0
  41. data/package.json +0 -1
  42. data/spec/code/node/call_spec.rb +0 -34
  43. data/spec/code/parser_spec.rb +2 -2
  44. data/spec/code/type_spec.rb +1 -1
  45. data/spec/code_spec.rb +78 -79
  46. metadata +14 -12
  47. data/bin/console +0 -6
  48. data/yarn.lock +0 -4
  49. /data/spec/code/parser/{chained_call.rb → chained_call_spec.rb} +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.16
4
+ version: 1.1.0
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-08-22 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: json
56
+ name: dorian-arguments
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: language-ruby
70
+ name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: zeitwerk
84
+ name: language-ruby
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: dorian-arguments
98
+ name: zeitwerk
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -119,6 +119,7 @@ files:
119
119
  - ".github/workflows/ci.yml"
120
120
  - ".gitignore"
121
121
  - ".node-version"
122
+ - ".prettierignore"
122
123
  - ".rspec"
123
124
  - ".rubocop.yml"
124
125
  - ".ruby-version"
@@ -129,10 +130,10 @@ files:
129
130
  - README.md
130
131
  - Rakefile
131
132
  - VERSION
133
+ - bin/bundle
132
134
  - bin/bundle-audit
133
135
  - bin/bundler-audit
134
136
  - bin/code
135
- - bin/console
136
137
  - bin/rspec
137
138
  - bin/rubocop
138
139
  - bin/test
@@ -237,6 +238,7 @@ files:
237
238
  - lib/code/type/repeat.rb
238
239
  - lib/code/type/sig.rb
239
240
  - lib/code/version.rb
241
+ - package-lock.json
240
242
  - package.json
241
243
  - spec/code/node/call_spec.rb
242
244
  - spec/code/object/boolean_spec.rb
@@ -249,7 +251,7 @@ files:
249
251
  - spec/code/object/range_spec.rb
250
252
  - spec/code/object/string_spec.rb
251
253
  - spec/code/parser/boolean_spec.rb
252
- - spec/code/parser/chained_call.rb
254
+ - spec/code/parser/chained_call_spec.rb
253
255
  - spec/code/parser/dictionary_spec.rb
254
256
  - spec/code/parser/function_spec.rb
255
257
  - spec/code/parser/group_spec.rb
@@ -261,20 +263,20 @@ files:
261
263
  - spec/code/type_spec.rb
262
264
  - spec/code_spec.rb
263
265
  - spec/spec_helper.rb
264
- - yarn.lock
265
266
  homepage: https://github.com/dorianmariecom/code-ruby
266
267
  licenses:
267
268
  - MIT
268
- metadata: {}
269
+ metadata:
270
+ rubygems_mfa_required: 'true'
269
271
  post_install_message:
270
272
  rdoc_options: []
271
273
  require_paths:
272
274
  - lib
273
275
  required_ruby_version: !ruby/object:Gem::Requirement
274
276
  requirements:
275
- - - ">="
277
+ - - '='
276
278
  - !ruby/object:Gem::Version
277
- version: '0'
279
+ version: 3.3.4
278
280
  required_rubygems_version: !ruby/object:Gem::Requirement
279
281
  requirements:
280
282
  - - ">="
data/bin/console DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative "../lib/code-ruby"
5
-
6
- binding.irb
data/yarn.lock DELETED
@@ -1,4 +0,0 @@
1
- # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
- # yarn lockfile v1
3
-
4
-