Browse Source

update to amber 0.2.5 (#2964)

Dru Jensen 8 years ago
parent
commit
7c47006398

+ 1 - 1
frameworks/Crystal/amber/config/application.cr

@@ -1,4 +1,4 @@
-Amber::Server.instance.config do |app|
+Amber::Server.configure do |app|
   app.name = "Amber web application."
   app.port = 3000
   app.env = "production"

+ 1 - 1
frameworks/Crystal/amber/config/routes.cr

@@ -1,4 +1,4 @@
-Amber::Server.instance.config do |app|
+Amber::Server.configure do |app|
   routes :web do
     get "/plaintext", BenchmarkController, :plaintext
     get "/json", BenchmarkController, :json

+ 50 - 5
frameworks/Crystal/amber/shard.lock

@@ -2,7 +2,15 @@ version: 1.0
 shards:
   amber:
     github: Amber-Crystal/amber
-    version: 0.1.4
+    version: 0.2.5
+
+  callback:
+    github: mosop/callback
+    version: 0.5.1
+
+  cli:
+    github: mosop/cli
+    version: 0.5.2
 
   db:
     github: crystal-lang/crystal-db
@@ -10,16 +18,28 @@ shards:
 
   granite_orm:
     github: Amber-Crystal/granite-orm
-    version: 0.6.3
+    version: 0.7.1
 
-  kemalyst-validators:
-    github: kemalyst/kemalyst-validators
-    version: 0.2.0
+  icr:
+    github: TechMagister/crystal-icr
+    commit: b28bb938cc9e9e439424217c074a9168d253ba4b
 
   kilt:
     github: jeromegn/kilt
     version: 0.3.3
 
+  micrate:
+    github: juanedi/micrate
+    version: 0.3.0
+
+  mysql:
+    github: crystal-lang/crystal-mysql
+    version: 0.3.2
+
+  optarg:
+    github: mosop/optarg
+    version: 0.4.4
+
   pg:
     github: will/crystal-pg
     version: 0.13.3
@@ -32,6 +52,31 @@ shards:
     github: stefanwille/crystal-redis
     version: 1.8.0
 
+  sentry:
+    github: TechMagister/sentry
+    commit: a78129ec1e66aa24c91b93199ea187e4793c8d58
+
+  shell-table:
+    github: jwaldrip/shell-table.cr
+    version: 0.9.1
+
   slang:
     github: jeromegn/slang
     commit: b817c89c7e5ae39562710c0d6c7f42cee685e14f
+
+  spinner:
+    github: elorest/spinner
+    version: 0.1.1
+
+  sqlite3:
+    github: crystal-lang/crystal-sqlite3
+    version: 0.8.2
+
+  string_inflection:
+    github: mosop/string_inflection
+    version: 0.2.1
+
+  teeplate:
+    github: mosop/teeplate
+    version: 0.4.5
+

+ 1 - 1
frameworks/Crystal/amber/src/models/fortune.cr

@@ -1,6 +1,6 @@
 require "granite_orm/adapter/pg"
 
-class Fortune < Granite::ORM
+class Fortune < Granite::ORM::Base
   adapter pg
 
   table_name fortune

+ 1 - 1
frameworks/Crystal/amber/src/models/world.cr

@@ -1,6 +1,6 @@
 require "granite_orm/adapter/pg"
 
-class World < Granite::ORM
+class World < Granite::ORM::Base
   adapter pg
 
   table_name world