google-map-weather-intregration 1.2.1 → 1.3.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 +2 -0
- data/google-map-weather-intregration.gemspec +22 -2
- data/lib/weather_api/version.rb +1 -1
- data/lib/weather_api.rb +3 -0
- metadata +21 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e160be6947afdc485ed4a200b62a8ddd937002549e1f61827454df298807269d
|
|
4
|
+
data.tar.gz: a2a85477be5e5be0a1d2789267858ee4457d88fd929678716c0daebd0288ef85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c69da86d167e14e99c59192f134d23ff28a173d1bd51f37be5fcc1f93820e5c7f2878d72d942ed5248438bfd4622fbf129e69c583de059ebf58b5e5e81076761
|
|
7
|
+
data.tar.gz: 3ae1d45afbce1e8850c855812e85fcf5612575c4883b98790c476c3ddd495aa1f808ce9beeaae26aa1ec69a78bb21cf8c65e1cd761d1a68c511a4b2e53b3b5a1
|
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.
|
|
@@ -5,12 +5,32 @@ Gem::Specification.new do |spec|
|
|
|
5
5
|
spec.version = WeatherApi::VERSION
|
|
6
6
|
spec.authors = ["Abhishek Sharma"]
|
|
7
7
|
spec.email = ["abhsss96@gmail.com"]
|
|
8
|
-
spec.summary = "
|
|
9
|
-
spec.description =
|
|
8
|
+
spec.summary = "[DEPRECATED] Weather data by coordinates for Google Maps — MyWeather2 API is shut down"
|
|
9
|
+
spec.description = <<~DESC
|
|
10
|
+
DEPRECATED: The MyWeather2 API that this gem depends on has been shut down since
|
|
11
|
+
approximately 2020. All API calls will fail. This gem is no longer functional.
|
|
12
|
+
|
|
13
|
+
Please migrate to one of these actively maintained alternatives:
|
|
14
|
+
- open-meteo (https://open-meteo.com/) — free, no API key required
|
|
15
|
+
- openweathermap (https://openweathermap.org/) — free tier available
|
|
16
|
+
|
|
17
|
+
The gem will emit a deprecation warning on each use.
|
|
18
|
+
|
|
19
|
+
Original purpose: fetched current weather conditions and multi-day forecasts
|
|
20
|
+
by geographic coordinates (latitude/longitude) using the MyWeather2 API,
|
|
21
|
+
for overlay alongside Google Maps in Rails applications.
|
|
22
|
+
DESC
|
|
10
23
|
spec.homepage = "https://github.com/abhsss96/google-map-weather-intregration"
|
|
11
24
|
spec.license = "MIT"
|
|
12
25
|
spec.required_ruby_version = ">= 2.7"
|
|
13
26
|
|
|
27
|
+
spec.metadata = {
|
|
28
|
+
"homepage_uri" => "https://github.com/abhsss96/google-map-weather-intregration",
|
|
29
|
+
"source_code_uri" => "https://github.com/abhsss96/google-map-weather-intregration",
|
|
30
|
+
"bug_tracker_uri" => "https://github.com/abhsss96/google-map-weather-intregration/issues",
|
|
31
|
+
"changelog_uri" => "https://github.com/abhsss96/google-map-weather-intregration/releases"
|
|
32
|
+
}
|
|
33
|
+
|
|
14
34
|
spec.files = Dir["lib/**/*", "README.md", "*.gemspec"]
|
|
15
35
|
spec.require_paths = ["lib"]
|
|
16
36
|
|
data/lib/weather_api/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abhishek Sharma
|
|
@@ -38,8 +38,19 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '3.0'
|
|
41
|
-
description:
|
|
42
|
-
|
|
41
|
+
description: |
|
|
42
|
+
DEPRECATED: The MyWeather2 API that this gem depends on has been shut down since
|
|
43
|
+
approximately 2020. All API calls will fail. This gem is no longer functional.
|
|
44
|
+
|
|
45
|
+
Please migrate to one of these actively maintained alternatives:
|
|
46
|
+
- open-meteo (https://open-meteo.com/) — free, no API key required
|
|
47
|
+
- openweathermap (https://openweathermap.org/) — free tier available
|
|
48
|
+
|
|
49
|
+
The gem will emit a deprecation warning on each use.
|
|
50
|
+
|
|
51
|
+
Original purpose: fetched current weather conditions and multi-day forecasts
|
|
52
|
+
by geographic coordinates (latitude/longitude) using the MyWeather2 API,
|
|
53
|
+
for overlay alongside Google Maps in Rails applications.
|
|
43
54
|
email:
|
|
44
55
|
- abhsss96@gmail.com
|
|
45
56
|
executables: []
|
|
@@ -53,7 +64,11 @@ files:
|
|
|
53
64
|
homepage: https://github.com/abhsss96/google-map-weather-intregration
|
|
54
65
|
licenses:
|
|
55
66
|
- MIT
|
|
56
|
-
metadata:
|
|
67
|
+
metadata:
|
|
68
|
+
homepage_uri: https://github.com/abhsss96/google-map-weather-intregration
|
|
69
|
+
source_code_uri: https://github.com/abhsss96/google-map-weather-intregration
|
|
70
|
+
bug_tracker_uri: https://github.com/abhsss96/google-map-weather-intregration/issues
|
|
71
|
+
changelog_uri: https://github.com/abhsss96/google-map-weather-intregration/releases
|
|
57
72
|
post_install_message:
|
|
58
73
|
rdoc_options: []
|
|
59
74
|
require_paths:
|
|
@@ -72,5 +87,6 @@ requirements: []
|
|
|
72
87
|
rubygems_version: 3.5.22
|
|
73
88
|
signing_key:
|
|
74
89
|
specification_version: 4
|
|
75
|
-
summary:
|
|
90
|
+
summary: "[DEPRECATED] Weather data by coordinates for Google Maps — MyWeather2 API
|
|
91
|
+
is shut down"
|
|
76
92
|
test_files: []
|