chunky_projects 0.0.1-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8b56793027aeb891a334e1b48b05cee4ccf2e022add5fa453b66d4272ee0b0b2
4
+ data.tar.gz: 9b85cb20e6d1b7186b00ec447d81ed4ecc55292179cb7c241eb8feef08554ca3
5
+ SHA512:
6
+ metadata.gz: 9a998a347e8eb082339242eb64e733b3bac812a1fd0b908e1143cb8b9f3adcf3826b0d31ed73bc3c8402bfe3602422d2a91c652266836b0e72b757867fb42d5c
7
+ data.tar.gz: 6ff1c23a15e586b8faf4ab83020ebb0f838a9c621e02c3582c38f2e9f554fc9624c3dd19cf915ec25b278bff1f7620e46e34dbcc23629c0bf62cac7fc469d14f
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
+
Binary file
Binary file
Binary file
@@ -0,0 +1,7 @@
1
+ module ChunkyProjects
2
+ class Error < StandardError
3
+ end
4
+
5
+ class EncodingError < Error
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ module ChunkyProjects
2
+ def self.to_html(textile)
3
+ if textile.encoding.name != "UTF-8"
4
+ raise ChunkyProjects::EncodingError, "Textile encoding must be UTF-8"
5
+ end
6
+ if !textile.valid_encoding?
7
+ raise ChunkyProjects::EncodingError, "Textile encoding must be valid UTF-8"
8
+ end
9
+
10
+ Internal.to_html(textile)
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChunkyProjects
4
+ VERSION = "0.0.1"
5
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChunkyProjects
4
+ end
5
+
6
+ require_relative "chunky_projects/error"
7
+ require_relative "chunky_projects/version"
8
+ require_relative "chunky_projects/public"
9
+
10
+ begin
11
+ ruby_version = RUBY_VERSION[/^\d+\.\d+/]
12
+ require_relative "chunky_projects/#{ruby_version}/internal"
13
+ rescue LoadError
14
+ require "chunky_projects/internal"
15
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chunky_projects
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: x86_64-linux
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
+ extra_rdoc_files: []
19
+ files:
20
+ - README.textile
21
+ - lib/chunky_projects.rb
22
+ - lib/chunky_projects/3.1/internal.so
23
+ - lib/chunky_projects/3.2/internal.so
24
+ - lib/chunky_projects/3.3/internal.so
25
+ - lib/chunky_projects/error.rb
26
+ - lib/chunky_projects/public.rb
27
+ - lib/chunky_projects/version.rb
28
+ homepage: https://github.com/zachahn/chunky_projects
29
+ licenses:
30
+ - MIT
31
+ metadata:
32
+ homepage_uri: https://github.com/zachahn/chunky_projects
33
+ source_code_uri: https://github.com/zachahn/chunky_projects
34
+ changelog_uri: https://github.com/zachahn/chunky_projects/blob/main/CHANGELOG.md
35
+ post_install_message:
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '3.1'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: 3.4.dev
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: 3.3.11
52
+ requirements: []
53
+ rubygems_version: 3.4.4
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: Converts Textile to HTML
57
+ test_files: []