microformats 4.3.1 → 4.5.0

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: 164ed0ee2ccec83b3a6a60ace37c3215fc272d3c66d30ff669ec575d3ad72327
4
- data.tar.gz: 8ba66533eae4e8eecfa8f0284527b3a10962c211f576511562bdf2763e66a77e
3
+ metadata.gz: fe2381175f0b0933d8c2eb19f6dce146326163e21f1b9335fabcf1506eb4071f
4
+ data.tar.gz: cc2b6408384e52f5cfc24f6e0961002f67ed1a31e1253fac1584c4649bdd5181
5
5
  SHA512:
6
- metadata.gz: e0ea4b71ded3e9edb8090c3f26cae2eb5e5b6ccd4c862a529a064c56141c1966520a68caa09968de00e06b646fe7ea024f386415593c11496f877d81a653cd6c
7
- data.tar.gz: 2080027cd9086e1ee5ea084fef2c8cf9dfbc7e47cde5a1c65179f96297be9043d0ede6baabcc63eb3d68021e1584a25b2364f417699865afabf7c9ecebf9c642
6
+ metadata.gz: bf11a95bd0a7325ba00b38f239d4ae4ee07c8590e5ffaea69d9a078fea46e9b444950ab6281a69504167742413e0a30c6f30838928138a41ee8368e38d429be1
7
+ data.tar.gz: 5119c529c34c9e282653dba2089ad82c321f221e1e54773c0257e6565bf63a8b971fe6d269edad907c096e350c5b9a13f85e7e5302212330ee4efd27158ae031
@@ -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,30 @@
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
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ # See: https://github.com/actions/runner/issues/849
23
+ ruby: ["2.7", "3.0", "3.1", "3.2"]
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+ - uses: ruby/setup-ruby@v1
27
+ with:
28
+ bundler-cache: true
29
+ ruby-version: ${{ matrix.ruby }}
30
+ - run: bundle exec rspec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.2.0
data/CONTRIBUTING.md CHANGED
@@ -8,7 +8,7 @@ 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.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).
11
+ microformats-ruby is tested against Ruby 2.7 and later versions (https://github.com/microformats/microformats-ruby/actions)
12
12
 
13
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
 
@@ -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.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).
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.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).
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
 
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Microformats
2
- VERSION = '4.3.1'.freeze
2
+ VERSION = '4.5.0'.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', '< 3.1']
7
+ spec.required_ruby_version = ['>= 2.7']
8
8
 
9
9
  spec.name = 'microformats'
10
10
  spec.version = Microformats::VERSION
@@ -23,17 +23,17 @@ 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.3'
27
- spec.add_development_dependency 'guard-rspec', '~> 4.7'
28
- spec.add_development_dependency 'rake', '~> 12.3'
29
- spec.add_development_dependency 'rb-fsevent', '~> 0.10.3'
30
- spec.add_development_dependency 'rspec', '~> 3.8'
31
- spec.add_development_dependency 'rubocop', '~> 0.74.0'
32
- spec.add_development_dependency 'rubocop-rspec', '~> 1.35'
33
- spec.add_development_dependency 'simplecov', '~> 0.17.0'
34
- spec.add_development_dependency 'simplecov-console', '~> 0.5.0'
35
- spec.add_development_dependency 'webmock', '~> 3.6'
36
-
37
- spec.add_runtime_dependency 'json', '~> 2.2'
38
- spec.add_runtime_dependency 'nokogiri', '~> 1.10'
26
+ spec.add_development_dependency 'bundler'
27
+ spec.add_development_dependency 'guard-rspec'
28
+ spec.add_development_dependency 'rake'
29
+ spec.add_development_dependency 'rb-fsevent'
30
+ spec.add_development_dependency 'rspec'
31
+ spec.add_development_dependency 'rubocop'
32
+ spec.add_development_dependency 'rubocop-rspec'
33
+ spec.add_development_dependency 'simplecov'
34
+ spec.add_development_dependency 'simplecov-console'
35
+ spec.add_development_dependency 'webmock'
36
+
37
+ spec.add_runtime_dependency 'json'
38
+ spec.add_runtime_dependency 'nokogiri'
39
39
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microformats
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
8
8
  - Jessica Lynn Suttles
9
9
  - Ben Roberts
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-03 00:00:00.000000000 Z
13
+ date: 2023-02-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -18,174 +18,168 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 1.16.2
22
- - - "<"
23
- - !ruby/object:Gem::Version
24
- version: '2.3'
21
+ version: '0'
25
22
  type: :development
26
23
  prerelease: false
27
24
  version_requirements: !ruby/object:Gem::Requirement
28
25
  requirements:
29
26
  - - ">="
30
27
  - !ruby/object:Gem::Version
31
- version: 1.16.2
32
- - - "<"
33
- - !ruby/object:Gem::Version
34
- version: '2.3'
28
+ version: '0'
35
29
  - !ruby/object:Gem::Dependency
36
30
  name: guard-rspec
37
31
  requirement: !ruby/object:Gem::Requirement
38
32
  requirements:
39
- - - "~>"
33
+ - - ">="
40
34
  - !ruby/object:Gem::Version
41
- version: '4.7'
35
+ version: '0'
42
36
  type: :development
43
37
  prerelease: false
44
38
  version_requirements: !ruby/object:Gem::Requirement
45
39
  requirements:
46
- - - "~>"
40
+ - - ">="
47
41
  - !ruby/object:Gem::Version
48
- version: '4.7'
42
+ version: '0'
49
43
  - !ruby/object:Gem::Dependency
50
44
  name: rake
51
45
  requirement: !ruby/object:Gem::Requirement
52
46
  requirements:
53
- - - "~>"
47
+ - - ">="
54
48
  - !ruby/object:Gem::Version
55
- version: '12.3'
49
+ version: '0'
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
53
  requirements:
60
- - - "~>"
54
+ - - ">="
61
55
  - !ruby/object:Gem::Version
62
- version: '12.3'
56
+ version: '0'
63
57
  - !ruby/object:Gem::Dependency
64
58
  name: rb-fsevent
65
59
  requirement: !ruby/object:Gem::Requirement
66
60
  requirements:
67
- - - "~>"
61
+ - - ">="
68
62
  - !ruby/object:Gem::Version
69
- version: 0.10.3
63
+ version: '0'
70
64
  type: :development
71
65
  prerelease: false
72
66
  version_requirements: !ruby/object:Gem::Requirement
73
67
  requirements:
74
- - - "~>"
68
+ - - ">="
75
69
  - !ruby/object:Gem::Version
76
- version: 0.10.3
70
+ version: '0'
77
71
  - !ruby/object:Gem::Dependency
78
72
  name: rspec
79
73
  requirement: !ruby/object:Gem::Requirement
80
74
  requirements:
81
- - - "~>"
75
+ - - ">="
82
76
  - !ruby/object:Gem::Version
83
- version: '3.8'
77
+ version: '0'
84
78
  type: :development
85
79
  prerelease: false
86
80
  version_requirements: !ruby/object:Gem::Requirement
87
81
  requirements:
88
- - - "~>"
82
+ - - ">="
89
83
  - !ruby/object:Gem::Version
90
- version: '3.8'
84
+ version: '0'
91
85
  - !ruby/object:Gem::Dependency
92
86
  name: rubocop
93
87
  requirement: !ruby/object:Gem::Requirement
94
88
  requirements:
95
- - - "~>"
89
+ - - ">="
96
90
  - !ruby/object:Gem::Version
97
- version: 0.74.0
91
+ version: '0'
98
92
  type: :development
99
93
  prerelease: false
100
94
  version_requirements: !ruby/object:Gem::Requirement
101
95
  requirements:
102
- - - "~>"
96
+ - - ">="
103
97
  - !ruby/object:Gem::Version
104
- version: 0.74.0
98
+ version: '0'
105
99
  - !ruby/object:Gem::Dependency
106
100
  name: rubocop-rspec
107
101
  requirement: !ruby/object:Gem::Requirement
108
102
  requirements:
109
- - - "~>"
103
+ - - ">="
110
104
  - !ruby/object:Gem::Version
111
- version: '1.35'
105
+ version: '0'
112
106
  type: :development
113
107
  prerelease: false
114
108
  version_requirements: !ruby/object:Gem::Requirement
115
109
  requirements:
116
- - - "~>"
110
+ - - ">="
117
111
  - !ruby/object:Gem::Version
118
- version: '1.35'
112
+ version: '0'
119
113
  - !ruby/object:Gem::Dependency
120
114
  name: simplecov
121
115
  requirement: !ruby/object:Gem::Requirement
122
116
  requirements:
123
- - - "~>"
117
+ - - ">="
124
118
  - !ruby/object:Gem::Version
125
- version: 0.17.0
119
+ version: '0'
126
120
  type: :development
127
121
  prerelease: false
128
122
  version_requirements: !ruby/object:Gem::Requirement
129
123
  requirements:
130
- - - "~>"
124
+ - - ">="
131
125
  - !ruby/object:Gem::Version
