thot 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8633ef1b1cb491681966a9cb0439d1e3d8bb69766291623757b0f10fb13ed27
4
- data.tar.gz: b7f7297728de329b92fcb064aeeff5d92249b29d9aeb5c430a0a4cf767a4829c
3
+ metadata.gz: f9565b32030a364b5d2fc2bbe9e56403446a126a9193c702738be73e2486204e
4
+ data.tar.gz: 42f9f3975fb28b3e4f9f7b90576a00bbb24de6fd3aac53ad5277e6bdf9e2581c
5
5
  SHA512:
6
- metadata.gz: cda6359c5666cf77c09bd903217a98120ed994a1bc3993409f4decc4781751b5fee290fcb8eb02afdc5cce2fe0de0cc7352be4364338640d59a920ac17ff4e32
7
- data.tar.gz: 256758ca6758aedfdf49dbd70ac73e1b48933b6f037a89b974ec939fae91820c61676476d698633e1a34bc3ed500f3d5dea6ba864c3b2daa824f35723102d429
6
+ metadata.gz: ebe6bf9305ff7cbb190245081c7e2145d3af68e24cc1f417f777b98e26e2c2e8f20be9ee3e86c74be9fcefb505432e2dde3c1b422249e1ccb12ea348b3f3d74e
7
+ data.tar.gz: 48bfe64fd52253456440eae59f6e39fffd13ebbf1ae005a5eee62a10e68646c1c95c9799b53a1dcce752d68e91340a68ea81b7cda03ebee3ba67ba3c6568f3fe
@@ -0,0 +1,8 @@
1
+ generate
2
+ read_evt_file
3
+ rule
4
+ value
5
+ method_missing
6
+ template_file
7
+ token
8
+ string
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
+
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Pierre Alphonse
3
+ Copyright (c) 2022 Romain GEORGES
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -48,6 +48,10 @@ It could generate an output.
48
48
 
49
49
  From versions upper than 1.2.0, Thot support token syntax like **{{TOKEN_NAME}}**
50
50
 
51
+ ### Global synoptic
52
+
53
+ ![synoptic](assets/images/description_thot.png)
54
+
51
55
  ### Simple usecase
52
56
 
53
57
  - with data : <pre>{name: 'Romain'}</pre>
@@ -106,9 +110,19 @@ Thot is a library for you usage AND a CLI tool.
106
110
 
107
111
  ### Ruby Library usage
108
112
 
113
+
114
+ #### Thot::Template
115
+
116
+
117
+ ##### Synoptic
118
+
119
+ ![synoptic](assets/images/description_thot_template.png)
120
+
109
121
  you could use Thot in your Ruby code :
110
122
 
111
- #### Strict mode and accessor input
123
+ ##### Examples
124
+
125
+ ###### Strict mode and accessor input
112
126
 
113
127
  Note : Considering 'template.txt' with : 'Hello **%%NAME%%** !!'
114
128
  Note : in strict mode if the Tokens in template file don't match exactly the given token list, Thot raise an exception.
@@ -126,7 +140,7 @@ return
126
140
  Hello Romain !!
127
141
 
128
142
 
129
- #### Strict mode false with accesor input and template_content
143
+ ###### Strict mode false with accesor input and template_content
130
144
 
131
145
  ```ruby
132
146
  require 'thot'
@@ -140,7 +154,7 @@ return
140
154
 
141
155
  Hello Romain !!
142
156
 
143
- #### Strict mode false with map input and template_content
157
+ ###### Strict mode false with map input and template_content
144
158
 
145
159
  ```ruby
146
160
  require 'thot'
@@ -154,7 +168,116 @@ return
154
168
 
155
169
  Hello Romain !!
156
170
 
171
+ #### Thot::Varfiles
172
+
173
+
174
+ ##### Synoptic
175
+
176
+ ![synoptic](assets/images/description_thot_varfiles.png)
177
+
178
+ ##### Example
179
+
180
+ ###### File format
181
+
182
+ **Note** : format support is the same for .thot.env files AND given files.
183
+
184
+ Varfiles support both INI and flat format, like :
185
+
186
+ for flat :
187
+
188
+ ```
189
+ key=value
190
+ key = value
191
+ key = value
192
+ # comments and other lines are ignored
193
+ ```
194
+
195
+ for INI :
196
+
197
+ ```
198
+ key=value
199
+ key = value
200
+ key = value
201
+ # comments and other lines are ignored
202
+
203
+ [EVT]
204
+ key=value
205
+ key = value
206
+ key = value
207
+ # comments and other lines are ignored
208
+ ```
209
+
210
+ **Note** : section are overrides of global values
211
+
212
+ ###### Sample files for examples
213
+
214
+ ./.thot.env file :
215
+
216
+ ```
217
+ key=first value
218
+ key2=first value
219
+ ```
220
+
221
+
222
+ Given file : "/path/to/myfile.ini"
223
+
224
+ ```
225
+ key=value
226
+
227
+ [development]
228
+ key=dev value
229
+
230
+ [staging]
231
+ key=staging value
232
+
233
+ ```
234
+ ###### For :developement evt, without changing dotfiles preloaded.
235
+
236
+
237
+
238
+ ```ruby
239
+ require 'thot'
240
+ include Thot
241
+ vars = Varfiles::new varfile: "/path/to/myfile.ini"
242
+ pp vars.data
243
+ ```
244
+
245
+ output
246
+
247
+ {key: "dev value", key2: "first value"}
248
+
249
+ ###### For :staging evt, without changing dotfiles preloaded.
250
+
251
+
252
+
253
+ ```ruby
254
+ require 'thot'
255
+ include Thot
256
+ vars = Varfiles::new varfile: "/path/to/myfile.ini", environment: :staging
257
+ pp vars.data
258
+ ```
259
+
260
+ output
261
+
262
+ {key: "staging value", key2: "first value"}
263
+
264
+
265
+ ###### For :staging evt, changing dotfiles.
266
+
267
+ **Note** : default dotfiles priority is : ["~/.thot.env","./.thot.env"]
268
+
269
+
270
+
271
+ ```ruby
272
+ require 'thot'
273
+ include Thot
274
+ vars = Varfiles::new varfile: "/path/to/myfile.ini", environment: :staging, dotfiles: []
275
+ pp vars.data
276
+ ```
277
+
278
+ output
157
279
 
