reliefweb-api 1.0.0 → 1.0.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/README.md +4 -18
- data/docs/CountriesApi.md +1 -1
- data/docs/DisastersApi.md +1 -1
- data/docs/DiscoveryApi.md +1 -1
- data/docs/JobsApi.md +1 -1
- data/docs/ReportsApi.md +1 -1
- data/docs/SourcesApi.md +1 -1
- data/docs/TrainingApi.md +1 -1
- data/lib/reliefweb-api/configuration.rb +1 -1
- data/lib/reliefweb-api/version.rb +1 -1
- data/reliefweb-api-1.0.0.gem +0 -0
- data/spec/configuration_spec.rb +3 -3
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86d5b09f5f8995719d92aa134166a588d41ecf25
|
4
|
+
data.tar.gz: 797fbdcaa8d29e79a0d67aa289a8f1ae07318fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87f093f8c81dca8d3f644819473a6e382229a7530418f660ba2392f0784a0a629f5583fe238de58c6dcd567ece8d6ec9dac3a47efb67b8f4a3ca2a1a5058080c
|
7
|
+
data.tar.gz: 1395dcca8c4d23a92e752600b7ac1250104dc792413d64bfa701702158d7ae33a1ab63a5bd53eec696346b57a277b8ab2b844e553537fa83697c649881484c2f
|
data/README.md
CHANGED
@@ -13,26 +13,12 @@ For more information, please visit [https://reliefweb.int/contact](https://relie
|
|
13
13
|
|
14
14
|
## Installation
|
15
15
|
|
16
|
-
###
|
16
|
+
### Install from RubyGems
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
```shell
|
21
|
-
gem build reliefweb-api.gemspec
|
18
|
+
Add this to the Gemfile:
|
22
19
|
```
|
23
|
-
|
24
|
-
Then either install the gem locally:
|
25
|
-
|
26
|
-
```shell
|
27
|
-
gem install ./reliefweb-api-1.0.0.gem
|
20
|
+
gem 'reliefweb-api'
|
28
21
|
```
|
29
|
-
(for development, run `gem install --dev ./reliefweb-api-1.0.0.gem` to install the development dependencies)
|
30
|
-
|
31
|
-
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
|
-
|
33
|
-
Finally add this to the Gemfile:
|
34
|
-
|
35
|
-
gem 'reliefweb-api', '~> 1.0.0'
|
36
22
|
|
37
23
|
### Install from Git
|
38
24
|
|
@@ -93,7 +79,7 @@ end
|
|
93
79
|
|
94
80
|
## Documentation for API Endpoints
|
95
81
|
|
96
|
-
All URIs are relative to *
|
82
|
+
All URIs are relative to *https://api.reliefweb.int/v1*
|
97
83
|
|
98
84
|
Class | Method | HTTP request | Description
|
99
85
|
------------ | ------------- | ------------- | -------------
|
data/docs/CountriesApi.md
CHANGED
data/docs/DisastersApi.md
CHANGED
data/docs/DiscoveryApi.md
CHANGED
data/docs/JobsApi.md
CHANGED
data/docs/ReportsApi.md
CHANGED
data/docs/SourcesApi.md
CHANGED
data/docs/TrainingApi.md
CHANGED
Binary file
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe ReliefWebAPI::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("https://api.reliefweb.int/v1")
|
22
22
|
# ReliefWebAPI.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe ReliefWebAPI::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("https://api.reliefweb.int/v1")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("https://api.reliefweb.int/v1")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reliefweb-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
|
- Sri Prasanna Karuppapillai
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- lib/reliefweb-api/models/source.rb
|
299
299
|
- lib/reliefweb-api/models/training.rb
|
300
300
|
- lib/reliefweb-api/version.rb
|
301
|
+
- reliefweb-api-1.0.0.gem
|
301
302
|
- reliefweb-api.gemspec
|
302
303
|
- spec/api/countries_api_spec.rb
|
303
304
|
- spec/api/disasters_api_spec.rb
|