lib/global_session/configuration.rb in global_session-1.1.0 vs lib/global_session/configuration.rb in global_session-2.0.0

- old
+ new

@@ -30,11 +30,10 @@ # # The following settings are supported: # * attributes # * signed # * insecure - # * integrated # * ephemeral # * timeout # * renew # * authority # * trust @@ -76,10 +75,14 @@ # @return a representation of the object suitable for printing to the console def inspect "<#{self.class.name} @environment=#{@environment.inspect}>" end + def to_hash + @config.dup + end + # Create a new Configuration object # # === Parameters # config(String|Hash):: Absolute filesystem path to the configuration file, or Hash containing configuration # environment(String):: Config file section from which to read settings @@ -116,10 +119,10 @@ def [](key) get(key, true) end def validate # :nodoc - ['attributes/signed', 'integrated', 'cookie/name', + ['attributes/signed', 'cookie/name', 'timeout'].each {|k| validate_presence_of k} end protected