chunky_projects 0.0.1-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.textile +41 -0
- data/lib/chunky_projects/3.1/internal.bundle +0 -0
- data/lib/chunky_projects/3.2/internal.bundle +0 -0
- data/lib/chunky_projects/3.3/internal.bundle +0 -0
- data/lib/chunky_projects/error.rb +7 -0
- data/lib/chunky_projects/public.rb +12 -0
- data/lib/chunky_projects/version.rb +5 -0
- data/lib/chunky_projects.rb +15 -0
- metadata +57 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e3fad37b2d8da06dea0b4ca90a58b66a9cdfb161112adcd14f93352976d7ca05
|
4
|
+
data.tar.gz: ba0baf1e91f34be292eab1f23937bf5e8fd4628fd3d928db6398364cbe792ed6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 957e4739405b36ebe51586b2b69fad616ec9b2d5f50fce9c18ffaaeb906e556b94f3a39cdc7310a7577a5ea7d591fd432904fe02225c62f916c76c4e08b84467
|
7
|
+
data.tar.gz: 55bc32d6c009e17efd2f22a0ab9d694843e651593118a7f032f55981cc00ed9bb3a02703893211e63fd88875eee99b6f0286e4d696befbb751406591b8a2cb98
|
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,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,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-darwin
|
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.bundle
|
23
|
+
- lib/chunky_projects/3.2/internal.bundle
|
24
|
+
- lib/chunky_projects/3.3/internal.bundle
|
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: []
|