apirunner 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
data/apirunner.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{apirunner}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jan@moviepilot.com"]
@@ -40,7 +40,6 @@
40
40
  m336: 4.0
41
41
  m79: 2.5
42
42
  fsk: "18"
43
- expires_at: Fri, 09 Sep 2011 22:41:50 +0000
44
43
  - name: 'Update existing User - Update watchlist'
45
44
  request:
46
45
  path: '/users/duffyduck/watchlist'
@@ -79,16 +78,14 @@
79
78
  path: '/users/duffyduck/ratings'
80
79
  method: 'PUT'
81
80
  body:
82
- "m1035": 4
83
- "m2087": 3
81
+ "m1035": 1
82
+ "m2087": 0.5
84
83
  "m1554": 2
85
- "m2981": 1
84
+ "m2981": 1.0
86
85
  "m1590": 2
87
- "m1056": 3
88
86
  "m12493": 4
89
87
  "m1875": 5
90
88
  "m7258": 2.5
91
- "m7339": 3.5
92
89
  response_expectation:
93
90
  status_code: 204
94
91
  headers:
@@ -115,11 +112,10 @@
115
112
  - m78
116
113
  ratings:
117
114
  "m1035": "1.0"
118
- "m2087": "3.0"
115
+ "m2087": "0.5"
119
116
  "m1554": "2.0"
117
+ "m2981": "1.0"
120
118
  "m1590": "2.0"
121
- "m1056": "3.0"
122
119
  "m12493": "4.0"
123
120
  "m1875": "5.0"
124
121
  "m7258": "2.5"
125
- "m7339": "3.5"
data/lib/api_runner.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  class ApiRunner
2
2
  require 'yaml'
3
- require 'JSON'
4
3
  require 'expectation_matcher'
5
4
  require 'http_client'
6
5
 
@@ -1,5 +1,6 @@
1
1
  class ExpectationMatcher
2
2
  require 'nokogiri'
3
+ require 'JSON'
3
4
 
4
5
  def initialize(excludes=nil)
5
6
  @test_types = [:response_code, :response_body_format, :response_headers, :response_body]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - jan@moviepilot.com
@@ -263,7 +263,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
263
  requirements:
264
264
  - - ">="
265
265
  - !ruby/object:Gem::Version
266
- hash: -4500206872193641389
266
+ hash: -474959807146052677
267
267
  segments:
268
268
  - 0
269
269
  version: "0"