siteleaf 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/siteleaf CHANGED
@@ -85,7 +85,7 @@ def put_theme_assets(site_id)
85
85
  FileUtils.rm(theme) if File.exist?(theme)
86
86
  Zip::ZipFile.open(theme, Zip::ZipFile::CREATE) do |zip|
87
87
  Dir.glob("**/*").each do |path|
88
- zip.add(path, path)
88
+ zip.add(path, path) if !['config.ru'].include?(path) && !path.start_with?('.')
89
89
  end
90
90
  end
91
91
  if response = Siteleaf::Client.post("sites/#{site_id}/theme/assets", {:file => File.new(theme), :replace => true})
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
data/siteleaf.gemspec CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.add_dependency 'json', '~> 1.7.7'
18
18
  gem.add_dependency 'httparty'
19
19
  gem.add_dependency 'httmultiparty'
20
+ gem.add_dependency 'zip'
20
21
  gem.add_dependency 'rack'
21
22
 
22
23
  gem.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: zip
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
79
  name: rack
64
80
  requirement: !ruby/object:Gem::Requirement