dorian 2.6.3 → 2.6.6

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: 207aa14484ef986a3a7d8c31862e5252196fa2ec8d736e0b733132641e6f696f
4
- data.tar.gz: fbd43455c747af16fb44a14de9d5b4c9649b169b2cc95fd26bac50a4d59f0c8d
3
+ metadata.gz: 3e00a7f1e5dfed603d96fae0d83398eb8aa66516a5f021662dd173e5c046c307
4
+ data.tar.gz: c57c1c6a77035fba7b38febfabb4a961e4bbe4150e7cef95bbdc9f4851c26625
5
5
  SHA512:
6
- metadata.gz: d925343950f9511d7e2ce5e40ae122942f14b580b08853c80cabb85db057edd3e80829c5b3919ec42c17d93a65fbbb2d77434d8d96e85cbed1f06341a3e3c331
7
- data.tar.gz: '028fa81c00ab8693602e80fff5ebfc54964f3965593c093f27c89f63ed263ae51f0307332d5341b9aff43fbb41398718b08c926a0c76fe71cf67cb9a3b8c71b9'
6
+ metadata.gz: 20f65938785264079aacb27e360cd72fbd1b73601be6f4ed2dc5144256ff81341432f98c38d6b18e51f201ee83f8e6c5c80e46d75f6ac2427a242ddfe48bfaec
7
+ data.tar.gz: 2f483ae79afdc40657099256f4b28ba06cfd63a589b47ce8eb50b9e29c215a8fca2954e1bb1cb64694c858cf53db3cc8dac0f53d603bb2a2296275b5ee05acab
data/.node-version CHANGED
@@ -1 +1 @@
1
- 22.5.1
1
+ 24.4.1
data/.npm-version CHANGED
@@ -1 +1 @@
1
- 10.8.2
1
+ 11.4.2
data/.rubocop.yml CHANGED
@@ -1,12 +1,11 @@
1
1
  ---
2
2
  AllCops:
3
3
  Exclude:
4
- - "*/node_modules/**/*"
5
- - "*/vendor/**/*"
6
- - node_modules/**/*
7
- - vendor/**/*
4
+ - "**/node_modules/**/*"
5
+ - "**/vendor/**/*"
6
+ - "**/db/schema.rb"
8
7
  NewCops: enable
9
- TargetRubyVersion: 3.3
8
+ TargetRubyVersion: 3.0
10
9
  Layout/ClosingHeredocIndentation:
11
10
  Enabled: false
12
11
  Layout/FirstArgumentIndentation:
@@ -23,6 +22,8 @@ Layout/MultilineMethodCallIndentation:
23
22
  Enabled: false
24
23
  Layout/MultilineOperationIndentation:
25
24
  Enabled: false
25
+ Layout/SpaceInsideHashLiteralBraces:
26
+ Enabled: false
26
27
  Lint/EmptyClass:
27
28
  Enabled: false
28
29
  Lint/MissingSuper:
@@ -101,16 +102,12 @@ Security/Eval:
101
102
  Enabled: false
102
103
  Style/CaseEquality:
103
104
  Enabled: false
104
- Style/DocumentDynamicEvalDefinition:
105
- Enabled: false
106
105
  Style/Documentation:
107
106
  Enabled: false
108
107
  Style/DoubleNegation:
109
108
  Enabled: false
110
109
  Style/EmptyMethod:
111
110
  Enabled: false
112
- Style/HashEachMethods:
113
- Enabled: false
114
111
  Style/IfUnlessModifier:
115
112
  Enabled: false
116
113
  Style/MultilineBlockChain:
@@ -123,11 +120,11 @@ Style/StringLiterals:
123
120
  Enabled: false
124
121
  Style/StringLiteralsInInterpolation:
125
122
  Enabled: false
126
- require:
123
+ plugins:
127
124
  - rubocop-factory_bot
128
125
  - rubocop-performance
129
126
  - rubocop-rails
130
127
  - rubocop-rake
