dorian 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +15 -0
  3. data/.github/workflows/ci.yml +38 -0
  4. data/.gitignore +30 -0
  5. data/.node-version +1 -0
  6. data/.prettierignore +2 -0
  7. data/.rubocop.yml +129 -0
  8. data/.ruby-version +1 -0
  9. data/.tool-versions +3 -0
  10. data/Gemfile +20 -0
  11. data/Gemfile.lock +186 -0
  12. data/LICENSE +19 -0
  13. data/README.md +24 -0
  14. data/VERSION +1 -1
  15. data/bin/bundle +123 -0
  16. data/bin/bundle-audit +31 -0
  17. data/bin/bundler-audit +31 -0
  18. data/bin/rspec +31 -0
  19. data/bin/rubocop +31 -0
  20. data/dorian.gemspec +35 -0
  21. data/lib/dorian/bin.rb +739 -81
  22. data/package-lock.json +39 -0
  23. data/package.json +11 -0
  24. data/samples/books.json +33 -0
  25. data/samples/books.jsonl +3 -0
  26. data/samples/config.yml +27 -0
  27. data/samples/config_2.yml +22 -0
  28. data/samples/maths.js +1 -0
  29. data/samples/numbers.raw +10 -0
  30. data/samples/people.csv +6 -0
  31. data/samples/people.yml +28 -0
  32. data/samples/query.sql +7 -0
  33. data/samples/user.json +31 -0
  34. data/spec/dorian_spec.rb +276 -0
  35. data/spec/spec_helper.rb +3 -0
  36. data/vendor/groovy-beautify/LICENSE.MD +21 -0
  37. data/vendor/groovy-beautify/README.md +65 -0
  38. data/vendor/groovy-beautify/dist/__tests__/index.test.d.ts +1 -0
  39. data/vendor/groovy-beautify/dist/cjs/index.js +573 -0
  40. data/vendor/groovy-beautify/dist/cjs/package.json +3 -0
  41. data/vendor/groovy-beautify/dist/es/index.js +682 -0
  42. data/vendor/groovy-beautify/dist/es/package.json +3 -0
  43. data/vendor/groovy-beautify/dist/formatter/FormatRule.d.ts +14 -0
  44. data/vendor/groovy-beautify/dist/formatter/Formatter.d.ts +11 -0
  45. data/vendor/groovy-beautify/dist/formatter/GroovyFormatRules.d.ts +3 -0
  46. data/vendor/groovy-beautify/dist/formatter/__tests__/formatter.test.d.ts +1 -0
  47. data/vendor/groovy-beautify/dist/index.d.ts +5 -0
  48. data/vendor/groovy-beautify/dist/parser/GroovyParseRules.d.ts +3 -0
  49. data/vendor/groovy-beautify/dist/parser/ParseRule.d.ts +23 -0
  50. data/vendor/groovy-beautify/dist/parser/Parser.d.ts +29 -0
  51. data/vendor/groovy-beautify/dist/parser/__tests__/parser.test.d.ts +1 -0
  52. data/vendor/groovy-beautify/dist/parser/types.d.ts +6 -0
  53. data/vendor/groovy-beautify/dist/utils/text.d.ts +4 -0
  54. data/vendor/groovy-beautify/package.json +55 -0
  55. data/vendor/prettier/LICENSE +4379 -0
  56. data/vendor/prettier/README.md +109 -0
  57. data/vendor/prettier/bin/prettier.cjs +71 -0
  58. data/vendor/prettier/doc.d.ts +243 -0
  59. data/vendor/prettier/doc.js +1545 -0
  60. data/vendor/prettier/doc.mjs +1503 -0
  61. data/vendor/prettier/index.cjs +825 -0
  62. data/vendor/prettier/index.d.ts +941 -0
  63. data/vendor/prettier/index.mjs +25899 -0
  64. data/vendor/prettier/internal/cli.mjs +4366 -0
  65. data/vendor/prettier/package.json +198 -0
  66. data/vendor/prettier/plugins/acorn.d.ts +6 -0
  67. data/vendor/prettier/plugins/acorn.js +6618 -0
  68. data/vendor/prettier/plugins/acorn.mjs +6456 -0
  69. data/vendor/prettier/plugins/angular.d.ts +8 -0
  70. data/vendor/prettier/plugins/angular.js +2435 -0
  71. data/vendor/prettier/plugins/angular.mjs +2375 -0
  72. data/vendor/prettier/plugins/babel.d.ts +18 -0
  73. data/vendor/prettier/plugins/babel.js +14271 -0
  74. data/vendor/prettier/plugins/babel.mjs +13986 -0
  75. data/vendor/prettier/plugins/estree.d.ts +1 -0
  76. data/vendor/prettier/plugins/estree.js +9487 -0
  77. data/vendor/prettier/plugins/estree.mjs +9279 -0
  78. data/vendor/prettier/plugins/flow.d.ts +5 -0
  79. data/vendor/prettier/plugins/flow.js +51477 -0
  80. data/vendor/prettier/plugins/flow.mjs +51219 -0
  81. data/vendor/prettier/plugins/glimmer.d.ts +5 -0
  82. data/vendor/prettier/plugins/glimmer.js +8534 -0
  83. data/vendor/prettier/plugins/glimmer.mjs +8421 -0
  84. data/vendor/prettier/plugins/graphql.d.ts +5 -0
  85. data/vendor/prettier/plugins/graphql.js +2421 -0
  86. data/vendor/prettier/plugins/graphql.mjs +2347 -0
  87. data/vendor/prettier/plugins/html.d.ts +8 -0
  88. data/vendor/prettier/plugins/html.js +8182 -0
  89. data/vendor/prettier/plugins/html.mjs +8077 -0
  90. data/vendor/prettier/plugins/markdown.d.ts +7 -0
  91. data/vendor/prettier/plugins/markdown.js +9068 -0
  92. data/vendor/prettier/plugins/markdown.mjs +8977 -0
  93. data/vendor/prettier/plugins/meriyah.d.ts +5 -0
  94. data/vendor/prettier/plugins/meriyah.js +5953 -0
  95. data/vendor/prettier/plugins/meriyah.mjs +5800 -0
  96. data/vendor/prettier/plugins/postcss.d.ts +7 -0
  97. data/vendor/prettier/plugins/postcss.js +9244 -0
  98. data/vendor/prettier/plugins/postcss.mjs +9046 -0
  99. data/vendor/prettier/plugins/typescript.d.ts +5 -0
  100. data/vendor/prettier/plugins/typescript.js +38058 -0
  101. data/vendor/prettier/plugins/typescript.mjs +37732 -0
  102. data/vendor/prettier/plugins/yaml.d.ts +5 -0
  103. data/vendor/prettier/plugins/yaml.js +7425 -0
  104. data/vendor/prettier/plugins/yaml.mjs +7329 -0
  105. data/vendor/prettier/standalone.d.ts +33 -0
  106. data/vendor/prettier/standalone.js +3984 -0
  107. data/vendor/prettier/standalone.mjs +3938 -0
  108. data/vendor/sql-formatter.js +18762 -0
  109. metadata +205 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.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-09-08 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: hexapdf
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: json
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +122,20 @@ dependencies:
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: mini_racer
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: ostruct
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +164,76 @@ dependencies:
136
164
  - - ">="
