bin/crowdin-cli in crowdin-cli-0.3.8 vs bin/crowdin-cli in crowdin-cli-0.3.9

- old
+ new

@@ -368,11 +368,11 @@ local_files = [] dest_files = [] @config['files'].each do |file| get_invalid_placeholders(file['translation']).each do |placeholder| - puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.net/page/cli-tool#configuration-file for more details." + puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.com/page/cli-tool#configuration-file for more details." end ignores = file['ignore'] || [] if File.exist?(File.join(@base_path, file['source'])) @@ -419,11 +419,11 @@ if dest_files.empty? exit_now! <<EOS No source files to upload. Check your configuration file to ensure that they contain valid directives. -See http://crowdin.net/page/cli-tool#configuration-file for more details. +See http://crowdin.com/page/cli-tool#configuration-file for more details. EOS end common_dir = @preserve_hierarchy ? '' : find_common_directory_path(dest_files) @@ -538,11 +538,11 @@ translated_files = Hash.new{ |hash, key| hash[key] = Array.new } dest_files = [] @config['files'].each do |file| get_invalid_placeholders(file['translation']).each do |placeholder| - puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.net/page/cli-tool#configuration-file for more details." + puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.com/page/cli-tool#configuration-file for more details." end ignores = file['ignore'] || [] languages_mapping = file['languages_mapping'] @@ -594,11 +594,11 @@ if dest_files.empty? exit_now! <<EOS No translation files to upload. Check your configuration file to ensure that they contain valid directives. -See http://crowdin.net/page/cli-tool#configuration-file for more details. +See http://crowdin.com/page/cli-tool#configuration-file for more details. EOS end common_dir = @preserve_hierarchy ? '' : find_common_directory_path(dest_files) @@ -775,11 +775,11 @@ local_files = [] dest_files = [] @config['files'].each do |file| get_invalid_placeholders(file['translation']).each do |placeholder| - puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.net/page/cli-tool#configuration-file for more details." + puts "Warning: #{placeholder} is not valid variable supported by Crowdin. See http://crowdin.com/page/cli-tool#configuration-file for more details." end ignores = file['ignore'] || [] if File.exist?(File.join(@base_path, file['source'])) @@ -923,11 +923,11 @@ unless File.exists?(globals[:config]) exit_now! <<EOS Can't find configuration file (default `crowdin.yaml'). Type `crowdin-cli help` to know how to specify custom configuration file -See http://crowdin.net/page/cli-tool#configuration-file for more details +See http://crowdin.com/page/cli-tool#configuration-file for more details EOS else @config = YAML.load_file(globals[:config]) || {} if File.exists?(globals[:identity]) @@ -940,20 +940,20 @@ ['api_key', 'project_identifier'].each do |key| unless @config[key] exit_now! <<EOS Configuration file misses required option `#{key}` -See http://crowdin.net/page/cli-tool#configuration-file for more details +See http://crowdin.com/page/cli-tool#configuration-file for more details EOS end end unless @config['files'] exit_now! <<EOS Configuration file misses required section `files` -See http://crowdin.net/page/cli-tool#configuration-file for more details +See http://crowdin.com/page/cli-tool#configuration-file for more details EOS end end @config['files'].each do |file| @@ -1009,10 +1009,10 @@ @jipt_language = @config['jipt_language'] end Crowdin::API.log = Logger.new($stderr) if globals[:verbose] - base_url = @config['base_url'] || 'http://api.crowdin.net' + base_url = @config['base_url'] || 'http://api.crowdin.com' @crowdin = Crowdin::API.new(api_key: @config['api_key'], project_id: @config['project_identifier'], base_url: base_url) begin @crowdin.project_info rescue Crowdin::API::Errors::Error => err