lib/hexx/suit/install.rb in hexx-suit-2.2.2 vs lib/hexx/suit/install.rb in hexx-suit-2.2.3

- old
+ new

@@ -68,12 +68,14 @@ # @private def create_gemfile copy_file "Gemfile", skip: true append_to_file( - "Gemfile", - "\ngem \"hexx-suit\", \"~> #{ version }\"," \ - " group: :metrics if RUBY_ENGINE == \"ruby\"\n", + "Gemfile", %( + |group :metrics do + | gem "hexx-suit", "~> #{ version }" if RUBY_ENGINE == "ruby" + |end + |).gsub(/ *\|/, ""), skip: true ) end private