Skip to content

Commit

Permalink
Merge branch '1719-stevecrozz-decrease-gem-size'
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Dec 17, 2018
2 parents 9bb0226 + dd19ddd commit 8d9a65b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 137 deletions.
40 changes: 40 additions & 0 deletions .hoerc
Original file line number Diff line number Diff line change
@@ -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'
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
137 changes: 2 additions & 135 deletions Manifest.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8d9a65b

Please sign in to comment.