Skip to content
This repository was archived by the owner on Apr 25, 2020. It is now read-only.

Commit e107152

Browse files
author
David Czarnecki
committed
Bump version to 2.0.1 with updated API endpoint
1 parent c789613 commit e107152

7 files changed

Lines changed: 14 additions & 10 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 2.0.1 (2016-09-20)
4+
5+
* forecast.io to darksky.net api [#9](https://github.com/darkskyapp/forecast-ruby/pull/9)
6+
37
## 2.0.0 (2013-07-05)
48

59
* `Forecast::IO` is now `ForecastIO`. Thanks [@pat](https://github.com/pat).

lib/forecast_io/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ForecastIO
2-
VERSION = '2.0.0'
2+
VERSION = '2.0.1'
33
end

spec/cassettes/forecast_for_latitude_longitude.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/forecast_for_latitude_longitude_and_query_params.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/forecast_for_latitude_longitude_and_time.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/forecast_io/forecast_io_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@
6262

6363
it "sends through a standard request" do
6464
expect(faraday).to receive(:get).with(
65-
'https://api.forecast.io/forecast/abc123/1.2,3.4', {}
65+
'https://api.darksky.net/forecast/abc123/1.2,3.4', {}
6666
).and_return(response)
6767

6868
ForecastIO.forecast(1.2, 3.4)
6969
end
7070

7171
it "sends through provided parameters" do
7272
expect(faraday).to receive(:get).with(
73-
'https://api.forecast.io/forecast/abc123/1.2,3.4', {units: 'si'}
73+
'https://api.darksky.net/forecast/abc123/1.2,3.4', {units: 'si'}
7474
).and_return(response)
7575

7676
ForecastIO.forecast(1.2, 3.4, params: {units: 'si'})
@@ -84,15 +84,15 @@
8484

8585
it "sends through the default parameters" do
8686
expect(faraday).to receive(:get).with(
87-
'https://api.forecast.io/forecast/abc123/1.2,3.4', {units: 'si'}
87+
'https://api.darksky.net/forecast/abc123/1.2,3.4', {units: 'si'}
8888
).and_return(response)
8989

9090
ForecastIO.forecast(1.2, 3.4)
9191
end
9292

9393
it "sends through the merged parameters" do
9494
expect(faraday).to receive(:get).with(
95-
'https://api.forecast.io/forecast/abc123/1.2,3.4',
95+
'https://api.darksky.net/forecast/abc123/1.2,3.4',
9696
{units: 'si', exclude: 'daily'}
9797
).and_return(response)
9898

@@ -101,7 +101,7 @@
101101

102102
it "overwrites default parameters when appropriate" do
103103
expect(faraday).to receive(:get).with(
104-
'https://api.forecast.io/forecast/abc123/1.2,3.4',
104+
'https://api.darksky.net/forecast/abc123/1.2,3.4',
105105
{units: 'imperial'}
106106
).and_return(response)
107107

spec/forecast_io/version_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
describe 'ForecastIO::VERSION' do
44
it 'should be the correct version' do
5-
expect(ForecastIO::VERSION).to eq('2.0.0')
5+
expect(ForecastIO::VERSION).to eq('2.0.1')
66
end
77
end

0 commit comments

Comments
 (0)