wire-framework 0.1.6.4 → 0.1.6.5
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/app/db.rb +5 -1
- data/lib/app/file.rb +1 -0
- data/lib/app/render/editor.rb +1 -1
- data/lib/closet/context.rb +1 -1
- data/lib/wire.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: 00bb9c131f074315c355d7095175b784c4b2e639
|
4
|
+
data.tar.gz: 98aeb7b42a546f09e1c9a18a3947308820c19578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c95d46edca794f1feba145dc529ebb84eb64c246a26ec2a00668c498d01c4018022db403c20eb158249a1fa0488c2aa9f42925d1e11b827033f45d2f23eae469
|
7
|
+
data.tar.gz: 35d145361ad22aa393eaa90e4dc0d60eb202d94be11ea37699d078d468b739c409c237466b2733d514f893dcb37c2f5652f70d225e52775efb9837281e079679
|
data/lib/app/db.rb
CHANGED
@@ -39,7 +39,10 @@ module DB
|
|
39
39
|
conf.each do |k,v|
|
40
40
|
config[k.to_sym] = v
|
41
41
|
end
|
42
|
-
Sequel.connect(config)
|
42
|
+
db = Sequel.connect(config)
|
43
|
+
db.extension(:connection_validator)
|
44
|
+
db.pool.connection_validation_timeout = 30
|
45
|
+
db
|
43
46
|
end
|
44
47
|
|
45
48
|
# Read all of the configs in './config/dbs'
|
@@ -149,6 +152,7 @@ module DB
|
|
149
152
|
instance = model[context.id]
|
150
153
|
return 404 unless instance
|
151
154
|
instance.update(context.json)
|
155
|
+
[200, {}, object.to_json]
|
152
156
|
end
|
153
157
|
|
154
158
|
# Remove a specific object from the DB table
|
data/lib/app/file.rb
CHANGED
data/lib/app/render/editor.rb
CHANGED
data/lib/closet/context.rb
CHANGED
@@ -103,7 +103,7 @@ module Wire
|
|
103
103
|
@config = @closet.apps[@uri[1]]
|
104
104
|
if @config
|
105
105
|
@app = @uri[1]
|
106
|
-
@resource = URI.unescape(@uri[2])
|
106
|
+
@resource = @uri.length >= 3 ? URI.unescape(@uri[2]) : nil
|
107
107
|
@id = @uri.length > 3 ? URI.unescape(@uri[3...@uri.length].join('/')) : nil
|
108
108
|
else
|
109
109
|
throw Exception.new("App: #{@uri[1]} is Undefined")
|
data/lib/wire.rb
CHANGED