280
+ {key: "staging value"}
158
281
 
159
282
  ### CLI usage
160
283
 
data/Rakefile CHANGED
@@ -32,3 +32,18 @@ namespace :yardoc do
32
32
  end
33
33
  end
34
34
  task :clobber => "yardoc:clobber"
35
+
36
+ desc "Run CVE security audit over bundle"
37
+ task :audit do
38
+ system('bundle audit')
39
+ end
40
+
41
+ desc "Run dead line of code detection"
42
+ task :debride do
43
+ system('debride -w .debride_whitelist .')
44
+ end
45
+
46
+ desc "Run SBOM CycloneDX Xml format file"
47
+ task :sbom do
48
+ system('cyclonedx-ruby -p .')
49
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.2
Binary file
data/bom.xml ADDED
@@ -0,0 +1,839 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bom xmlns="http://cyclonedx.org/schema/bom/1.1" version="1" serialNumber="urn:uuid:740c49fc-e467-4406-8065-09666db68901">
3
+ <components>
4
+ <component type="library">
5
+ <name>ast</name>
6
+ <version>2.4.2</version>
7
+ <description>A library for working with Abstract Syntax Trees.</description>
8
+ <hashes>
9
+ <hash alg="SHA-256">1e280232e6a33754cde542bc5ef85520b74db2aac73ec14acef453784447cc12</hash>
10
+ </hashes>
11
+ <licenses>
12
+ <license>
13
+ <id>MIT</id>
14
+ </license>
15
+ </licenses>
16
+ <purl>pkg:gem/ast@2.4.2</purl>
17
+ </component>
18
+ <component type="library">
19
+ <name>bundle-audit</name>
20
+ <version>0.1.0</version>
21
+ <description>Helper gem to require bundler-audit</description>
22
+ <hashes>
23
+ <hash alg="SHA-256">c8f085920cde681ba837be69c87b08598c1a7f46f70877f1b3a1711be91a7a43</hash>
24
+ </hashes>
25
+ <licenses>
26
+ <license>
27
+ <id>MIT</id>
28
+ </license>
29
+ </licenses>
30
+ <purl>pkg:gem/bundle-audit@0.1.0</purl>
31
+ </component>
32
+ <component type="library">
33
+ <name>bundler-audit</name>
34
+ <version>0.9.1</version>
35
+ <description>Patch-level verification for Bundler</description>
36
+ <hashes>
37
+ <hash alg="SHA-256">bdc716fc21cd8652a6507b137e5bc51f5e0e4f6f106a114ab004c89d0200bd3d</hash>
38
+ </hashes>
39
+ <licenses>
40
+ <license>
41
+ <id>GPL-3.0+</id>
42
+ </license>
43
+ </licenses>
44
+ <purl>pkg:gem/bundler-audit@0.9.1</purl>
45
+ </component>
46
+ <component type="library">
47
+ <name>carioca</name>
48
+ <version>2.1.3</version>
49
+ <description>Carioca : Container And Registry with Inversion Of Control for your Applications</description>
50
+ <hashes>
51
+ <hash alg="SHA-256">f79a8e5609be2a73a5ee55aa6876a3982e35dbe0239fedbebce790532f567cb9</hash>
52
+ </hashes>
53
+ <licenses>
54
+ <license>
55
+ <id>BSD-3-Clause</id>
56
+ </license>
57
+ </licenses>
58
+ <purl>pkg:gem/carioca@2.1.3</purl>
59
+ </component>
60
+ <component type="library">
61
+ <name>code_statistics</name>
62
+ <version>0.2.13</version>
63
+ <description>Making a gem of the normal rails rake stats method, to make it more robust and work on non rails projects</description>
64
+ <hashes>
65
+ <hash alg="SHA-256">23556d2d44f89526722f3b6de8f2baa2aa23190203fa6ed1dd04d6c597be2d1f</hash>
66
+ </hashes>
67
+ <purl>pkg:gem/code_statistics@0.2.13</purl>
68
+ </component>
69
+ <component type="library">
70
+ <name>concurrent-ruby</name>
71
+ <version>1.2.2</version>
72
+ <description>Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.</description>
73
+ <hashes>
74
+ <hash alg="SHA-256">3879119b8b75e3b62616acc256c64a134d0b0a7a9a3fcba5a233025bcde22c4f</hash>
75
+ </hashes>
76
+ <licenses>
77
+ <license>
78
+ <id>MIT</id>
79
+ </license>
80
+ </licenses>
81
+ <purl>pkg:gem/concurrent-ruby@1.2.2</purl>
82
+ </component>
83
+ <component type="library">
84
+ <name>cyclonedx-ruby</name>
85
+ <version>1.1.0</version>
86
+ <description>CycloneDX software bill-of-material (SBoM) generation utility</description>
87
+ <hashes>
88
+ <hash alg="SHA-256">a6d2ee6824fbd881f7a66092ecbe152422fd068e822709e9fa2648656b006900</hash>
89
+ </hashes>
90
+ <licenses>
91
+ <license>
92
+ <id>Apache-2.0</id>
93
+ </license>
94
+ </licenses>
95
+ <purl>pkg:gem/cyclonedx-ruby@1.1.0</purl>
96
+ </component>
97
+ <component type="library">
98
+ <name>debride</name>
99
+ <version>1.12.0</version>
100
+ <description>Analyze code for potentially uncalled / dead methods, now with auto-removal.</description>
101
+ <hashes>
102
+ <hash alg="SHA-256">556018b508d95c5045dbfe599420e36fbea966be1053762a7369edda972f0927</hash>
103
+ </hashes>
104
+ <licenses>
105
+ <license>
106
+ <id>MIT</id>
107
+ </license>
108
+ </licenses>
109
+ <purl>pkg:gem/debride@1.12.0</purl>
110
+ </component>
111
+ <component type="library">
112
+ <name>deep_merge</name>
113
+ <version>1.2.2</version>
114
+ <description>Merge Deeply Nested Hashes</description>
115
+ <hashes>
116
+ <hash alg="SHA-256">83ced3a3d7f95f67de958d2ce41b1874e83c8d94fe2ddbff50c8b4b82323563a</hash>
117
+ </hashes>
118
+ <licenses>
119
+ <license>
120
+ <id>MIT</id>
121
+ </license>
122
+ </licenses>
123
+ <purl>pkg:gem/deep_merge@1.2.2</purl>
124
+ </component>
125
+ <component type="library">
126
+ <name>diff-lcs</name>
127
+ <version>1.5.0</version>
128
+ <description>Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm</description>
129
+ <hashes>
130
+ <hash alg="SHA-256">49b934001c8c6aedb37ba19daec5c634da27b318a7a3c654ae979d6ba1929b67</hash>
131
+ </hashes>
132
+ <licenses>
133
+ <license>
134
+ <id>MIT</id>
135
+ </license>
136
+ </licenses>
137
+ <purl>pkg:gem/diff-lcs@1.5.0</purl>
138
+ </component>
139
+ <component type="library">
140
+ <name>domain_name</name>
141
+ <version>0.5.20190701</version>
142
+ <description>Domain Name manipulation library for Ruby</description>
143
+ <hashes>
144
+ <hash alg="SHA-256">000a600454cb4a344769b2f10b531765ea7bd3a304fe47ed12e5ca1eab969851</hash>
145
+ </hashes>
146
+ <licenses>
147
+ <license>
148
+ <id>BSD-2-Clause</id>
149
+ </license>
150
+ </licenses>
151
+ <purl>pkg:gem/domain_name@0.5.20190701</purl>
152
+ </component>
153
+ <component type="library">
154
+ <name>http-accept</name>
155
+ <version>1.7.0</version>
156
+ <description>Parse Accept and Accept-Language HTTP headers.</description>
157
+ <hashes>
158
+ <hash alg="SHA-256">c626860682bfbb3b46462f8c39cd470fd7b0584f61b3cc9df5b2e9eb9972a126</hash>
159
+ </hashes>
160
+ <purl>pkg:gem/http-accept@1.7.0</purl>
161
+ </component>
162
+ <component type="library">
163
+ <name>http-cookie</name>
164
+ <version>1.0.5</version>
165
+ <description>A Ruby library to handle HTTP Cookies based on RFC 6265</description>
166
+ <hashes>
167
+ <hash alg="SHA-256">73756d46c7dbdc7023deecdb8a171348ea95a1b99810b31cfe8b4fb4e9a6318f</hash>
168
+ </hashes>
169
+ <licenses>
170
+ <license>
171
+ <id>MIT</id>
172
+ </license>
173
+ </licenses>
174
+ <purl>pkg:gem/http-cookie@1.0.5</purl>
175
+ </component>
176
+ <component type="library">
177
+ <name>i18n</name>
178
+ <version>1.14.1</version>
179
+ <description>New wave Internationalization support for Ruby</description>
180
+ <hashes>
181
+ <hash alg="SHA-256">9d03698903547c060928e70a9bc8b6b87fda674453cda918fc7ab80235ae4a61</hash>
182
+ </hashes>
183
+ <licenses>
184
+ <license>
185
+ <id>MIT</id>
186
+ </license>
187
+ </licenses>
188
+ <purl>pkg:gem/i18n@1.14.1</purl>
189
+ </component>
190
+ <component type="library">
191
+ <name>inifile</name>
192
+ <version>3.0.0</version>
193
+ <description>INI file reader and writer</description>
194
+ <hashes>
195
+ <hash alg="SHA-256">b103eb3655ec93cc626cf2de00950e91f7e69b8398842968e17e1815cfacbfb0</hash>
196
+ </hashes>
197
+ <purl>pkg:gem/inifile@3.0.0</purl>
198
+ </component>
199
+ <component type="library">
200
+ <name>json</name>
201
+ <version>2.6.3</version>
202
+ <description>JSON Implementation for Ruby</description>
203
+ <hashes>
204
+ <hash alg="SHA-256">ea8c47427a2c876121b9a0ab53043ca390013a76374330eabd923bd81914e563</hash>
205
+ </hashes>
206
+ <licenses>
207
+ <license>
208
+ <id>Ruby</id>
209
+ </license>
210
+ </licenses>
211
+ <purl>pkg:gem/json@2.6.3</purl>
212
+ </component>
213
+ <component type="library">
214
+ <name>language_server-protocol</name>
215
+ <version>3.17.0.3</version>
216
+ <description>A Language Server Protocol SDK</description>
217
+ <hashes>
218
+ <hash alg="SHA-256">3d5c58c02f44a20d972957a9febe386d7e7468ab3900ce6bd2b563dd910c6b3f</hash>
219
+ </hashes>
220
+ <licenses>
221
+ <license>
222
+ <id>MIT</id>
223
+ </license>
224
+ </licenses>
225
+ <purl>pkg:gem/language_server-protocol@3.17.0.3</purl>
226
+ </component>
227
+ <component type="library">
228
+ <name>locale</name>
229
+ <version>2.1.3</version>
230
+ <description>Ruby-Locale is the pure ruby library which provides basic APIs for localization.</description>
231
+ <hashes>
232
+ <hash alg="SHA-256">b6ddee011e157817cb98e521b3ce7cb626424d5882f1e844aafdee3e8b212725</hash>
233
+ </hashes>
234
+ <licenses>
235
+ <license>
236
+ <id>Ruby</id>
237
+ </license>
238
+ </licenses>
239
+ <purl>pkg:gem/locale@2.1.3</purl>
240
+ </component>
241
+ <component type="library">
242
+ <name>mime-types</name>
243
+ <version>3.4.1</version>
244
+ <description>The mime-types library provides a library and registry for information about MIME content type definitions</description>
245
+ <hashes>
246
+ <hash alg="SHA-256">6bcf8b0e656b6ae9977bdc1351ef211d0383252d2f759a59ef4bcf254542fc46</hash>
247
+ </hashes>
248
+ <licenses>
249
+ <license>
250
+ <id>MIT</id>
251
+ </license>
252
+ </licenses>
253
+ <purl>pkg:gem/mime-types@3.4.1</purl>
254
+ </component>
255
+ <component type="library">
256
+ <name>mime-types-data</name>
257
+ <version>3.2023.0218.1</version>
258
+ <description>mime-types-data provides a registry for information about MIME media type definitions</description>
259
+ <hashes>
260
+ <hash alg="SHA-256">e90f027e54346bbbf7bd993a97e9cb7270cd4fe41c535ef84bf5d1aefe1e7ede</hash>
261
+ </hashes>
262
+ <licenses>
263
+ <license>
264
+ <id>MIT</id>
265
+ </license>
266
+ </licenses>
267
+ <purl>pkg:gem/mime-types-data@3.2023.0218.1</purl>
268
+ </component>
269
+ <component type="library">
270
+ <name>mini_portile2</name>
271
+ <version>2.8.2</version>
272
+ <description>Simplistic port-like solution for developers</description>
273
+ <hashes>
274
+ <hash alg="SHA-256">46b2d244cc6ff01a89bf61274690c09fdbdca47a84ae9eac39039e81231aee7c</hash>
275
+ </hashes>
276
+ <licenses>
277
+ <license>
278
+ <id>MIT</id>
279
+ </license>
280
+ </licenses>
281
+ <purl>pkg:gem/mini_portile2@2.8.2</purl>
282
+ </component>
283
+ <component type="library">
284
+ <name>netrc</name>
285
+ <version>0.11.0</version>
286
+ <description>Library to read and write netrc files.</description>
287
+ <hashes>
288
+ <hash alg="SHA-256">de1ce33da8c99ab1d97871726cba75151113f117146becbe45aa85cb3dabee3f</hash>
289
+ </hashes>
290
+ <licenses>
291
+ <license>
292
+ <id>MIT</id>
293
+ </license>
294
+ </licenses>
295
+ <purl>pkg:gem/netrc@0.11.0</purl>
296
+ </component>
297
+ <component type="library">
298
+ <name>nokogiri</name>
299
+ <version>1.15.2</version>
300
+ <description>Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.</description>
301
+ <hashes>
302
+ <hash alg="SHA-256">20dc800b8fbe4c4f4b5b164e6aa3ab82a371bcb27eb685c166961c34dd8a22d7</hash>
303
+ </hashes>
304
+ <licenses>
305
+ <license>
306
+ <id>MIT</id>
307
+ </license>
308
+ </licenses>
309
+ <purl>pkg:gem/nokogiri@1.15.2</purl>
310
+ </component>
311
+ <component type="library">
312
+ <name>ostruct</name>
313
+ <version>0.5.5</version>
314
+ <description>Class to build custom data structures, similar to a Hash.</description>
315
+ <hashes>
316
+ <hash alg="SHA-256">bc73d0e10f85ca2afdddc7eb79b3132bee622e2281db4e6e033a4cbf7d845efb</hash>
317
+ </hashes>
318
+ <licenses>
319
+ <license>
320
+ <id>Ruby</id>
321
+ </license>
322
+ </licenses>
323
+ <purl>pkg:gem/ostruct@0.5.5</purl>
324
+ </component>
325
+ <component type="library">
326
+ <name>parallel</name>
327
+ <version>1.23.0</version>
328
+ <description>Run any kind of code in parallel processes</description>
329
+ <hashes>
330
+ <hash alg="SHA-256">27154713ad6ef32fa3dcb7788a721d6c07bca77e72443b4c6080a14145288c49</hash>
331
+ </hashes>
332
+ <licenses>
333
+ <license>
334
+ <id>MIT</id>
335
+ </license>
336
+ </licenses>
337
+ <purl>pkg:gem/parallel@1.23.0</purl>
338
+ </component>
339
+ <component type="library">
340
+ <name>parser</name>
341
+ <version>3.2.2.3</version>
342
+ <description>A Ruby parser written in pure Ruby.</description>
343
+ <hashes>
344
+ <hash alg="SHA-256">10685f358ab36ffea2252dc4952e5b8fad3a297a8152a85f59adc982747b91eb</hash>
345
+ </hashes>
346
+ <licenses>
347
+ <license>
348
+ <id>MIT</id>
349
+ </license>
350
+ </licenses>
351
+ <purl>pkg:gem/parser@3.2.2.3</purl>
352
+ </component>
353
+ <component type="library">
354
+ <name>pastel</name>
355
+ <version>0.8.0</version>
356
+ <description>Terminal strings styling with intuitive and clean API.</description>
357
+ <hashes>
358
+ <hash alg="SHA-256">481da9fb7d2f6e6b1a08faf11fa10363172dc40fd47848f096ae21209f805a75</hash>
359
+ </hashes>
360
+ <licenses>
361
+ <license>
362
+ <id>MIT</id>
363
+ </license>
364
+ </licenses>
365
+ <purl>pkg:gem/pastel@0.8.0</purl>
366
+ </component>
367
+ <component type="library">
368
+ <name>path_expander</name>
369
+ <version>1.1.1</version>
370
+ <description>PathExpander helps pre-process command-line arguments expanding directories into their constituent files</description>
371
+ <hashes>
372
+ <hash alg="SHA-256">85ce6e0375bbf83e090a02f0d45dfc0b4ed240c0e5c65f1e5dfdc11f5503231f</hash>
373
+ </hashes>
374
+ <licenses>
375
+ <license>
376
+ <id>MIT</id>
377
+ </license>
378
+ </licenses>
379
+ <purl>pkg:gem/path_expander@1.1.1</purl>
380
+ </component>
381
+ <component type="library">
382
+ <name>ps-ruby</name>
383
+ <version>0.0.4</version>
384
+ <description>PS-Ruby is a simple ps wrapper with ruby</description>
385
+ <hashes>
386
+ <hash alg="SHA-256">3798226a01e5b4066a880e8911cac475bc69f0010076c9151e6841131cb23b12</hash>
387
+ </hashes>
388
+ <licenses>
389
+ <license>
390
+ <id>MIT</id>
391
+ </license>
392
+ </licenses>
393
+ <purl>pkg:gem/ps-ruby@0.0.4</purl>
394
+ </component>
395
+ <component type="library">
396
+ <name>racc</name>
397
+ <version>1.7.1</version>
398
+ <description>Racc is a LALR(1) parser generator</description>
399
+ <hashes>
400
+ <hash alg="SHA-256">eaa5cd10ace36a5c5a139e699875a45fa1dfd7d5df8432ffd6243962c6b24ef0</hash>
401
+ </hashes>
402
+ <licenses>
403
+ <license>
404
+ <id>Ruby</id>
405
+ </license>
406
+ </licenses>
407
+ <purl>pkg:gem/racc@1.7.1</purl>
408
+ </component>
409
+ <component type="library">
410
+ <name>rainbow</name>
411
+ <version>3.1.1</version>
412
+ <description>Colorize printed text on ANSI terminals</description>
413
+ <hashes>
414
+ <hash alg="SHA-256">039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a</hash>
415
+ </hashes>
416
+ <licenses>
417
+ <license>
418
+ <id>MIT</id>
419
+ </license>
420
+ </licenses>
421
+ <purl>pkg:gem/rainbow@3.1.1</purl>
422
+ </component>
423
+ <component type="library">
424
+ <name>rake</name>
425
+ <version>13.0.6</version>
426
+ <description>Rake is a Make-like program implemented in Ruby</description>
427
+ <hashes>
428
+ <hash alg="SHA-256">5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097</hash>
429
+ </hashes>
430
+ <licenses>
431
+ <license>
432
+ <id>MIT</id>
433
+ </license>
434
+ </licenses>
435
+ <purl>pkg:gem/rake@13.0.6</purl>
436
+ </component>
437
+ <component type="library">
438
+ <name>regexp_parser</name>
439
+ <version>2.8.1</version>
440
+ <description>Scanner, lexer, parser for ruby's regular expressions</description>
441
+ <hashes>
442
+ <hash alg="SHA-256">83f63e2bfae3db38f988c66f114485140ff1791321fd827480bc75aa42cacb8c</hash>
443
+ </hashes>
444
+ <licenses>
445
+ <license>
446
+ <id>MIT</id>
447
+ </license>
448
+ </licenses>
449
+ <purl>pkg:gem/regexp_parser@2.8.1</purl>
450
+ </component>
451
+ <component type="library">
452
+ <name>rest-client</name>
453
+ <version>2.1.0</version>
454
+ <description>Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions.</description>
455
+ <hashes>
456
+ <hash alg="SHA-256">a35a3bb8d16ca39d110a946a2c805267f98ce07a0ae890e4512a45eadea47a6e</hash>
457
+ </hashes>
458
+ <licenses>
459
+ <license>
460
+ <id>MIT</id>
461
+ </license>
462
+ </licenses>
463
+ <purl>pkg:gem/rest-client@2.1.0</purl>
464
+ </component>
465
+ <component type="library">
466
+ <name>rexml</name>
467
+ <version>3.2.5</version>
468
+ <description>An XML toolkit for Ruby</description>
469
+ <hashes>
470
+ <hash alg="SHA-256">a33c3bf95fda7983ec7f05054f3a985af41dbc25a0339843bd2479e93cabb123</hash>
471
+ </hashes>
472
+ <licenses>
473
+ <license>
474
+ <id>BSD-2-Clause</id>
475
+ </license>
476
+ </licenses>
477
+ <purl>pkg:gem/rexml@3.2.5</purl>
478
+ </component>
479
+ <component type="library">
480
+ <name>roodi</name>
481
+ <version>5.0.0</version>
482
+ <description>Roodi stands for Ruby Object Oriented Design Inferometer</description>
483
+ <hashes>
484
+ <hash alg="SHA-256">cfaa27d1e938bdad4562043e41674eec85f4ced1179c2f8ce4d79943caf069ac</hash>
485
+ </hashes>
486
+ <licenses>
487
+ <license>
488
+ <id>MIT</id>
489
+ </license>
490
+ </licenses>
491
+ <purl>pkg:gem/roodi@5.0.0</purl>
492
+ </component>
493
+ <component type="library">
494
+ <name>rspec</name>
495
+ <version>3.12.0</version>
496
+ <description>rspec-3.12.0</description>
497
+ <hashes>
498
+ <hash alg="SHA-256">ccc41799a43509dc0be84070e3f0410ac95cbd480ae7b6c245543eb64162399c</hash>
499
+ </hashes>
500
+ <licenses>
501
+ <license>
502
+ <id>MIT</id>
503
+ </license>
504
+ </licenses>
505
+ <purl>pkg:gem/rspec@3.12.0</purl>
506
+ </component>
507
+ <component type="library">
508
+ <name>rspec-core</name>
509
+ <version>3.12.2</version>
510
+ <description>rspec-core-3.12.2</description>
511
+ <hashes>
512
+ <hash alg="SHA-256">155b54480f28e2b2813185077fe435c2d663031616360ed3b179a9d6a55d2551</hash>
513
+ </hashes>
514
+ <licenses>
515
+ <license>
516
+ <id>MIT</id>
517
+ </license>
518
+ </licenses>
519
+ <purl>pkg:gem/rspec-core@3.12.2</purl>
520
+ </component>
521
+ <component type="library">
522
+ <name>rspec-expectations</name>
523
+ <version>3.12.3</version>
524
+ <description>rspec-expectations-3.12.3</description>
525
+ <hashes>
526
+ <hash alg="SHA-256">093d18e2e7e0a2c619ef8f7343d442fc6c0793fb7897d56f16f26c8a9d244416</hash>
527
+ </hashes>
528
+ <licenses>
529
+ <license>
530
+ <id>MIT</id>
531
+ </license>
532
+ </licenses>
533
+ <purl>pkg:gem/rspec-expectations@3.12.3</purl>
534
+ </component>
535
+ <component type="library">
536
+ <name>rspec-mocks</name>
537
+ <version>3.12.5</version>
538
+ <description>rspec-mocks-3.12.5</description>
539
+ <hashes>
540
+ <hash alg="SHA-256">82030d2bfa1e4eef0a2ee36af5d3d224672598912a3f3384f27cbba9fa09d5c1</hash>
541
+ </hashes>
542
+ <licenses>
543
+ <license>
544
+ <id>MIT</id>
545
+ </license>
546
+ </licenses>
547
+ <purl>pkg:gem/rspec-mocks@3.12.5</purl>
548
+ </component>
549
+ <component type="library">
550
+ <name>rspec-support</name>
551
+ <version>3.12.1</version>
552
+ <description>rspec-support-3.12.1</description>
553
+ <hashes>
554
+ <hash alg="SHA-256">f969b85d0068ff97bc47c9d6fc2bca9706d73406f2b4e5d3b346443d8734c8cf</hash>
555
+ </hashes>
556
+ <licenses>
557
+ <license>
558
+ <id>MIT</id>
559
+ </license>
560
+ </licenses>
561
+ <purl>pkg:gem/rspec-support@3.12.1</purl>
562
+ </component>
563
+ <component type="library">
564
+ <name>rubocop</name>
565
+ <version>1.54.1</version>
566
+ <description>Automatic Ruby code style checking tool.</description>
567
+ <hashes>
568
+ <hash alg="SHA-256">e4bc497a45928beb95cf5d2688a4bfe8258b4b778bf41921d6118402da5274ee</hash>
569
+ </hashes>
570
+ <licenses>
571
+ <license>
572
+ <id>MIT</id>
573
+ </license>
574
+ </licenses>
575
+ <purl>pkg:gem/rubocop@1.54.1</purl>
576
+ </component>
577
+ <component type="library">
578
+ <name>rubocop-ast</name>
579
+ <version>1.29.0</version>
580
+ <description>RuboCop tools to deal with Ruby code AST.</description>
581
+ <hashes>
582
+ <hash alg="SHA-256">d1da2ab279a074baefc81758ac430c5768a8da8c7438dd4e5819ce5984d00ba1</hash>
583
+ </hashes>
584
+ <licenses>
585
+ <license>
586
+ <id>MIT</id>
587
+ </license>
588
+ </licenses>
589
+ <purl>pkg:gem/rubocop-ast@1.29.0</purl>
590
+ </component>
591
+ <component type="library">
592
+ <name>ruby-progressbar</name>
593
+ <version>1.13.0</version>
594
+ <description>Ruby/ProgressBar is a flexible text progress bar library for Ruby.</description>
595
+ <hashes>
596
+ <hash alg="SHA-256">80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33</hash>
597
+ </hashes>
598
+ <licenses>
599
+ <license>
600
+ <id>MIT</id>
601
+ </license>
602
+ </licenses>
603
+ <purl>pkg:gem/ruby-progressbar@1.13.0</purl>
604
+ </component>
605
+ <component type="library">
606
+ <name>ruby_parser</name>
607
+ <version>3.20.2</version>
608
+ <description>ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which does by default use a C extension)</description>
609
+ <hashes>
610
+ <hash alg="SHA-256">7f34f366244a0f6bd9915b647f77f221435fe246982b897096939362900d0561</hash>
611
+ </hashes>
612
+ <licenses>
613
+ <license>
614
+ <id>MIT</id>
615
+ </license>
616
+ </licenses>
617
+ <purl>pkg:gem/ruby_parser@3.20.2</purl>
618
+ </component>
619
+ <component type="library">
620
+ <name>sexp_processor</name>
621
+ <version>4.17.0</version>
622
+ <description>sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it</description>
623
+ <hashes>
624
+ <hash alg="SHA-256">4daa4874ce1838cd801c65e66ed5d4f140024404a3de7482c36d4ef2604dff6f</hash>
625
+ </hashes>
626
+ <licenses>
627
+ <license>
628
+ <id>MIT</id>
629
+ </license>
630
+ </licenses>
631
+ <purl>pkg:gem/sexp_processor@4.17.0</purl>
632
+ </component>
633
+ <component type="library">
634
+ <name>thor</name>
635
+ <version>1.2.2</version>
636
+ <description>Thor is a toolkit for building powerful command-line interfaces.</description>
637
+ <hashes>
638
+ <hash alg="SHA-256">2f93c652828cba9fcf4f65f5dc8c306f1a7317e05aad5835a13740122c17f24c</hash>
639
+ </hashes>
640
+ <licenses>
641
+ <license>
642
+ <id>MIT</id>
643
+ </license>
644
+ </licenses>
645
+ <purl>pkg:gem/thor@1.2.2</purl>
646
+ </component>
647
+ <component type="library">
648
+ <name>thor-zsh_completion</name>
649
+ <version>0.1.10</version>
650
+ <description>Create zsh completion script for Thor subclass</description>
651
+ <hashes>
652
+ <hash alg="SHA-256">7e3e991954d8376b78ed24757c15202ee492239e0bacfb5d21a698269228b130</hash>
653
+ </hashes>
654
+ <licenses>
655
+ <license>
656
+ <id>MIT</id>
657
+ </license>
658
+ </licenses>
659
+ <purl>pkg:gem/thor-zsh_completion@0.1.10</purl>
660
+ </component>
661
+ <component type="library">
662
+ <name>thot</name>
663
+ <version>1.2.1</version>
664
+ <description>THe Operative Templating</description>
665
+ <hashes>
666
+ <hash alg="SHA-256">56b8b909b929a672dd1be185ba88fa2b70619d918d1463732275af11a332068c</hash>
667
+ </hashes>
668
+ <licenses>
669
+ <license>
670
+ <id>MIT</id>
671
+ </license>
672
+ </licenses>
673
+ <purl>pkg:gem/thot@1.2.1</purl>
674
+ </component>
675
+ <component type="library">
676
+ <name>tty-color</name>
677
+ <version>0.6.0</version>
678
+ <description>Terminal color capabilities detection</description>
679
+ <hashes>
680
+ <hash alg="SHA-256">6f9c37ca3a4e2367fb2e6d09722762647d6f455c111f05b59f35730eeb24332a</hash>
681
+ </hashes>
682
+ <licenses>
683
+ <license>
684
+ <id>MIT</id>
685
+ </license>
686
+ </licenses>
687
+ <purl>pkg:gem/tty-color@0.6.0</purl>
688
+ </component>
689
+ <component type="library">
690
+ <name>tty-cursor</name>
691
+ <version>0.7.1</version>
692
+ <description>Terminal cursor positioning, visibility and text manipulation.</description>
693
+ <hashes>
694
+ <hash alg="SHA-256">79534185e6a777888d88628b14b6a1fdf5154a603f285f80b1753e1908e0bf48</hash>
695
+ </hashes>
696
+ <licenses>
697
+ <license>
698
+ <id>MIT</id>
699
+ </license>
700
+ </licenses>
701
+ <purl>pkg:gem/tty-cursor@0.7.1</purl>
702
+ </component>
703
+ <component type="library">
704
+ <name>tty-prompt</name>
705
+ <version>0.23.1</version>
706
+ <description>A beautiful and powerful interactive command line prompt.</description>
707
+ <hashes>
708
+ <hash alg="SHA-256">fcdbce905238993f27eecfdf67597a636bc839d92192f6a0eef22b8166449ec8</hash>
709
+ </hashes>
710
+ <licenses>
711
+ <license>
712
+ <id>MIT</id>
713
+ </license>
714
+ </licenses>
715
+ <purl>pkg:gem/tty-prompt@0.23.1</purl>
716
+ </component>
717
+ <component type="library">
718
+ <name>tty-reader</name>
719
+ <version>0.9.0</version>
720
+ <description>A set of methods for processing keyboard input in character, line and multiline modes.</description>
721
+ <hashes>
722
+ <hash alg="SHA-256">c62972c985c0b1566f0e56743b6a7882f979d3dc32ff491ed490a076f899c2b1</hash>
723
+ </hashes>
724
+ <licenses>
725
+ <license>
726
+ <id>MIT</id>
727
+ </license>
728
+ </licenses>
729
+ <purl>pkg:gem/tty-reader@0.9.0</purl>
730
+ </component>
731
+ <component type="library">
732
+ <name>tty-screen</name>
733
+ <version>0.8.2</version>
734
+ <description>Terminal screen size detection.</description>
735
+ <hashes>
736
+ <hash alg="SHA-256">c090652115beae764336c28802d633f204fb84da93c6a968aa5d8e319e819b50</hash>
737
+ </hashes>
738
+ <licenses>
739
+ <license>
740
+ <id>MIT</id>
741
+ </license>
742
+ </licenses>
743
+ <purl>pkg:gem/tty-screen@0.8.2</purl>
744
+ </component>
745
+ <component type="library">
746
+ <name>unf</name>
747
+ <version>0.1.4</version>
748
+ <description>A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby</description>
749
+ <hashes>
750
+ <hash alg="SHA-256">49a5972ec0b3d091d3b0b2e00113f2f342b9b212f0db855eb30a629637f6d302</hash>
751
+ </hashes>
752
+ <licenses>
753
+ <license>
754
+ <name>2-clause BSDL</name>
755
+ </license>
756
+ </licenses>
757
+ <purl>pkg:gem/unf@0.1.4</purl>
758
+ </component>
759
+ <component type="library">
760
+ <name>unf_ext</name>
761
+ <version>0.0.8.2</version>
762
+ <description>Unicode Normalization Form support library for CRuby</description>
763
+ <hashes>
764
+ <hash alg="SHA-256">6d44c13c98924bebd15ebdd4ed196ead403a0770ac03304570873349fda2a208</hash>
765
+ </hashes>
766
+ <licenses>
767
+ <license>
768
+ <id>MIT</id>
769
+ </license>
770
+ </licenses>
771
+ <purl>pkg:gem/unf_ext@0.0.8.2</purl>
772
+ </component>
773
+ <component type="library">
774
+ <name>unicode-display_width</name>
775
+ <version>2.4.2</version>
776
+ <description>Determines the monospace display width of a string in Ruby.</description>
777
+ <hashes>
778
+ <hash alg="SHA-256">6a10205d1a19ca790c4e53064ba93f09d9eb234bf6bd135d9deb6001c21428be</hash>
779
+ </hashes>
780
+ <licenses>
781
+ <license>
782
+ <id>MIT</id>
783
+ </license>
784
+ </licenses>
785
+ <purl>pkg:gem/unicode-display_width@2.4.2</purl>
786
+ </component>
787
+ <component type="library">
788
+ <name>version</name>
789
+ <version>1.1.1</version>
790
+ <description>simple version-number encapsulation</description>
791
+ <hashes>
792
+ <hash alg="SHA-256">09961d4a5ba4571a8410461b4baa69c0befcf3c28bb8905c202ba60ab5d01aca</hash>
793
+ </hashes>
794
+ <licenses>
795
+ <license>
796
+ <id>MIT</id>
797
+ </license>
798
+ </licenses>
799
+ <purl>pkg:gem/version@1.1.1</purl>
800
+ </component>
801
+ <component type="library">
802
+ <name>wisper</name>
803
+ <version>2.0.1</version>
804
+ <description>A micro library providing objects with Publish-Subscribe capabilities</description>
805
+ <hashes>
806
+ <hash alg="SHA-256">ce17bc5c3a166f241a2e6613848b025c8146fce2defba505920c1d1f3f88fae6</hash>
807
+ </hashes>
808
+ <licenses>
809
+ <license>
810
+ <id>MIT</id>
811
+ </license>
812
+ </licenses>
813
+ <purl>pkg:gem/wisper@2.0.1</purl>
814
+ </component>
815
+ <component type="library">
816
+ <name>yard</name>
817
+ <version>0.9.34</version>
818
+ <description>Documentation tool for consistent and usable documentation in Ruby.</description>
819
+ <hashes>
820
+ <hash alg="SHA-256">5a8e04114d7f15f77814973ea56b7c38282126fb2930eb82851ffed0b9cd7e04</hash>
821
+ </hashes>
822
+ <licenses>
823
+ <license>
824
+ <id>MIT</id>
825
+ </license>
826
+ </licenses>
827
+ <purl>pkg:gem/yard@0.9.34</purl>
828
+ </component>
829
+ <component type="library">
830
+ <name>yard-rspec</name>
831
+ <version>0.1</version>
832
+ <description>YARD plugin to list RSpec specifications inside documentation</description>
833
+ <hashes>
834
+ <hash alg="SHA-256">f59e3070cdca303fa460f43ad7adbbffa0a6c5d6b79651b6d03fb87778815db5</hash>
835
+ </hashes>
836
+ <purl>pkg:gem/yard-rspec@0.1</purl>
837
+ </component>
838
+ </components>
839
+ </bom>
@@ -12,28 +12,30 @@ module Thot
12
12
  end
