halo-api 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/README.md +1 -1
- data/halo-api.gemspec +5 -1
- data/lib/halo-api/client.rb +2 -2
- data/lib/halo-api/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97cb997518d9383589c461dc557b58f984acd9e2
|
|
4
|
+
data.tar.gz: 15b6f1efb59f428f50e4225ea61339811651a69d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b41ce8692aefae462c3572ad211be0d0191d2a470d1100f6d156d3bf7ddd600779197611fa81fa6bf12687899630c48fd20481168df62f4f4a99e9f6fcc5c73
|
|
7
|
+
data.tar.gz: 8ec874f4ee93c61f9aae76c905dcd98943c49e9bfb48a0fd7083abf5b2920dd6cef1e73c5c00c0dd5dd08bf7449d3e71dd268993c6ec736ce0dfdddb25b6df5d
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# HaloAPI
|
|
2
|
-
[](https://badge.fury.io/rb/halo-api)
|
|
3
3
|
[](https://gemnasium.com/github.com/xarlybovi/halo-api)
|
|
4
4
|
[](https://codeclimate.com/github/xarlybovi/halo-api)
|
|
5
5
|
[](https://travis-ci.org/xarlybovi/halo-api)
|
data/halo-api.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.description = 'Wrapper for Halo Public API (BETA). https://developer.haloapi.com'
|
|
15
15
|
spec.homepage = 'https://github.com/xarlybovi/halo-api.git'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
19
19
|
f.match(%r{^(test|spec|features)/})
|
|
20
20
|
end
|
|
@@ -22,6 +22,9 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
23
|
spec.require_paths = ['lib']
|
|
24
24
|
|
|
25
|
+
# This gem will work with 2.0.0 or greater
|
|
26
|
+
spec.required_ruby_version = '>= 2.0.0'
|
|
27
|
+
|
|
25
28
|
spec.add_runtime_dependency 'httparty', '~> 0.15.6'
|
|
26
29
|
|
|
27
30
|
spec.add_development_dependency 'bundler', '~> 1.15'
|
|
@@ -31,4 +34,5 @@ Gem::Specification.new do |spec|
|
|
|
31
34
|
spec.add_development_dependency 'rubocop', '~> 0.49.1'
|
|
32
35
|
spec.add_development_dependency 'coveralls', '~> 0.8.21'
|
|
33
36
|
spec.add_development_dependency 'pry', '~> 0.10.3'
|
|
37
|
+
spec.add_development_dependency 'wwtd', '~> 1.3'
|
|
34
38
|
end
|
data/lib/halo-api/client.rb
CHANGED
|
@@ -33,8 +33,8 @@ module Halo
|
|
|
33
33
|
def make_request(verb, path, params = {})
|
|
34
34
|
options = {}
|
|
35
35
|
headers = {
|
|
36
|
-
'Ocp-Apim-Subscription-Key'
|
|
37
|
-
'Accept-Language'
|
|
36
|
+
'Ocp-Apim-Subscription-Key' => @api_key,
|
|
37
|
+
'Accept-Language' => @region
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
url = "https://www.haloapi.com#{path}"
|
data/lib/halo-api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: halo-api
|
|
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
|
- Carlos Ruiz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-09-
|
|
11
|
+
date: 2017-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -128,6 +128,20 @@ dependencies:
|
|
|
128
128
|
- - "~>"
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
130
|
version: 0.10.3
|
|
131
|
+
- !ruby/object:Gem::Dependency
|
|
132
|
+
name: wwtd
|
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
|
134
|
+
requirements:
|
|
135
|
+
- - "~>"
|
|
136
|
+
- !ruby/object:Gem::Version
|
|
137
|
+
version: '1.3'
|
|
138
|
+
type: :development
|
|
139
|
+
prerelease: false
|
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
141
|
+
requirements:
|
|
142
|
+
- - "~>"
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: '1.3'
|
|
131
145
|
description: Wrapper for Halo Public API (BETA). https://developer.haloapi.com
|
|
132
146
|
email:
|
|
133
147
|
- xarlybovi@gmail.com
|
|
@@ -212,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
212
226
|
requirements:
|
|
213
227
|
- - ">="
|
|
214
228
|
- !ruby/object:Gem::Version
|
|
215
|
-
version:
|
|
229
|
+
version: 2.0.0
|
|
216
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
231
|
requirements:
|
|
218
232
|
- - ">="
|
|
@@ -220,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
220
234
|
version: '0'
|
|
221
235
|
requirements: []
|
|
222
236
|
rubyforge_project:
|
|
223
|
-
rubygems_version: 2.6.
|
|
237
|
+
rubygems_version: 2.6.13
|
|
224
238
|
signing_key:
|
|
225
239
|
specification_version: 4
|
|
226
240
|
summary: Wrapper for Halo Public API.
|