lib/hexx/suit/install.rb in hexx-suit-2.0.0 vs lib/hexx/suit/install.rb in hexx-suit-2.1.0

- old
+ new

@@ -59,9 +59,26 @@ # @private def create_rubocop_loader copy_file "_rubocop.yml", ".rubocop.yml" end + # @private + def create_gemfile + copy_file "Gemfile", skip: true + append_to_file( + "Gemfile", + "\ngem \"hexx-suit\", \"~> #{ version }\"," \ + " group: :metrics if RUBY_ENGINE == \"ruby\"\n", + skip: true + ) + end + + private + + def version + Hexx::Suit::VERSION.split(".")[0..1].join(".") + end + end # class Install end # module Suit end # module Hexx