13
13
 
14
14
  def detect
15
- detected = @string.scan(/%%[^\%]*%%/).concat @string.scan(/\{\{[^\}]*\}\}/)
16
- detected.each do |token|
17
- key,*rest = token[2,(token.length - 4)].split('.')
18
- filters = []; default = nil
19
- if key =~ /(.*)\((.*)\)/ then
20
- key = $1
21
- default = $2
15
+ if @string.valid_encoding?
16
+ detected = @string.force_encoding("UTF-8").scan(/%%[^\%]*%%/).concat @string.force_encoding("UTF-8").scan(/\{\{[^\}]*\}\}/)
17
+ detected.each do |token|
18
+ key,*rest = token[2,(token.length - 4)].split('.')
19
+ filters = []; default = nil
20
+ if key =~ /(.*)\((.*)\)/ then
21
+ key = $1
22
+ default = $2
23
+ end
24
+ rest.each {|item|
25
+ if item =~ /(.*)\((.*)\)/ then
26
+ filters.push $1
27
+ default = $2
28
+
29
+ else
30
+ filters.push item
31
+ end
32
+ }
33
+ @tokens.push key unless @tokens.include? key
34
+ @definitions[token] = {key: key, filters: filters , default: default }
22
35
  end
23
- rest.each {|item|
24
- if item =~ /(.*)\((.*)\)/ then
25
- filters.push $1
26
- default = $2
27
-
28
- else
29
- filters.push item
30
- end
31
- }
32
- @tokens.push key unless @tokens.include? key
33
- @definitions[token] = {key: key, filters: filters , default: default }
36
+ @tokens.map!(&:downcase)
37
+ @tokens.map!(&:to_sym)
34
38
  end
