zendesk_apps_tools 1.37.1 → 1.37.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5540a86e8063c9e63580dad1bb57370a6b33f38a
4
- data.tar.gz: 7c60ef3f8eab6bd133740a7d28288fff93bf660d
3
+ metadata.gz: 176067ad0c55ed73109306c53cc27e76c45eb720
4
+ data.tar.gz: 13949db70218a0e1d3e5304e798074153a245108
5
5
  SHA512:
6
- metadata.gz: 3ab21a52b22e3f2532aa128b9be54fe7f6f5e878ecf93c0f63d1d0093e24ff490702b25953eeca68708963b1e21fb1b5a5f50e90f48c7bb3691662ca2e6a6a40
7
- data.tar.gz: ad2acd7c36e854d98d1e81d3a6d6b81e4b81c38a7890b2424f777433f91673b99cbcdb352643ced2a0bfccfdf474d0a16f61518a23c58d73fedcdec081d5370c
6
+ metadata.gz: 738ea3faabf026e870f375eacdefc81690de2fbc4a0d6b23f4e57c5a6bbbc9352e8e0172fe0748a4b4e0515c6d2915c7793fd07cebb8ad5862aa5385a5b54099
7
+ data.tar.gz: f4e58eebb9d4c128b136181ee151ca981dd507e31ff2a8c5fb76b75bb07dd61794a5421fa16f0cb035774727fb5721d7c29a797fea810e6815ebf4a9287f5bf3
@@ -28,12 +28,11 @@ module ZendeskAppsTools
28
28
  end
29
29
 
30
30
  def refresh!
31
- if File.exist? @filepath
32
- curr_mtime = File.stat(@filepath).mtime
33
- if curr_mtime > @last_mtime
34
- @last_mtime = curr_mtime
35
- get_settings_from_file(@filepath, @parameters)
36
- end
31
+ return unless File.file? @filepath
32
+ curr_mtime = File.stat(@filepath).mtime
33
+ if @last_mtime.nil? || curr_mtime > @last_mtime
34
+ @last_mtime = curr_mtime
35
+ get_settings_from_file(@filepath, @parameters)
37
36
  end
38
37
  end
39
38
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ZendeskAppsTools
3
- VERSION = '1.37.1'
3
+ VERSION = '1.37.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.1
4
+ version: 1.37.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-12-21 00:00:00.000000000 Z
14
+ date: 2016-12-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor