Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sparklemotion/nokogiri
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.0
Choose a base ref
...
head repository: sparklemotion/nokogiri
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.13.4
Choose a head ref
Loading
Showing 540 changed files with 138,650 additions and 30,639 deletions.
26 changes: 0 additions & 26 deletions .autotest

This file was deleted.

28 changes: 28 additions & 0 deletions .cross_rubies
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
2.6.0:aarch64-linux
2.6.0:arm64-darwin
2.6.0:x64-mingw32
2.6.0:x86-linux
2.6.0:x86-mingw32
2.6.0:x86_64-darwin
2.6.0:x86_64-linux
2.7.0:aarch64-linux
2.7.0:arm64-darwin
2.7.0:x64-mingw32
2.7.0:x86-linux
2.7.0:x86-mingw32
2.7.0:x86_64-darwin
2.7.0:x86_64-linux
3.0.0:aarch64-linux
3.0.0:arm64-darwin
3.0.0:x64-mingw32
3.0.0:x86-linux
3.0.0:x86-mingw32
3.0.0:x86_64-darwin
3.0.0:x86_64-linux
3.1.0:aarch64-linux
3.1.0:arm64-darwin
3.1.0:x64-mingw-ucrt
3.1.0:x86-linux
3.1.0:x86-mingw32
3.1.0:x86_64-darwin
3.1.0:x86_64-linux
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[**]
end_of_line = lf
insert_final_newline = true

[**.rb]
indent_style = space
indent_size = 2

[**.[ch]]
indent_style = space
indent_size = 2

[**.java]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tidelift: "rubygems/nokogiri"
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/1-installation-difficulties.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: "Installation Difficulties"
about: "If you're having trouble installing Nokogiri ..."
title: "[install]"
labels: "topic/installation"
assignees: ""

---

**Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**

- [ ] Yes!


**What is the complete output of `gem install` or `bundle install`?**

<!-- Please make sure to escape the file contents with triple-backticks. -->

```
the output goes here
```


**If installation completed but is broken, what is the complete output from `nokogiri -v`?**

<!-- Please make sure to escape the file contents with triple-backticks. -->

```
the output of "nokogiri -v" goes here
```



**If installation failed during compilation, what are the complete contents of the `mkmf.log` file generated during the failed installation?**

<!-- Please make sure to escape the file contents with triple-backticks. -->

```
the mkmf.log file contents go here
```


**Tell us about your system!**

What is the output from `ruby -v`?

What is the output from `gem -v`?

What is the output from `gem env`?

```
the output of "gem env" output goes here
```


If you're using Bundler:
- what is the output from `bundle version`?
- what is the output from `bundle config`? (Take care to redact any credentials)

```
the output of "bundle config" goes here
```

If you're on MacOS, please note:
- the version of XCode you have installed (if you know)
- the output of `gcc -v` or `clang -v`

If Linux or a BSD variant, please note:
- the distro you're using
- the output of `uname -a`
- the contents of `/etc/lsb-release`.

If Windows, please note:
- whether you're installing the precompiled gems, or compiling yourself with DevKit
- the version of RubyInstaller you've installed
- or if you're not using RubyInstaller, how did you install Ruby?
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/2-help-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: "Help Request"
about: "If something is confusing or you need a helping hand ..."
title: "[help]"
labels: "meta/user-help"
assignees: ""

---

**What problem are you trying to solve?**

<!--
A clear and concise description of what you're trying to do. Please try to describe the problem you're solving, rather than the solution you're implementing -- avoid the XY Problem! http://xyproblem.info/
-->

**Please show your code!**

<!--
If possible, please include whatever code you've written so far. We can give more focused advice if we are able to read and run some code.
Here's an example of how you might write such a script:
```ruby
#! /usr/bin/env ruby
require 'nokogiri'
xml = <<-EOF
<root>
<bicycles>
<bicycle color=red>Schwinn</bicycle>
</bicycles>
</root>"
EOF
doc = Nokogiri::XML::Document.parse(xml)
puts doc.css("bicycle").count
```
Please provide whatever code you can, the inputs (if any), along with the output that you're seeing. We need to reproduce what you're seeing to be able to help!
-->


