Skip to content

Commit 42f364e

Browse files
committed
Moved development dependencies to Gemfile
As expressions in a gemspec file are evaluated at the build time, but not the run time, the conditional in the gemspec will not work as intended.
1 parent f6a6d0f commit 42f364e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ source "https://rubygems.org"
33
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
44

55
gemspec
6+
7+
group :development do
8+
gem "bundler"
9+
is_unix = RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
10+
gem 'vterm', '>= 0.0.5' if is_unix && ENV['WITH_VTERM']
11+
gem 'yamatanooroti', '>= 0.0.6'
12+
gem "rake"
13+
end

irb.gemspec

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,4 @@ Gem::Specification.new do |spec|
3737
spec.required_ruby_version = Gem::Requirement.new(">= 2.5")
3838

3939
spec.add_dependency "reline", ">= 0.1.5"
40-
spec.add_development_dependency "bundler"
41-
is_unix = RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
42-
spec.add_development_dependency 'vterm', '>= 0.0.5' if is_unix && ENV['WITH_VTERM']
43-
spec.add_development_dependency 'yamatanooroti', '>= 0.0.6'
44-
spec.add_development_dependency "rake"
4540
end

0 commit comments

Comments
 (0)