apiway 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/apiway/application.rb +7 -7
- 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: ab2ecfdb146f41966506e176f352eca05f9dd473
|
|
4
|
+
data.tar.gz: 02187ddb418ec2d06ee8690ef205d9a59ba89ae8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b45bdbeb2d468c9c462a5260855494f63578b7b6e44f3d831702e297b60a5a69d5d1a78b900de55501bcbe6914a7bc4c7572d32516703eba46f6920a2cdd2d23
|
|
7
|
+
data.tar.gz: 38a38787ed92bd19b948bdd63260833d904409f42bfd4f2bb0032d42a9ac7f8ee131a661c2449b7581fa50bb8e4ddc99fb3a1102962bf36b1426c7813b4acb05
|
data/lib/apiway/application.rb
CHANGED
|
@@ -10,11 +10,16 @@ module Apiway
|
|
|
10
10
|
set database_file: File.join( root, 'config/database.yml' )
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
get '*' do
|
|
14
|
+
request.websocket? ? request.websocket{ |ws| Apiway::Client.new ws } : pass
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
|
|
13
18
|
%W(
|
|
14
19
|
lib/**/*.rb
|
|
15
20
|
config/environments/#{ environment.to_s }.rb
|
|
16
21
|
config/initializers/**/*.rb
|
|
17
|
-
app/models/**/*.rb
|
|
22
|
+
app/models/**/*.rb
|
|
18
23
|
app/base/**/*.rb
|
|
19
24
|
app/controllers/application.rb
|
|
20
25
|
app/resources/application.rb
|
|
@@ -37,12 +42,7 @@ module Apiway
|
|
|
37
42
|
# also_reload File.join( Apiway.path, '**/*.rb' )
|
|
38
43
|
end
|
|
39
44
|
|
|
40
|
-
|
|
41
|
-
get '*' do
|
|
42
|
-
request.websocket? ? request.websocket{ |ws| Apiway::Client.new ws } : pass
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
def self.tasks
|
|
47
47
|
require 'sinatra/activerecord/rake'
|
|
48
48
|
end
|
data/lib/apiway/version.rb
CHANGED