Sha256: 846218f9cf1a73b4a3a8b08eb65eab834497efe5f478eeab6d87f6084e8e6f97

Contents?: true

Size: 518 Bytes

Versions: 23

Compression:

Stored size: 518 Bytes

Contents

# Copyright (c) 2008 The Kaphan Foundation
#
# For licensing information see LICENSE.
#
# Please visit http://www.peerworks.org/contact for further information.
#

module Atom
  class Configuration
    def self.auth_hmac_enabled?
      unless defined?(@auth_hmac_enabled)
        begin
          gem 'auth-hmac'
          require 'auth-hmac'
          @auth_hmac_enabled = true
        rescue Exception
          @auth_hmac_enabled = false
        end
      else
        @auth_hmac_enabled
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
ratom-nokogiri-0.10.11 lib/atom/configuration.rb
ratom-nokogiri-0.10.10 lib/atom/configuration.rb
ratom-nokogiri-0.10.9 lib/atom/configuration.rb
ratom-nokogiri-0.10.8 lib/atom/configuration.rb
ratom-nokogiri-0.10.7 lib/atom/configuration.rb
ratom-nokogiri-0.10.6 lib/atom/configuration.rb
ratom-nokogiri-0.10.5 lib/atom/configuration.rb
ratom-nokogiri-0.10.4 lib/atom/configuration.rb
ratom-nokogiri-0.10.3 lib/atom/configuration.rb
ratom-nokogiri-0.10.2 lib/atom/configuration.rb
ratom-nokogiri-0.10.1 lib/atom/configuration.rb
ratom-nokogiri-0.10.0 lib/atom/configuration.rb
ratom-0.9.0 lib/atom/configuration.rb
ratom-0.8.2 lib/atom/configuration.rb
ratom-0.8.1 lib/atom/configuration.rb
ratom-0.8.0 lib/atom/configuration.rb
ratom-0.7.2 lib/atom/configuration.rb
ratom-0.7.1 lib/atom/configuration.rb
ratom-0.7.0 lib/atom/configuration.rb
ratom-0.6.10 lib/atom/configuration.rb