travelpayouts_api 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d4ca155d4f05477a34c76a9912bc241eb27e9e6
4
- data.tar.gz: a7e83bd6465ab9dfbfc935b4d577bac4406fee61
3
+ metadata.gz: fcd8f3d6d42a8bd2230efe4627c0901836f3e87f
4
+ data.tar.gz: 4e10496471f81af6eb73884d5cb9d0c03c83061d
5
5
  SHA512:
6
- metadata.gz: a44883669e1a346d4ac92fb43155acc8d5548cfa360b8131d4727be44a4cc868d1f4dda7bcd07e73087518b1996ea7f0483310efd7db2c71c98755e194821cd1
7
- data.tar.gz: 43941d225cdfa71e7892813c114ad8d4f57be01689b770c0fde9b9dcc804b0cb2de09c66b07d95ee9bbb1e133f5a61cc514ce232bd47685c7ee9d9fc79d56543
6
+ metadata.gz: 6a3cf247c3d8d25d60979396ec677c2efeee01df6d12553d4bf3de97df63c0d3d6697a1be0b62440ce9221661653ac9ee9d01ce3e47fce12bd02c50a7b21a11e
7
+ data.tar.gz: 217673f1f56b70a916e453b7491ffaf0cee6d92fdb784b43b1de46ac48dec25d132b5d94a36e6760b1b54f3ef0da2ef5b7ab05263a5891813ed0513f39fece36
data/README.md CHANGED
@@ -16,26 +16,26 @@ This gem supports
16
16
  * Flights API ( http://support.travelpayouts.com/hc/ru/articles/203956173 )
17
17
  * Hotels API ( http://support.travelpayouts.com/hc/ru/articles/203956133 )
18
18
 
19
- ## How to use
19
+ ## How to use
20
20
 
21
- Include it in your `Gemfile`:
21
+ Include it in your `Gemfile`:
22
22
 
23
- ```ruby
24
- gem 'travelpayouts_api'
25
- ```
23
+ ```ruby
24
+ gem 'travelpayouts_api'
25
+ ```
26
26
 
27
- Create an initializer in config/initializers:
27
+ Create an initializer in config/initializers:
28
28
 
29
- ```ruby
30
- # config/initializers/travelpayouts_api.rb
31
- TravelPayouts.configure do |config|
32
- config.token = '<token>'
33
- config.marker = '<marker>'
34
- config.host = 'localhost'
35
- config.currency = 'rub'
36
- config.locale = 'en'
37
- end
38
- ```
29
+ ```ruby
30
+ # config/initializers/travelpayouts_api.rb
31
+ TravelPayouts.configure do |config|
32
+ config.token = '<token>'
33
+ config.marker = '<marker>'
34
+ config.host = 'localhost'
35
+ config.currency = 'rub'
36
+ config.locale = 'en'
37
+ end
38
+ ```
39
39
 
40
40
  where
41
41
 
@@ -117,6 +117,12 @@ map_of_prices(origin_iata:, period: :month, one_way: true, direct: false,
117
117
  min_trip_duration_in_days: nil, max_trip_duration_in_days: nil)
118
118
  ```
119
119
 
120
+ ## Calendar API
121
+
122
+ ```ruby
123
+ calendar_of_prices(origin:, destination:, depart_date:, one_way:true)
124
+ ```
125
+
120
126
  ## Flights API
121
127
 
122
128
  ```ruby
@@ -1,3 +1,3 @@
1
1
  module TravelPayouts
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?('spec/') }
15
15
  s.homepage = 'http://github.com/dyatlov/travelpayouts_api'
16
16
  s.license = 'MIT'
17
+ s.required_ruby_version = '>= 2.2.0'
17
18
  s.add_development_dependency 'rspec'
18
19
  s.add_development_dependency 'webmock'
19
20
  s.add_dependency 'rest-client'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travelpayouts_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Dyatlov
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: '0'
102
+ version: 2.2.0
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - ">="