35
- @tokens.map!(&:downcase)
36
- @tokens.map!(&:to_sym)
37
39
  end
38
40
  end
39
41
  end
data/thot.gemspec CHANGED
@@ -22,15 +22,21 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "carioca", "~> 2.0"
25
+ spec.add_dependency "carioca", "~> 2.1"
26
26
  spec.add_dependency "inifile", "~> 3.0"
27
27
 
28
- spec.add_development_dependency 'rake', '~> 12.0'
28
+ spec.add_development_dependency 'rake', '~> 13.0'
29
29
  spec.add_development_dependency 'rspec', '~> 3.0'
30
- spec.add_development_dependency 'rubocop', '~> 1.32'
30
+ spec.add_development_dependency 'rubocop', '~> 1.54'
31
31
  spec.add_development_dependency "roodi", "~> 5.0"
32
32
  spec.add_development_dependency 'code_statistics', '~> 0.2.13'
33
33
  spec.add_development_dependency "yard", "~> 0.9.27"
34
34
  spec.add_development_dependency "yard-rspec", "~> 0.1"
35
35
  spec.add_development_dependency'version', '~> 1.1'
36
+
37
+ spec.add_development_dependency "bundle-audit", "~> 0.1.0"
38
+
39
+ spec.add_development_dependency "cyclonedx-ruby", "~> 1.1"
40
+ spec.add_development_dependency "debride", "~> 1.12"
41
+
36
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain GEORGES
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-25 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carioca
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: inifile
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '12.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '12.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.32'
75
+ version: '1.54'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.32'
82
+ version: '1.54'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: roodi
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,48 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: bundle-audit
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.1.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.1.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: cyclonedx-ruby
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.1'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.1'
181
+ - !ruby/object:Gem::Dependency
182
+ name: debride
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '1.12'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '1.12'
153
195
  description: the simpliest way to template in Ruby and command
