microformats2 3.0.0 → 3.0.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/README.md +5 -5
- data/lib/microformats2/version.rb +1 -1
- data/microformats2.gemspec +0 -31
- metadata +4 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7acf453f148b1837f05fa98b383f2107b678c7e
|
4
|
+
data.tar.gz: 2d6fc8e93eaaddff73ad70a73d27968963401be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42485f29da5b732a5a6e81b4e00af6dfa93a955b9f59d9fefa280ef164e3a1f9b47aea7a22b046ff08ba4c89356154efed6967c1932d214074893a185c09e948
|
7
|
+
data.tar.gz: 97acddc82ad71af403bc717688c4d7c17051009fd8042b1bb40b1365a99b840e2bad0667429931c2474eb797f2df97eafb79fa7cfa8af1bbd927330bccf6bc19
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Microformats2 (ruby)
|
2
2
|
|
3
|
-
[](https://travis-ci.org/indieweb/microformats2-ruby)
|
4
4
|
[](https://codeclimate.com/github/indieweb/microformats2-ruby)
|
5
5
|
|
6
6
|
A Ruby gem to parse HTML containing one or more [microformats2](http://microformats.org/wiki/microformats-2)
|
@@ -37,18 +37,18 @@ Not Implemented:
|
|
37
37
|
|
38
38
|
## Current Version
|
39
39
|
|
40
|
-
3.0.
|
40
|
+
3.0.1
|
41
41
|
|
42
|
-

|
43
43
|
|
44
44
|
### Differences to 2.x
|
45
45
|
|
46
46
|
Version 3 of the microformats2 parsing library makes several significant changes from version 2.
|
47
|
-
Version 2 of the parser created new ruby objects for every root format and every property it parsed, this is no longer the case.
|
47
|
+
Version 2 of the parser created new ruby objects for every root format and every property it parsed, this is no longer the case.
|
48
48
|
Instead, all parsing is done in to a hash and results are wrapped in a few different objects classes which will respond to many of the function calls that the old classes would.
|
49
49
|
This means that the to_hash/to_h output is really the safest way to handle output data.
|
50
50
|
|
51
|
-
The ParserResult class (akin to the old Format class) takes several steps to guess at what function is wanted when it is called.
|
51
|
+
The ParserResult class (akin to the old Format class) takes several steps to guess at what function is wanted when it is called.
|
52
52
|
For of of the following, if the result is an array it will return the first item in the array unless it is passed the argument :all.
|
53
53
|
|
54
54
|
1. If the function called is a key of the current object, return the contents of that key.
|
data/microformats2.gemspec
CHANGED
@@ -28,35 +28,4 @@ Gem::Specification.new do |gem|
|
|
28
28
|
gem.add_development_dependency "rb-fsevent"
|
29
29
|
gem.add_development_dependency "simplecov"
|
30
30
|
gem.add_development_dependency "webmock"
|
31
|
-
|
32
|
-
gem.post_install_message = %q{
|
33
|
-
|
34
|
-
"Calling all. This is our last cry before our eternal silence."
|
35
|
-
- The 2.X version.
|
36
|
-
|
37
|
-
Coming VERY SOON: The 3.0 Version!
|
38
|
-
|
39
|
-
3.0 is a nearly complete re-write of the Microformats Ruby parser.
|
40
|
-
3.0 will fix almost all outstanding issues on the GitHub repo,
|
41
|
-
add classical Microformats support and more! But unfortunately,
|
42
|
-
the cost of doing this is that there will be some breaking changes
|
43
|
-
and changing API.
|
44
|
-
|
45
|
-
The 2.9 release is a transitional release. Really, we want you using 3.0,
|
46
|
-
but 2.9 gives you an opportunity to run your tests, fix any deprecation warnings,
|
47
|
-
and be able to migrate to 3.0 with greater confidence.
|
48
|
-
|
49
|
-
In addition to deprecation warnings on changing methods,
|
50
|
-
there are two changes that will not throw a warning:
|
51
|
-
|
52
|
-
- no more exposed Nokogiri objects
|
53
|
-
- the class names are changing
|
54
|
-
|
55
|
-
If you depend on either of those directly, you'll want to do additional
|
56
|
-
manual acceptance testing in this transition to 2.9 and 3.0.
|
57
|
-
|
58
|
-
<3
|
59
|
-
|
60
|
-
}
|
61
|
-
|
62
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microformats2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.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: 2017-05-
|
13
|
+
date: 2017-05-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|
@@ -611,19 +611,7 @@ files:
|
|
611
611
|
homepage: https://github.com/indieweb/microformats2-ruby
|
612
612
|
licenses: []
|
613
613
|
metadata: {}
|
614
|
-
post_install_message:
|
615
|
-
silence.\"\n - The 2.X version.\n\n Coming VERY SOON: The 3.0 Version!\n\n 3.0
|
616
|
-
is a nearly complete re-write of the Microformats Ruby parser.\n 3.0 will fix almost
|
617
|
-
all outstanding issues on the GitHub repo,\n add classical Microformats support
|
618
|
-
and more! But unfortunately,\n the cost of doing this is that there will be some
|
619
|
-
breaking changes\n and changing API.\n\n The 2.9 release is a transitional release.
|
620
|
-
Really, we want you using 3.0,\n but 2.9 gives you an opportunity to run your tests,
|
621
|
-
fix any deprecation warnings,\n and be able to migrate to 3.0 with greater confidence.
|
622
|
-
\n\n In addition to deprecation warnings on changing methods,\n there are two
|
623
|
-
changes that will not throw a warning:\n\n - no more exposed Nokogiri objects\n
|
624
|
-
\ - the class names are changing\n\n If you depend on either of those directly,
|
625
|
-
you'll want to do additional\n manual acceptance testing in this transition to
|
626
|
-
2.9 and 3.0.\n\n <3 \n\n "
|
614
|
+
post_install_message:
|
627
615
|
rdoc_options: []
|
628
616
|
require_paths:
|
629
617
|
- lib
|
@@ -639,7 +627,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
639
627
|
version: '0'
|
640
628
|
requirements: []
|
641
629
|
rubyforge_project:
|
642
|
-
rubygems_version: 2.
|
630
|
+
rubygems_version: 2.5.1
|
643
631
|
signing_key:
|
644
632
|
specification_version: 4
|
645
633
|
summary: microformats2 parser
|