motion-phrase 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module MotionPhrase
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-phrase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: