apiway 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiway/application.rb +19 -18
- data/lib/apiway/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d380626bbdc8b3d192d2102b8b257e8c5c5456ca
|
4
|
+
data.tar.gz: b0630d02b7158b20d7892b9f81030ee82f71aabd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 574319bdcc4bdef5559706a1048302193a9faa342c4c5d2fa0ba0489c125e38d89670af3549c16bfe308b27eedcd7a612979de886ac19b598858236f781920b1
|
7
|
+
data.tar.gz: 96c2e9e76bd7a695327b4565c26de8ebbd231f230d49bd7857921913a1d804719fd43a4f71a530cc439a33bf50e2945e2481ce939236a3bc4efa40f88ad865b4
|
data/lib/apiway/application.rb
CHANGED
@@ -6,14 +6,15 @@ module Apiway
|
|
6
6
|
set root: File.expand_path( '.' )
|
7
7
|
set static: true
|
8
8
|
set apiway_log: true
|
9
|
-
set active_record_log: true
|
9
|
+
set active_record_log: true
|
10
10
|
set database_file: File.join( root, 'config/database.yml' )
|
11
11
|
|
12
|
-
|
12
|
+
|
13
13
|
%W(
|
14
14
|
lib/**/*.rb
|
15
15
|
config/environments/#{ environment.to_s }.rb
|
16
16
|
config/initializers/**/*.rb
|
17
|
+
app/models/**/*.rb
|
17
18
|
app/base/**/*.rb
|
18
19
|
app/controllers/application.rb
|
19
20
|
app/resources/application.rb
|
@@ -23,24 +24,24 @@ module Apiway
|
|
23
24
|
.flatten.uniq.each{ |path| require path }
|
24
25
|
|
25
26
|
|
26
|
-
register Sinatra::ActiveRecordExtension
|
27
|
-
|
28
|
-
|
27
|
+
register Sinatra::ActiveRecordExtension
|
28
|
+
|
29
|
+
|
29
30
|
LoggerBase::apiway_log_level apiway_log
|
30
31
|
LoggerBase::activerecord_log_level activerecord_log
|
31
|
-
|
32
|
-
|
33
|
-
configure :development do
|
34
|
-
register Sinatra::Reloader
|
35
|
-
also_reload File.join( root, '**/*.rb' )
|
36
|
-
# also_reload File.join( Apiway.path, '**/*.rb' )
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
get '*' do
|
41
|
-
request.websocket? ? request.websocket{ |ws| Apiway::Client.new ws } : pass
|
42
|
-
end
|
43
|
-
|
32
|
+
|
33
|
+
|
34
|
+
configure :development do
|
35
|
+
register Sinatra::Reloader
|
36
|
+
also_reload File.join( root, '**/*.rb' )
|
37
|
+
# also_reload File.join( Apiway.path, '**/*.rb' )
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
get '*' do
|
42
|
+
request.websocket? ? request.websocket{ |ws| Apiway::Client.new ws } : pass
|
43
|
+
end
|
44
|
+
|
44
45
|
|
45
46
|
def self.tasks
|
46
47
|
require 'sinatra/activerecord/rake'
|
data/lib/apiway/version.rb
CHANGED