$:.push File.expand_path("../lib", __FILE__)

# Maintain your gem's version:
require "postgresql_lo_streamer/version"

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
  s.name        = "postgresql_lo_streamer"
  s.version     = PostgresqlLoStreamer::VERSION
  s.authors     = ["Diogo Biazus"]
  s.email       = ["diogo@biazus.me"]
  s.homepage    = "https://github.com/diogob/postgresql_lo_streamer"
  s.summary     = "A Rails engine to stream PostgreSQL Large Objects to clients"
  s.description = "A simple engine of one controller that will use PostgreSQL LO interface and retrieve a large object by its oid."

  s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]

  s.add_dependency "rails", "~> 5.0"

  s.add_development_dependency "rspec-rails"
  s.add_development_dependency "rspec-its"
  s.add_development_dependency "pg"
end

$:.push File.expand_path("../lib", __FILE__)

# Maintain your gem's version:
require "postgresql_lo_streamer/version"

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
  s.name        = "postgresql_lo_streamer"
  s.version     = PostgresqlLoStreamer::VERSION
  s.authors     = ["Diogo Biazus"]
  s.email       = ["diogo@biazus.me"]
  s.homepage    = "https://github.com/diogob/postgresql_lo_streamer"
  s.summary     = "A Rails engine to stream PostgreSQL Large Objects to clients"
  s.description = "A simple engine of one controller that will use PostgreSQL LO interface and retrieve a large object by its oid."

  s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]

  s.add_dependency "rails", ">= 4.0"

  s.add_development_dependency "rspec-rails"
  s.add_development_dependency "rspec-its"
  s.add_development_dependency "pg"
end

Change dependency on rails to 4.0 and up
Change dependency on rails to 4.0 and up