microformats 4.2.0 → 4.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fee2c3bfcfdf906d57a5c8eebaaa4ccaa0f5a43935ebdf59115a5428b7b3f9f8
4
- data.tar.gz: 0ff1dcab1407837821b1cf3d9190f6fe9db92e3755da0d03df53b78f36850cd0
3
+ metadata.gz: 661a3d39e79ff3c73908a9e997e52e16562ca3f6bd3a7827eb5c6af00be0ddb3
4
+ data.tar.gz: c16938062a211bde3bcb3e8109de73ca54901cfd1a86c377c776c31d7529138e
5
5
  SHA512:
6
- metadata.gz: '040350389beccdd599196268062990c7e02db4f38725edb0a2e0570f0b3245cecec48dd4b96cf3c8f5e123d0591ec977bd0f7fb1ec555fac259ce91ffd6aa82b'
7
- data.tar.gz: 14de555d6a1fa16192fda7612689893f58a087f37383494efdc8dee916c6e8055fe6c770543c0ae7b0a87d5ef83b65f1db401cdd32f4ca276f837d03c768c4c8
6
+ metadata.gz: b9c61cdf0cee8ff3ec04fb94df4c20bb2cb25e185907e5a5928672a4e508f79e174cb2f8d2bddfeb9f546b3b7baf21297410dfe9f33f2725752776a8c3f7459d
7
+ data.tar.gz: 9fae3c80f0f06689b5d39b69248edfc0327929a91748a42ee9f4ae5bdd1f9350e1263d7c151a6d578d34efed9bc9a6d5b81402ca51dac5e14a705d96d1c9a70e
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ assignees:
8
+ - "dissolve"
@@ -0,0 +1,33 @@
1
+ name: CI
2
+ on: [push, pull_request]
3
+ jobs:
4
+ analyze:
5
+ name: Analyze
6
+ permissions:
7
+ contents: read
8
+ security-events: write
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: github/codeql-action/init@v2
13
+ with:
14
+ languages: ruby
15
+ - uses: github/codeql-action/analyze@v2
16
+ test:
17
+ name: Test
18
+ runs-on: ubuntu-latest
19
+ env:
20
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ # See: https://github.com/actions/runner/issues/849
25
+ ruby: [2.4, 2.5, 2.6, 2.7, "3.0", 3.1]
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ bundler-cache: true
31
+ ruby-version: ${{ matrix.ruby }}
32
+ - run: bundle exec rspec
33
+ - uses: paambaati/codeclimate-action@v3.0.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.6
1
+ 3.1.2
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.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
@@ -47,7 +47,7 @@ bundle console
47
47
  First, check out the latest code from GitHub:
48
48
 
49
49
  ```sh
50
- git pull origin master
50
+ git pull origin main
51
51
  ```
52
52
 
53
53
  Following the [Semantic Versioning](https://semver.org) conventions, update the gem version throughout the project (but most importantly in `lib/microformats/version.rb`).
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # ![Microformats Logo](https://raw.githubusercontent.com/microformats/microformats-ruby/master/logo.svg?sanitize=true) Microformats Ruby
1
+ # ![Microformats Logo](https://raw.githubusercontent.com/microformats/microformats-ruby/main/logo.svg?sanitize=true) Microformats Ruby
2
2
 
3
3
  **A Ruby gem for parsing HTML documents containing microformats.**
4
4
 
5
5
  [![Gem](https://img.shields.io/gem/v/microformats.svg?style=for-the-badge)](https://rubygems.org/gems/microformats)
6
6
  [![Downloads](https://img.shields.io/gem/dt/microformats.svg?style=for-the-badge)](https://rubygems.org/gems/microformats)
7
- [![Build](https://img.shields.io/travis/microformats/microformats-ruby/master.svg?style=for-the-badge)](https://travis-ci.org/microformats/microformats-ruby)
7
+ [![Build](https://img.shields.io/github/workflow/status/microformats/microformats-ruby/CI?logo=github&style=for-the-badge)](https://github.com/microformats/microformats-ruby/actions/workflows/ci.yml)
8
8
  [![Maintainability](https://img.shields.io/codeclimate/maintainability/microformats/microformats-ruby.svg?style=for-the-badge)](https://codeclimate.com/github/microformats/microformats-ruby)
9
9
  [![Coverage](https://img.shields.io/codeclimate/c/microformats/microformats-ruby.svg?style=for-the-badge)](https://codeclimate.com/github/microformats/microformats-ruby/code)
10
10
 
@@ -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 management 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, 2.5, 2.6, 2.7, 3.0, and 3.1 using [github Actions](https://github.com/microformats/microformats-ruby/actions).
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:
@@ -148,7 +148,7 @@ curl http://tantek.com | microformats
148
148
 
149
149
  Have questions about using microformats-ruby? Found a bug? Have ideas for new or improved features? Want to pitch in and write some code?
150
150
 
151
- Check out [CONTRIBUTING.md](https://github.com/microformats/microformats-ruby/blob/master/CONTRIBUTING.md) for more on how you can help!
151
+ Check out [CONTRIBUTING.md](https://github.com/microformats/microformats-ruby/blob/main/CONTRIBUTING.md) for more on how you can help!
152
152
 
153
153
  ## Acknowledgments
154
154
 
@@ -180,4 +180,4 @@ microformats-ruby is dedicated to the public domain using the [Creative Commons
180
180
 
181
181
  The authors waive all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, and distribute the work, even for commercial purposes, all without asking permission.
182
182
 
183
- See [LICENSE](https://github.com/microformats/microformats-ruby/blob/master/LICENSE) for more details.
183
+ See [LICENSE](https://github.com/microformats/microformats-ruby/blob/main/LICENSE) for more details.
@@ -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.4.1'.freeze
3
3
  end
data/microformats.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'microformats/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.required_ruby_version = ['>= 2.4', '< 2.8']
7
+ spec.required_ruby_version = ['>= 2.4', '< 3.2']
8
8
 
9
9
  spec.name = 'microformats'
10
10
  spec.version = Microformats::VERSION
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.post_install_message = 'Prior to version 4.0.0, the microformats gem was named "microformats2."'
25
25
 
26
- spec.add_development_dependency 'bundler', '>= 1.16.2', '< 2.2'
26
+ spec.add_development_dependency 'bundler', '>= 1.16.2', '< 2.4'
27
27
  spec.add_development_dependency 'guard-rspec', '~> 4.7'
28
28
  spec.add_development_dependency 'rake', '~> 12.3'
29
29
  spec.add_development_dependency 'rb-fsevent', '~> 0.10.3'
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.4.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: 2022-05-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.16.2
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '2.2'
24
+ version: '2.4'
25
25
  type: :development
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: 1.16.2
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '2.2'
34
+ version: '2.4'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: guard-rspec
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -199,13 +199,14 @@ extensions: []
199
199
  extra_rdoc_files: []
200
200
  files:
201
201
  - ".editorconfig"
202
+ - ".github/dependabot.yml"
203
+ - ".github/workflows/ci.yml"
202
204
  - ".gitignore"
203
205
  - ".rspec"
204
206
  - ".rubocop"
205
207
  - ".rubocop.yml"
206
208
  - ".ruby-version"
207
209
  - ".simplecov"
208
- - ".travis.yml"
209
210
  - CONTRIBUTING.md
210
211
  - Gemfile
211
212
  - Guardfile
@@ -241,14 +242,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
242
  version: '2.4'
242
243
  - - "<"
243
244
  - !ruby/object:Gem::Version
244
- version: '2.8'
245
+ version: '3.2'
245
246
  required_rubygems_version: !ruby/object:Gem::Requirement
246
247
  requirements:
247
248
  - - ">="
248
249
  - !ruby/object:Gem::Version
249
250
  version: '0'
250
251
  requirements: []
251
- rubygems_version: 3.1.2
252
+ rubygems_version: 3.3.7
252
253
  signing_key:
253
254
  specification_version: 4
254
255
  summary: Microformats2 and classic microformats parser
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.4.6
5
- - 2.5.5
6
- - 2.6.3
7
- - 2.7.0
8
- before_install:
9
- - gem update --system
10
- - gem update bundler
11
- before_script:
12
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
13
- - chmod +x ./cc-test-reporter
14
- - ./cc-test-reporter before-build
15
- script:
16
- - bundle exec rspec
17
- after_script:
18
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT