plezi 0.12.9 → 0.12.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +2 -3
- data/lib/plezi/builders/app_builder.rb +1 -4
- data/lib/plezi/handlers/controller_magic.rb +0 -1
- data/lib/plezi/handlers/route.rb +1 -1
- data/lib/plezi/helpers/http_sender.rb +1 -1
- data/lib/plezi/version.rb +1 -1
- data/plezi.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 370c59a78e3874c2067f70543d851f99955d861c
|
4
|
+
data.tar.gz: 07eed42ed14d2697e2121e59a491e3c971bb0ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8255bf1ff52a41d9bb1451f568945dfc7c41d89f0e7c49bca160b00811439f3ae8be39656968509659031dbc60223f47086330054de7462283374e1223123da8
|
7
|
+
data.tar.gz: 603b3c5130068700e8a4511b85b20c015dc68bf995cf13a034577b431a0f0a52f6f10d4cbac54b54def075d1bfd2d6d19e6b7404de13b4cb7342ed644f97de6c
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
***
|
4
4
|
|
5
|
+
Change log v.0.12.10
|
6
|
+
|
7
|
+
**Fix**: removed a debug message introduced when fixing the renderer for version 0.12.9.
|
8
|
+
|
9
|
+
**Update**: Plezi will respect changes to the response status when rendering error massges (i.e. 404 or 500 error templates), allowing us to change the response status to 302 (redirect) and set a location header using (response['location'] = '/')... This allows for a more gracefull error 500 handling.
|
10
|
+
|
11
|
+
**Update**: updated gemspecs to link to [plezi.io](http://www.plezi.io).
|
12
|
+
|
13
|
+
***
|
14
|
+
|
5
15
|
Change log v.0.12.9
|
6
16
|
|
7
17
|
**Fix**: Layered rendering (when using layout) will now fail if the inner layer (the actual page) fails to render - directing the user to the 404 error page instead of displaying the layout with no data.
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [
|
1
|
+
# [<img src='https://raw.githubusercontent.com/boazsegev/plezi/master/logo/dark.png' alt='Plezi' style='width:20em;' />](http://www.plezi.io)
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/plezi.svg)](http://badge.fury.io/rb/plezi)
|
4
4
|
[![Inline docs](http://inch-ci.org/github/boazsegev/plezi.svg?branch=master)](http://www.rubydoc.info/github/boazsegev/plezi/master)
|
@@ -729,5 +729,4 @@ Feel free to fork or contribute. right now I am one person, but together we can
|
|
729
729
|
4. Push to the branch (`git push origin my-new-feature`)
|
730
730
|
5. Create a new Pull Request
|
731
731
|
|
732
|
-
[
|
733
|
-
|
732
|
+
# [<img src='https://raw.githubusercontent.com/boazsegev/plezi/master/logo/sign.png' alt='Plezi' style='width:20em;' />](http://www.plezi.io)
|
@@ -119,10 +119,7 @@ module Plezi
|
|
119
119
|
puts "starting to write template data...".red
|
120
120
|
puts ""
|
121
121
|
Builder.write_files app_tree
|
122
|
-
File.chmod 0775, "#{app_name}"
|
123
|
-
puts "tried to update execution permissions. this is system dependent and might have failed.".pink
|
124
|
-
puts "use: chmod +x ./#{app_name} to set execution permissions on Unix machines."
|
125
|
-
puts ""
|
122
|
+
File.chmod 0775, "#{app_name}" rescue true
|
126
123
|
puts "done."
|
127
124
|
puts "\n#{@end_comments.join("\n")}" unless @end_comments.empty?
|
128
125
|
puts ""
|
@@ -195,7 +195,6 @@ module Plezi
|
|
195
195
|
# find template and create template object
|
196
196
|
template = [template] if template.is_a?(String)
|
197
197
|
filename = ( template.is_a?(Array) ? File.join( host_params[:templates].to_s, *template) : File.join( host_params[:templates].to_s, *template.to_s.split('_') ) ) + (options[:type].empty? ? '': ".#{options[:type]}")
|
198
|
-
puts "searching for #{filename}"
|
199
198
|
::Plezi::Renderer.render filename, binding, &block
|
200
199
|
end
|
201
200
|
|
data/lib/plezi/handlers/route.rb
CHANGED
@@ -106,7 +106,7 @@ module Plezi
|
|
106
106
|
raise NotImplementedError, "#url_for isn't implemented for this router - could this be a Regexp based router?" unless @url_array
|
107
107
|
case dest
|
108
108
|
when :index, nil, false
|
109
|
-
dest = {}
|
109
|
+
dest = {}
|
110
110
|
when String
|
111
111
|
dest = {id: dest.dup}
|
112
112
|
when Numeric, Symbol
|
@@ -61,7 +61,7 @@ module Plezi
|
|
61
61
|
# sends raw data through the connection. always returns true (data send).
|
62
62
|
def send_raw_data request, response, data, mime, status_code = 200, headers = {}
|
63
63
|
headers.each {|k, v| response[k] = v}
|
64
|
-
response.status = status_code
|
64
|
+
response.status = status_code if response.status == 200 # avoid resetting a manually set status
|
65
65
|
response['content-type'] = mime
|
66
66
|
response['cache-control'] ||= 'public, max-age=86400'
|
67
67
|
response.body = data
|
data/lib/plezi/version.rb
CHANGED
data/plezi.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['boaz@2be.co.il']
|
11
11
|
spec.summary = %q{Plezi - the easy way to add Websockets, RESTful routing and HTTP streaming serviced to Ruby Web-Apps.}
|
12
12
|
spec.description = %q{Plezi - the easy way to add Websockets, RESTful routing and HTTP streaming serviced to Ruby Web-Apps.}
|
13
|
-
spec.homepage = "http://
|
13
|
+
spec.homepage = "http://www.plezi.io/"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "iodine", "~> 0.1.
|
21
|
+
spec.add_dependency "iodine", "~> 0.1.11"
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.7"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plezi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boaz Segev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iodine
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.11
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.11
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,7 +138,7 @@ files:
|
|
138
138
|
- test/console
|
139
139
|
- test/plezi_tests.rb
|
140
140
|
- websocket chatroom.md
|
141
|
-
homepage: http://
|
141
|
+
homepage: http://www.plezi.io/
|
142
142
|
licenses:
|
143
143
|
- MIT
|
144
144
|
metadata: {}
|