Skip to content

Commit

Permalink
Remove Rails Dependency Issues
Browse files Browse the repository at this point in the history
Rails is not really needed in the dependencies since you really
only need Active Record for the Active Record Extension, and
Active Support for the Concern.

I removed Rails as a dependency and put `activerecord` and
`activesupport` in its place, limiting the dependencies that are
needed.
  • Loading branch information
Micah Neumark committed Aug 26, 2016
1 parent 165c768 commit 42a80ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backgrounded.gemspec
Expand Up @@ -13,7 +13,8 @@ Gem::Specification.new do |spec|
spec.description = %q{Execute any ActiveRecord Model method in the background}
spec.homepage = 'http://github.com/wireframe/backgrounded'

spec.add_runtime_dependency 'rails', '>= 3.0.0'
spec.add_runtime_dependency 'activerecord', '>= 3.0.0'
spec.add_runtime_dependency 'activesupport', '>= 3.0.0'

spec.add_development_dependency 'bundler', '~> 1.11'
spec.add_development_dependency 'rake', '~> 10.0'
Expand Down
1 change: 1 addition & 0 deletions lib/backgrounded.rb
@@ -1,6 +1,7 @@
require 'logger'
require_relative 'backgrounded/handler/inprocess_handler'
require_relative 'backgrounded/object_extensions'
require_relative 'backgrounded/active_record_extension'
require_relative 'backgrounded/railtie' if defined?(Rails)

module Backgrounded
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
@@ -1,6 +1,6 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'rails'
require 'active_record'
require 'yaml'
require_relative 'support/setup_database'
require 'backgrounded'

Expand Down

0 comments on commit 42a80ee

Please sign in to comment.