131
128
  - rubocop-rspec
132
- - rubocop-rspec_rails
133
129
  - rubocop-capybara
130
+ - rubocop-rspec_rails
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.5
1
+ 3.4.5
data/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
- ruby 3.3.5
1
+ ruby 3.4.5
2
2
  yarn 1.22.22
3
- nodejs 22.5.1
3
+ nodejs 24.4.1
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- ruby "3.3.5"
7
+ ruby "3.4.5"
8
8
 
9
9
  gem "bundler-audit"
10
10
  gem "rspec"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dorian (2.6.3)
4
+ dorian (2.6.6)
5
5
  csv
6
6
  dorian-arguments
7
7
  dorian-eval
@@ -23,8 +23,9 @@ PATH
23
23
  GEM
24
24
  remote: https://rubygems.org/
25
25
  specs:
26
- activesupport (7.2.1)
26
+ activesupport (8.0.2)
27
27
  base64
28
+ benchmark (>= 0.3)
28
29
  bigdecimal
29
30
  concurrent-ruby (~> 1.0, >= 1.3.1)
30
31
  connection_pool (>= 2.2.5)
@@ -34,19 +35,21 @@ GEM
34
35
  minitest (>= 5.1)
35
36
  securerandom (>= 0.3)
36
37
  tzinfo (~> 2.0, >= 2.0.5)
38
+ uri (>= 0.13.1)
37
39
  addressable (2.8.7)
38
40
  public_suffix (>= 2.0.2, < 7.0)
39
- ast (2.4.2)
40
- base64 (0.2.0)
41
- bigdecimal (3.1.8)
41
+ ast (2.4.3)
42
+ base64 (0.3.0)
43
+ benchmark (0.4.1)
44
+ bigdecimal (3.2.2)
42
45
  bundler-audit (0.9.2)
43
46
  bundler (>= 1.2.0, < 3)
44
47
  thor (~> 1.0)
45
48
  cmdparse (3.0.7)
46
- concurrent-ruby (1.3.4)
47
- connection_pool (2.4.1)
48
- csv (3.3.0)
49
- diff-lcs (1.5.1)
49
+ concurrent-ruby (1.3.5)
50
+ connection_pool (2.5.3)
51
+ csv (3.3.5)
52
+ diff-lcs (1.6.2)
50
53
  dorian-arguments (1.2.2)
51
54
  bigdecimal
52
55
  dorian-eval (1.5.0)
@@ -54,93 +57,107 @@ GEM
54
57
  dorian-progress (1.1.2)
55
58
  ruby-progressbar
56
59
  dorian-to_struct (2.0.2)
57
- drb (2.2.1)
60
+ drb (2.2.3)
58
61
  geom2d (0.4.1)
59
- git (2.3.0)
62
+ git (4.0.4)
60
63
  activesupport (>= 5.0)
61
64
  addressable (~> 2.8)
62
- process_executer (~> 1.1)
63
- rchardet (~> 1.8)
65
+ process_executer (~> 4.0)
66
+ rchardet (~> 1.9)
64
67
  haml (6.3.0)
65
68
  temple (>= 0.8.2)
66
69
  thor
67
70
  tilt
68
- hexapdf (0.47.0)
71
+ hexapdf (1.3.0)
69
72
  cmdparse (~> 3.0, >= 3.0.3)
70
73
  geom2d (~> 0.4, >= 0.4.1)
71
74
  openssl (>= 2.2.1)
72
- i18n (1.14.6)
75
+ strscan (>= 3.1.2)
76
+ i18n (1.14.7)
73
77
  concurrent-ruby (~> 1.0)
74
- json (2.7.2)
75
- language_server-protocol (3.17.0.3)
76
- libv8-node (18.19.0.0)
77
- libv8-node (18.19.0.0-arm64-darwin)
78
- libv8-node (18.19.0.0-x86_64-linux)
79
- logger (1.6.1)
80
- mini_racer (0.16.0)
81
- libv8-node (~> 18.19.0.0)
82
- minitest (5.25.1)
83
- openssl (3.2.0)
84
- ostruct (0.6.0)
85
- parallel (1.26.3)
86
- parser (3.3.5.0)
78
+ json (2.13.0)
79
+ language_server-protocol (3.17.0.5)
80
+ libv8-node (24.1.0.0)
81
+ libv8-node (24.1.0.0-arm64-darwin)
82
+ libv8-node (24.1.0.0-x86_64-linux)
83
+ lint_roller (1.1.0)
84
+ logger (1.7.0)
85
+ mini_racer (0.19.0)
86
+ libv8-node (~> 24.1.0.0)
87
+ minitest (5.25.5)
88
+ openssl (3.3.0)
89
+ ostruct (0.6.3)
90
+ parallel (1.27.0)
91
+ parser (3.3.8.0)
87
92
  ast (~> 2.4.1)
88
93
  racc
89
94
  prettier_print (1.2.1)
90
- process_executer (1.1.0)
91
- public_suffix (6.0.1)
95
+ prism (1.4.0)
96
+ process_executer (4.0.0)
97
+ track_open_instances (~> 0.1)
98
+ public_suffix (6.0.2)
92
99
  racc (1.8.1)
93
- rack (3.1.7)
100
+ rack (3.1.16)
94
101
  rainbow (3.1.1)
95
- rchardet (1.8.0)
96
- regexp_parser (2.9.2)
97
- rspec (3.13.0)
102
+ rchardet (1.9.0)
103
+ regexp_parser (2.10.0)
104
+ rspec (3.13.1)
98
105
  rspec-core (~> 3.13.0)
99
106
  rspec-expectations (~> 3.13.0)
100
107
  rspec-mocks (~> 3.13.0)
101
- rspec-core (3.13.1)
108
+ rspec-core (3.13.5)
102
109
  rspec-support (~> 3.13.0)
103
- rspec-expectations (3.13.3)
110
+ rspec-expectations (3.13.5)
104
111
  diff-lcs (>= 1.2.0, < 2.0)
105
112
  rspec-support (~> 3.13.0)
106
- rspec-mocks (3.13.1)
113
+ rspec-mocks (3.13.5)
107
114
  diff-lcs (>= 1.2.0, < 2.0)
108
115
  rspec-support (~> 3.13.0)
109
- rspec-support (3.13.1)
110
- rubocop (1.66.1)
116
+ rspec-support (3.13.4)
117
+ rubocop (1.78.0)
111
118
  json (~> 2.3)
112
- language_server-protocol (>= 3.17.0)
119
+ language_server-protocol (~> 3.17.0.2)
120
+ lint_roller (~> 1.1.0)
113
121
  parallel (~> 1.10)
114
122
  parser (>= 3.3.0.2)
115
123
  rainbow (>= 2.2.2, < 4.0)
116
- regexp_parser (>= 2.4, < 3.0)
117
- rubocop-ast (>= 1.32.2, < 2.0)
124
+ regexp_parser (>= 2.9.3, < 3.0)
125
+ rubocop-ast (>= 1.45.1, < 2.0)
118
126
  ruby-progressbar (~> 1.7)
119
- unicode-display_width (>= 2.4.0, < 3.0)
120
- rubocop-ast (1.32.3)
121
- parser (>= 3.3.1.0)
122
- rubocop-capybara (2.21.0)
123
- rubocop (~> 1.41)
124
- rubocop-factory_bot (2.26.1)
125
- rubocop (~> 1.61)
126
- rubocop-performance (1.22.1)
127
- rubocop (>= 1.48.1, < 2.0)
128
- rubocop-ast (>= 1.31.1, < 2.0)
129
- rubocop-rails (2.26.1)
127
+ unicode-display_width (>= 2.4.0, < 4.0)
128
+ rubocop-ast (1.46.0)
129
+ parser (>= 3.3.7.2)
130
+ prism (~> 1.4)
131
+ rubocop-capybara (2.22.1)
132
+ lint_roller (~> 1.1)
133
+ rubocop (~> 1.72, >= 1.72.1)
134
+ rubocop-factory_bot (2.27.1)
135
+ lint_roller (~> 1.1)
136
+ rubocop (~> 1.72, >= 1.72.1)
137
+ rubocop-performance (1.25.0)
138
+ lint_roller (~> 1.1)
139
+ rubocop (>= 1.75.0, < 2.0)
140
+ rubocop-ast (>= 1.38.0, < 2.0)
141
+ rubocop-rails (2.32.0)
130
142
  activesupport (>= 4.2.0)
143
+ lint_roller (~> 1.1)
131
144
  rack (>= 1.1)
132
- rubocop (>= 1.52.0, < 2.0)
133
- rubocop-ast (>= 1.31.1, < 2.0)
134
- rubocop-rake (0.6.0)
135
- rubocop (~> 1.0)
136
- rubocop-rspec (3.0.5)
137
- rubocop (~> 1.61)
138
- rubocop-rspec_rails (2.30.0)
139
- rubocop (~> 1.61)
140
- rubocop-rspec (~> 3, >= 3.0.1)
145
+ rubocop (>= 1.75.0, < 2.0)
146
+ rubocop-ast (>= 1.44.0, < 2.0)
147
+ rubocop-rake (0.7.1)
148
+ lint_roller (~> 1.1)
149
+ rubocop (>= 1.72.1)
150
+ rubocop-rspec (3.6.0)
151
+ lint_roller (~> 1.1)
152
+ rubocop (~> 1.72, >= 1.72.1)
153
+ rubocop-rspec_rails (2.31.0)
154
+ lint_roller (~> 1.1)
155
+ rubocop (~> 1.72, >= 1.72.1)
156
+ rubocop-rspec (~> 3.5)
141
157
  ruby-progressbar (1.13.0)
142
- securerandom (0.3.1)
143
- syntax_tree (6.2.0)
158
+ securerandom (0.4.1)
159
+ strscan (3.1.5)
160
+ syntax_tree (6.3.0)
144
161
  prettier_print (>= 1.2.0)
145
162
  syntax_tree-haml (4.0.3)
146
163
  haml (>= 5.2)
@@ -150,17 +167,21 @@ GEM
150
167
  prettier_print
151
168
  syntax_tree (>= 2.0.1)
152
169
  temple (0.10.3)
153
- terminal-table (3.0.2)
154
- unicode-display_width (>= 1.1.1, < 3)
155
- thor (1.3.2)
156
- tilt (2.4.0)
170
+ terminal-table (4.0.0)
171
+ unicode-display_width (>= 1.1.1, < 4)
172
+ thor (1.4.0)
173
+ tilt (2.6.1)
174
+ track_open_instances (0.1.15)
157
175
  tzinfo (2.0.6)
158
176
  concurrent-ruby (~> 1.0)
159
- unicode-display_width (2.6.0)
177
+ unicode-display_width (3.1.4)
178
+ unicode-emoji (~> 4.0, >= 4.0.4)
179
+ unicode-emoji (4.0.4)
180
+ uri (1.0.3)
160
181
  w_syntax_tree-erb (0.12.0)
161
182
  prettier_print (~> 1.2, >= 1.2.0)
162
183
  syntax_tree (~> 6.1, >= 6.1.1)
163
- yaml (0.3.0)
184
+ yaml (0.4.0)
164
185
 
165
186
  PLATFORMS
166
187
  arm64-darwin-23
@@ -180,7 +201,7 @@ DEPENDENCIES
180
201
  rubocop-rspec_rails
181
202
 
182
203
  RUBY VERSION
183
- ruby 3.3.5p100
204
+ ruby 3.4.5p51
184
205
 
185
206
  BUNDLED WITH
186
- 2.5.18
207
+ 2.7.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.6.6
data/dorian.gemspec CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |s|
31
31
  s.add_dependency "yaml"
