{: rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:$YARD::CodeObjects::ModuleObject;IC;[o:&YARD::CodeObjects::ConstantObject: @files[[I"o/Users/antondomashnev/Work/danger-missed_localizable_strings/lib/missed_localizable_strings/gem_version.rb:ETi:@current_file_has_commentsF: @name: VERSION:@source_type: ruby:@visibility: public: @tags[:@docstrings{:@docstringIC:YARD::Docstring" ; T:@ref_tags[;[: @allI"; T:@unresolved_reference0: @object@ :@namespace@: @pathI"&MissedLocalizableStrings::VERSION; F:@signatureI"VERSION = '1.0.0'.freeze; T: @sourceI"VERSION = '1.0.0'.freeze; T: @valueI"'1.0.0'.freeze; T: @dynamicT: @owner@:@class_mixinsIC;[;"@:@instance_mixinsIC;[;"@:@attributesIC:SymbolHash{: classIC;&{:@symbolize_valueT: instanceIC;&{;(T;(T: @aliases{: @groups[; [[@ i; F;:MissedLocalizableStrings;;;;;[;{;IC;" ; T;[;[;I"; T;0;@;@;I"MissedLocalizableStrings; Fo; ;IC;[o:#YARD::CodeObjects::ClassObject;IC;[ o:$YARD::CodeObjects::MethodObject:@module_functionF: @scope;);;;I"GDanger::DangerMissedLocalizableStrings#check_localizable_omissions; F:@parameters[; [[I"j/Users/antondomashnev/Work/danger-missed_localizable_strings/lib/missed_localizable_strings/plugin.rb; Ti; T;: check_localizable_omissions;;;[;{;IC;"Checks whether there are any missed entries in all Localizable.strings from PR's changeset files and prints out any found entries. ; T;[;[o:YARD::Tags::Tag :@tag_nameI" return; F: @textI"; T;0: @types[I" void; T;@,;I" Checks whether there are any missed entries in all Localizable.strings from PR's changeset files and prints out any found entries. @return [void] ; T;0;@,:@hash_flagF:@line_rangeo: Range: exclF: begini:endi;@*;I"$def check_localizable_omissions; T:@explicitT;I"def check_localizable_omissions localizable_files = not_deleted_localizable_files keys_by_file = extract_keys_from_files(localizable_files) entries = localizable_strings_missed_entries(keys_by_file) print_missed_entries entries unless entries.empty? end; T;!To;.;/F;0;);: private;I"NDanger::DangerMissedLocalizableStrings#localizable_strings_missed_entries; F;1[[I"keys_by_file; T0; [[@1i-; T;:'localizable_strings_missed_entries;;;[;{;IC;"Returns an array of all detected missed keyes in Localizable.strings By entry means the hash with key => filename, value => key name Idea was taken from: https://github.com/AirHelp/danger-duplicate_localizable_strings ; T;[;[o;3 ;4I" param; F;5I"; T;I"keys_by_file; T;6[I"#.strings file: [Array of keys]; T;@@o;3 ;4I" return; F;5I"; T;0;6[I"0Array of missed Localizable.strings entries; T;@@;I"H Returns an array of all detected missed keyes in Localizable.strings By entry means the hash with key => filename, value => key name Idea was taken from: https://github.com/AirHelp/danger-duplicate_localizable_strings @param keys_by_file {.strings file: [Array of keys]} @return [Array of missed Localizable.strings entries]; T;0;@@;7F;8o;9;:F;;i%; file_name, 'key' => key } end end missed_entries end; T;!To;.;/F;0;);;>;I"@Danger::DangerMissedLocalizableStrings#print_missed_entries; F;1[[I"missed_entries; T0; [[@1iD; T;:print_missed_entries;;;[;{;IC;"Copy from print_duplicate_entries from https://github.com/AirHelp/danger-duplicate_localizable_strings Prints passed missed entries. ; T;[;[o;3 ;4I" param; F;5I"1A hash of `[file => keys]` entries to print.; T;I"missed_entries; T;6[I" Hash; T;@[o;3 ;4I" return; F;5I"; T;0;6[I" void; T;@[;I" Copy from print_duplicate_entries from https://github.com/AirHelp/danger-duplicate_localizable_strings Prints passed missed entries. @param [Hash] missed_entries A hash of `[file => keys]` entries to print. @return [void] ; T;0;@[;7F;8o;9;:F;;i<;;I"CDanger::DangerMissedLocalizableStrings#extract_keys_from_files; F;1[[I"localizable_files; T0; [[@1iV; T;:extract_keys_from_files;;;[;{;IC;"VA hash with keyes - Localizable.strings file and values - modified keys from file ; T;[;[;I"VA hash with keyes - Localizable.strings file and values - modified keys from file; T;0;@v;7F;8o;9;:F;;iT;;I"IDanger::DangerMissedLocalizableStrings#not_deleted_localizable_files; F;1[; [[@1if; F;:"not_deleted_localizable_files;;;[;{;IC;" ; T;[;[;I"; T;0;@;@*;I"&def not_deleted_localizable_files; T;=T;I"def not_deleted_localizable_files files = (git.modified_files + git.added_files) - git.deleted_files localizable_files = files.select { |line| line.end_with?('.strings') } localizable_files end; T;!T;"@*;#IC;[;"@*;$IC;[;"@*;%IC;&{;'IC;&{;(T;)IC;&{;(T;(T;*{;+[; [[@1i; T;:#DangerMissedLocalizableStrings;;;;;[;{;IC;"PSometimes developer adds new key in one Localizable.strings file and forgets to add the same key in another Localizable.strings file. This simple plugin warns the developer about these possible mistakes. Some parts of the code were taken from: https://github.com/AirHelp/danger-duplicate_localizable_strings check_localizable_omissions ; T;[;[o;3 ;4I" example; F;5I"; F;I"7Checks missing localizable strings in PR changeset; T;60;@*o;3 ;4I"see; F;5I"0Domashnev/danger-missed_localizable_strings; T;I" Anton; T;60;@*o;3 ;4I" tags; F;5I"localization, cocoa; T;0;60;@*;I" Sometimes developer adds new key in one Localizable.strings file and forgets to add the same key in another Localizable.strings file. This simple plugin warns the developer about these possible mistakes. Some parts of the code were taken from: https://github.com/AirHelp/danger-duplicate_localizable_strings @example Checks missing localizable strings in PR changeset check_localizable_omissions @see Anton Domashnev/danger-missed_localizable_strings @tags localization, cocoa ; T;0;@*;7F;8o;9;:F;;i;