airborne 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 167b39d12f2837183ab27bc6291aceec9ac8cccc
4
- data.tar.gz: c6c41f037674780d25625f182964c1d81c49dc90
3
+ metadata.gz: 2e289f3395f52a122f5fca086f49c2e1e3662b0d
4
+ data.tar.gz: 4491c4125ef5cd612135c99ed9532ed568db144f
5
5
  SHA512:
6
- metadata.gz: d626f1463b9c76fc560af8b4bf4a6c82a86c6726321e3520d3a6c5d45b12f5a80483921fd68d44fb200dd95122fa0dad1bff73a8cab3918a3027337a0e42869d
7
- data.tar.gz: 6963d36dfcbbe9151c618237ba92c1b2a30767f67b91a655694c73afc164eff36bf2a678f0b5cf610e988eeb11bbe7c13f1a12a26158b766ed6c89a6a65720ac
6
+ metadata.gz: b3056fa06e76948beae93b3da120ee47cfc43d8374c072eb6a1bb58c18a7960dfb401bb15dcc82ec2681a04d59fd0aee4e4a5842b91bb65a9cb3b16fbf48255c
7
+ data.tar.gz: 8d681af152de9992e2e4a09be491072f98431d42e08b243d0ba19158999665f13ba2c346f16dde8aa93ced4fdfc65718e7ed10e957e2572a519ad45ed2690232
data/airborne.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'airborne'
3
- s.version = '0.1.17'
3
+ s.version = '0.1.18'
4
4
  s.date = Date.today.to_s
5
5
  s.summary = 'RSpec driven API testing framework'
6
6
  s.authors = ['Alex Friedman', 'Seth Pollack']
data/lib/airborne/base.rb CHANGED
@@ -57,8 +57,20 @@ module Airborne
57
57
  set_response(make_request(:options, url, headers: headers))
58
58
  end
59
59
 
60
+ def response
61
+ @response
62
+ end
63
+
64
+ def headers
65
+ @headers
66
+ end
67
+
68
+ def body
69
+ @body
70
+ end
71
+
60
72
  def json_body
61
- set_response(@response) unless @response.nil?
73
+ set_response(response) unless response.nil?
62
74
  fail InvalidJsonError, 'Api request returned invalid json' unless @json_body
63
75
  @json_body
64
76
  end
@@ -53,7 +53,7 @@ module Airborne
53
53
  end
54
54
 
55
55
  def date
56
- -> (value) { yield DateTime.parse(value) }
56
+ ->(value) { yield DateTime.parse(value) }
57
57
  end
58
58
 
59
59
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airborne
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Friedman