chunky_projects 0.0.1-arm64-darwin

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: 125274e4ca171c8a9965471921c82ed08ec4262dc7eab0424e3e5cca518c0fed
4
+ data.tar.gz: b3eb9868ffc669ce1b92cd5d951d8f04ae2178a37f4490639cbeb9533ab77cbf
5
+ SHA512:
6
+ metadata.gz: f4501c860554ef473de20d41d9537a200527d6f51fab020b3049d8b7f44ca4095da2914056a7cfe352e0f9cef5dbc38e1b98ab5dea5fa94f1f2b27a20d02c9cb
7
+ data.tar.gz: 4be80e29547aa8826f59087f358a6ebbbbfa043af1488203d7ce4a09a795c1866e9dd0602123683dc76fded2525a7fa24460eae556a7b82a3ca47351230e512b
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,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: arm64-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: []