rev-api 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.coveralls.yml +2 -0
- data/.travis.yml +11 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +21 -3
- data/README.md +9 -1
- data/lib/rev-api/version.rb +1 -1
- data/rev-api.gemspec +1 -1
- data/spec/fixtures/api_cassettes/upload_input.yml +15 -55
- data/spec/fixtures/api_cassettes/upload_input_with_invalid_content_type.yml +16 -56
- data/spec/spec_helper.rb +12 -2
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODI4M2RkNzcyYTkxY2NhYWU0YWRkNWNkNDZkMmI5YmYyNjJlOGE4Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2NlNGIzZTJkYTc1MDI4MWE3YjQ2Y2MwODI5Yzc1MTExZDI4MDQzNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTI5YjkxNzI1YjIwOTBiZGI3ZGJjMWFjMTA5NTRlYWJiZjQzNzQyMTE4NDdi
|
10
|
+
ZGU1NzUxMDBlOGE0ZTYwMDg5MGVkNWY1ZDM3ZjkxMDVkMmU3MjMxZjQ3MWVj
|
11
|
+
YmY1ZmU5M2U0ZmYxNzc5ZmUxOThiYzFjNTQ1ODg0Y2Q5NGU1NTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmU1MjZmMzZmOGQzMDU2YmE1ZThiMTlkYjhmNmQ5ZDM3NDNmY2I2Yzg0Y2Nm
|
14
|
+
Y2RjM2VlYzVlOWM2YjJhNzUzM2M5ZDQzNGFhYzhjMmZkZjNhNTA0NzdhNDI3
|
15
|
+
MDEyMDZiZjQ1YjI3ZDEyYmY2YzIzY2E4ODMwYTE5YjA2NTRiNDE=
|
data/.coveralls.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rev-api (1.0.
|
4
|
+
rev-api (1.0.1)
|
5
5
|
httparty (>= 0.11.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,20 +9,37 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
addressable (2.3.5)
|
11
11
|
ansi (1.4.3)
|
12
|
+
coveralls (0.7.0)
|
13
|
+
multi_json (~> 1.3)
|
14
|
+
rest-client
|
15
|
+
simplecov (>= 0.7)
|
16
|
+
term-ansicolor
|
17
|
+
thor
|
12
18
|
crack (0.4.1)
|
13
19
|
safe_yaml (~> 0.9.0)
|
14
20
|
httparty (0.11.0)
|
15
21
|
multi_json (~> 1.0)
|
16
22
|
multi_xml (>= 0.5.2)
|
23
|
+
mime-types (1.25)
|
17
24
|
multi_json (1.8.0)
|
18
25
|
multi_xml (0.5.5)
|
19
26
|
rake (10.1.0)
|
20
27
|
redcarpet (3.0.0)
|
28
|
+
rest-client (1.6.7)
|
29
|
+
mime-types (>= 1.16)
|
21
30
|
rubygems-tasks (0.2.4)
|
22
31
|
safe_yaml (0.9.5)
|
32
|
+
simplecov (0.7.1)
|
33
|
+
multi_json (~> 1.0)
|
34
|
+
simplecov-html (~> 0.7.1)
|
35
|
+
simplecov-html (0.7.1)
|
36
|
+
term-ansicolor (1.2.2)
|
37
|
+
tins (~> 0.8)
|
38
|
+
thor (0.18.1)
|
39
|
+
tins (0.11.0)
|
23
40
|
turn (0.9.6)
|
24
41
|
ansi
|
25
|
-
vcr (2.
|
42
|
+
vcr (2.6.0)
|
26
43
|
webmock (1.11.0)
|
27
44
|
addressable (>= 2.2.7)
|
28
45
|
crack (>= 0.3.2)
|
@@ -32,11 +49,12 @@ PLATFORMS
|
|
32
49
|
ruby
|
33
50
|
|
34
51
|
DEPENDENCIES
|
52
|
+
coveralls
|
35
53
|
rake (>= 10.1.0)
|
36
54
|
redcarpet
|
37
55
|
rev-api!
|
38
56
|
rubygems-tasks
|
39
57
|
turn (~> 0.9.6)
|
40
|
-
vcr (~> 2.
|
58
|
+
vcr (~> 2.6.0)
|
41
59
|
webmock (~> 1.11.0)
|
42
60
|
yard
|
data/README.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/rev-api.png)](http://badge.fury.io/rb/rev-api)
|
2
|
+
[![Build Status](https://secure.travis-ci.org/revdotcom/rev-ruby-sdk.png?branch=master)](https://secure.travis-ci.org/revdotcom/rev-ruby-sdk)
|
3
|
+
[![Dependency Status](https://gemnasium.com/revdotcom/rev-ruby-sdk.png?travis)](https://gemnasium.com/revdotcom/rev-ruby-sdk)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/revdotcom/rev-ruby-sdk.png)](https://codeclimate.com/github/revdotcom/rev-ruby-sdk)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/revdotcom/rev-ruby-sdk/badge.png)](https://coveralls.io/r/revdotcom/rev-ruby-sdk)
|
6
|
+
|
7
|
+
[Reference](http://www.rev.com/api/docs) | [RDocs](http://rubydoc.info/github/revdotcom/rev-ruby-sdk/master/frames)
|
8
|
+
|
1
9
|
rev-ruby-sdk
|
2
10
|
------------
|
3
11
|
|
@@ -96,7 +104,7 @@ Refer to `cli.rb` in the `examples` directory for a full example illustrating pl
|
|
96
104
|
|
97
105
|
### Documentation
|
98
106
|
|
99
|
-
YARD documentation can be generated by running `rake yard` command, and will be placed in the `doc` directory.
|
107
|
+
[YARD documentation](http://rubydoc.info/github/revdotcom/rev-ruby-sdk/master/frames) can be generated locally by running `rake yard` command, and will be placed in the `doc` directory.
|
100
108
|
|
101
109
|
You can find API documentation at <http://www.rev.com/api/docs>.
|
102
110
|
|
data/lib/rev-api/version.rb
CHANGED
data/rev-api.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_runtime_dependency('httparty', '>= 0.11.0')
|
23
23
|
|
24
24
|
s.add_development_dependency('webmock', '~> 1.11.0')
|
25
|
-
s.add_development_dependency('vcr', '~> 2.
|
25
|
+
s.add_development_dependency('vcr', '~> 2.6.0')
|
26
26
|
s.add_development_dependency('turn', '~> 0.9.6')
|
27
27
|
s.add_development_dependency('rake', '>= 10.1.0')
|
28
28
|
s.add_development_dependency('yard')
|
@@ -4,101 +4,61 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: https://www.revtrunk.com/api/v1/inputs
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: !
|
9
|
-
|
7
|
+
encoding: UTF-8
|
8
|
+
string: !binary |-
|
9
|
+
iVBORw0KGgoAAAANSUhEUgAAAHMAAAAyCAYAAABvR+QvAAAGtklEQVR42u2c
|
10
10
|
z2scZRjH9w9QMxFBPEhHm7Smoe2ANGnamAxWqEqR9SIKoiOoeJIRc/Ako0gR
|
11
|
-
|
12
11
|
L4N48eTQowcdCAgWU6dumzSpttOiF0+DB3+kye5E/Bk1Xd/ZPKNvJzu77/O+
|
13
|
-
|
14
12
|
z0w2dA9fFtLu7Mz7eZ+f7ztvpdlsVjqpcWiocF1YnD8Gev7C4kLtRs2vMTUl
|
15
|
-
|
16
13
|
tZa53iz721ugGe53B8t4Thl148OrIgBTZ6oyORKymUyqB5u/GmpMJshicphc
|
17
|
-
|
18
14
|
poApZGoqKoJreXDt5DfMHQ8TIIRMTRKN7zm1OnXgoaIfngOewg4AkiroGK6V
|
19
|
-
|
20
15
|
QjZ2BEx2EYsM4la52zXLvzz9ycOLC+dmwPIoLLkJgF0ArHe7BzahB9nEfg7G
|
21
|
-
|
22
16
|
IUhVnxh5tSiYUYEwE3m9EpPAihNr88H6KFx1MlmszG8locrvMi4mKUx2AaNg
|
23
|
-
|
24
17
|
kKmsXkw4EvfJuWcVqK+3LPGB/X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79
|
-
|
80
45
|
holglHWoU183Hl5BYYV+OyvswyzvHIOIwAIt/q3oPsxyYqBNcC5QCAmR0jkL
|
81
|
-
|
82
46
|
fZh412kTWF96FJuJtb4+THlwVYJDm/gj1gqteW96mAAtPUbNkwQXZ064NEXO
|
83
|
-
|
84
47
|
xuvDxMc0k4OVnnsXIGJcehRpamEOuFqzrNMqb0qYXExzEKpywE3qONarMP8F
|
85
|
-
|
86
48
|
PE/RzQd+eHkAAAAASUVORK5CYII=
|
87
|
-
|
88
|
-
'
|
89
49
|
headers:
|
90
|
-
|
91
|
-
-
|
50
|
+
Authorization:
|
51
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
52
|
+
User-Agent:
|
53
|
+
- RevOfficialRubySDK/1.0.0
|
92
54
|
Content-Disposition:
|
93
55
|
- attachment; filename=sourcedocument.png
|
94
56
|
Content-Type:
|
95
57
|
- image/png
|
58
|
+
Accept:
|
59
|
+
- '*/*'
|
96
60
|
Content-Length:
|
97
61
|
- '1775'
|
98
|
-
Authorization:
|
99
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
100
|
-
User-Agent:
|
101
|
-
- RevOfficialRubySDK/1.0.0
|
102
62
|
response:
|
103
63
|
status:
|
104
64
|
code: 201
|
@@ -111,20 +71,20 @@ http_interactions:
|
|
111
71
|
Expires:
|
112
72
|
- '-1'
|
113
73
|
Location:
|
114
|
-
- urn:foxtranslate:inputmedia:
|
74
|
+
- urn:foxtranslate:inputmedia:SnVwbG9hZHMvMjAxMy0wOS0yNi9jYzljNGE0MC03NTY3LTQ2YjYtYmVmMi0xMjU5ODgwODNhMWQvc291cmNlZG9jdW1lbnQucG5n
|
115
75
|
Server:
|
116
76
|
- Microsoft-IIS/7.5
|
117
77
|
X-Miniprofiler-Ids:
|
118
|
-
-
|
78
|
+
- '["a0f9d7b5-d023-4b9a-9896-f0a2d64de3d3","bf2469f9-1da0-411e-bf13-d2536dad319c","8c9e9962-f48b-4ed4-98cc-418cd675a1ac","b9ff244c-b5cf-4df1-a46f-4ffcb1822ec2","28d29827-cb62-407b-a157-b5e219dcc576"]'
|
119
79
|
X-Powered-By:
|
120
80
|
- ASP.NET
|
121
81
|
Date:
|
122
|
-
-
|
82
|
+
- Thu, 26 Sep 2013 19:05:16 GMT
|
123
83
|
Content-Length:
|
124
84
|
- '0'
|
125
85
|
body:
|
126
|
-
encoding:
|
86
|
+
encoding: UTF-8
|
127
87
|
string: ''
|
128
|
-
http_version:
|
129
|
-
recorded_at:
|
88
|
+
http_version:
|
89
|
+
recorded_at: Thu, 26 Sep 2013 19:05:16 GMT
|
130
90
|
recorded_with: VCR 2.5.0
|
@@ -4,101 +4,61 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: https://www.revtrunk.com/api/v1/inputs
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: !
|
9
|
-
|
7
|
+
encoding: UTF-8
|
8
|
+
string: !binary |-
|
9
|
+
iVBORw0KGgoAAAANSUhEUgAAAHMAAAAyCAYAAABvR+QvAAAGtklEQVR42u2c
|
10
10
|
z2scZRjH9w9QMxFBPEhHm7Smoe2ANGnamAxWqEqR9SIKoiOoeJIRc/Ako0gR
|
11
|
-
|
12
11
|
L4N48eTQowcdCAgWU6dumzSpttOiF0+DB3+kye5E/Bk1Xd/ZPKNvJzu77/O+
|
13
|
-
|
14
12
|
z0w2dA9fFtLu7Mz7eZ+f7ztvpdlsVjqpcWiocF1YnD8Gev7C4kLtRs2vMTUl
|
15
|
-
|
16
13
|
tZa53iz721ugGe53B8t4Thl148OrIgBTZ6oyORKymUyqB5u/GmpMJshicphc
|
17
|
-
|
18
14
|
poApZGoqKoJreXDt5DfMHQ8TIIRMTRKN7zm1OnXgoaIfngOewg4AkiroGK6V
|
19
|
-
|
20
15
|
QjZ2BEx2EYsM4la52zXLvzz9ycOLC+dmwPIoLLkJgF0ArHe7BzahB9nEfg7G
|
21
|
-
|
22
16
|
IUhVnxh5tSiYU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tOgBFb0m
|
77
|
-
|
78
44
|
vZdfBQSX6hBBtKhPG+kLBzEmgGinb4L1YZYLUYd4pgoxbHMOQh9mSRAtggw1
|
79
|
-
|
80
45
|
holglHWoU183Hl5BYYV+OyvswyzvHIOIwAIt/q3oPsxyYqBNcC5QCAmR0jkL
|
81
|
-
|
82
46
|
fZh412kTWF96FJuJtb4+THlwVYJDm/gj1gqteW96mAAtPUbNkwQXZ064NEXO
|
83
|
-
|
84
47
|
xuvDxMc0k4OVnnsXIGJcehRpamEOuFqzrNMqb0qYXExzEKpywE3qONarMP8F
|
85
|
-
|
86
48
|
PE/RzQd+eHkAAAAASUVORK5CYII=
|
87
|
-
|
88
|
-
'
|
89
49
|
headers:
|
90
|
-
|
91
|
-
-
|
50
|
+
Authorization:
|
51
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
52
|
+
User-Agent:
|
53
|
+
- RevOfficialRubySDK/1.0.0
|
92
54
|
Content-Disposition:
|
93
55
|
- attachment; filename=sourcedocument.png
|
94
56
|
Content-Type:
|
95
57
|
- trololo
|
58
|
+
Accept:
|
59
|
+
- '*/*'
|
96
60
|
Content-Length:
|
97
61
|
- '1775'
|
98
|
-
Authorization:
|
99
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
100
|
-
User-Agent:
|
101
|
-
- RevOfficialRubySDK/1.0.0
|
102
62
|
response:
|
103
63
|
status:
|
104
64
|
code: 400
|
@@ -115,17 +75,17 @@ http_interactions:
|
|
115
75
|
Server:
|
116
76
|
- Microsoft-IIS/7.5
|
117
77
|
X-Miniprofiler-Ids:
|
118
|
-
-
|
78
|
+
- '["a0f9d7b5-d023-4b9a-9896-f0a2d64de3d3","bf2469f9-1da0-411e-bf13-d2536dad319c","8c9e9962-f48b-4ed4-98cc-418cd675a1ac","b9ff244c-b5cf-4df1-a46f-4ffcb1822ec2","28d29827-cb62-407b-a157-b5e219dcc576","d8efeedd-9de7-44b2-ba69-973527be9dbc","22d99839-4b04-495a-96cc-a5e0be8c9a12","2e4c73ef-12ed-464c-aa4f-4bb4ab398c00","3ea6619b-0c1f-4677-9613-0129cc504862","379bbb66-f74e-4d00-95bb-c6abfa4013a9","7a2148f2-ac1d-4822-bfbd-f4c6dc0cf201","77da68b5-42c7-4293-b229-98814a198f8b","3c434af1-18db-4612-b0ed-52147d4e2a5c","3b1e16e9-116e-44ed-b570-e25d0588544b","012dec81-c6a1-4518-a806-4ac3707e1fe9","066e3655-6a5d-40a4-8058-bfd2f07f93a7","20d23bf7-3b81-4012-ab14-4d972f573857","3d423fed-f62e-4f8c-96fb-5213ad3f0d6b"]'
|
119
79
|
X-Powered-By:
|
120
80
|
- ASP.NET
|
121
81
|
Date:
|
122
|
-
-
|
82
|
+
- Thu, 26 Sep 2013 19:27:07 GMT
|
123
83
|
Content-Length:
|
124
84
|
- '112'
|
125
85
|
body:
|
126
|
-
encoding:
|
127
|
-
string:
|
128
|
-
|
129
|
-
http_version:
|
130
|
-
recorded_at:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: '{"code":10001,"message":"The content-type explicitly specified in the
|
88
|
+
request is not supported for input media"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Thu, 26 Sep 2013 19:27:07 GMT
|
131
91
|
recorded_with: VCR 2.5.0
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
|
+
|
1
4
|
require_relative '../lib/rev-api'
|
2
5
|
|
3
6
|
#dependencies
|
@@ -7,7 +10,7 @@ require 'vcr'
|
|
7
10
|
require 'turn'
|
8
11
|
|
9
12
|
module MiniTest
|
10
|
-
class Spec
|
13
|
+
class Spec
|
11
14
|
class << self
|
12
15
|
def xit(desc='anonymous')
|
13
16
|
it(name) { skip 'DISABLED' }
|
@@ -25,7 +28,14 @@ end
|
|
25
28
|
|
26
29
|
VCR.configure do |c|
|
27
30
|
c.cassette_library_dir = 'spec/fixtures/api_cassettes'
|
28
|
-
c.default_cassette_options = { :record => :once, :allow_unused_http_interactions => false,
|
31
|
+
c.default_cassette_options = { :record => :once, :allow_unused_http_interactions => false,
|
32
|
+
:match_requests_on => [:method, :uri, :rev_headers] }
|
29
33
|
c.hook_into :webmock
|
30
34
|
c.ignore_hosts 'www.example.com' # used to stub requests manually, see http_client_spec
|
35
|
+
|
36
|
+
# http://ruby-doc.org/stdlib-2.0.0/libdoc/net/http/rdoc/Net/HTTP.html#label-Compression - we ignore 'Accept-Encoding'
|
37
|
+
c.register_request_matcher :rev_headers do |request_1, request_2|
|
38
|
+
request_1.headers.delete 'Accept-Encoding'
|
39
|
+
request_1.headers == request_2.headers
|
40
|
+
end
|
31
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rev-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rev.com, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.6.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: turn
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,9 +129,11 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- .coveralls.yml
|
132
133
|
- .gitignore
|
133
134
|
- .ruby-gemset
|
134
135
|
- .ruby-version
|
136
|
+
- .travis.yml
|
135
137
|
- Gemfile
|
136
138
|
- Gemfile.lock
|
137
139
|
- LICENSE
|