lib/dtc_rake/util.rb in dtc_rake-1.1.0 vs lib/dtc_rake/util.rb in dtc_rake-1.2.0

- old
+ new

@@ -28,19 +28,30 @@ def check_jruby! error(".war files must be built using JRuby!") unless RUBY_PLATFORM == "java" end module_function :check_jruby! + # Checks Bundler version. Bundler 1.16 is not supported by Warbler 1.4. + # But since uuCloudg01C3, uuCloudg01OperationRegistry and uuLogStoreg01 + # are implemented according tu uuApps 2.1 standard, they need to depend + # on Warbler 1.4. Therefore Bundler version needs to be lower than 1.16. + # + # @see ues:UU-BT:UU.CLOUD/20171106_0001 + # @see https://plus4u.net/ues/sesm?SessFree=ues%3A%5B78462435%5D%3A%5B44191589544372490%5D%3A%3F def check_bundler! string = `bundler -v` if string =~ /\d+\.\d+.\d+/ version = string.match(/\d+\.\d+.\d+/).to_s version_parts = version.split('.') if version_parts[1].to_i > 15 - error("Unable to build war files with bundler #{version}.\nBundler version must be lower than 1.16.X.") + error("Unable to build war files with bundler #{version}.\nBundler version must be lower than 1.16.x.") end else - warning("Unknown version of bundler.\nYour bundler is not work correctly or dtc_rake isn't able to check version on your platform.") + warning( + "Unknown version of bundler.\n" \ + "Your bundler is not working correctly or dtc_rake isn't able to check version on your platform.\n" \ + "`bundler -v` returned: #{string}" + ) end end module_function :check_bundler! def upload_pack(attrs)