diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-07-10 22:39:13 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-07-11 13:12:32 +0900 |
commit | ac717d65a31d05458588b78ea7719b79f8ea69e5 (patch) | |
tree | 4bfbec69de6a5c9f07179029146e216d090dc8cd /activesupport/lib/active_support/xml_mini | |
parent | 2adb2b19fce3a92f2e8e2d6e5a7915888cced09d (diff) | |
download | rails-ac717d65a31d05458588b78ea7719b79f8ea69e5.tar.gz rails-ac717d65a31d05458588b78ea7719b79f8ea69e5.tar.bz2 rails-ac717d65a31d05458588b78ea7719b79f8ea69e5.zip |
[Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`
Diffstat (limited to 'activesupport/lib/active_support/xml_mini')
6 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/xml_mini/jdom.rb b/activesupport/lib/active_support/xml_mini/jdom.rb index 8529c5f73b..60c7277028 100644 --- a/activesupport/lib/active_support/xml_mini/jdom.rb +++ b/activesupport/lib/active_support/xml_mini/jdom.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + raise "JRuby is required to use the JDOM backend for XmlMini" unless RUBY_PLATFORM.include?("java") require "jruby" diff --git a/activesupport/lib/active_support/xml_mini/libxml.rb b/activesupport/lib/active_support/xml_mini/libxml.rb index 2524d6aee2..b1be38fadf 100644 --- a/activesupport/lib/active_support/xml_mini/libxml.rb +++ b/activesupport/lib/active_support/xml_mini/libxml.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require "libxml" require_relative "../core_ext/object/blank" require "stringio" diff --git a/activesupport/lib/active_support/xml_mini/libxmlsax.rb b/activesupport/lib/active_support/xml_mini/libxmlsax.rb index 8ea4e9b292..3ad494310d 100644 --- a/activesupport/lib/active_support/xml_mini/libxmlsax.rb +++ b/activesupport/lib/active_support/xml_mini/libxmlsax.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require "libxml" require_relative "../core_ext/object/blank" require "stringio" diff --git a/activesupport/lib/active_support/xml_mini/nokogiri.rb b/activesupport/lib/active_support/xml_mini/nokogiri.rb index 087112830e..1987330c25 100644 --- a/activesupport/lib/active_support/xml_mini/nokogiri.rb +++ b/activesupport/lib/active_support/xml_mini/nokogiri.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + begin require "nokogiri" rescue LoadError => e diff --git a/activesupport/lib/active_support/xml_mini/nokogirisax.rb b/activesupport/lib/active_support/xml_mini/nokogirisax.rb index 7a9cd88af7..fb57eb8867 100644 --- a/activesupport/lib/active_support/xml_mini/nokogirisax.rb +++ b/activesupport/lib/active_support/xml_mini/nokogirisax.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + begin require "nokogiri" rescue LoadError => e diff --git a/activesupport/lib/active_support/xml_mini/rexml.rb b/activesupport/lib/active_support/xml_mini/rexml.rb index a5fea919a7..5fd8978fc0 100644 --- a/activesupport/lib/active_support/xml_mini/rexml.rb +++ b/activesupport/lib/active_support/xml_mini/rexml.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require_relative "../core_ext/kernel/reporting" require_relative "../core_ext/object/blank" require "stringio" |