plezi 0.10.3 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4c8828c427f149b793363c7fee35cc22b23a02d
4
- data.tar.gz: 00cec3276546ec102eddb67e62de3b90a4a4a595
3
+ metadata.gz: 2a79e8ebffa88be56932714fbfe61cde3e551f34
4
+ data.tar.gz: e05504c2761ea2dd76168c20754187421f51a08b
5
5
  SHA512:
6
- metadata.gz: 8c747627876d08a48dbe328418aebf0edee57f8a7d484298e17ca65b76f1f55a50e72483fb4ce8044973ba6c01a0fb31f63e4500b0701dfc4228dacf11e374a7
7
- data.tar.gz: 1e636b886ec198c3874848eb471123d341edffa1700a44ea2032bb12213eb3b844d3ba3d734c6b28ac5b9a7a484bc4ff37514fad270c44549f60467dfca358a6
6
+ metadata.gz: 912eb0219649ab4e90849735a5403d78f499e4fc32f459e78e5c2c714d65f5c8d89ebfdaa86973fa47722c72dc538ebef950c27538245266cca4ccd536102da2
7
+ data.tar.gz: 0baa2f1aab0646f043359695368629c9ffede6016ad505e64fc81861142ca0c068516471493370490d9041bfbcb59c007c65f39e6d059c8942a084c0cd5fae07
data/bin/plezi CHANGED
@@ -90,8 +90,8 @@ class AppTemplate
90
90
  app_tree["db"]["config.yml"] ||= IO.read(::File.expand_path(File.join("..", "..", "resources" ,"database.yml"), __FILE__))
91
91
 
92
92
  #set up the extras folder, to be filled with future goodies.
93
- app_tree["extras"] ||= {}
94
- app_tree["extras"]["config.ru"] ||= IO.read ::File.expand_path(File.join("..", "..", "resources" ,"config.ru"), __FILE__)
93
+ # app_tree["extras"] ||= {}
94
+ # app_tree["extras"]["config.ru"] ||= IO.read ::File.expand_path(File.join("..", "..", "resources" ,"config.ru"), __FILE__)
95
95
 
96
96
  #set up I18n stub
97
97
  app_tree["locales"] ||= {}
@@ -239,6 +239,7 @@ end
239
239
 
240
240
  # sets to start the services once dsl script is finished loading.
241
241
  at_exit { start_services }
242
+ GReactor::Settings.force_graceful = false
242
243
 
243
244
  # sets information to be used when restarting
244
245
  $PL_SCRIPT = $0
@@ -1,3 +1,3 @@
1
1
  module Plezi
2
- VERSION = "0.10.3"
2
+ VERSION = "0.10.4"
3
3
  end
@@ -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 "grhttp", "~> 0.0.6"
21
+ spec.add_dependency "grhttp", "~> 0.0.7"
22
22
  spec.add_development_dependency "bundler", "~> 1.7"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
 
@@ -31,7 +31,11 @@ load ::File.expand_path(File.join("..", "environment.rb"), __FILE__)
31
31
  load ::File.expand_path(File.join("..", "routes.rb"), __FILE__)
32
32
 
33
33
  # start the plezi EM, to make sure that the plezi async code doesn't break.
34
+ GReactor.clear_listeners
34
35
  GReactor.start Plezi::Settings.max_threads
35
36
 
36
- # run the Rack app
37
- run Plezi::Base::DSL
37
+ # run the Rack app - not yet supported
38
+ # run Plezi::Base::Rack
39
+
40
+ # # exit rack to start the plezi server
41
+ # Process.kill 'TERM'
@@ -27,7 +27,7 @@ require 'tilt/sass' if defined?(::Slim) && defined?(::Sass)
27
27
  GReactor.create_logger File.expand_path(File.join 'logs','server.log'), ENV["RACK_ENV"]=="development" unless ENV['DYNO']
28
28
 
29
29
  ## Allow forking? ONLY if your code is fully scalable across processes.
30
- # GReactor.set_forking 4
30
+ # GReactor::Settings.set_forking 4
31
31
 
32
32
  # load all config files
33
33
  Dir[File.join "{config}", "**" , "*.rb"].each {|file| load File.expand_path(file)}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plezi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.6
19
+ version: 0.0.7
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.0.6
26
+ version: 0.0.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement