google-map-weather-intregration 1.2.1 → 1.3.0

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
  SHA256:
3
- metadata.gz: 14592be7137415cf03d18c1b10e35ab2ddc74bd32410e17c7c23d4280458a5d9
4
- data.tar.gz: 724992973813cfb38bce1bfc7d79236e725bbe89e1342e0d5eb64976686e0380
3
+ metadata.gz: 247bc237a000084afb63310396e32502bd6a0414f1112074ea16f1bc51c13652
4
+ data.tar.gz: 0bb58446fb692e6b77f0eab06e344cc2c163ea9145040fb711ba3a6b1d3187b2
5
5
  SHA512:
6
- metadata.gz: a6373049003db73acd4589f98d136df133a505211f68b5529199230e2d1a4fe8646065b59a239a82129c419158a6a562b170cab022e4ca98f6454e049e52b815
7
- data.tar.gz: c82f4c328280b3e228802e61657bcbe5608dd878610d00d1034b504171c444c04050faeccf9fce1dd530045f4b79e3400323d4be8264495e86f6a2f3145ca43e
6
+ metadata.gz: 87f31f7669b53c7f189ef3f836352cfb02e58c7a7d3503f06751c3bd13823230391df4199d863c2966b7f8bae9f6447b00d11d65a1cf6fa70c744357258ccd50
7
+ data.tar.gz: 856e096388d1a1d27440de49432c7348c5050408d932593f884f64351891ff4f2a6a30d78dd1ee736fa417456e35825a5c7bcdb70c29d22bbb004d43ea65f692
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ > ⚠️ **DEPRECATED** — The MyWeather2 API this gem depends on has been shut down since ~2020. All API calls will fail. Please migrate to [open-meteo](https://open-meteo.com/) (free, no API key) or [OpenWeatherMap](https://openweathermap.org/).
2
+
1
3
  # google-map-weather-intregration
2
4
 
3
5
  A Ruby gem to fetch weather data by geographic coordinates and surface it alongside Google Maps in Rails applications. Powered by the [MyWeather2](http://www.myweather2.com/developer/) API.
@@ -1,3 +1,3 @@
1
1
  class WeatherApi
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
data/lib/weather_api.rb CHANGED
@@ -6,6 +6,9 @@ class WeatherApi
6
6
  FORECAST_URL = "http://www.myweather2.com/developer/forecast.ashx?output=json"
7
7
 
8
8
  def initialize(key, lat, lng)
9
+ warn "[DEPRECATION] google-map-weather-intregration: The MyWeather2 API (myweather2.com) " \
10
+ "has been shut down. This gem is no longer functional. " \
11
+ "Please migrate to the open-meteo gem (https://github.com/open-meteo/ruby-sdk) or openweathermap."
9
12
  uri = URI.parse(FORECAST_URL + "&uac=#{key}&query=#{lat},#{lng}")
10
13
  result = URI.open(uri).read
11
14
  unless result == "Unable to find any matching weather location to the query submitted!"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-map-weather-intregration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhishek Sharma