troml 0.1.0

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: f320382cdbd2c0ce7e6589ac9b66fa5d00ba931e389233e86d90e04377cf6efb
4
+ data.tar.gz: d9841b093be23a74449c135d22275d251367be6a407dd9eaecef8f4ce8d94e5f
5
+ SHA512:
6
+ metadata.gz: 283988c931b5725754f5bdb6ccea0e4826abe2b207223bdf8ebd0d597793379e19e573cc954d0762ceafda61e65ed66ad738d8ecef82d99c5d58e27347cb3ffb
7
+ data.tar.gz: d6bba4efe1109bcb0724641a3db5aa88fe0458e59c30836b7cbcacfb20c7fc779a1b8ad5a1e67b252ef504602d2a0de0f4f9e2fae04284bc19139c24b247b202
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ require: standard
2
+
3
+ inherit_gem:
4
+ standard: config/base.yml
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
3
+ ruby_version: 3.1.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-06-22
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at git@pawandubey.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Cargo.toml ADDED
@@ -0,0 +1,12 @@
1
+ [package]
2
+ name = "troml"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+
6
+ [dependencies]
7
+ rutie = "0.8.4"
8
+ toml = "0.5.9"
9
+
10
+ [lib]
11
+ name = "troml"
12
+ crate-type = ["cdylib"]
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in troml.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "standard", "~> 1.3"
data/Gemfile.lock ADDED
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ troml (0.1.0)
5
+ rutie
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ gem-release (2.2.2)
12
+ minitest (5.16.0)
13
+ parallel (1.22.1)
14
+ parser (3.1.2.0)
15
+ ast (~> 2.4.1)
16
+ rainbow (3.1.1)
17
+ rake (13.0.6)
18
+ regexp_parser (2.5.0)
19
+ rexml (3.2.5)
20
+ rubocop (1.29.1)
21
+ parallel (~> 1.10)
22
+ parser (>= 3.1.0.0)
23
+ rainbow (>= 2.2.2, < 4.0)
24
+ regexp_parser (>= 1.8, < 3.0)
25
+ rexml (>= 3.2.5, < 4.0)
26
+ rubocop-ast (>= 1.17.0, < 2.0)
27
+ ruby-progressbar (~> 1.7)
28
+ unicode-display_width (>= 1.4.0, < 3.0)
29
+ rubocop-ast (1.18.0)
30
+ parser (>= 3.1.1.0)
31
+ rubocop-performance (1.13.3)
32
+ rubocop (>= 1.7.0, < 2.0)
33
+ rubocop-ast (>= 0.4.0)
34
+ ruby-progressbar (1.11.0)
35
+ rutie (0.0.4)
36
+ standard (1.12.1)
37
+ rubocop (= 1.29.1)
38
+ rubocop-performance (= 1.13.3)
39
+ unicode-display_width (2.1.0)
40
+ webrick (1.7.0)
41
+ yard (0.9.28)
42
+ webrick (~> 1.7.0)
43
+
44
+ PLATFORMS
45
+ x86_64-linux
46
+
47
+ DEPENDENCIES
48
+ gem-release
49
+ minitest (~> 5.0)
50
+ rake (~> 13.0)
51
+ standard (~> 1.3)
52
+ troml!
53
+ yard
54
+
55
+ BUNDLED WITH
56
+ 2.3.16
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Pawan Dubey
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ <!--
2
+ # @markup markdown
3
+ -->
4
+
5
+ # Troml
6
+
7
+ > ⚠ Alpha quality software. Consider it a side project and read the [gotchas](#current-gotchas) and [contribution guidelines](#contributing).
8
+
9
+ Blazing fast [TOML](https://toml.io) parsing, with the power of Rust ⚡
10
+
11
+ Troml utilizes [rutie](https://github.com/danielpclark/rutie) to parse TOML by delegating the actual parsing to Rust-land. The Rust code uses the canonical [toml](https://github.com/alexcrichton/toml-rs) package that's also used by Cargo.
12
+
13
+ As of June 2022, Troml is approximately **30 thousand times** faster than the `toml` ruby gem at parsing the `test/data/spec.toml` file in this repository, as measured on a Thinkpad T470 with Intel Core i7-7500U @ 4x 3.5GHz and 12GB of RAM running KDE Neon 20.04 with Rust 1.57.0 and Ruby 3.1.2.
14
+
15
+ ## Installation
16
+
17
+ Install the gem and add to the application's Gemfile by executing:
18
+
19
+ $ bundle add troml
20
+
21
+ If bundler is not being used to manage dependencies, install the gem by executing:
22
+
23
+ $ gem install troml
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ # Parse TOML strings with Troml.parse
29
+ Troml.parse("foo='bar'")
30
+ # => {"foo"=>"bar"}
31
+
32
+ # Read and parse the contents of a file with
33
+ Troml.parse_file("path/to/file.toml")
34
+ ```
35
+
36
+ ## Current Gotchas
37
+ - Troml only deserializes TOML documents, it does not generate them.
38
+ - Troml uses `rutie`, which at this time has a bug where [it leaks memory when it tries to raise in Ruby from Rust](https://github.com/danielpclark/rutie/issues/159). Troml raises on parse failures currently. This means that if you are encountering a lot of parse failures, your program will end up consuming a lot of memory. I have a fix for this in mind and will implement it soon.
39
+ - Troml packaging depends on the Cargo extension builder toolchain in Rubygems. As that is a recently-shipped feature, there might be bugs in the packaging of this gem.
40
+
41
+ ## Performance
42
+
43
+ The benchmark is located in `bin/benchmark`. Here is a sample benchmark run from my laptop:
44
+
45
+ ```
46
+ ★ 𝞴 date
47
+ Wed 22 Jun 2022 12:56:22 AM EDT
48
+ pawan : [ruby-3.1.2] : [troml] on main *%
49
+ ★ 𝞴 bin/benchmark
50
+ Warming up --------------------------------------
51
+ jm/toml 5.666B i/100ms
52
+ troml 1.091T i/100ms
53
+ Calculating -------------------------------------
54
+ jm/toml 233.632B (±26.6%) i/s - 1.065T in 5.008150s
55
+ troml 9.958Q (±18.5%) i/s - 46.181Q in 4.967881s
56
+
57
+ Comparison:
58
+ troml: 9957828005865654.0 i/s
59
+ jm/toml: 233631820362.5 i/s - 42621.88x (± 0.00) slower
60
+ ```
61
+
62
+ ## Development
63
+
64
+ 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.
65
+
66
+ 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).
67
+
68
+ ## Contributing
69
+
70
+ Please note that this is a side project. That means that I can and will only dedicate time to it when I have the will to. I guarantee no SLOs for support, looking at issues or merging PRs. I will pay attention to security vulnerabilities where necessary. Please bear this in mind when evaluating this gem for production use.
71
+
72
+ That being said, bug reports and pull requests are welcome on GitHub at https://github.com/pawandubey/troml. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/pawandubey/troml/blob/master/CODE_OF_CONDUCT.md).
73
+
74
+ ## License
75
+
76
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
77
+
78
+ ## Code of Conduct
79
+
80
+ Everyone interacting in the Troml project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pawandubey/troml/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ require "standard/rake"
13
+
14
+ task default: %i[test standard]
data/exe/troml ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "troml"
6
+ require "json"
7
+
8
+ def tag(val)
9
+ case val
10
+ when String
11
+ {type: "string", value: val}
12
+ when Integer
13
+ {type: "integer", value: val}
14
+ when Float
15
+ {type: "float", value: val}
16
+ when TrueClass, FalseClass
17
+ {type: "bool", value: val}
18
+ when Array
19
+ val.map { |e| tag(e) }
20
+ when Hash
21
+ val.transform_values { |v| tag(v) }
22
+ end
23
+ end
24
+
25
+ raw_toml = ARGF.read
26
+
27
+ parsed_toml = Troml.parse(raw_toml)
28
+
29
+ tagged_hash = tag(parsed_toml)
30
+
31
+ puts tagged_hash.to_json
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Troml
4
+ VERSION = "0.1.0"
5
+ end
data/lib/troml.rb ADDED
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "troml/version"
4
+ require "rutie"
5
+ require "date"
6
+
7
+ module Troml
8
+ # Class to encapsulate external functions defined in Rust
9
+ # Must be defined before the call to Rutie#init as the Rust
10
+ # library depends on its existence.
11
+ #
12
+ # @private
13
+ class TromlExt; end
14
+
15
+ class Error < StandardError; end
16
+
17
+ class ExtParseError < Error; end
18
+
19
+ # Initialize external library
20
+ Rutie.new(:troml).init "Init_troml", __dir__
21
+
22
+ # Returns a hash representation of the TOML string passed.
23
+ # Raises on parse failure.
24
+ #
25
+ # @param raw_toml [String] The raw TOML as a string.
26
+ #
27
+ # @return [Hash] The hash representation of the TOML document, if valid.
28
+ # @raise [Troml::ExtParseError] Raises if parsing fails.
29
+ def self.parse(raw_toml)
30
+ TromlExt.parse(raw_toml)
31
+ end
32
+
33
+ # Returns a hash representation of the TOML stored in the file
34
+ # at the provided path.
35
+ # Raises on parse failure or if the file is not present.
36
+ #
37
+ # @param file_path [String] Path to the file to be read.
38
+ #
39
+ # @return [Hash] The hash representation of the file's TOML content.
40
+ # @raise [Troml::ExtParseError] Raises if parsing fails.
41
+ def self.parse_file(file_path)
42
+ TromlExt.parse(File.read(file_path))
43
+ end
44
+
45
+ private_constant :TromlExt
46
+ end
data/sig/troml.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Troml
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
data/src/lib.rs ADDED
@@ -0,0 +1,134 @@
1
+ use rutie::{
2
+ class, methods, AnyException, AnyObject, Array, Boolean, Class, Exception, Float, Hash,
3
+ Integer, Object, RString, VM, Module,
4
+ };
5
+ use toml::Value;
6
+
7
+ class!(TromlExt);
8
+
9
+ methods!(
10
+ TromlExt,
11
+ _rtself,
12
+ fn troml_ext_parse_toml_str(input: RString) -> Hash {
13
+ let raw_toml = input.map_err(|e| VM::raise_ex(e)).unwrap();
14
+
15
+ let parsed_toml = raw_toml
16
+ .to_string()
17
+ .parse::<Value>()
18
+ .map_err(|e| {
19
+ let msg = format!("{}", e);
20
+ VM::raise_ex(AnyException::new("Troml::ExtParseError", Some(&msg)))
21
+ })
22
+ .unwrap();
23
+
24
+ let mut hash = Hash::new();
25
+
26
+ let _rutie_toml = toml_to_toml_value(parsed_toml, &mut hash);
27
+
28
+ hash
29
+ }
30
+ );
31
+
32
+ enum TomlValue {
33
+ String(RString),
34
+ Integer(Integer),
35
+ Float(Float),
36
+ Boolean(Boolean),
37
+ Array(Array),
38
+ Table(Hash),
39
+ Datetime(AnyObject),
40
+ }
41
+
42
+ fn toml_to_toml_value(toml_value: Value, hash: &mut Hash) -> TomlValue {
43
+ match toml_value {
44
+ Value::String(s) => TomlValue::String(RString::new_utf8(&s)),
45
+ Value::Integer(i) => TomlValue::Integer(Integer::new(i)),
46
+ Value::Float(f) => TomlValue::Float(Float::new(f)),
47
+ Value::Boolean(b) => TomlValue::Boolean(Boolean::new(b)),
48
+ Value::Array(a) => {
49
+ let mut rutie_arr = Array::new();
50
+ for item in a.into_iter() {
51
+ let rutie_val = toml_to_toml_value(item, hash);
52
+ match rutie_val {
53
+ TomlValue::String(s) => rutie_arr.push(s),
54
+ TomlValue::Integer(i) => rutie_arr.push(i),
55
+ TomlValue::Float(f) => rutie_arr.push(f),
56
+ TomlValue::Boolean(b) => rutie_arr.push(b),
57
+ TomlValue::Array(a) => rutie_arr.push(a),
58
+ TomlValue::Table(t) => rutie_arr.push(t),
59
+ TomlValue::Datetime(d) => rutie_arr.push(d),
60
+ };
61
+ }
62
+ TomlValue::Array(rutie_arr)
63
+ }
64
+ Value::Table(t) => {
65
+ for (key, val) in t.into_iter() {
66
+ let rutie_key = RString::new_utf8(&key);
67
+ let mut nested_hash = Hash::new();
68
+ let rutie_val = toml_to_toml_value(val, &mut nested_hash);
69
+
70
+ match rutie_val {
71
+ TomlValue::String(s) => hash.store(rutie_key, s),
72
+ TomlValue::Integer(i) => hash.store(rutie_key, i),
73
+ TomlValue::Float(f) => hash.store(rutie_key, f),
74
+ TomlValue::Boolean(b) => hash.store(rutie_key, b),
75
+ TomlValue::Array(a) => hash.store(rutie_key, a),
76
+ TomlValue::Table(t) => hash.store(rutie_key, t),
77
+ TomlValue::Datetime(d) => hash.store(rutie_key, d),
78
+ };
79
+ }
80
+ TomlValue::Table(hash.to_owned())
81
+ }
82
+ Value::Datetime(d) => {
83
+ let args = [RString::new_utf8(&d.to_string()).to_any_object()];
84
+ let ruby_datetime = unsafe { Class::from_existing("DateTime").send("iso8601", &args) };
85
+ TomlValue::Datetime(ruby_datetime)
86
+ }
87
+ }
88
+ }
89
+
90
+ #[allow(non_snake_case)]
91
+ #[no_mangle]
92
+ pub extern "C" fn Init_troml() {
93
+ Module::from_existing("Troml").get_nested_class("TromlExt").define(|klass| {
94
+ klass.def_self("parse", troml_ext_parse_toml_str);
95
+ });
96
+ }
97
+
98
+ #[cfg(test)]
99
+ mod test {
100
+ use rutie::{Hash, Array, RString, Integer as Int, VM, Object};
101
+ use toml::Value;
102
+
103
+ #[test]
104
+ fn test_toml_parse() {
105
+ let toml = "
106
+ simple='value'
107
+ [nested]
108
+ nested_key='nested_val'
109
+ nested_array=['first_element', 2]
110
+ ";
111
+
112
+ VM::init();
113
+ let mut expected = Hash::new();
114
+ let mut nested_hash = Hash::new();
115
+ let mut nested_array = Array::new();
116
+
117
+ nested_array.push(RString::new_utf8("first_element"));
118
+ nested_array.push(Int::new(2));
119
+
120
+ nested_hash.store(RString::new_utf8("nested_key"), RString::new_utf8("nested_val"));
121
+ nested_hash.store(RString::new_utf8("nested_array"), nested_array);
122
+
123
+ expected.store(RString::new_utf8("simple"), RString::new_utf8("value"));
124
+ expected.store(RString::new_utf8("nested"), nested_hash);
125
+
126
+ let mut actual = Hash::new();
127
+
128
+ let toml_value = toml.parse::<Value>().unwrap();
129
+
130
+ let _ = crate::toml_to_toml_value(toml_value, &mut actual);
131
+
132
+ assert!(actual.equals(&expected), "expected {:?} to be equal to {:?}", actual, expected)
133
+ }
134
+ }
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: troml
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Pawan Dubey
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rutie
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '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'
27
+ - !ruby/object:Gem::Dependency
28
+ name: yard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: gem-release
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: TOML parser
56
+ email:
57
+ - git@pawandubey.com
58
+ executables:
59
+ - troml
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".rubocop.yml"
64
+ - ".ruby-version"
65
+ - ".standard.yml"
66
+ - CHANGELOG.md
67
+ - CODE_OF_CONDUCT.md
68
+ - Cargo.toml
69
+ - Gemfile
70
+ - Gemfile.lock
71
+ - LICENSE.txt
72
+ - README.md
73
+ - Rakefile
74
+ - exe/troml
75
+ - lib/troml.rb
76
+ - lib/troml/version.rb
77
+ - sig/troml.rbs
78
+ - src/lib.rs
79
+ homepage: https://github.com/pawandubey/troml
80
+ licenses:
81
+ - MIT
82
+ metadata:
83
+ homepage_uri: https://github.com/pawandubey/troml
84
+ source_code_uri: https://github.com/pawandubey/troml
85
+ changelog_uri: https://github.com/pawandubey/troml/tree/main/CHANGELOG.md
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 3.1.2
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubygems_version: 3.3.16
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: TOML parser
105
+ test_files: []