microformats 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +4 -4
- data/CONTRIBUTING.md +2 -2
- data/README.md +3 -3
- data/lib/microformats/parser.rb +1 -1
- data/lib/microformats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0db7ff0869ff426739558604145a7a0672869e50e201b6707bf63a409e8e3065
|
4
|
+
data.tar.gz: c67ef5d3b811984836bbea69d5551928573f7478da29ad978c1b582b524927c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 979fbfccec1a40ebee6392f3695c3d0eddabb4c75968a335805aa711d2f833a2e2fdb8861e8ac32f0e2133f2b3d44ddcf63e71006ff6e552bd3700a5b4c652f0
|
7
|
+
data.tar.gz: 8a4abccee37a129230112c8368d8da513b34528e733a32866fe0c35798f17b37c7c293664ae62e37f4b69ee4c3852f727e3d60927ef1409b546a6c19986e673e
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/.travis.yml
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -8,9 +8,9 @@ There are a couple ways you can help improve microformats-ruby:
|
|
8
8
|
|
9
9
|
## Getting Started
|
10
10
|
|
11
|
-
microformats-ruby is developed using Ruby 2.
|
11
|
+
microformats-ruby is developed using Ruby 2.7.1 and is additionally tested against versions 2.4.10, 2.5.8, and 2.6.6 using [Travis CI](https://travis-ci.org/microformats/microformats-ruby).
|
12
12
|
|
13
|
-
Before making changes to microformats-ruby, you'll want to install Ruby 2.
|
13
|
+
Before making changes to microformats-ruby, you'll want to install Ruby 2.7.1. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.7.1 using your method of choice, install the project's gems by running:
|
14
14
|
|
15
15
|
```sh
|
16
16
|
bundle install
|
data/README.md
CHANGED
@@ -15,9 +15,9 @@
|
|
15
15
|
|
16
16
|
## Getting Started
|
17
17
|
|
18
|
-
Before installing and using microformats-ruby, you'll want to have Ruby 2.
|
18
|
+
Before installing and using microformats-ruby, you'll want to have Ruby 2.4.10 (or newer) installed. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm).
|
19
19
|
|
20
|
-
microformats-ruby is developed using Ruby 2.
|
20
|
+
microformats-ruby is developed using Ruby 2.7.1 and is additionally tested against versions 2.4.10, 2.5.8, and 2.6.6 using [Travis CI](https://travis-ci.org/microformats/microformats-ruby).
|
21
21
|
|
22
22
|
## Installation
|
23
23
|
|
@@ -26,7 +26,7 @@ If you're using [Bundler](https://bundler.io) to manage gem dependencies, add mi
|
|
26
26
|
```ruby
|
27
27
|
source 'https://rubygems.org'
|
28
28
|
|
29
|
-
gem 'microformats', '~> 4.0', '>= 4.2.
|
29
|
+
gem 'microformats', '~> 4.0', '>= 4.2.1'
|
30
30
|
```
|
31
31
|
|
32
32
|
…and then run:
|
data/lib/microformats/parser.rb
CHANGED
@@ -43,7 +43,7 @@ module Microformats
|
|
43
43
|
def read_html(html, headers: {})
|
44
44
|
stripped_html = html.strip
|
45
45
|
|
46
|
-
open(stripped_html, headers) do |response|
|
46
|
+
(URI.respond_to?(:open) ? URI : Kernel).open(stripped_html, **headers) do |response|
|
47
47
|
@http_headers = response.meta if response.respond_to?(:meta)
|
48
48
|
@http_body = response.read
|
49
49
|
end
|
data/lib/microformats/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microformats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|