Skip to content

Commit

Permalink
Test pg 0.19 for Ruby2+; pg < 0.19 for Ruby19
Browse files Browse the repository at this point in the history
  • Loading branch information
batter committed Nov 29, 2016
1 parent 6782635 commit 6906409
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion paper_trail.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ Gem::Specification.new do |s|
s.add_development_dependency "activerecord-jdbcmysql-adapter", "~> 1.3.15"
else
s.add_development_dependency "sqlite3", "~> 1.2"
s.add_development_dependency "pg", "~> 0.17"

# pg 0.19 requires ruby >= 2.0.0
if ::Gem.ruby_version >= ::Gem::Version.new("2.0.0")
s.add_development_dependency "pg", "~> 0.19.0"
else
s.add_development_dependency "pg", [">= 0.17", "< 0.19"]
end

# activerecord >= 4.2.5 may use mysql2 >= 0.4
s.add_development_dependency "mysql2", "~> 0.4.2"
Expand Down

0 comments on commit 6906409

Please sign in to comment.