reliefweb-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fd84b5890106a2b99012308694bbdc0b3e09fe0
4
- data.tar.gz: 45c223e6b281f3ce816212b1eab03525de45743c
3
+ metadata.gz: 86d5b09f5f8995719d92aa134166a588d41ecf25
4
+ data.tar.gz: 797fbdcaa8d29e79a0d67aa289a8f1ae07318fca
5
5
  SHA512:
6
- metadata.gz: 74a52d4c3793c630817418b78773912166062bcdd5e2bfc2046d36166c6a533da562569f619aac005d7cd163055cc944542ab4a4356985d48bdd10f28cc76669
7
- data.tar.gz: 2355bb3291ff345bffdb7866a3aa8a904c318a48256dbc8b6289a24f002d6fd1f1f9be98f15207bf8bea539fd7993c096061fee3976f89f9f8228959b89c4365
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
- ### Build a gem
16
+ ### Install from RubyGems
17
17
 
18
- To build the Ruby code into a gem:
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 *http://api.reliefweb.int/v1*
82
+ All URIs are relative to *https://api.reliefweb.int/v1*
97
83
 
98
84
  Class | Method | HTTP request | Description
99
85
  ------------ | ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::CountriesApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::DisastersApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::DiscoveryApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::JobsApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::ReportsApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::SourcesApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # ReliefWebAPI::TrainingApi
2
2
 
3
- All URIs are relative to *http://api.reliefweb.int/v1*
3
+ All URIs are relative to *https://api.reliefweb.int/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -128,7 +128,7 @@ module ReliefWebAPI
128
128
  attr_accessor :force_ending_format
129
129
 
130
130
  def initialize
131
- @scheme = 'http'
131
+ @scheme = 'https'
132
132
  @host = 'api.reliefweb.int'
133
133
  @base_path = '/v1'
134
134
  @api_key = {}
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  module ReliefWebAPI
14
- VERSION = '1.0.0'
14
+ VERSION = '1.0.1'
15
15
  end
Binary file
@@ -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("http://api.reliefweb.int/v1")
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("http://api.reliefweb.int/v1")
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("http://api.reliefweb.int/v1")
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.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