static_sync 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,11 +33,17 @@ module StaticSync
33
33
  end
34
34
 
35
35
  def gzip
36
- self['gzip']
36
+ self.fetch('gzip', true)
37
37
  end
38
38
 
39
39
  def load(path = '.static')
40
- self.replace(YAML.load(ERB.new(File.read(path)).result))
40
+ content = '{}'
41
+ begin
42
+ content = File.read(path)
43
+ rescue
44
+ # Loading config from file is not mandatory.
45
+ end
46
+ self.replace(YAML.load(ERB.new(content).result))
41
47
  self
42
48
  end
43
49
 
@@ -1,3 +1,3 @@
1
1
  module StaticSync
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: