dorian 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +15 -0
- data/.github/workflows/ci.yml +38 -0
- data/.gitignore +30 -0
- data/.node-version +1 -0
- data/.prettierignore +2 -0
- data/.rubocop.yml +129 -0
- data/.ruby-version +1 -0
- data/.tool-versions +3 -0
- data/Gemfile +20 -0
- data/Gemfile.lock +186 -0
- data/LICENSE +19 -0
- data/README.md +24 -0
- data/VERSION +1 -1
- data/bin/bundle +123 -0
- data/bin/bundle-audit +31 -0
- data/bin/bundler-audit +31 -0
- data/bin/rspec +31 -0
- data/bin/rubocop +31 -0
- data/dorian.gemspec +35 -0
- data/lib/dorian/bin.rb +739 -81
- data/package-lock.json +39 -0
- data/package.json +11 -0
- data/samples/books.json +33 -0
- data/samples/books.jsonl +3 -0
- data/samples/config.yml +27 -0
- data/samples/config_2.yml +22 -0
- data/samples/maths.js +1 -0
- data/samples/numbers.raw +10 -0
- data/samples/people.csv +6 -0
- data/samples/people.yml +28 -0
- data/samples/query.sql +7 -0
- data/samples/user.json +31 -0
- data/spec/dorian_spec.rb +276 -0
- data/spec/spec_helper.rb +3 -0
- data/vendor/groovy-beautify/LICENSE.MD +21 -0
- data/vendor/groovy-beautify/README.md +65 -0
- data/vendor/groovy-beautify/dist/__tests__/index.test.d.ts +1 -0
- data/vendor/groovy-beautify/dist/cjs/index.js +573 -0
- data/vendor/groovy-beautify/dist/cjs/package.json +3 -0
- data/vendor/groovy-beautify/dist/es/index.js +682 -0
- data/vendor/groovy-beautify/dist/es/package.json +3 -0
- data/vendor/groovy-beautify/dist/formatter/FormatRule.d.ts +14 -0
- data/vendor/groovy-beautify/dist/formatter/Formatter.d.ts +11 -0
- data/vendor/groovy-beautify/dist/formatter/GroovyFormatRules.d.ts +3 -0
- data/vendor/groovy-beautify/dist/formatter/__tests__/formatter.test.d.ts +1 -0
- data/vendor/groovy-beautify/dist/index.d.ts +5 -0
- data/vendor/groovy-beautify/dist/parser/GroovyParseRules.d.ts +3 -0
- data/vendor/groovy-beautify/dist/parser/ParseRule.d.ts +23 -0
- data/vendor/groovy-beautify/dist/parser/Parser.d.ts +29 -0
- data/vendor/groovy-beautify/dist/parser/__tests__/parser.test.d.ts +1 -0
- data/vendor/groovy-beautify/dist/parser/types.d.ts +6 -0
- data/vendor/groovy-beautify/dist/utils/text.d.ts +4 -0
- data/vendor/groovy-beautify/package.json +55 -0
- data/vendor/prettier/LICENSE +4379 -0
- data/vendor/prettier/README.md +109 -0
- data/vendor/prettier/bin/prettier.cjs +71 -0
- data/vendor/prettier/doc.d.ts +243 -0
- data/vendor/prettier/doc.js +1545 -0
- data/vendor/prettier/doc.mjs +1503 -0
- data/vendor/prettier/index.cjs +825 -0
- data/vendor/prettier/index.d.ts +941 -0
- data/vendor/prettier/index.mjs +25899 -0
- data/vendor/prettier/internal/cli.mjs +4366 -0
- data/vendor/prettier/package.json +198 -0
- data/vendor/prettier/plugins/acorn.d.ts +6 -0
- data/vendor/prettier/plugins/acorn.js +6618 -0
- data/vendor/prettier/plugins/acorn.mjs +6456 -0
- data/vendor/prettier/plugins/angular.d.ts +8 -0
- data/vendor/prettier/plugins/angular.js +2435 -0
- data/vendor/prettier/plugins/angular.mjs +2375 -0
- data/vendor/prettier/plugins/babel.d.ts +18 -0
- data/vendor/prettier/plugins/babel.js +14271 -0
- data/vendor/prettier/plugins/babel.mjs +13986 -0
- data/vendor/prettier/plugins/estree.d.ts +1 -0
- data/vendor/prettier/plugins/estree.js +9487 -0
- data/vendor/prettier/plugins/estree.mjs +9279 -0
- data/vendor/prettier/plugins/flow.d.ts +5 -0
- data/vendor/prettier/plugins/flow.js +51477 -0
- data/vendor/prettier/plugins/flow.mjs +51219 -0
- data/vendor/prettier/plugins/glimmer.d.ts +5 -0
- data/vendor/prettier/plugins/glimmer.js +8534 -0
- data/vendor/prettier/plugins/glimmer.mjs +8421 -0
- data/vendor/prettier/plugins/graphql.d.ts +5 -0
- data/vendor/prettier/plugins/graphql.js +2421 -0
- data/vendor/prettier/plugins/graphql.mjs +2347 -0
- data/vendor/prettier/plugins/html.d.ts +8 -0
- data/vendor/prettier/plugins/html.js +8182 -0
- data/vendor/prettier/plugins/html.mjs +8077 -0
- data/vendor/prettier/plugins/markdown.d.ts +7 -0
- data/vendor/prettier/plugins/markdown.js +9068 -0
- data/vendor/prettier/plugins/markdown.mjs +8977 -0
- data/vendor/prettier/plugins/meriyah.d.ts +5 -0
- data/vendor/prettier/plugins/meriyah.js +5953 -0
- data/vendor/prettier/plugins/meriyah.mjs +5800 -0
- data/vendor/prettier/plugins/postcss.d.ts +7 -0
- data/vendor/prettier/plugins/postcss.js +9244 -0
- data/vendor/prettier/plugins/postcss.mjs +9046 -0
- data/vendor/prettier/plugins/typescript.d.ts +5 -0
- data/vendor/prettier/plugins/typescript.js +38058 -0
- data/vendor/prettier/plugins/typescript.mjs +37732 -0
- data/vendor/prettier/plugins/yaml.d.ts +5 -0
- data/vendor/prettier/plugins/yaml.js +7425 -0
- data/vendor/prettier/plugins/yaml.mjs +7329 -0
- data/vendor/prettier/standalone.d.ts +33 -0
- data/vendor/prettier/standalone.js +3984 -0
- data/vendor/prettier/standalone.mjs +3938 -0
- data/vendor/sql-formatter.js +18762 -0
- metadata +205 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b8b344806e358d754e6e68eb0333bdb33e5099eab13e3b0df41ccc13bd3c5f
|
4
|
+
data.tar.gz: c26ab096a11c5c9c8da1845e3e83fe41adb3836397e6581669c550d3d8837b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eda2aa612da2a4d35854f9ada61d35e7917c19c56bc9335d25045a748965b65990230f7a5300f4aeb1b320b2aabe5c608a00031719137549eda6c0e88384a30
|
7
|
+
data.tar.gz: 52af3c55d0a75ba0aead5ffe111edf5ef448b5fb6a3791ee485a20eea3191a3198c8f4e071b551210a4bb99a62a80b2ce7c33e504cbc8e30ccd765a689d396a8
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
updates:
|
3
|
+
- directory: "/"
|
4
|
+
package-ecosystem: github-actions
|
5
|
+
schedule:
|
6
|
+
interval: daily
|
7
|
+
- directory: "/"
|
8
|
+
package-ecosystem: npm
|
9
|
+
schedule:
|
10
|
+
interval: daily
|
11
|
+
- directory: "/"
|
12
|
+
package-ecosystem: bundler
|
13
|
+
schedule:
|
14
|
+
interval: daily
|
15
|
+
version: 2
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
jobs:
|
3
|
+
bundler-audit:
|
4
|
+
name: Bundler Audit
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
steps:
|
7
|
+
- uses: actions/checkout@v4
|
8
|
+
- uses: ruby/setup-ruby@v1
|
9
|
+
with:
|
10
|
+
bundler-cache: true
|
11
|
+
- run: bin/bundler-audit check --update
|
12
|
+
npm-audit:
|
13
|
+
name: npm Audit
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v4
|
17
|
+
- uses: actions/setup-node@v4
|
18
|
+
- run: npm audit
|
19
|
+
rspec:
|
20
|
+
name: Test
|
21
|
+
runs-on: ubuntu-latest
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v4
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
bundler-cache: true
|
27
|
+
- run: bin/test
|
28
|
+
rubocop:
|
29
|
+
name: Rubocop
|
30
|
+
runs-on: ubuntu-latest
|
31
|
+
steps:
|
32
|
+
- uses: actions/checkout@v4
|
33
|
+
- uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
bundler-cache: true
|
36
|
+
- run: bin/rubocop
|
37
|
+
name: CI
|
38
|
+
'on': push
|
data/.gitignore
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
.DS_Store
|
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/.prettierignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
---
|
2
|
+
AllCops:
|
3
|
+
Exclude:
|
4
|
+
- "*/node_modules/**/*"
|
5
|
+
- "*/vendor/**/*"
|
6
|
+
- node_modules/**/*
|
7
|
+
- vendor/**/*
|
8
|
+
NewCops: enable
|
9
|
+
TargetRubyVersion: 3.3
|
10
|
+
Layout/ClosingHeredocIndentation:
|
11
|
+
Enabled: false
|
12
|
+
Layout/FirstArgumentIndentation:
|
13
|
+
Enabled: false
|
14
|
+
Layout/HashAlignment:
|
15
|
+
Enabled: false
|
16
|
+
Layout/HeredocIndentation:
|
17
|
+
Enabled: false
|
18
|
+
Layout/LineEndStringConcatenationIndentation:
|
19
|
+
Enabled: false
|
20
|
+
Layout/LineLength:
|
21
|
+
Enabled: false
|
22
|
+
Layout/MultilineMethodCallIndentation:
|
23
|
+
Enabled: false
|
24
|
+
Layout/MultilineOperationIndentation:
|
25
|
+
Enabled: false
|
26
|
+
Lint/EmptyClass:
|
27
|
+
Enabled: false
|
28
|
+
Lint/MissingSuper:
|
29
|
+
Enabled: false
|
30
|
+
Lint/PercentStringArray:
|
31
|
+
Enabled: false
|
32
|
+
Lint/ShadowingOuterLocalVariable:
|
33
|
+
Enabled: false
|
34
|
+
Lint/SuppressedException:
|
35
|
+
Enabled: false
|
36
|
+
Lint/UnusedBlockArgument:
|
37
|
+
Enabled: false
|
38
|
+
Lint/UselessAssignment:
|
39
|
+
Enabled: false
|
40
|
+
Metrics/AbcSize:
|
41
|
+
Enabled: false
|
42
|
+
Metrics/BlockLength:
|
43
|
+
Enabled: false
|
44
|
+
Metrics/ClassLength:
|
45
|
+
Enabled: false
|
46
|
+
Metrics/CyclomaticComplexity:
|
47
|
+
Enabled: false
|
48
|
+
Metrics/MethodLength:
|
49
|
+
Enabled: false
|
50
|
+
Metrics/ModuleLength:
|
51
|
+
Enabled: false
|
52
|
+
Metrics/ParameterLists:
|
53
|
+
Enabled: false
|
54
|
+
Metrics/PerceivedComplexity:
|
55
|
+
Enabled: false
|
56
|
+
Naming/FileName:
|
57
|
+
Enabled: false
|
58
|
+
Naming/MethodParameterName:
|
59
|
+
Enabled: false
|
60
|
+
Naming/VariableNumber:
|
61
|
+
Enabled: false
|
62
|
+
Performance/Sum:
|
63
|
+
Enabled: false
|
64
|
+
Performance/UnfreezeString:
|
65
|
+
Enabled: false
|
66
|
+
RSpec/AnyInstance:
|
67
|
+
Enabled: false
|
68
|
+
RSpec/ContextWording:
|
69
|
+
Enabled: false
|
70
|
+
RSpec/DescribeClass:
|
71
|
+
Enabled: false
|
72
|
+
RSpec/ExampleLength:
|
73
|
+
Enabled: false
|
74
|
+
RSpec/ExampleWording:
|
75
|
+
Enabled: false
|
76
|
+
RSpec/MultipleExpectations:
|
77
|
+
Enabled: false
|
78
|
+
RSpec/NoExpectationExample:
|
79
|
+
Enabled: false
|
80
|
+
RSpec/PendingWithoutReason:
|
81
|
+
Enabled: false
|
82
|
+
Rails/Delegate:
|
83
|
+
Enabled: false
|
84
|
+
Rails/DynamicFindBy:
|
85
|
+
Enabled: false
|
86
|
+
Rails/HelperInstanceVariable:
|
87
|
+
Enabled: false
|
88
|
+
Rails/NegateInclude:
|
89
|
+
Enabled: false
|
90
|
+
Rails/Output:
|
91
|
+
Enabled: false
|
92
|
+
Rails/Presence:
|
93
|
+
Enabled: false
|
94
|
+
Rails/Present:
|
95
|
+
Enabled: false
|
96
|
+
Rails/ThreeStateBooleanColumn:
|
97
|
+
Enabled: false
|
98
|
+
Rails/TimeZone:
|
99
|
+
Enabled: false
|
100
|
+
Security/Eval:
|
101
|
+
Enabled: false
|
102
|
+
Style/CaseEquality:
|
103
|
+
Enabled: false
|
104
|
+
Style/Documentation:
|
105
|
+
Enabled: false
|
106
|
+
Style/DoubleNegation:
|
107
|
+
Enabled: false
|
108
|
+
Style/EmptyMethod:
|
109
|
+
Enabled: false
|
110
|
+
Style/IfUnlessModifier:
|
111
|
+
Enabled: false
|
112
|
+
Style/MultilineBlockChain:
|
113
|
+
Enabled: false
|
114
|
+
Style/NestedTernaryOperator:
|
115
|
+
Enabled: false
|
116
|
+
Style/QuotedSymbols:
|
117
|
+
Enabled: false
|
118
|
+
Style/StringLiterals:
|
119
|
+
Enabled: false
|
120
|
+
Style/StringLiteralsInInterpolation:
|
121
|
+
Enabled: false
|
122
|
+
require:
|
123
|
+
- rubocop-factory_bot
|
124
|
+
- rubocop-performance
|
125
|
+
- rubocop-rails
|
126
|
+
- rubocop-rake
|
127
|
+
- rubocop-rspec
|
128
|
+
- rubocop-rspec_rails
|
129
|
+
- rubocop-capybara
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.5
|
data/.tool-versions
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gemspec
|
6
|
+
|
7
|
+
ruby "3.3.5"
|
8
|
+
|
9
|
+
gem "rspec"
|
10
|
+
|
11
|
+
gem "bundler-audit"
|
12
|
+
|
13
|
+
gem "rubocop-factory_bot"
|
14
|
+
gem "rubocop-performance"
|
15
|
+
gem "rubocop-rails"
|
16
|
+
gem "rubocop-rake"
|
17
|
+
gem "rubocop-rspec"
|
18
|
+
gem "rubocop-rspec_rails"
|
19
|
+
|
20
|
+
gem "rubocop-capybara"
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
dorian (2.5.0)
|
5
|
+
csv
|
6
|
+
dorian-arguments
|
7
|
+
dorian-eval
|
8
|
+
dorian-progress
|
9
|
+
dorian-to_struct
|
10
|
+
git
|
11
|
+
hexapdf
|
12
|
+
json
|
13
|
+
mini_racer
|
14
|
+
ostruct
|
15
|
+
parallel
|
16
|
+
syntax_tree
|
17
|
+
syntax_tree-haml
|
18
|
+
syntax_tree-xml
|
19
|
+
terminal-table
|
20
|
+
w_syntax_tree-erb
|
21
|
+
yaml
|
22
|
+
|
23
|
+
GEM
|
24
|
+
remote: https://rubygems.org/
|
25
|
+
specs:
|
26
|
+
activesupport (7.2.1)
|
27
|
+
base64
|
28
|
+
bigdecimal
|
29
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
30
|
+
connection_pool (>= 2.2.5)
|
31
|
+
drb
|
32
|
+
i18n (>= 1.6, < 2)
|
33
|
+
logger (>= 1.4.2)
|
34
|
+
minitest (>= 5.1)
|
35
|
+
securerandom (>= 0.3)
|
36
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
37
|
+
addressable (2.8.7)
|
38
|
+
public_suffix (>= 2.0.2, < 7.0)
|
39
|
+
ast (2.4.2)
|
40
|
+
base64 (0.2.0)
|
41
|
+
bigdecimal (3.1.8)
|
42
|
+
bundler-audit (0.9.2)
|
43
|
+
bundler (>= 1.2.0, < 3)
|
44
|
+
thor (~> 1.0)
|
45
|
+
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)
|
50
|
+
dorian-arguments (1.2.2)
|
51
|
+
bigdecimal
|
52
|
+
dorian-eval (1.4.3)
|
53
|
+
yaml
|
54
|
+
dorian-progress (1.1.2)
|
55
|
+
ruby-progressbar
|
56
|
+
dorian-to_struct (2.0.2)
|
57
|
+
drb (2.2.1)
|
58
|
+
geom2d (0.4.1)
|
59
|
+
git (2.3.0)
|
60
|
+
activesupport (>= 5.0)
|
61
|
+
addressable (~> 2.8)
|
62
|
+
process_executer (~> 1.1)
|
63
|
+
rchardet (~> 1.8)
|
64
|
+
haml (6.3.0)
|
65
|
+
temple (>= 0.8.2)
|
66
|
+
thor
|
67
|
+
tilt
|
68
|
+
hexapdf (0.47.0)
|
69
|
+
cmdparse (~> 3.0, >= 3.0.3)
|
70
|
+
geom2d (~> 0.4, >= 0.4.1)
|
71
|
+
openssl (>= 2.2.1)
|
72
|
+
i18n (1.14.6)
|
73
|
+
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)
|
87
|
+
ast (~> 2.4.1)
|
88
|
+
racc
|
89
|
+
prettier_print (1.2.1)
|
90
|
+
process_executer (1.1.0)
|
91
|
+
public_suffix (6.0.1)
|
92
|
+
racc (1.8.1)
|
93
|
+
rack (3.1.7)
|
94
|
+
rainbow (3.1.1)
|
95
|
+
rchardet (1.8.0)
|
96
|
+
regexp_parser (2.9.2)
|
97
|
+
rspec (3.13.0)
|
98
|
+
rspec-core (~> 3.13.0)
|
99
|
+
rspec-expectations (~> 3.13.0)
|
100
|
+
rspec-mocks (~> 3.13.0)
|
101
|
+
rspec-core (3.13.1)
|
102
|
+
rspec-support (~> 3.13.0)
|
103
|
+
rspec-expectations (3.13.3)
|
104
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
105
|
+
rspec-support (~> 3.13.0)
|
106
|
+
rspec-mocks (3.13.1)
|
107
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
108
|
+
rspec-support (~> 3.13.0)
|
109
|
+
rspec-support (3.13.1)
|
110
|
+
rubocop (1.66.1)
|
111
|
+
json (~> 2.3)
|
112
|
+
language_server-protocol (>= 3.17.0)
|
113
|
+
parallel (~> 1.10)
|
114
|
+
parser (>= 3.3.0.2)
|
115
|
+
rainbow (>= 2.2.2, < 4.0)
|
116
|
+
regexp_parser (>= 2.4, < 3.0)
|
117
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
118
|
+
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.0)
|
127
|
+
rubocop (>= 1.48.1, < 2.0)
|
128
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
129
|
+
rubocop-rails (2.26.1)
|
130
|
+
activesupport (>= 4.2.0)
|
131
|
+
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)
|
141
|
+
ruby-progressbar (1.13.0)
|
142
|
+
securerandom (0.3.1)
|
143
|
+
syntax_tree (6.2.0)
|
144
|
+
prettier_print (>= 1.2.0)
|
145
|
+
syntax_tree-haml (4.0.3)
|
146
|
+
haml (>= 5.2)
|
147
|
+
prettier_print (>= 1.2.1)
|
148
|
+
syntax_tree (>= 6.0.0)
|
149
|
+
syntax_tree-xml (0.1.0)
|
150
|
+
prettier_print
|
151
|
+
syntax_tree (>= 2.0.1)
|
152
|
+
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)
|
157
|
+
tzinfo (2.0.6)
|
158
|
+
concurrent-ruby (~> 1.0)
|
159
|
+
unicode-display_width (2.6.0)
|
160
|
+
w_syntax_tree-erb (0.12.0)
|
161
|
+
prettier_print (~> 1.2, >= 1.2.0)
|
162
|
+
syntax_tree (~> 6.1, >= 6.1.1)
|
163
|
+
yaml (0.3.0)
|
164
|
+
|
165
|
+
PLATFORMS
|
166
|
+
arm64-darwin-23
|
167
|
+
ruby
|
168
|
+
x86_64-linux
|
169
|
+
|
170
|
+
DEPENDENCIES
|
171
|
+
bundler-audit
|
172
|
+
dorian!
|
173
|
+
rspec
|
174
|
+
rubocop-capybara
|
175
|
+
rubocop-factory_bot
|
176
|
+
rubocop-performance
|
177
|
+
rubocop-rails
|
178
|
+
rubocop-rake
|
179
|
+
rubocop-rspec
|
180
|
+
rubocop-rspec_rails
|
181
|
+
|
182
|
+
RUBY VERSION
|
183
|
+
ruby 3.3.5p100
|
184
|
+
|
185
|
+
BUNDLED WITH
|
186
|
+
2.5.18
|
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/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# `dorian`
|
2
|
+
|
3
|
+
A collection of gems
|
4
|
+
|
5
|
+
- [dorian-all](https://github.com/dorianmariefr/all)
|
6
|
+
- [dorian-dot](https://github.com/dorianmariefr/dot)
|
7
|
+
- [dorian-each](https://github.com/dorianmariefr/each)
|
8
|
+
- [dorian-git-tree](https://github.com/dorianmariefr/git-tree)
|
9
|
+
- [dorian-pw](https://github.com/dorianmariefr/pw)
|
10
|
+
- [dorian-replace](https://github.com/dorianmariefr/replace)
|
11
|
+
- [dorian-shuffle](https://github.com/dorianmariefr/shuffle)
|
12
|
+
- [dorian-sort-json](https://github.com/dorianmariefr/sort-json)
|
13
|
+
- [dorian-sort-yaml](https://github.com/dorianmariefr/sort-yaml)
|
14
|
+
- [dorian-tailwind](https://github.com/dorianmariefr/tailwind)
|
15
|
+
- [dorian-times](https://github.com/dorianmariefr/times)
|
16
|
+
- [dorian-to_struct](https://github.com/dorianmariefr/to_struct)
|
17
|
+
- [dorian-yaml-compare](https://github.com/dorianmariefr/yaml-compare)
|
18
|
+
- [dorian-yaml-read-write](https://github.com/dorianmariefr/yaml-read-write)
|
19
|
+
|
20
|
+
### Install
|
21
|
+
|
22
|
+
```bash
|
23
|
+
gem install dorian
|
24
|
+
```
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.0
|
data/bin/bundle
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'bundle' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "rubygems"
|
12
|
+
|
13
|
+
m =
|
14
|
+
Module.new do
|
15
|
+
module_function
|
16
|
+
|
17
|
+
def invoked_as_script?
|
18
|
+
File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__)
|
19
|
+
end
|
20
|
+
|
21
|
+
def env_var_version
|
22
|
+
ENV.fetch("BUNDLER_VERSION", nil)
|
23
|
+
end
|
24
|
+
|
25
|
+
def cli_arg_version
|
26
|
+
return unless invoked_as_script? # don't want to hijack other binstubs
|
27
|
+
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
|
28
|
+
|
29
|
+
bundler_version = nil
|
30
|
+
update_index = nil
|
31
|
+
ARGV.each_with_index do |a, i|
|
32
|
+
if update_index && update_index.succ == i &&
|
33
|
+
a.match?(Gem::Version::ANCHORED_VERSION_PATTERN)
|
34
|
+
bundler_version = a
|
35
|
+
end
|
36
|
+
unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/o
|
37
|
+
next
|
38
|
+
end
|
39
|
+
|
40
|
+
bundler_version = Regexp.last_match(1)
|
41
|
+
update_index = i
|
42
|
+
end
|
43
|
+
bundler_version
|
44
|
+
end
|
45
|
+
|
46
|
+
def gemfile
|
47
|
+
gemfile = ENV.fetch("BUNDLE_GEMFILE", nil)
|
48
|
+
return gemfile if gemfile && !gemfile.empty?
|
49
|
+
|
50
|
+
File.expand_path("../Gemfile", __dir__)
|
51
|
+
end
|
52
|
+
|
53
|
+
def lockfile
|
54
|
+
lockfile =
|
55
|
+
case File.basename(gemfile)
|
56
|
+
when "gems.rb"
|
57
|
+
gemfile.sub(/\.rb$/, ".locked")
|
58
|
+
else
|
59
|
+
"#{gemfile}.lock"
|
60
|
+
end
|
61
|
+
File.expand_path(lockfile)
|
62
|
+
end
|
63
|
+
|
64
|
+
def lockfile_version
|
65
|
+
return unless File.file?(lockfile)
|
66
|
+
|
67
|
+
lockfile_contents = File.read(lockfile)
|
68
|
+
unless lockfile_contents =~
|
69
|
+
/\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/o
|
70
|
+
return
|
71
|
+
end
|
72
|
+
|
73
|
+
Regexp.last_match(1)
|
74
|
+
end
|
75
|
+
|
76
|
+
def bundler_requirement
|
77
|
+
@bundler_requirement ||=
|
78
|
+
env_var_version || cli_arg_version ||
|
79
|
+
bundler_requirement_for(lockfile_version)
|
80
|
+
end
|
81
|
+
|
82
|
+
def bundler_requirement_for(version)
|
83
|
+
return "#{Gem::Requirement.default}.a" unless version
|
84
|
+
|
85
|
+
bundler_gem_version = Gem::Version.new(version)
|
86
|
+
|
87
|
+
bundler_gem_version.approximate_recommendation
|
88
|
+
end
|
89
|
+
|
90
|
+
def load_bundler!
|
91
|
+
ENV["BUNDLE_GEMFILE"] ||= gemfile
|
92
|
+
|
93
|
+
activate_bundler
|
94
|
+
end
|
95
|
+
|
96
|
+
def activate_bundler
|
97
|
+
gem_error =
|
98
|
+
activation_error_handling { gem "bundler", bundler_requirement }
|
99
|
+
return if gem_error.nil?
|
100
|
+
|
101
|
+
require_error = activation_error_handling { require "bundler/version" }
|
102
|
+
if require_error.nil? &&
|
103
|
+
Gem::Requirement.new(bundler_requirement).satisfied_by?(
|
104
|
+
Gem::Version.new(Bundler::VERSION)
|
105
|
+
)
|
106
|
+
return
|
107
|
+
end
|
108
|
+
|
109
|
+
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
|
110
|
+
exit 42
|
111
|
+
end
|
112
|
+
|
113
|
+
def activation_error_handling
|
114
|
+
yield
|
115
|
+
nil
|
116
|
+
rescue StandardError, LoadError => e
|
117
|
+
e
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
m.load_bundler!
|
122
|
+
|
123
|
+
load Gem.bin_path("bundler", "bundle") if m.invoked_as_script?
|
data/bin/bundle-audit
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'bundle-audit' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300).include?(
|
17
|
+
"This file was generated by Bundler"
|
18
|
+
)
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort(
|
22
|
+
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
23
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
require "rubygems"
|
29
|
+
require "bundler/setup"
|
30
|
+
|
31
|
+
load Gem.bin_path("bundler-audit", "bundle-audit")
|
data/bin/bundler-audit
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'bundler-audit' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300).include?(
|
17
|
+
"This file was generated by Bundler"
|
18
|
+
)
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort(
|
22
|
+
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
23
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
require "rubygems"
|
29
|
+
require "bundler/setup"
|
30
|
+
|
31
|
+
load Gem.bin_path("bundler-audit", "bundler-audit")
|