bin/turkish_id in turkish_id-1.2.0 vs bin/turkish_id in turkish_id-1.3.0

- old
+ new

@@ -1,7 +1,7 @@ #!/usr/bin/env ruby -# encoding: UTF-8 +# frozen_string_literal: true lib = File.expand_path(File.dirname(__FILE__) + '/../lib') $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib) require 'turkish_id' @@ -20,14 +20,14 @@ ARGV[0] ? validate_id(ARGV[0]) : print_help end def validate_id(id_number) identity_number = TurkishId.new(id_number) - print_result(identity_number.is_valid?) + print_result(identity_number.valid?) end def print_result(result) - STDOUT.puts "Your identification number is #{ result ? 'valid' : 'invalid' }." + STDOUT.puts "Your identification number is #{result ? 'valid' : 'invalid'}." end def print_help STDOUT.puts @help end