**Environment**

<!--
```
Please paste the output from `nokogiri -v` here, escaped by triple-backtick.
```
This output will tell us what version of Ruby you're using, how you installed nokogiri, what versions of the underlying libraries you're using, and what operating system you're using.
-->

**Additional context**

<!--
Add any other context about the problem here.
-->
80 changes: 80 additions & 0 deletions .github/ISSUE_TEMPLATE/3-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
name: "Bug Report"
about: "Open an issue to help us improve"
title: "[bug]"
labels: "state/needs-triage"
assignees: ""

---

<!--
**Do not report Security Vulnerabilities here**
If you intend to report a security vulnerability, please do so at [HackerOne](https://hackerone.com/nokogiri) following the process detailed in [`SECURITY.md`](https://nokogiri.org/SECURITY.html). Do not report it through GitHub.
-->

**Please describe the bug**

<!--
A clear and concise description of what the bug is. Please include as much context as you can about what's going on.
-->

**Help us reproduce what you're seeing**

<!--
If possible, please include a complete, self-contained script that reproduces the behavior you're seeing. Please try to remove external dependencies like Rails or other libraries that may be wrapping Nokogiri.
Here's an example of how you might structure such a script:
```ruby
#! /usr/bin/env ruby
require 'nokogiri'
require 'minitest/autorun'
class Test < MiniTest::Spec
describe "Node#css" do
it "should find a div using chained classes" do
html = <<~HEREDOC
<html>
<body>
<div class="foo"> one</div>
<div class="bar">two</div>
<div class="foo bar">three</div>
HEREDOC
doc = Nokogiri::HTML::Document.parse(html)
assert_equal 1, doc.css("div.foo.bar").length
assert_equal "three", doc.at_css("div.foo.bar").text
end
end
end
```
If you haven't included a test, please provide whatever code you can, the inputs (if any), along with the output that you're seeing. We need to reproduce what you're seeing to be able to help!
-->


**Expected behavior**

<!--
If you haven't included a test above, please tell us precisely what you expected to happen.
-->


**Environment**

<!--
```
Please paste the output from `nokogiri -v` here, escaped by triple-backtick.
```
This output will tell us what version of Ruby you're using, how you installed nokogiri, what versions of the underlying libraries you're using, and what operating system you're using.
-->

**Additional context**

<!--
Add any other context about the problem here.
-->
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: Nokogiri Community Chat
url: https://gitter.im/sparklemotion/nokogiri
about: Please ask and answer questions here.
33 changes: 33 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--
-- Thank you for contributing to Nokogiri! To help us prioritize, please take care to answer the
-- questions below when you submit this pull request.
--
-- The Nokogiri core team work off of `main`, so please submit all PRs based on the `main`
-- branch. We generally will cherry-pick relevant bug fixes onto the current release branch.
-->

**What problem is this PR intended to solve?**

<!--
-- If there is an existing issue that describes this, feel free to simply link to that issue.
--
-- Otherwise, please provide enough context for the Nokogiri maintainers to understand your intent.
-->

**Have you included adequate test coverage?**

<!--
-- We have a thorough test suite that allows us to create releases confidently and prevent
-- accidental regressions. Any proposed change in behavior __must__ be accompanied by tests.
--
-- If possible, please try to write the tests so that they communicate intent.
-->

**Does this change affect the behavior of either the C or the Java implementations?**

<!--
-- If so, has the behavior change been made to _both_ implementations?
--
-- If not, the maintainers can probably help! Tell us what's missing (or what's blocking you), and
-- then submit this PR as a "Draft".
-->
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "bundler" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
Loading