okapi 0.0.4 → 0.0.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.
- data/README.md +2 -0
- data/lib/okapi/resources.rb +0 -18
- data/lib/okapi/test.rb +3 -10
- data/lib/okapi/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
data/lib/okapi/resources.rb
CHANGED
@@ -37,24 +37,6 @@ module Apiary
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def get_status
|
40
|
-
# p '@error and @headerPass and ((@schema and @schemaPass) or (not @schema and @bodyPass))'
|
41
|
-
#
|
42
|
-
# p @error
|
43
|
-
# p @header_pass
|
44
|
-
# p @schemaRes
|
45
|
-
# p schema
|
46
|
-
# p schema_pass
|
47
|
-
# p @body_pass
|
48
|
-
# p '#'
|
49
|
-
# p (not @error and @header_pass and ((schema and schema_pass) or (not schema and @body_pass)))
|
50
|
-
# p (@header_pass and ((schema and schema_pass) or (not schema and @body_pass)))
|
51
|
-
# p (((schema and schema_pass) or (not schema and @body_pass)))
|
52
|
-
# p (((schema and schema_pass)))
|
53
|
-
# p (((not schema and @bodyPass)))
|
54
|
-
# p (not @error)
|
55
|
-
# p '----'
|
56
|
-
# p @body_diff
|
57
|
-
# p @header_diff
|
58
40
|
return true if not @error and @header_pass and ((schema and schema_pass) or (not schema and @body_pass))
|
59
41
|
return false
|
60
42
|
end
|
data/lib/okapi/test.rb
CHANGED
@@ -19,20 +19,13 @@ module Apiary
|
|
19
19
|
|
20
20
|
end
|
21
21
|
|
22
|
-
def run
|
23
|
-
get_output(method(:test))
|
24
|
-
end
|
25
|
-
|
26
|
-
def get_output(test)
|
22
|
+
def run(test)
|
27
23
|
begin
|
28
|
-
test
|
29
|
-
#change to Exception !!!!
|
30
|
-
#rescue LoadError => e
|
24
|
+
test()
|
31
25
|
rescue Exception => e
|
32
26
|
@error = e
|
33
|
-
#p @error
|
34
27
|
end
|
35
|
-
|
28
|
+
|
36
29
|
Apiary::Okapi::Output.get(@output_format, @resources, @error)
|
37
30
|
end
|
38
31
|
|
data/lib/okapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: okapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tu1ly
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-05-
|
18
|
+
date: 2013-05-06 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|