zumata_v3 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -5
- data/lib/zumata_v3/client.rb +1 -1
- data/lib/zumata_v3/errors.rb +1 -2
- data/lib/zumata_v3/version.rb +1 -1
- data/zumata_v3.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31f011596a1d70bd42e23608fcd5a0ce4da7861d
|
4
|
+
data.tar.gz: 4e0f27c1aaca4f07a463e69274134af1dde3b20f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf63b87a5cdb7a6e89e759e9ac8e334fe81052c171f1f2cd6c3325d6f26f07534c956d54c56852bc4a345beafd81e240b3b1b9a69ecf8de4a2f3362a86fc3c95
|
7
|
+
data.tar.gz: b9d0c34342c374b9592179a95bc13695fd21c676cda96008b6925425917d3b54a7e06ad2e3bb9568a1d63e1efa767ade9f634a57c1491a7a63b38abf69e3e9b5
|
data/README.md
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
# Zumata
|
2
2
|
|
3
3
|
For interaction with the Zumata API 3.0
|
4
|
-
[
|
4
|
+
[Documentation](http://docs.api-v3.zumata.com)
|
5
5
|
|
6
|
-
|
6
|
+
### Installation
|
7
|
+
`gem install zumata_v3`
|
8
|
+
|
9
|
+
### Configuration
|
7
10
|
```
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
+
API_KEY = "YOUR API KEY"
|
12
|
+
API_URL = "https://test.api-v3.zumata.com
|
13
|
+
|
14
|
+
ZumataV3.configure do |config|
|
15
|
+
config.api_url = API_URL
|
16
|
+
config.api_key = API_KEY
|
11
17
|
end
|
12
18
|
```
|
13
19
|
|
data/lib/zumata_v3/client.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
require 'time'
|
3
|
-
require 'awesome_print'
|
4
3
|
require 'json'
|
5
4
|
|
6
5
|
module ZumataV3
|
@@ -101,6 +100,7 @@ module ZumataV3
|
|
101
100
|
if opts[:headers] != nil && opts[:headers].class == Hash
|
102
101
|
headers = headers.merge(opts[:headers])
|
103
102
|
end
|
103
|
+
headers
|
104
104
|
end
|
105
105
|
|
106
106
|
end
|
data/lib/zumata_v3/errors.rb
CHANGED
data/lib/zumata_v3/version.rb
CHANGED
data/zumata_v3.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
spec.add_development_dependency "rspec", "3.1.0"
|
24
|
-
spec.add_development_dependency "awesome_print", "1.2.0"
|
25
24
|
spec.add_development_dependency "vcr", "2.9.3"
|
26
25
|
spec.add_development_dependency "webmock", "1.18.0"
|
27
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zumata_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gomez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -53,20 +53,6 @@ dependencies:
|
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 3.1.0
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: awesome_print
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - '='
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 1.2.0
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - '='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 1.2.0
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: vcr
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|