137
165
  - !ruby/object:Gem::Version
138
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: syntax_tree
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: syntax_tree-haml
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: syntax_tree-xml
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: terminal-table
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: w_syntax_tree-erb
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
139
237
  - !ruby/object:Gem::Dependency
140
238
  name: yaml
141
239
  requirement: !ruby/object:Gem::Requirement
@@ -157,9 +255,114 @@ executables:
157
255
  extensions: []
158
256
  extra_rdoc_files: []
159
257
  files:
258
+ - ".github/dependabot.yml"
259
+ - ".github/workflows/ci.yml"
260
+ - ".gitignore"
261
+ - ".node-version"
262
+ - ".prettierignore"
263
+ - ".rubocop.yml"
264
+ - ".ruby-version"
265
+ - ".tool-versions"
266
+ - Gemfile
267
+ - Gemfile.lock
268
+ - LICENSE
269
+ - README.md
160
270
  - VERSION
271
+ - bin/bundle
272
+ - bin/bundle-audit
273
+ - bin/bundler-audit
161
274
  - bin/dorian
275
+ - bin/rspec
276
+ - bin/rubocop
277
+ - dorian.gemspec
162
278
  - lib/dorian/bin.rb
279
+ - package-lock.json
280
+ - package.json
281
+ - samples/books.json
282
+ - samples/books.jsonl
283
+ - samples/config.yml
284
+ - samples/config_2.yml
285
+ - samples/maths.js
286
+ - samples/numbers.raw
287
+ - samples/people.csv
288
+ - samples/people.yml
289
+ - samples/query.sql
290
+ - samples/user.json
291
+ - spec/dorian_spec.rb
292
+ - spec/spec_helper.rb
293
+ - vendor/groovy-beautify/LICENSE.MD
294
+ - vendor/groovy-beautify/README.md
295
+ - vendor/groovy-beautify/dist/__tests__/index.test.d.ts
296
+ - vendor/groovy-beautify/dist/cjs/index.js
297
+ - vendor/groovy-beautify/dist/cjs/package.json
298
+ - vendor/groovy-beautify/dist/es/index.js
299
+ - vendor/groovy-beautify/dist/es/package.json
300
+ - vendor/groovy-beautify/dist/formatter/FormatRule.d.ts
301
+ - vendor/groovy-beautify/dist/formatter/Formatter.d.ts
302
+ - vendor/groovy-beautify/dist/formatter/GroovyFormatRules.d.ts
303
+ - vendor/groovy-beautify/dist/formatter/__tests__/formatter.test.d.ts
304
+ - vendor/groovy-beautify/dist/index.d.ts
305
+ - vendor/groovy-beautify/dist/parser/GroovyParseRules.d.ts
306
+ - vendor/groovy-beautify/dist/parser/ParseRule.d.ts
307
+ - vendor/groovy-beautify/dist/parser/Parser.d.ts
308
+ - vendor/groovy-beautify/dist/parser/__tests__/parser.test.d.ts
309
+ - vendor/groovy-beautify/dist/parser/types.d.ts
310
+ - vendor/groovy-beautify/dist/utils/text.d.ts
311
+ - vendor/groovy-beautify/package.json
312
+ - vendor/prettier/LICENSE
313
+ - vendor/prettier/README.md
314
+ - vendor/prettier/bin/prettier.cjs
315
+ - vendor/prettier/doc.d.ts
316
+ - vendor/prettier/doc.js
317
+ - vendor/prettier/doc.mjs
318
+ - vendor/prettier/index.cjs
319
+ - vendor/prettier/index.d.ts
320
+ - vendor/prettier/index.mjs
321
+ - vendor/prettier/internal/cli.mjs
322
+ - vendor/prettier/package.json
323
+ - vendor/prettier/plugins/acorn.d.ts
324
+ - vendor/prettier/plugins/acorn.js
325
+ - vendor/prettier/plugins/acorn.mjs
326
+ - vendor/prettier/plugins/angular.d.ts
327
+ - vendor/prettier/plugins/angular.js
328
+ - vendor/prettier/plugins/angular.mjs
329
+ - vendor/prettier/plugins/babel.d.ts
330
+ - vendor/prettier/plugins/babel.js
331
+ - vendor/prettier/plugins/babel.mjs
332
+ - vendor/prettier/plugins/estree.d.ts
333
+ - vendor/prettier/plugins/estree.js
334
+ - vendor/prettier/plugins/estree.mjs
335
+ - vendor/prettier/plugins/flow.d.ts
336
+ - vendor/prettier/plugins/flow.js
337
+ - vendor/prettier/plugins/flow.mjs
338
+ - vendor/prettier/plugins/glimmer.d.ts
339
+ - vendor/prettier/plugins/glimmer.js
340
+ - vendor/prettier/plugins/glimmer.mjs
341
+ - vendor/prettier/plugins/graphql.d.ts
342
+ - vendor/prettier/plugins/graphql.js
343
+ - vendor/prettier/plugins/graphql.mjs
344
+ - vendor/prettier/plugins/html.d.ts
345
+ - vendor/prettier/plugins/html.js
346
+ - vendor/prettier/plugins/html.mjs
347
+ - vendor/prettier/plugins/markdown.d.ts
348
+ - vendor/prettier/plugins/markdown.js
349
+ - vendor/prettier/plugins/markdown.mjs
350
+ - vendor/prettier/plugins/meriyah.d.ts
351
+ - vendor/prettier/plugins/meriyah.js
352
+ - vendor/prettier/plugins/meriyah.mjs
353
+ - vendor/prettier/plugins/postcss.d.ts
354
+ - vendor/prettier/plugins/postcss.js
355
+ - vendor/prettier/plugins/postcss.mjs
356
+ - vendor/prettier/plugins/typescript.d.ts
357
+ - vendor/prettier/plugins/typescript.js
358
+ - vendor/prettier/plugins/typescript.mjs
359
+ - vendor/prettier/plugins/yaml.d.ts
360
+ - vendor/prettier/plugins/yaml.js
361
+ - vendor/prettier/plugins/yaml.mjs
362
+ - vendor/prettier/standalone.d.ts
363
+ - vendor/prettier/standalone.js
364
+ - vendor/prettier/standalone.mjs
365
+ - vendor/sql-formatter.js
163
366
  homepage: https://github.com/dorianmariecom/dorian
164
367
  licenses:
165
368
  - MIT