154
196
  email:
155
197
  - gems@ultragreen.net
@@ -158,6 +200,7 @@ executables:
158
200
  extensions: []
159
201
  extra_rdoc_files: []
160
202
  files:
203
+ - ".debride_whitelist"
161
204
  - ".github/workflows/ruby.yml"
162
205
  - ".gitignore"
163
206
  - ".rspec"
@@ -167,11 +210,15 @@ files:
167
210
  - README.md
168
211
  - Rakefile
169
212
  - VERSION
213
+ - assets/images/description_thot.png
214
+ - assets/images/description_thot_template.png
215
+ - assets/images/description_thot_varfiles.png
170
216
  - assets/images/logo_thot_full_large.png
171
217
  - assets/images/logo_thot_light_large.png
172
218
  - assets/images/logo_thot_normal_large.png
173
219
  - bin/console
174
220
  - bin/setup
221
+ - bom.xml
175
222
  - exe/thot
176
223
  - lib/dependencies.rb
177
224
  - lib/thot.rb
@@ -187,7 +234,6 @@ files:
187
234
  - samples/.thot.env
188
235
  - samples/template.ttl
189
236
  - thot.gemspec
190
- - ultragreen_roodi_coding_convention.yml
191
237
  homepage: https://github.com/Ultragreen/thot
192
238
  licenses:
193
239
  - MIT
@@ -1,24 +0,0 @@
1
- AssignmentInConditionalCheck:
2
- CaseMissingElseCheck:
3
- ClassLineCountCheck:
4
- line_count: 300 # including comments yard
5
- ClassNameCheck:
6
- pattern: !ruby/regexp /^[A-Z][a-zA-Z0-9]*$/
7
- #ClassVariableCheck:
8
- CyclomaticComplexityBlockCheck:
9
- complexity: 5
10
- CyclomaticComplexityMethodCheck:
11
- complexity: 10
12
- EmptyRescueBodyCheck:
13
- ForLoopCheck:
14
- MethodLineCountCheck:
15
- line_count: 30
16
- MethodNameCheck:
17
- pattern: !ruby/regexp /^[_a-z<>=\[|+-\/\*`]+[_a-z0-9_<>=~@\[\]]*[=!\?]?$/
18
- # MissingForeignKeyIndexCheck:
19
- ModuleLineCountCheck:
20
- line_count: 300
21
- ModuleNameCheck:
22
- pattern: !ruby/regexp /^[A-Z][a-zA-Z0-9]*$/
23
- ParameterNumberCheck:
24
- parameter_count: 5