peachtree 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: d60c2ef6ce4fa8ba9a62fb11c432f5ee6eef27590c9d22dfa94feb4095c7c173
4
+ data.tar.gz: 5f8a32a1696abe2966f2ad8a725ae2ef217acf1ba761ad26e9cfa1cf3a0bdec9
5
+ SHA512:
6
+ metadata.gz: e821eef219a70b395f026773d4a4c0eee31fefd72425e21789539cea2f444f158b61e24742a9ba58d5c0cb7db5c489c91de573165fb12928342edf8633aabbea
7
+ data.tar.gz: be28991bf9898256d90509a8fc9656c6266cfb946c7c7afa1dc9c75f68667c079913fff055c1fe4fe35b46def08becf29868c1dcc2067070a73f2b14c8d89ee7
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Peachtree
2
+
3
+ Spec-less, Nokogiri-compatible HTML parser written in Ruby.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ ```shell
10
+ bundle add peachtree
11
+ ```
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ ```shell
16
+ gem install peachtree
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```ruby
22
+ require "peachtree"
23
+
24
+ Peachtree.parse("<h1>Hello World</h1>")
25
+
26
+ => #(Document:0x00000 {
27
+ name = "document",
28
+ children = [
29
+ #(Element:0x00001 {
30
+ name = "h1",
31
+ children = [
32
+ #(Text "Hello World")
33
+ ]
34
+ })
35
+ ]
36
+ })
37
+ ```
38
+
39
+ ## Development
40
+
41
+ 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.
42
+
43
+ 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).
44
+
45
+ ## Contributing
46
+
47
+ Bug reports and pull requests are welcome on GitHub at https://github.com/marcoroth/peachtree. 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/marcoroth/peachtree/blob/main/CODE_OF_CONDUCT.md).
48
+
49
+ ## Code of Conduct
50
+
51
+ Everyone interacting in the Peachtree project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/marcoroth/peachtree/blob/main/CODE_OF_CONDUCT.md).
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Peachtree
4
+ VERSION = "0.1.0"
5
+ end
data/lib/peachtree.rb ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "peachtree/version"
4
+
5
+ module Peachtree
6
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: peachtree
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Marco Roth
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-04-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Spec-less, Nokogiri-compatible HTML parser
28
+ email:
29
+ - marco.roth@hey.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - README.md
35
+ - lib/peachtree.rb
36
+ - lib/peachtree/version.rb
37
+ homepage: https://github.com/marcoroth/peachtree
38
+ licenses: []
39
+ metadata:
40
+ rubygems_mfa_required: 'true'
41
+ homepage_uri: https://github.com/marcoroth/peachtree
42
+ source_code_uri: https://github.com/marcoroth/peachtree
43
+ changelog_uri: https://github.com/marcoroth/peachtree/blob/main/CHANGELOG.md
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.7.0
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubygems_version: 3.4.1
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: Spec-less, Nokogiri-compatible HTML parser
63
+ test_files: []