motion-phrase 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motion-phrase/version.rb +1 -1
- data/lib/motion/project/phrase.rb +2 -2
- metadata +1 -1
@@ -20,7 +20,7 @@ private
|
|
20
20
|
def create_phrase_config_file
|
21
21
|
return unless @auth_token
|
22
22
|
|
23
|
-
if config_file_exists? or config_file_content_outdated?
|
23
|
+
if !config_file_exists? or config_file_content_outdated?
|
24
24
|
File.open(CONFIG_FILE, 'w') { |f| f.write(config_file_content) }
|
25
25
|
end
|
26
26
|
files = @config.files.flatten
|
@@ -32,7 +32,7 @@ private
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def config_file_content_outdated?
|
35
|
-
File.read(CONFIG_FILE) != config_file_content
|
35
|
+
config_file_exists? && File.read(CONFIG_FILE) != config_file_content
|
36
36
|
end
|
37
37
|
|
38
38
|
def config_file_content
|