lib/gemsmith/templates/gem.gemspec.tmp in gemsmith-1.3.0 vs lib/gemsmith/templates/gem.gemspec.tmp in gemsmith-1.4.0
- old
+ new
@@ -23,19 +23,20 @@
<%- end -%>
<%- if config[:rails] -%>
s.add_dependency "rails", "~> <%= config[:rails_version] %>"
<%- end -%>
<%- if config[:travis] -%>
- s.add_development_dependency "rake"
+ s.add_development_dependency "rake"
<%- end -%>
<%- if config[:rspec] -%>
- s.add_development_dependency "rspec"
+ <%- rspec_gem = config[:rails] ? "rspec-rails" : "rspec" -%>
+ s.add_development_dependency "<%= rspec_gem %>"
<%- end -%>
<%- if config[:bin] -%>
s.add_development_dependency "aruba"
<%- end -%>
-
- s.files = Dir["lib/**/*"]
+
+ s.files = Dir["lib/**/*", "vendor/**/*"]
s.extra_rdoc_files = Dir["README*", "CHANGELOG*", "LICENSE*"]
<%- if config[:bin] -%>
s.executables << "<%= config[:gem_name] %>"
<%- end -%>
s.require_paths = ["lib"]