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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fee2c3bfcfdf906d57a5c8eebaaa4ccaa0f5a43935ebdf59115a5428b7b3f9f8
4
- data.tar.gz: 0ff1dcab1407837821b1cf3d9190f6fe9db92e3755da0d03df53b78f36850cd0
3
+ metadata.gz: 0db7ff0869ff426739558604145a7a0672869e50e201b6707bf63a409e8e3065
4
+ data.tar.gz: c67ef5d3b811984836bbea69d5551928573f7478da29ad978c1b582b524927c7
5
5
  SHA512:
6
- metadata.gz: '040350389beccdd599196268062990c7e02db4f38725edb0a2e0570f0b3245cecec48dd4b96cf3c8f5e123d0591ec977bd0f7fb1ec555fac259ce91ffd6aa82b'
7
- data.tar.gz: 14de555d6a1fa16192fda7612689893f58a087f37383494efdc8dee916c6e8055fe6c770543c0ae7b0a87d5ef83b65f1db401cdd32f4ca276f837d03c768c4c8
6
+ metadata.gz: 979fbfccec1a40ebee6392f3695c3d0eddabb4c75968a335805aa711d2f833a2e2fdb8861e8ac32f0e2133f2b3d44ddcf63e71006ff6e552bd3700a5b4c652f0
7
+ data.tar.gz: 8a4abccee37a129230112c8368d8da513b34528e733a32866fe0c35798f17b37c7c293664ae62e37f4b69ee4c3852f727e3d60927ef1409b546a6c19986e673e
@@ -1 +1 @@
1
- 2.4.6
1
+ 2.7.1
@@ -1,10 +1,10 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.4.6
5
- - 2.5.5
6
- - 2.6.3
7
- - 2.7.0
4
+ - 2.4.10
5
+ - 2.5.8
6
+ - 2.6.6
7
+ - 2.7.1
8
8
  before_install:
9
9
  - gem update --system
10
10
  - gem update bundler
@@ -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.5.0 and is additionally tested against versions 2.2.9, 2.3.6, and 2.4.3 using [Travis CI](https://travis-ci.org/microformats/microformats-ruby).
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.5.0. 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.5.0 using your method of choice, install the project's gems by running:
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.2.9 (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).
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.4.4 and is additionally tested against version 2.5.1 using [Travis CI](https://travis-ci.org/microformats/microformats-ruby).
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.0'
29
+ gem 'microformats', '~> 4.0', '>= 4.2.1'
30
30
  ```
31
31
 
32
32
  …and then run:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Microformats
2
- VERSION = '4.2.0'.freeze
2
+ VERSION = '4.2.1'.freeze
3
3
  end
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.0
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-01-04 00:00:00.000000000 Z
13
+ date: 2020-08-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler