svgo-rb 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 04ad097bb21d39b8d973769abbcefff3e545b8ed4d02974462de96f9416d7010
4
+ data.tar.gz: 12c1600512d93a2fc36a9d2be54408c020caf43fe4791af3b7641058bf148d87
5
+ SHA512:
6
+ metadata.gz: 96ef855d2496680967ed393f2581657be2bf8ba8cb4139236c568dd484080a6508db5affd6dd8c3dcaca402a16a51938ea801c6be3d151dbdcbea3326e148278
7
+ data.tar.gz: cf4e4c6715fd018862c775520cd406343fbc26c944833b2f1ec0f1b7b619fe3d4b01c8bacf2adec1885bb032c8be8598d441f994a7e3bf3b4cd481daeff26f28
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ node_modules
10
+ vendor
11
+ *.npm_ext.js
12
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 13.0"
6
+
7
+ gem "minitest", "~> 5.0"
8
+
9
+ gem "rubocop", "~> 1.21"
10
+
11
+ gem "rake-compiler", "~> 1.2.8"
data/Gemfile.lock ADDED
@@ -0,0 +1,45 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ast (2.4.2)
5
+ json (2.9.1)
6
+ language_server-protocol (3.17.0.3)
7
+ minitest (5.25.4)
8
+ parallel (1.26.3)
9
+ parser (3.3.6.0)
10
+ ast (~> 2.4.1)
11
+ racc
12
+ racc (1.8.1)
13
+ rainbow (3.1.1)
14
+ rake (13.2.1)
15
+ rake-compiler (1.2.8)
16
+ rake
17
+ regexp_parser (2.9.3)
18
+ rubocop (1.69.2)
19
+ json (~> 2.3)
20
+ language_server-protocol (>= 3.17.0)
21
+ parallel (~> 1.10)
22
+ parser (>= 3.3.0.2)
23
+ rainbow (>= 2.2.2, < 4.0)
24
+ regexp_parser (>= 2.9.3, < 3.0)
25
+ rubocop-ast (>= 1.36.2, < 2.0)
26
+ ruby-progressbar (~> 1.7)
27
+ unicode-display_width (>= 2.4.0, < 4.0)
28
+ rubocop-ast (1.37.0)
29
+ parser (>= 3.3.1.0)
30
+ ruby-progressbar (1.13.0)
31
+ unicode-display_width (3.1.2)
32
+ unicode-emoji (~> 4.0, >= 4.0.4)
33
+ unicode-emoji (4.0.4)
34
+
35
+ PLATFORMS
36
+ x86_64-linux
37
+
38
+ DEPENDENCIES
39
+ minitest (~> 5.0)
40
+ rake (~> 13.0)
41
+ rake-compiler (~> 1.2.8)
42
+ rubocop (~> 1.21)
43
+
44
+ BUNDLED WITH
45
+ 2.3.27
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # NpmExt
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/npm_ext`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add npm_ext
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install npm_ext
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/npm_ext.
data/Rakefile ADDED
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+ require "rake/extensiontask"
6
+
7
+ Rake::ExtensionTask.new "svgo" do |ext|
8
+ ext.name = "npm_ext"
9
+ ext.source_pattern = "package*.json"
10
+ ext.lib_dir = "lib/svgo"
11
+ end
12
+
13
+ Rake::TestTask.new(:test) do |t|
14
+ t.libs << "test"
15
+ t.libs << "lib"
16
+ t.test_files = FileList["test/**/test_*.rb"]
17
+ end
18
+
19
+ require "rubocop/rake_task"
20
+
21
+ RuboCop::RakeTask.new
22
+
23
+ task default: %i[test rubocop]
@@ -0,0 +1,3 @@
1
+ require "npm_ext/mkmf"
2
+
3
+ create_npm_makefile(__dir__)
@@ -0,0 +1,235 @@
1
+ {
2
+ "name": "svgo",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "dependencies": {
8
+ "svgo": "^3.3.2"
9
+ }
10
+ },
11
+ "node_modules/@trysound/sax": {
12
+ "version": "0.2.0",
13
+ "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz",
14
+ "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==",
15
+ "license": "ISC",
16
+ "engines": {
17
+ "node": ">=10.13.0"
18
+ }
19
+ },
20
+ "node_modules/boolbase": {
21
+ "version": "1.0.0",
22
+ "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
23
+ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
24
+ "license": "ISC"
25
+ },
26
+ "node_modules/commander": {
27
+ "version": "7.2.0",
28
+ "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
29
+ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
30
+ "license": "MIT",
31
+ "engines": {
32
+ "node": ">= 10"
33
+ }
34
+ },
35
+ "node_modules/css-select": {
36
+ "version": "5.1.0",
37
+ "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz",
38
+ "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==",
39
+ "license": "BSD-2-Clause",
40
+ "dependencies": {
41
+ "boolbase": "^1.0.0",
42
+ "css-what": "^6.1.0",
43
+ "domhandler": "^5.0.2",
44
+ "domutils": "^3.0.1",
45
+ "nth-check": "^2.0.1"
46
+ },
47
+ "funding": {
48
+ "url": "https://github.com/sponsors/fb55"
49
+ }
50
+ },
51
+ "node_modules/css-tree": {
52
+ "version": "2.3.1",
53
+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
54
+ "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
55
+ "license": "MIT",
56
+ "dependencies": {
57
+ "mdn-data": "2.0.30",
58
+ "source-map-js": "^1.0.1"
59
+ },
60
+ "engines": {
61
+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
62
+ }
63
+ },
64
+ "node_modules/css-what": {
65
+ "version": "6.1.0",
66
+ "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz",
67
+ "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==",
68
+ "license": "BSD-2-Clause",
69
+ "engines": {
70
+ "node": ">= 6"
71
+ },
72
+ "funding": {
73
+ "url": "https://github.com/sponsors/fb55"
74
+ }
75
+ },
76
+ "node_modules/csso": {
77
+ "version": "5.0.5",
78
+ "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz",
79
+ "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==",
80
+ "license": "MIT",
81
+ "dependencies": {
82
+ "css-tree": "~2.2.0"
83
+ },
84
+ "engines": {
85
+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0",
86
+ "npm": ">=7.0.0"
87
+ }
88
+ },
89
+ "node_modules/csso/node_modules/css-tree": {
90
+ "version": "2.2.1",
91
+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz",
92
+ "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==",
93
+ "license": "MIT",
94
+ "dependencies": {
95
+ "mdn-data": "2.0.28",
96
+ "source-map-js": "^1.0.1"
97
+ },
98
+ "engines": {
99
+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0",
100
+ "npm": ">=7.0.0"
101
+ }
102
+ },
103
+ "node_modules/csso/node_modules/mdn-data": {
104
+ "version": "2.0.28",
105
+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz",
106
+ "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==",
107
+ "license": "CC0-1.0"
108
+ },
109
+ "node_modules/dom-serializer": {
110
+ "version": "2.0.0",
111
+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
112
+ "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",
113
+ "license": "MIT",
114
+ "dependencies": {
115
+ "domelementtype": "^2.3.0",
116
+ "domhandler": "^5.0.2",
117
+ "entities": "^4.2.0"
118
+ },
119
+ "funding": {
120
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
121
+ }
122
+ },
123
+ "node_modules/domelementtype": {
124
+ "version": "2.3.0",
125
+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
126
+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
127
+ "funding": [
128
+ {
129
+ "type": "github",
130
+ "url": "https://github.com/sponsors/fb55"
131
+ }
132
+ ],
133
+ "license": "BSD-2-Clause"
134
+ },
135
+ "node_modules/domhandler": {
136
+ "version": "5.0.3",
137
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",
138
+ "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",
139
+ "license": "BSD-2-Clause",
140
+ "dependencies": {
141
+ "domelementtype": "^2.3.0"
142
+ },
143
+ "engines": {
144
+ "node": ">= 4"
145
+ },
146
+ "funding": {
147
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
148
+ }
149
+ },
150
+ "node_modules/domutils": {
151
+ "version": "3.2.1",
152
+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.1.tgz",
153
+ "integrity": "sha512-xWXmuRnN9OMP6ptPd2+H0cCbcYBULa5YDTbMm/2lvkWvNA3O4wcW+GvzooqBuNM8yy6pl3VIAeJTUUWUbfI5Fw==",
154
+ "license": "BSD-2-Clause",
155
+ "dependencies": {
156
+ "dom-serializer": "^2.0.0",
157
+ "domelementtype": "^2.3.0",
158
+ "domhandler": "^5.0.3"
159
+ },
160
+ "funding": {
161
+ "url": "https://github.com/fb55/domutils?sponsor=1"
162
+ }
163
+ },
164
+ "node_modules/entities": {
165
+ "version": "4.5.0",
166
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
167
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
168
+ "license": "BSD-2-Clause",
169
+ "engines": {
170
+ "node": ">=0.12"
171
+ },
172
+ "funding": {
173
+ "url": "https://github.com/fb55/entities?sponsor=1"
174
+ }
175
+ },
176
+ "node_modules/mdn-data": {
177
+ "version": "2.0.30",
178
+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
179
+ "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
180
+ "license": "CC0-1.0"
181
+ },
182
+ "node_modules/nth-check": {
183
+ "version": "2.1.1",
184
+ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
185
+ "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
186
+ "license": "BSD-2-Clause",
187
+ "dependencies": {
188
+ "boolbase": "^1.0.0"
189
+ },
190
+ "funding": {
191
+ "url": "https://github.com/fb55/nth-check?sponsor=1"
192
+ }
193
+ },
194
+ "node_modules/picocolors": {
195
+ "version": "1.1.1",
196
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
197
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
198
+ "license": "ISC"
199
+ },
200
+ "node_modules/source-map-js": {
201
+ "version": "1.2.1",
202
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
203
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
204
+ "license": "BSD-3-Clause",
205
+ "engines": {
206
+ "node": ">=0.10.0"
207
+ }
208
+ },
209
+ "node_modules/svgo": {
210
+ "version": "3.3.2",
211
+ "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.3.2.tgz",
212
+ "integrity": "sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==",
213
+ "license": "MIT",
214
+ "dependencies": {
215
+ "@trysound/sax": "0.2.0",
216
+ "commander": "^7.2.0",
217
+ "css-select": "^5.1.0",
218
+ "css-tree": "^2.3.1",
219
+ "css-what": "^6.1.0",
220
+ "csso": "^5.0.5",
221
+ "picocolors": "^1.0.0"
222
+ },
223
+ "bin": {
224
+ "svgo": "bin/svgo"
225
+ },
226
+ "engines": {
227
+ "node": ">=14.0.0"
228
+ },
229
+ "funding": {
230
+ "type": "opencollective",
231
+ "url": "https://opencollective.com/svgo"
232
+ }
233
+ }
234
+ }
235
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "dependencies": {
3
+ "svgo": "^3.3.2"
4
+ },
5
+ "fileToBundle": {
6
+ "svgo": "lib/svgo.js"
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Svgo
4
+ VERSION = "0.1.0"
5
+ end
data/lib/svgo.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "svgo/version"
4
+
5
+ module Svgo
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
data/sig/svgo.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module NpmExt
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
data/svgo.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/svgo/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "svgo-rb"
7
+ spec.version = Svgo::VERSION
8
+ spec.authors = ["Alexandra Østermark"]
9
+ spec.email = ["alex.cramt@gmail.com"]
10
+
11
+ spec.summary = ""
12
+ spec.description = ""
13
+ spec.homepage = "https://github.com/cramt/svgo-rb"
14
+ spec.required_ruby_version = ">= 2.6.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = spec.homepage
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+
22
+ spec.bindir = "exe"
23
+ spec.executables = []
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_dependency "npm_ext", "0.1.0"
27
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: svgo-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexandra Østermark
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-12-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: npm_ext
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.0
27
+ description: ''
28
+ email:
29
+ - alex.cramt@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - Gemfile.lock
37
+ - README.md
38
+ - Rakefile
39
+ - ext/svgo/extconf.rb
40
+ - ext/svgo/package-lock.json
41
+ - ext/svgo/package.json
42
+ - lib/svgo.rb
43
+ - lib/svgo/version.rb
44
+ - sig/svgo.rbs
45
+ - svgo.gemspec
46
+ homepage: https://github.com/cramt/svgo-rb
47
+ licenses: []
48
+ metadata:
49
+ homepage_uri: https://github.com/cramt/svgo-rb
50
+ source_code_uri: https://github.com/cramt/svgo-rb
51
+ changelog_uri: https://github.com/cramt/svgo-rb
52
+ post_install_message:
53
+ rdoc_options: []
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 2.6.0
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubygems_version: 3.5.9
68
+ signing_key:
69
+ specification_version: 4
70
+ summary: ''
71
+ test_files: []