towsta 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/towsta/version.rb +1 -1
  2. data/lib/towsta.rb +5 -2
  3. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
data/lib/towsta.rb CHANGED
@@ -23,8 +23,11 @@ def sync_with_towsta params=nil
23
23
  params ||= {} if $towsta_sync
24
24
  $towsta_sync ||= {}
25
25
  params = $towsta_sync.merge(params) if params
26
- return Towsta::Memory.recover params if $towsta_cache
27
- Towsta::Synchronizer.new :secret => $towsta_secret, :path => $towsta_path, :params => params
26
+ if $towsta_cache
27
+ Towsta::Memory.recover params
28
+ else
29
+ Towsta::Synchronizer.new :secret => $towsta_secret, :path => $towsta_path, :params => params
30
+ end
28
31
  begin
29
32
  Dir["./models/*.rb"].each {|file| load file }
30
33
  rescue; end;
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 6
9
- version: 1.1.6
8
+ - 7
9
+ version: 1.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mortaro