chunky_projects 0.0.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: ad1ad5f5d1e665828c9c7ab1e4547c3c70fed6c9bfd02a5f1bd7ff6151e354e2
4
+ data.tar.gz: 69d5751e349533410512fced960665c20dd91b384cb7c71f12b5d5afd7be710e
5
+ SHA512:
6
+ metadata.gz: 8f1f84667c5fc398a32cf4be0645dda65c592e0580fd39d4a37c8e6640f75852e669d624c7063b104b56c52bc1158c4c20fee6bbe7f2712534639dfde59d2e32
7
+ data.tar.gz: cf5575afefc2b92b433313351ee2efa52ac11726886a8e3598b0bbecbbea60bef828411ced6b4bc7bc91aa1b7ef44c900a534fe1f9afe14d387dd4de0c3a8117
data/Cargo.lock ADDED
@@ -0,0 +1,340 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.2"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "bindgen"
16
+ version = "0.69.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "9ffcebc3849946a7170a05992aac39da343a90676ab392c51a4280981d6379c2"
19
+ dependencies = [
20
+ "bitflags",
21
+ "cexpr",
22
+ "clang-sys",
23
+ "lazy_static",
24
+ "lazycell",
25
+ "peeking_take_while",
26
+ "proc-macro2",
27
+ "quote",
28
+ "regex",
29
+ "rustc-hash",
30
+ "shlex",
31
+ "syn",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "bitflags"
36
+ version = "2.4.1"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
39
+
40
+ [[package]]
41
+ name = "cexpr"
42
+ version = "0.6.0"
43
+ source = "registry+https://github.com/rust-lang/crates.io-index"
44
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
45
+ dependencies = [
46
+ "nom",
47
+ ]
48
+
49
+ [[package]]
50
+ name = "cfg-if"
51
+ version = "1.0.0"
52
+ source = "registry+https://github.com/rust-lang/crates.io-index"
53
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
54
+
55
+ [[package]]
56
+ name = "chunky_projects"
57
+ version = "0.0.0"
58
+ dependencies = [
59
+ "magnus",
60
+ ]
61
+
62
+ [[package]]
63
+ name = "clang-sys"
64
+ version = "1.7.0"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
67
+ dependencies = [
68
+ "glob",
69
+ "libc",
70
+ "libloading",
71
+ ]
72
+
73
+ [[package]]
74
+ name = "glob"
75
+ version = "0.3.1"
76
+ source = "registry+https://github.com/rust-lang/crates.io-index"
77
+ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
78
+
79
+ [[package]]
80
+ name = "lazy_static"
81
+ version = "1.4.0"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
84
+
85
+ [[package]]
86
+ name = "lazycell"
87
+ version = "1.3.0"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
90
+
91
+ [[package]]
92
+ name = "libc"
93
+ version = "0.2.151"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
96
+
97
+ [[package]]
98
+ name = "libloading"
99
+ version = "0.8.1"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161"
102
+ dependencies = [
103
+ "cfg-if",
104
+ "windows-sys",
105
+ ]
106
+
107
+ [[package]]
108
+ name = "magnus"
109
+ version = "0.6.2"
110
+ source = "registry+https://github.com/rust-lang/crates.io-index"
111
+ checksum = "4778544796676e8428e9c622460ebf284bea52d8b10db3aeb449d8b5e61b3a13"
112
+ dependencies = [
113
+ "magnus-macros",
114
+ "rb-sys",
115
+ "rb-sys-env",
116
+ "seq-macro",
117
+ ]
118
+
119
+ [[package]]
120
+ name = "magnus-macros"
121
+ version = "0.6.0"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
124
+ dependencies = [
125
+ "proc-macro2",
126
+ "quote",
127
+ "syn",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "memchr"
132
+ version = "2.7.1"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
135
+
136
+ [[package]]
137
+ name = "minimal-lexical"
138
+ version = "0.2.1"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
141
+
142
+ [[package]]
143
+ name = "nom"
144
+ version = "7.1.3"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
147
+ dependencies = [
148
+ "memchr",
149
+ "minimal-lexical",
150
+ ]
151
+
152
+ [[package]]
153
+ name = "peeking_take_while"
154
+ version = "0.1.2"
155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
156
+ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
157
+
158
+ [[package]]
159
+ name = "proc-macro2"
160
+ version = "1.0.75"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "907a61bd0f64c2f29cd1cf1dc34d05176426a3f504a78010f08416ddb7b13708"
163
+ dependencies = [
164
+ "unicode-ident",
165
+ ]
166
+
167
+ [[package]]
168
+ name = "quote"
169
+ version = "1.0.35"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
172
+ dependencies = [
173
+ "proc-macro2",
174
+ ]
175
+
176
+ [[package]]
177
+ name = "rb-sys"
178
+ version = "0.9.86"
179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
180
+ checksum = "7285f2a7b92f58ab198e3fd59a71d2861478f9c4642f41e83582385818941697"
181
+ dependencies = [
182
+ "rb-sys-build",
183
+ ]
184
+
185
+ [[package]]
186
+ name = "rb-sys-build"
187
+ version = "0.9.86"
188
+ source = "registry+https://github.com/rust-lang/crates.io-index"
189
+ checksum = "71583945f94dabb6c0dfa63f1b71e929c1901e1e288ef3739ab8bed3b7069550"
190
+ dependencies = [
191
+ "bindgen",
192
+ "lazy_static",
193
+ "proc-macro2",
194
+ "quote",
195
+ "regex",
196
+ "shell-words",
197
+ "syn",
198
+ ]
199
+
200
+ [[package]]
201
+ name = "rb-sys-env"
202
+ version = "0.1.2"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
205
+
206
+ [[package]]
207
+ name = "regex"
208
+ version = "1.10.2"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
211
+ dependencies = [
212
+ "aho-corasick",
213
+ "memchr",
214
+ "regex-automata",
215
+ "regex-syntax",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "regex-automata"
220
+ version = "0.4.3"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
223
+ dependencies = [
224
+ "aho-corasick",
225
+ "memchr",
226
+ "regex-syntax",
227
+ ]
228
+
229
+ [[package]]
230
+ name = "regex-syntax"
231
+ version = "0.8.2"
232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
233
+ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
234
+
235
+ [[package]]
236
+ name = "rustc-hash"
237
+ version = "1.1.0"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
240
+
241
+ [[package]]
242
+ name = "seq-macro"
243
+ version = "0.3.5"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
246
+
247
+ [[package]]
248
+ name = "shell-words"
249
+ version = "1.1.0"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
252
+
253
+ [[package]]
254
+ name = "shlex"
255
+ version = "1.2.0"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
258
+
259
+ [[package]]
260
+ name = "syn"
261
+ version = "2.0.47"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "1726efe18f42ae774cc644f330953a5e7b3c3003d3edcecf18850fe9d4dd9afb"
264
+ dependencies = [
265
+ "proc-macro2",
266
+ "quote",
267
+ "unicode-ident",
268
+ ]
269
+
270
+ [[package]]
271
+ name = "unicode-ident"
272
+ version = "1.0.12"
273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
274
+ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
275
+
276
+ [[package]]
277
+ name = "windows-sys"
278
+ version = "0.48.0"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
281
+ dependencies = [
282
+ "windows-targets",
283
+ ]
284
+
285
+ [[package]]
286
+ name = "windows-targets"
287
+ version = "0.48.5"
288
+ source = "registry+https://github.com/rust-lang/crates.io-index"
289
+ checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
290
+ dependencies = [
291
+ "windows_aarch64_gnullvm",
292
+ "windows_aarch64_msvc",
293
+ "windows_i686_gnu",
294
+ "windows_i686_msvc",
295
+ "windows_x86_64_gnu",
296
+ "windows_x86_64_gnullvm",
297
+ "windows_x86_64_msvc",
298
+ ]
299
+
300
+ [[package]]
301
+ name = "windows_aarch64_gnullvm"
302
+ version = "0.48.5"
303
+ source = "registry+https://github.com/rust-lang/crates.io-index"
304
+ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
305
+
306
+ [[package]]
307
+ name = "windows_aarch64_msvc"
308
+ version = "0.48.5"
309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
310
+ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
311
+
312
+ [[package]]
313
+ name = "windows_i686_gnu"
314
+ version = "0.48.5"
315
+ source = "registry+https://github.com/rust-lang/crates.io-index"
316
+ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
317
+
318
+ [[package]]
319
+ name = "windows_i686_msvc"
320
+ version = "0.48.5"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
323
+
324
+ [[package]]
325
+ name = "windows_x86_64_gnu"
326
+ version = "0.48.5"
327
+ source = "registry+https://github.com/rust-lang/crates.io-index"
328
+ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
329
+
330
+ [[package]]
331
+ name = "windows_x86_64_gnullvm"
332
+ version = "0.48.5"
333
+ source = "registry+https://github.com/rust-lang/crates.io-index"
334
+ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
335
+
336
+ [[package]]
337
+ name = "windows_x86_64_msvc"
338
+ version = "0.48.5"
339
+ source = "registry+https://github.com/rust-lang/crates.io-index"
340
+ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
data/Cargo.toml ADDED
@@ -0,0 +1,7 @@
1
+ # This Cargo.toml is here to let externals tools (IDEs, etc.) know that this is
2
+ # a Rust project. Your extensions dependencies should be added to the Cargo.toml
3
+ # in the ext/ directory.
4
+
5
+ [workspace]
6
+ members = ["./ext/chunky_projects"]
7
+ resolver = "2"
data/README.textile ADDED
@@ -0,0 +1,41 @@
1
+ h1. Chunky Projects
2
+
3
+ _GOOD FOR BACON — POIGNANT FOR ALL STIFFS_
4
+
5
+ ChunkyProjects converts "Textile":https://textile-lang.com into HTML. It is a Ruby wrapper for "Rustextile":https://github.com/kpot/rustextile, a Rust crate.
6
+
7
+ h2. Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ bc. $ bundle add chunky_projects
12
+
13
+ h2. Usage
14
+
15
+ bc.. require "chunky_projects"
16
+
17
+ ChunkyProjects.to_html("h1. an elf and his pet ham!")
18
+ # => "<h1>an elf and his pet ham!</h1>"
19
+
20
+ ChunkyProjects.to_html("a giraffe %{color:red}surrounded% by weeezards!")
21
+ # => "<p>a giraffe <span style=\"color:red;\">surrounded</span> by weeezards!</p>"
22
+
23
+ h2. See also
24
+
25
+ * "RedCloth":https://github.com/jgarber/redcloth
26
+ * "Why's (Poignant) Guide to Ruby":https://poignant.guide, originally written in Textile
27
+
28
+ h2. Development
29
+
30
+ 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.
31
+
32
+ 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.
33
+
34
+ h2. Contributing
35
+
36
+ Bug reports and pull requests are welcome on GitHub at "https://github.com/zachahn/chunky_projects":https://github.com/zachahn/chunky_projects.
37
+
38
+ h2. License
39
+
40
+ The gem is available as open source under the terms of the "MIT License":https://opensource.org/licenses/MIT.
41
+
@@ -0,0 +1,13 @@
1
+ [package]
2
+ name = "chunky_projects"
3
+ version = "0.0.0"
4
+ edition = "2021"
5
+ authors = ["Zach Ahn <engineering@zachahn.com>"]
6
+ license = "MIT"
7
+ publish = false
8
+
9
+ [lib]
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ magnus = { version = "0.6.2" }
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+ require "rb_sys/mkmf"
5
+
6
+ create_rust_makefile("chunky_projects/chunky_projects")
@@ -0,0 +1,12 @@
1
+ use magnus::{function, prelude::*, Error, Ruby};
2
+
3
+ fn hello(subject: String) -> String {
4
+ format!("Hello from Rust, {subject}!")
5
+ }
6
+
7
+ #[magnus::init]
8
+ fn init(ruby: &Ruby) -> Result<(), Error> {
9
+ let module = ruby.define_module("ChunkyProjects")?;
10
+ module.define_singleton_method("hello", function!(hello, 1))?;
11
+ Ok(())
12
+ }
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChunkyProjects
4
+ VERSION = "0.0.0"
5
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "chunky_projects/version"
4
+ require_relative "chunky_projects/chunky_projects"
5
+
6
+ module ChunkyProjects
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chunky_projects
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Zach Ahn
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Converts Textile to HTML. Wraps the Rustextile crate.
14
+ email:
15
+ - engineering@zachahn.com
16
+ executables: []
17
+ extensions:
18
+ - ext/chunky_projects/Cargo.toml
19
+ extra_rdoc_files: []
20
+ files:
21
+ - Cargo.lock
22
+ - Cargo.toml
23
+ - README.textile
24
+ - ext/chunky_projects/Cargo.toml
25
+ - ext/chunky_projects/extconf.rb
26
+ - ext/chunky_projects/src/lib.rs
27
+ - lib/chunky_projects.rb
28
+ - lib/chunky_projects/version.rb
29
+ homepage: https://github.com/zachahn/chunky_projects
30
+ licenses:
31
+ - MIT
32
+ metadata:
33
+ homepage_uri: https://github.com/zachahn/chunky_projects
34
+ source_code_uri: https://github.com/zachahn/chunky_projects
35
+ changelog_uri: https://github.com/zachahn/chunky_projects/blob/main/CHANGELOG.md
36
+ post_install_message:
37
+ rdoc_options: []
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 3.1.0
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 3.3.11
50
+ requirements: []
51
+ rubygems_version: 3.5.3
52
+ signing_key:
53
+ specification_version: 4
54
+ summary: Converts Textile to HTML
55
+ test_files: []