siteleaf 0.9.19 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 512564e406115d0e6addfaebf8fc70ec317c3c6a
4
+ data.tar.gz: ae21bd07ca19acd5bb45e36960e7e91bb97d6379
5
+ SHA512:
6
+ metadata.gz: 6f0fe44b43596f7e8944314df294516edd96900520f4cc45b69f87bab7dc1513da38ab86513b0a519aed387ba72ea76e68a78e1e720aa123f369f7ad812a48b1
7
+ data.tar.gz: dd3042cf411e2973db720ad6c0f85a2007fa34fbff64ba83e30cd5380a4ad6595f64a7d68a2d68a391493c9fd6c686d75b74f83f404218b11a93c49fbc85b8a8
@@ -55,9 +55,9 @@ module Siteleaf
55
55
  if output.code == 200
56
56
  require 'open-uri'
57
57
  asset = open(output['file']['url'])
58
- [output.code, {'Content-Type' => asset.content_type}, [asset.read]]
58
+ [output.code, {'Content-Type' => asset.content_type, 'Content-Length' => asset.size.to_s}, [asset.read]]
59
59
  else
60
- [output.code, {'Content-Type' => 'text/html'}, [output.to_s]]
60
+ [output.code, {'Content-Type' => 'text/html', 'Content-Length' => output.size.to_s}, [output.to_s]]
61
61
  end
62
62
  else
63
63
  if (File.exist?("#{path}.liquid") and template_data = File.read("#{path}.liquid")) or (template_data = resolve_template(url))
@@ -70,9 +70,9 @@ module Siteleaf
70
70
 
71
71
  output = site.preview(url, template_data)
72
72
  if output.code == 200 && output.headers["content-type"]
73
- [output.code, {'Content-Type' => output.headers["content-type"]}, [output.to_s]]
73
+ [output.code, {'Content-Type' => output.headers["content-type"], 'Content-Length' => output.size.to_s}, [output.to_s]]
74
74
  else
75
- [output.code, {'Content-Type' => 'text/html'}, [output.to_s]]
75
+ [output.code, {'Content-Type' => 'text/html', 'Content-Length' => output.size.to_s}, [output.to_s]]
76
76
  end
77
77
  end
78
78
  end
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "0.9.19"
2
+ VERSION = "0.9.20"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.19
5
- prerelease:
4
+ version: 0.9.20
6
5
  platform: ruby
7
6
  authors:
8
7
  - Siteleaf
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-23 00:00:00.000000000 Z
11
+ date: 2013-11-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: httparty
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - <=
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - <=
28
25
  - !ruby/object:Gem::Version
@@ -30,33 +27,29 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: httmultiparty
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rack
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: A Ruby interface and command line utility for the Siteleaf API.
@@ -88,26 +81,25 @@ files:
88
81
  homepage: http://siteleaf.com
89
82
  licenses:
90
83
  - MIT
84
+ metadata: {}
91
85
  post_install_message:
92
86
  rdoc_options: []
93
87
  require_paths:
94
88
  - lib
95
89
  required_ruby_version: !ruby/object:Gem::Requirement
96
- none: false
97
90
  requirements:
98
- - - ! '>='
91
+ - - '>='
99
92
  - !ruby/object:Gem::Version
100
93
  version: '1.8'
101
94
  required_rubygems_version: !ruby/object:Gem::Requirement
102
- none: false
103
95
  requirements:
104
- - - ! '>='
96
+ - - '>='
105
97
  - !ruby/object:Gem::Version
106
98
  version: '0'
107
99
  requirements: []
108
100
  rubyforge_project:
109
- rubygems_version: 1.8.23
101
+ rubygems_version: 2.0.3
110
102
  signing_key:
111
- specification_version: 3
103
+ specification_version: 4
112
104
  summary: Siteleaf Ruby interface
113
105
  test_files: []