132
- version: 0.17.0
126
+ version: '0'
133
127
  - !ruby/object:Gem::Dependency
134
128
  name: simplecov-console
135
129
  requirement: !ruby/object:Gem::Requirement
136
130
  requirements:
137
- - - "~>"
131
+ - - ">="
138
132
  - !ruby/object:Gem::Version
139
- version: 0.5.0
133
+ version: '0'
140
134
  type: :development
141
135
  prerelease: false
142
136
  version_requirements: !ruby/object:Gem::Requirement
143
137
  requirements:
144
- - - "~>"
138
+ - - ">="
145
139
  - !ruby/object:Gem::Version
146
- version: 0.5.0
140
+ version: '0'
147
141
  - !ruby/object:Gem::Dependency
148
142
  name: webmock
149
143
  requirement: !ruby/object:Gem::Requirement
150
144
  requirements:
151
- - - "~>"
145
+ - - ">="
152
146
  - !ruby/object:Gem::Version
153
- version: '3.6'
147
+ version: '0'
154
148
  type: :development
155
149
  prerelease: false
156
150
  version_requirements: !ruby/object:Gem::Requirement
157
151
  requirements:
158
- - - "~>"
152
+ - - ">="
159
153
  - !ruby/object:Gem::Version
160
- version: '3.6'
154
+ version: '0'
161
155
  - !ruby/object:Gem::Dependency
162
156
  name: json
163
157
  requirement: !ruby/object:Gem::Requirement
164
158
  requirements:
165
- - - "~>"
159
+ - - ">="
166
160
  - !ruby/object:Gem::Version
167
- version: '2.2'
161
+ version: '0'
168
162
  type: :runtime
169
163
  prerelease: false
170
164
  version_requirements: !ruby/object:Gem::Requirement
171
165
  requirements:
172
- - - "~>"
166
+ - - ">="
173
167
  - !ruby/object:Gem::Version
174
- version: '2.2'
168
+ version: '0'
175
169
  - !ruby/object:Gem::Dependency
176
170
  name: nokogiri
177
171
  requirement: !ruby/object:Gem::Requirement
178
172
  requirements:
179
- - - "~>"
173
+ - - ">="
180
174
  - !ruby/object:Gem::Version
181
- version: '1.10'
175
+ version: '0'
182
176
  type: :runtime
183
177
  prerelease: false
184
178
  version_requirements: !ruby/object:Gem::Requirement
185
179
  requirements:
186
- - - "~>"
180
+ - - ">="
187
181
  - !ruby/object:Gem::Version
188
- version: '1.10'
182
+ version: '0'
189
183
  description: A Ruby gem to parse HTML containing microformats2 and classic microformats
190
184
  that returns a collection of dynamically defined Ruby objects, a Ruby hash, or a
191
185
  JSON hash.
@@ -199,13 +193,14 @@ extensions: []
199
193
  extra_rdoc_files: []
200
194
  files:
201
195
  - ".editorconfig"
196
+ - ".github/dependabot.yml"
197
+ - ".github/workflows/ci.yml"
202
198
  - ".gitignore"
203
199
  - ".rspec"
204
200
  - ".rubocop"
205
201
  - ".rubocop.yml"
206
202
  - ".ruby-version"
207
203
  - ".simplecov"
208
- - ".travis.yml"
209
204
  - CONTRIBUTING.md
210
205
  - Gemfile
211
206
  - Guardfile
@@ -238,18 +233,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
233
  requirements:
239
234
  - - ">="
240
235
  - !ruby/object:Gem::Version
241
- version: '2.4'
242
- - - "<"
243
- - !ruby/object:Gem::Version
244
- version: '3.1'
236
+ version: '2.7'
245
237
  required_rubygems_version: !ruby/object:Gem::Requirement
246
238
  requirements:
247
239
  - - ">="
248
240
  - !ruby/object:Gem::Version
249
241
  version: '0'
250
242
  requirements: []
251
- rubygems_version: 3.2.16
252
- signing_key:
243
+ rubygems_version: 3.4.1
244
+ signing_key:
253
245
  specification_version: 4
254
246
  summary: Microformats2 and classic microformats parser
255
247
  test_files: []
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.4.10
5
- - 2.5.8
6
- - 2.6.6
7
- - 2.7.2
8
- - 3.0.0
9
- before_install:
10
- - gem update --system
11
- - gem update bundler
12
- before_script:
13
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
14
- - chmod +x ./cc-test-reporter
15
- - ./cc-test-reporter before-build
16
- script:
17
- - bundle exec rspec
18
- after_script:
19
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT