summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFritz Meissner <fritz.meissner@gmail.com>2014-11-26 11:01:27 -0500
committerdblock <dblock@dblock.org>2014-11-26 11:01:27 -0500
commitdf704887b181d357b68aef1e4521a8148f903ca8 (patch)
treecee3f9769cfbcceba32fa17d76771e8d24d9a34f
parent3b8b2d37ed924cb834370750bc52e201a7d071ba (diff)
downloadhashie-df704887b181d357b68aef1e4521a8148f903ca8.tar.gz
Added Hashie::Extensions::MethodAccessWithOverride to autoloads.
-rw-r--r--CHANGELOG.md1
-rw-r--r--lib/hashie.rb1
-rw-r--r--spec/hashie/extensions/autoload_spec.rb24
3 files changed, 26 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a02b28..2d0a8d4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
* [#228](https://github.com/intridea/hashie/pull/228): Made Hashie::Extensions::Parsers::YamlErbParser pass template filename to ERB - [@jperville](https://github.com/jperville).
* [#224](https://github.com/intridea/hashie/pull/224): Merging Hashie::Mash now correctly only calls the block on duplicate values - [@amysutedja](https://github.com/amysutedja).
* [#221](https://github.com/intridea/hashie/pull/221): Reduce amount of allocated objects on calls with suffixes in Hashie::Mash - [@kubum](https://github.com/kubum).
+* [#245](https://github.com/intridea/hashie/pull/245): Added Hashie::Extensions::MethodAccessWithOverride to autoloads - [@Fritzinger](https://github.com/Fritzinger).
* Your contribution here.
## 3.3.1 (8/26/2014)
diff --git a/lib/hashie.rb b/lib/hashie.rb
index 6a04fab..06f51bd 100644
--- a/lib/hashie.rb
+++ b/lib/hashie.rb
@@ -24,6 +24,7 @@ module Hashie
autoload :DeepFind, 'hashie/extensions/deep_find'
autoload :PrettyInspect, 'hashie/extensions/pretty_inspect'
autoload :KeyConversion, 'hashie/extensions/key_conversion'
+ autoload :MethodAccessWithOverride, 'hashie/extensions/method_access'
module Parsers
autoload :YamlErbParser, 'hashie/extensions/parsers/yaml_erb_parser'
diff --git a/spec/hashie/extensions/autoload_spec.rb b/spec/hashie/extensions/autoload_spec.rb
new file mode 100644
index 0000000..d4f11c6
--- /dev/null
+++ b/spec/hashie/extensions/autoload_spec.rb
@@ -0,0 +1,24 @@
+require 'spec_helper'
+require 'hashie'
+
+describe Hashie::Extensions do
+ describe 'autloads constants' do
+ it { is_expected.to be_const_defined(:MethodAccess) }
+ it { is_expected.to be_const_defined(:Coercion) }
+ it { is_expected.to be_const_defined(:DeepMerge) }
+ it { is_expected.to be_const_defined(:IgnoreUndeclared) }
+ it { is_expected.to be_const_defined(:IndifferentAccess) }
+ it { is_expected.to be_const_defined(:MergeInitializer) }
+ it { is_expected.to be_const_defined(:MethodAccess) }
+ it { is_expected.to be_const_defined(:MethodQuery) }
+ it { is_expected.to be_const_defined(:MethodReader) }
+ it { is_expected.to be_const_defined(:MethodWriter) }
+ it { is_expected.to be_const_defined(:StringifyKeys) }
+ it { is_expected.to be_const_defined(:SymbolizeKeys) }
+ it { is_expected.to be_const_defined(:DeepFetch) }
+ it { is_expected.to be_const_defined(:DeepFind) }
+ it { is_expected.to be_const_defined(:PrettyInspect) }
+ it { is_expected.to be_const_defined(:KeyConversion) }
+ it { is_expected.to be_const_defined(:MethodAccessWithOverride) }
+ end
+end