Skip to content

Commit 1a47885

Browse files
committed
Use generated Gemfile to store rdoc specific requirement for Ruby 2.2
1 parent 0d4547b commit 1a47885

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Gemfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ end
2424

2525
gem 'sqlite3', '~> 1.3.6'
2626

27-
# Version 6.0.4 of rdoc requires Ruby 2.2
28-
if RUBY_VERSION < '2.2'
29-
gem 'rdoc', '< 6.0.4'
30-
end
31-
3227
if RUBY_VERSION >= '2.4.0'
3328
gem 'json', '>= 2.0.2'
3429
end

example_app_generator/generate_app.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
| gem 'mime-types', '< 3'
5858
|end
5959
|
60+
|# Version 6.0.4 of rdoc requires Ruby 2.2
61+
|if RUBY_VERSION < '2.2'
62+
| gem 'rdoc', '< 6.0.4'
63+
|end
64+
|
6065
|gem 'rspec-rails',
6166
| :path => '#{rspec_rails_repo_path}',
6267
| :groups => [:development, :test]

0 commit comments

Comments
 (0)