veeqo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/veeqo/request.rb +4 -2
- data/lib/veeqo/version.rb +1 -1
- data/spec/support/fake_veeqo_api.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c01a28b027c05b2ba0769d3ba700d8be5352581
|
4
|
+
data.tar.gz: 002019e4359d2a922fda249331601ea6fbaa4ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c97869fca6ced47c4599a358c7cf5ab6406aac249f4efb80a1571039338fc1e35570ed77b14edcde3d3d0621de92eb67bbff7521d3c5f14ab0cb422fff566f9
|
7
|
+
data.tar.gz: a496db96abee3fecf8f93c73c605589d96ff1648c80b086eb17564fa378ff778e1ef50c827c554fe03fba95651032f84fb1b8e7380840b51cc474e5c6d4f4298
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
Status](https://travis-ci.org/abunashir/veeqo.svg?branch=master)](https://travis-ci.org/abunashir/veeqo)
|
5
5
|
[![Code
|
6
6
|
Climate](https://codeclimate.com/github/abunashir/veeqo/badges/gpa.svg)](https://codeclimate.com/github/abunashir/veeqo)
|
7
|
+
[![Gem
|
8
|
+
Version](https://badge.fury.io/rb/veeqo.svg)](https://badge.fury.io/rb/veeqo)
|
7
9
|
|
8
10
|
The Ruby Interface to the Veeqo API
|
9
11
|
|
data/lib/veeqo/request.rb
CHANGED
@@ -74,8 +74,10 @@ module Veeqo
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def set_request_headers!(request)
|
77
|
-
request.initialize_http_header(
|
78
|
-
|
77
|
+
request.initialize_http_header(
|
78
|
+
"Content-Type" => "application/json",
|
79
|
+
"x-api-key" => Veeqo.configuration.api_key,
|
80
|
+
)
|
79
81
|
end
|
80
82
|
|
81
83
|
def server_errors
|
data/lib/veeqo/version.rb
CHANGED
@@ -392,7 +392,10 @@ module FakeVeeqoApi
|
|
392
392
|
end
|
393
393
|
|
394
394
|
def api_key_header
|
395
|
-
{
|
395
|
+
{
|
396
|
+
"content-type" => "application/json",
|
397
|
+
"x-api-key" => Veeqo.configuration.api_key,
|
398
|
+
}
|
396
399
|
end
|
397
400
|
|
398
401
|
def response_with(filename:, status:)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veeqo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abu Nashir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|