Skip to content

Commit da3bc41

Browse files
committed
Use generated Gemfile to store rdoc specific requirement for Ruby 2.2
1 parent a1d9f81 commit da3bc41

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
@@ -47,6 +47,11 @@
4747
| gem 'mime-types', '< 3'
4848
|end
4949
|
50+
|# Version 6.0.4 of rdoc requires Ruby 2.2
51+
|if RUBY_VERSION < '2.2'
52+
| gem 'rdoc', '< 6.0.4'
53+
|end
54+
|
5055
|gem 'rspec-rails',
5156
| :path => '#{rspec_rails_repo_path}',
5257
| :groups => [:development, :test]

0 commit comments

Comments
 (0)