okapi 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # OKApi
2
2
 
3
+ https://github.com/apiaryio/OKApi
4
+
3
5
  ## Installation
4
6
 
5
7
  $ gem install okapi
@@ -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.call()
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
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Apiary
3
3
  module Okapi
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
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-05 00:00:00 +02:00
18
+ date: 2013-05-06 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency