lib/hexx/suit/install.rb in hexx-suit-2.1.0 vs lib/hexx/suit/install.rb in hexx-suit-2.2.0
- old
+ new
@@ -30,10 +30,15 @@
def install_rspec
Hexx::RSpec::Install.start %w(--no-rakefile)
end
# @private
+ def update_spec_helper
+ template "spec/spec_helper.erb", "spec/spec_helper.rb", force: true
+ end
+
+ # @private
def create_rakefile
copy_file "Rakefile"
end
# @private
@@ -74,9 +79,13 @@
private
def version
Hexx::Suit::VERSION.split(".")[0..1].join(".")
+ end
+
+ def gemname
+ @gemname ||= ::File.basename(destination_root).downcase
end
end # class Install
end # module Suit