32
32
 
33
33
  s.metadata = { "rubygems_mfa_required" => "true" }
34
- s.required_ruby_version = ">= 3.3"
34
+ s.required_ruby_version = ">= 3.0"
35
35
  end
data/lib/dorian/bin.rb CHANGED
@@ -1496,6 +1496,11 @@ class Dorian
1496
1496
 
1497
1497
  def filetype(path)
1498
1498
  ext = File.extname(path).to_s.downcase
1499
+
1500
+ if File.exists?(".format-ignore")
1501
+ return if File.read(".format-ignore").split.map(&:strip).include?(path)
1502
+ end
1503
+
1499
1504
  return :directory if Dir.exist?(path)
1500
1505
  return :symlink if File.symlink?(path)
1501
1506
  return :ruby if RUBY_FILENAMES.include?(File.basename(path))
@@ -1550,7 +1555,7 @@ class Dorian
1550
1555
  return :xml if ext == ".entitlements"
1551
1556
  return :kotlin if ext == ".kt"
1552
1557
  return :groovy if ext == ".gradle"
1553
- return :groovy if ext == ".properties"
1558
+ return nil if ext == ".properties"
1554
1559
  return :binary if ext == ".jar"
1555
1560
  return :objectivec if ext == ".h"
1556
1561
  return :objectivec if ext == ".mm"
@@ -1630,7 +1635,7 @@ class Dorian
1630
1635
  end
1631
1636
  when :pdf
1632
1637
  doc = HexaPDF::Document.open(path)
1633
- doc.trailer.info.each { |key, _| doc.trailer.info.delete(key) }
1638
+ doc.trailer.info.each_key { |key| doc.trailer.info.delete(key) }
1634
1639
  doc.write(path, update_fields: false)
1635
1640
  after = File.read(path)
1636
1641
  when :tex
data/package-lock.json CHANGED
@@ -10,8 +10,8 @@
10
10
  "prettier": "*"
11
11
  },
12
12
  "engines": {
13
- "node": "22.5.1",
14
- "npm": "10.8.2"
13
+ "node": "24.4.1",
14
+ "npm": "11.4.2"
15
15
  }
16
16
  },
17
17
  "node_modules/groovy-beautify": {
@@ -21,9 +21,9 @@
21
21
  "license": "MIT"
22
22
  },
23
23
  "node_modules/prettier": {
24
- "version": "3.3.3",
25
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
26
- "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
24
+ "version": "3.6.2",
25
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
26
+ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
27
27
  "license": "MIT",
28
28
  "bin": {
29
29
  "prettier": "bin/prettier.cjs"
@@ -36,4 +36,4 @@
36
36
  }
37
37
  }
38
38
  }
39
- }
39
+ }
data/package.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "prettier": "*"
5
5
  },
6
6
  "engines": {
7
- "node": "22.5.1",
8
- "npm": "10.8.2"
7
+ "node": "24.4.1",
8
+ "npm": "11.4.2"
9
9
  },
10
10
  "license": "MIT"
11
11
  }
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: csv
@@ -369,7 +368,6 @@ licenses:
369
368
  - MIT
370
369
  metadata:
371
370
  rubygems_mfa_required: 'true'
372
- post_install_message:
373
371
  rdoc_options: []
374
372
  require_paths:
375
373
  - lib
@@ -377,15 +375,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
377
375
  requirements:
378
376
  - - ">="
379
377
  - !ruby/object:Gem::Version
380
- version: '3.3'
378
+ version: '3.0'
381
379
  required_rubygems_version: !ruby/object:Gem::Requirement
382
380
  requirements:
383
381
  - - ">="
384
382
  - !ruby/object:Gem::Version
385
383
  version: '0'
386
384
  requirements: []
387
- rubygems_version: 3.5.16
388
- signing_key:
385
+ rubygems_version: 3.6.9
389
386
  specification_version: 4
390
387
  summary: a collection of gems
391
388
  test_files: []