diff --git a/.hoerc b/.hoerc new file mode 100644 index 0000000000..9ecaeb93a7 --- /dev/null +++ b/.hoerc @@ -0,0 +1,40 @@ +# -*- yaml -*- +--- +# this regex is what `rake check_manifest` should consider excluded from the gem +exclude: !ruby/regexp '/ +(^\.\/ + ((\.git + |concourse + |gems + |ports + |suppressions + |tasks + |test + |tmp + )\/) + |\.(autotest + |codeclimate\.yml + |cross_rubies + |editorconfig + |gemtest + |github + |gitignore + |hoerc + |travis\.yml + ) + |Gemfile.* + |Manifest.txt + |Rakefile + |appveyor\.yml + |build_all + |CHANGELOG.md + |CONTRIBUTING.md + |ROADMAP.md + |SECURITY.md + |STANDARD_RESPONSES.md + |Y_U_NO_GEMSPEC.md + |C_CODING_STYLE.* + |patches/sort-patches-by-date +) +|\.gitkeep +/x' diff --git a/CHANGELOG.md b/CHANGELOG.md index d8936153a3..d2037fbaa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ * [JRuby] Upgrade Xerces dependency from 2.11.0 to 2.12.0 to address upstream vulnerability CVE-2012-0881 [#1831] (Thanks @grajagandev for reporting.) +## Notable non-functional changes + +* Decrease installation size by removing many unneeded files (e.g., `/test`) from the packaged gems. [#1719] (Thanks, @stevecrozz!) + + ## Features * `XML::Attr#value=` allows HTML node attribute values to be set to either a blank string or an empty boolean attribute. [#1800] diff --git a/Manifest.txt b/Manifest.txt index f731e2e690..92408ccc87 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -1,25 +1,7 @@ -.autotest -.cross_rubies -.editorconfig -.gemtest -.travis.yml -CHANGELOG.md -CONTRIBUTING.md -C_CODING_STYLE.rdoc -Gemfile -Gemfile-libxml-ruby LICENSE-DEPENDENCIES.md LICENSE.md -Manifest.txt README.md -ROADMAP.md -Rakefile -SECURITY.md -STANDARD_RESPONSES.md -Y_U_NO_GEMSPEC.md -appveyor.yml bin/nokogiri -build_all dependencies.yml ext/java/nokogiri/EncodingHandler.java ext/java/nokogiri/HtmlDocument.java @@ -81,8 +63,6 @@ ext/java/nokogiri/internals/XalanDTMManagerPatch.java ext/java/nokogiri/internals/XmlDeclHandler.java ext/java/nokogiri/internals/XmlDomParserContext.java ext/java/nokogiri/internals/XmlSaxParser.java -ext/java/nokogiri/internals/dom2dtm/DOM2DTM.java -ext/java/nokogiri/internals/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java ext/java/nokogiri/internals/c14n/AttrCompare.java ext/java/nokogiri/internals/c14n/C14nHelper.java ext/java/nokogiri/internals/c14n/CanonicalFilter.java @@ -110,6 +90,8 @@ ext/java/nokogiri/internals/c14n/NameSpaceSymbTable.java ext/java/nokogiri/internals/c14n/NodeFilter.java ext/java/nokogiri/internals/c14n/UtfHelpper.java ext/java/nokogiri/internals/c14n/XMLUtils.java +ext/java/nokogiri/internals/dom2dtm/DOM2DTM.java +ext/java/nokogiri/internals/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java ext/nokogiri/depend ext/nokogiri/extconf.rb ext/nokogiri/html_document.c @@ -254,118 +236,3 @@ lib/xsd/xmlparser/nokogiri.rb patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch patches/libxml2/0002-Fix-nullptr-deref-with-XPath-logic-ops.patch patches/libxml2/0003-Fix-infinite-loop-in-LZMA-decompression.patch -patches/sort-patches-by-date -suppressions/README.txt -suppressions/nokogiri_ruby-2.supp -tasks/test.rb -test/css/test_nthiness.rb -test/css/test_parser.rb -test/css/test_tokenizer.rb -test/css/test_xpath_visitor.rb -test/decorators/test_slop.rb -test/files/2ch.html -test/files/GH_1042.html -test/files/address_book.rlx -test/files/address_book.xml -test/files/atom.xml -test/files/bar/bar.xsd -test/files/bogus.xml -test/files/dont_hurt_em_why.xml -test/files/encoding.html -test/files/encoding.xhtml -test/files/exslt.xml -test/files/exslt.xslt -test/files/foo/foo.xsd -test/files/metacharset.html -test/files/namespace_pressure_test.xml -test/files/noencoding.html -test/files/po.xml -test/files/po.xsd -test/files/saml/saml20assertion_schema.xsd -test/files/saml/saml20protocol_schema.xsd -test/files/saml/xenc_schema.xsd -test/files/saml/xmldsig_schema.xsd -test/files/shift_jis.html -test/files/shift_jis.xml -test/files/shift_jis_no_charset.html -test/files/slow-xpath.xml -test/files/snuggles.xml -test/files/staff.dtd -test/files/staff.xml -test/files/staff.xslt -test/files/test_document_url/bar.xml -test/files/test_document_url/document.dtd -test/files/test_document_url/document.xml -test/files/tlm.html -test/files/to_be_xincluded.xml -test/files/valid_bar.xml -test/files/xinclude.xml -test/helper.rb -test/html/sax/test_parser.rb -test/html/sax/test_parser_context.rb -test/html/sax/test_parser_text.rb -test/html/sax/test_push_parser.rb -test/html/test_attributes.rb -test/html/test_builder.rb -test/html/test_document.rb -test/html/test_document_encoding.rb -test/html/test_document_fragment.rb -test/html/test_element_description.rb -test/html/test_named_characters.rb -test/html/test_node.rb -test/html/test_node_encoding.rb -test/namespaces/test_additional_namespaces_in_builder_doc.rb -test/namespaces/test_namespaces_aliased_default.rb -test/namespaces/test_namespaces_in_builder_doc.rb -test/namespaces/test_namespaces_in_cloned_doc.rb -test/namespaces/test_namespaces_in_created_doc.rb -test/namespaces/test_namespaces_in_parsed_doc.rb -test/namespaces/test_namespaces_preservation.rb -test/test_convert_xpath.rb -test/test_css_cache.rb -test/test_encoding_handler.rb -test/test_memory_leak.rb -test/test_nokogiri.rb -test/test_soap4r_sax.rb -test/test_xslt_transforms.rb -test/xml/node/test_save_options.rb -test/xml/node/test_subclass.rb -test/xml/sax/test_parser.rb -test/xml/sax/test_parser_context.rb -test/xml/sax/test_parser_text.rb -test/xml/sax/test_push_parser.rb -test/xml/test_attr.rb -test/xml/test_attribute_decl.rb -test/xml/test_builder.rb -test/xml/test_c14n.rb -test/xml/test_cdata.rb -test/xml/test_comment.rb -test/xml/test_document.rb -test/xml/test_document_encoding.rb -test/xml/test_document_fragment.rb -test/xml/test_dtd.rb -test/xml/test_dtd_encoding.rb -test/xml/test_element_content.rb -test/xml/test_element_decl.rb -test/xml/test_entity_decl.rb -test/xml/test_entity_reference.rb -test/xml/test_namespace.rb -test/xml/test_node.rb -test/xml/test_node_attributes.rb -test/xml/test_node_encoding.rb -test/xml/test_node_inheritance.rb -test/xml/test_node_reparenting.rb -test/xml/test_node_set.rb -test/xml/test_parse_options.rb -test/xml/test_processing_instruction.rb -test/xml/test_reader.rb -test/xml/test_reader_encoding.rb -test/xml/test_relax_ng.rb -test/xml/test_schema.rb -test/xml/test_syntax_error.rb -test/xml/test_text.rb -test/xml/test_unparented_node.rb -test/xml/test_xinclude.rb -test/xml/test_xpath.rb -test/xslt/test_custom_functions.rb -test/xslt/test_exception_handling.rb diff --git a/Rakefile b/Rakefile index 21b27a17df..f908a5496a 100644 --- a/Rakefile +++ b/Rakefile @@ -115,8 +115,7 @@ HOE = Hoe.spec 'nokogiri' do self.readme_file = "README.md" self.history_file = "CHANGELOG.md" - self.extra_rdoc_files = FileList['*.rdoc','ext/nokogiri/*.c'] - + self.extra_rdoc_files = FileList['ext/nokogiri/*.c'] self.clean_globs += [ 'nokogiri.gemspec',