Sha256: dd38201b84e22a7197304d6d8b58ac243bfd7ea2ca5020ed6c788cad29589052

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

require 'jive/oauth_token/version'

module Jive
	module OauthToken
		module Compatibility
			if ActiveSupport::VERSION::MAJOR >= 4
				require 'active_support/proxy_object'

				def self.executable_prefix
					'bin'
				end

				def self.proxy_object_class
					ActiveSupport::ProxyObject
				end
			else
				require 'active_support/basic_object'

				def self.executable_prefix
					'script'
				end

				def self.proxy_object_class
					ActiveSupport::BasicObject
				end
			end
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jive-oauth_token-0.0.2 lib/jive/oauth_token/compatibility.rb
jive-oauth_token-0.0.1 lib/jive/oauth_token/compatibility.rb