Skip to content

Commit

Permalink
New release - 14102024 (#7856)
Browse files Browse the repository at this point in the history
* update [skip ci]

* update
  • Loading branch information
waghanza authored Oct 15, 2024
1 parent 714e1a4 commit dddf980
Show file tree
Hide file tree
Showing 41 changed files with 119,298 additions and 122,345 deletions.
2 changes: 1 addition & 1 deletion crystal/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language:
version: 1.13
version: 1.14
files:
- "**/*.cr"
- shard.yml
Expand Down
2 changes: 1 addition & 1 deletion crystal/grip/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
github: grip-framework/grip
version: 2.0
version: 3.0
2 changes: 1 addition & 1 deletion crystal/grip/shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ targets:
dependencies:
grip:
github: grip-framework/grip
version: ~> 2.0.0
version: ~> 3.0.0

license: MIT
33 changes: 7 additions & 26 deletions crystal/grip/src/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,18 @@ class UserController < Grip::Controllers::Http
end

class Application < Grip::Application
def reuse_port
true
end

def port
3000
end

def router : Array(HTTP::Handler)
[http_handler] of HTTP::Handler
end

def server : HTTP::Server
HTTP::Server.new(router)
end

def initialize
super(environment: "production", serve_static: false)
def initialize(environment : String)
# By default the environment is set to "development".
super(environment)

get "/", IndexController
get "/user/:id", UserController
post "/user", UserController
end
end

app = Application.new

System.cpu_count.times do |_|
Process.fork do
app.run
# Enable request/response logging.
router.insert(0, Grip::Handlers::Log.new)
end
end

sleep
app = Application.new(environment: "production")
app.run
2 changes: 1 addition & 1 deletion crystal/kemal/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
website: kemalcr.com
version: 1.5
version: 1.6
2 changes: 1 addition & 1 deletion crystal/kemal/shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ targets:
dependencies:
kemal:
github: kemalcr/kemal
version: ~> 1.5.0
version: ~> 1.6.0

license: MIT
2 changes: 1 addition & 1 deletion crystal/spider-gazelle/shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licence: MIT
dependencies:
action-controller:
github: spider-gazelle/action-controller
version: ~> 7.4.2
version: ~> 7.4.3

targets:
server:
Expand Down
Loading

0 comments on commit dddf980

Please sign in to comment.