Sha256: 56fb737f01e944fbfb08c114ce6e633eb6b58028f989983dd90ebe861d28fa30

Contents?: true

Size: 933 Bytes

Versions: 14

Compression:

Stored size: 933 Bytes

Contents

require 'logger'
require 'multi_json'
require 'active_support/all'

module Rpush
  def self.attr_accessible_available?
    require 'rails'
  rescue LoadError
    false
  else
    ::Rails::VERSION::STRING < '4' || defined?(::ActiveRecord::MassAssignmentSecurity)
  end
end

require 'rpush/version'
require 'rpush/cli'
require 'rpush/deprecation'
require 'rpush/deprecatable'
require 'rpush/logger'
require 'rpush/multi_json_helper'
require 'rpush/configuration'
require 'rpush/reflection_collection'
require 'rpush/reflection_public_methods'
require 'rpush/reflectable'
require 'rpush/plugin'
require 'rpush/embed'
require 'rpush/push'
require 'rpush/apns_feedback'

module Rpush
  def self.jruby?
    defined? JRUBY_VERSION
  end

  def self.logger
    @logger ||= Logger.new
  end

  def self.root
    require 'rails'
    Rails.root || Dir.pwd
  rescue LoadError
    Dir.pwd
  end

  class << self
    attr_writer :logger
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rpush-2.7.0-java lib/rpush.rb
rpush-2.7.0 lib/rpush.rb
rpush-2.6.0-java lib/rpush.rb
rpush-2.6.0 lib/rpush.rb
rpush-2.5.0 lib/rpush.rb
rpush-2.4.0-java lib/rpush.rb
rpush-2.4.0 lib/rpush.rb
rpush-2.3.2-java lib/rpush.rb
rpush-2.3.2 lib/rpush.rb
rpush-2.3.1-java lib/rpush.rb
rpush-2.3.1 lib/rpush.rb
rpush-2.3.0-java lib/rpush.rb
rpush-2.3.0 lib/rpush.rb
rpush-2.3.0.rc1 lib/rpush.rb