rbbt-rest 1.2.9 → 1.2.10
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 +8 -8
- data/lib/rbbt/rest/workflow.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MWZjZTVhNWJlODk4NjM1NzQ3NDljMmE2NjVkYTc3NzMyYWRkODU0Yg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZmMzOTlkNTEzNjYwZjA2NzE3NWViMjljNjA5ZWVmMTE4NDQxOGYwYw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NzA0MWIwNWM2MWYzMjFmYjRkMzk2YTY3MDIzMGMxMjlmNDE0ZGRjOWI5MWNl
|
|
10
|
+
MzMwZWVlZjA0YzA5NDI3OGE4N2RmNGZjZDk0NGZiMzhmN2M3ZGM4NmZkYjhh
|
|
11
|
+
NzU0MTY2NTdjZGJkNTVjNTgxM2Y2NTA1NTE2OWI5YTkxYjdkOTk=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MmFhMzRlYTRkNjcyN2Q0ZjBjMmYzZTg3NmRkNDdhYjBhZTNmZmFkZjdjNWI3
|
|
14
|
+
Mzk3ODZjN2ExMTU5NGRjNzQ4ZTFjNDczNzdmNjllOTVmOWU3Y2UyYWQxNGZm
|
|
15
|
+
NjEwMjQ1YWIwODA4MGVlNzFiNWU0YzdlOWQ2NzU2NGE1MWUyN2M=
|
data/lib/rbbt/rest/workflow.rb
CHANGED
|
@@ -19,8 +19,8 @@ module Sinatra
|
|
|
19
19
|
WORKFLOWS = []
|
|
20
20
|
|
|
21
21
|
def add_workflow_resource(workflow)
|
|
22
|
-
views_dir = workflow.libdir.www.views.find(:lib)
|
|
23
|
-
if views_dir.exists?
|
|
22
|
+
views_dir = workflow.respond_to?(:libdir)? workflow.libdir.www.views.find(:lib) : nil
|
|
23
|
+
if views_dir and views_dir.exists?
|
|
24
24
|
EntityRESTHelpers.entity_resources.unshift views_dir
|
|
25
25
|
RbbtRESTHelpers.template_resources.unshift views_dir
|
|
26
26
|
|
|
@@ -39,7 +39,7 @@ module Sinatra
|
|
|
39
39
|
|
|
40
40
|
Log.debug("Adding #{ workflow } to REST server")
|
|
41
41
|
|
|
42
|
-
self.instance_eval workflow.libdir.lib['sinatra.rb'].read, workflow.libdir.lib['sinatra.rb'].find if File.exists? workflow.libdir.lib['sinatra.rb']
|
|
42
|
+
self.instance_eval workflow.libdir.lib['sinatra.rb'].read, workflow.libdir.lib['sinatra.rb'].find if workflow.respond_to?(:libdir) and File.exists? workflow.libdir.lib['sinatra.rb']
|
|
43
43
|
|
|
44
44
|
get "/#{workflow.to_s}" do
|
|
45
45
|
case format
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbbt-rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|