wettr 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a7c3ea57ba52b516a4686c4b90178aaf530b3f48e3143dc4668ed7d68a5bac01
4
+ data.tar.gz: 1a71ff41e77ac32f584b3dda778701ac47ba70c5950e51ab36b136cdb55b6f6f
5
+ SHA512:
6
+ metadata.gz: 69da8dcc34021766bb599ebea106f24ae2067f7ca296d93c0dd68e454dc0cf8539079dc288e7e253f38e1c309a04d391394caa39a103c73c5f1a445a79fb4250
7
+ data.tar.gz: 1606f750f62a11b9b70dd78bb53215de65ad05779c5c52df0d4e907ee54c31992897b5ed4f308c36003660567bb7f2a2e63b1e17e118ec11d4ba9ebc5b12e02c
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .env
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.2
6
+ before_install: gem install bundler -v 2.1.4
File without changes
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jameswilliamdonovan@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in wettr.gemspec
4
+ gemspec
@@ -0,0 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ wettr (0.1.0)
5
+ dotenv (~> 2.1)
6
+ httparty (~> 0.18.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ coderay (1.1.3)
12
+ diff-lcs (1.4.4)
13
+ dotenv (2.7.6)
14
+ httparty (0.18.1)
15
+ mime-types (~> 3.0)
16
+ multi_xml (>= 0.5.2)
17
+ method_source (1.0.0)
18
+ mime-types (3.3.1)
19
+ mime-types-data (~> 3.2015)
20
+ mime-types-data (3.2020.1104)
21
+ multi_xml (0.6.0)
22
+ pry (0.13.1)
23
+ coderay (~> 1.1)
24
+ method_source (~> 1.0)
25
+ rake (13.0.3)
26
+ rspec (3.10.0)
27
+ rspec-core (~> 3.10.0)
28
+ rspec-expectations (~> 3.10.0)
29
+ rspec-mocks (~> 3.10.0)
30
+ rspec-core (3.10.0)
31
+ rspec-support (~> 3.10.0)
32
+ rspec-expectations (3.10.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.10.0)
35
+ rspec-mocks (3.10.0)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.10.0)
38
+ rspec-support (3.10.0)
39
+
40
+ PLATFORMS
41
+ ruby
42
+ x86_64-linux
43
+
44
+ DEPENDENCIES
45
+ pry (~> 0.13.1)
46
+ rake (~> 13.0)
47
+ rspec (~> 3.10)
48
+ wettr!
49
+
50
+ BUNDLED WITH
51
+ 2.2.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 JWDonovan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
File without changes
@@ -0,0 +1,52 @@
1
+ # Wettr
2
+
3
+ wettr (ˈvɛtɐ, From the German word 'Wetter' meaning weather) is a command line ruby gem to get current weather information using OpenWeatherMap's Current Weather API in conjunction with the ipapi.co IP address API.
4
+
5
+ wettr can get current weather data using either a zip/postal code or an IP address. Once installed, simply type `wettr` to get started.
6
+
7
+ ## Installation
8
+
9
+ $ gem install wettr
10
+
11
+ ## Usage
12
+
13
+ wettr does not need to be invoked with any parameters to work. Simply type `wettr` and you will get current weather information based on your public IP address.
14
+ Below are some examples of the way wettr can be used:
15
+ ```bash
16
+ wettr
17
+ # prints the current weather at your current IP address location
18
+ wettr --zip ZIP_CODE
19
+ # prints the current weather at the given zip code
20
+ wettr --version
21
+ # outputs 'wettr 0.1.0'
22
+ ```
23
+
24
+ To see more usage info, enter `wettr --help`.
25
+
26
+ ## Development
27
+
28
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
29
+
30
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
+
32
+ wettr requires an API key for OpenWeatherMap's Current Weather API.
33
+ To get a key sign up for an account on [their website](https://home.openweathermap.org/users/sign_up).
34
+ Once you have a key, create a `.env` file in the project's root directory.
35
+ Add the following line to the `.env` file:
36
+
37
+ ```bash
38
+ API_KEY=<YOUR_API_KEY_HERE>
39
+ ```
40
+
41
+ ## Contributing
42
+
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/JWDonovan/wettr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/JWDonovan/wettr/blob/master/CODE_OF_CONDUCT.md).
44
+
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
49
+
50
+ ## Code of Conduct
51
+
52
+ Everyone interacting in the Wettr project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/JWDonovan/wettr/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "wettr"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "wettr"
5
+
6
+ Wettr::CLI.new(ARGV).run
@@ -0,0 +1,13 @@
1
+ require "dotenv/load"
2
+ require "httparty"
3
+
4
+ module Wettr
5
+ class Error < StandardError; end
6
+ end
7
+
8
+ require_relative "./wettr/version"
9
+ require_relative "./wettr/cli"
10
+ require_relative "./wettr/weather"
11
+ require_relative "./wettr/weather_api"
12
+ require_relative "./wettr/ip_api"
13
+ require_relative "./wettr/ip"
@@ -0,0 +1,53 @@
1
+ class Wettr::CLI
2
+ attr_reader :args
3
+
4
+ def initialize(args = nil)
5
+ @args = args
6
+ end
7
+
8
+ def run
9
+ if !args.empty?
10
+ parse_args
11
+ else
12
+ ip = Wettr::IP.new_without_ip
13
+ weather = Wettr::Weather.new_with_lat_and_lon(lat: ip.lat, lon: ip.lon)
14
+ weather.print
15
+ end
16
+ end
17
+
18
+ def parse_args
19
+ if args.include?("--help")
20
+ print_help_menu
21
+ elsif args.include?("--version")
22
+ puts "wettr #{Wettr::VERSION}"
23
+ elsif zip = args[args.index("--zip") + 1]
24
+ weather = Wettr::Weather.new_with_zip(zip)
25
+ weather.print
26
+ else
27
+ puts "Please enter a zip code"
28
+ end
29
+ end
30
+
31
+ def print_help_menu
32
+ help_text = <<-HELP_TEXT
33
+ Usage:
34
+ wettr [options]
35
+ \nOptions:
36
+ --help # Print this menu
37
+ --version # Print the version number
38
+ --zip ZIP_CODE # Weather by zip/postal code
39
+ \nDescription:
40
+ wettr is a command line ruby gem to get current weather information
41
+ using OpenWeatherMap's Current Weather API in conjunction with the
42
+ ipapi.co IP address api.
43
+ \n wettr can get current weather data using either a zip/postal code
44
+ or an IP address. Simply type wettr to get started.
45
+ \nExamples:
46
+ wettr # Weather by current IP address location
47
+ wettr --zip 10001 # Weather by zip/postal code for New York City
48
+ wettr --zip 20001 # Weather by zip/postal code for Washington D.C.
49
+ HELP_TEXT
50
+
51
+ puts help_text
52
+ end
53
+ end
@@ -0,0 +1,13 @@
1
+ class Wettr::IP
2
+ attr_reader :address, :lat, :lon
3
+
4
+ def initialize(address:, lat:, lon:)
5
+ @address, @lat, @lon = address, lat, lon
6
+ end
7
+
8
+ def self.new_without_ip
9
+ response = Wettr::IPAPI.call_without_ip
10
+ ip = self.new(address: response["ip"], lat: response["latitude"], lon: response["longitude"])
11
+ ip
12
+ end
13
+ end
@@ -0,0 +1,27 @@
1
+ class Wettr::IPAPI
2
+ include HTTParty
3
+ # debug_output STDOUT
4
+
5
+ base_uri "https://ipapi.co"
6
+ # https://ipapi.co/1.1.1.1/json
7
+
8
+ def self.call_without_ip
9
+ response = self.get("/json")
10
+
11
+ if response["error"]
12
+ puts "Encountered the following error with IPAPI.co:"
13
+ puts response["reason"]
14
+ puts response["message"]
15
+
16
+ exit
17
+ end
18
+
19
+ response
20
+ end
21
+
22
+ private
23
+
24
+ def self.call
25
+ response = self.class.get("#{ip}/json")
26
+ end
27
+ end
@@ -0,0 +1,3 @@
1
+ module Wettr
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,71 @@
1
+ class Wettr::Weather
2
+ attr_reader :weather_description, :temp, :feels_like, :temp_min, :temp_max, :pressure, :humidity, :visibility, :wind_speed, :cloudiness, :time_calculated, :country_code, :sunrise_time, :sunset_time, :timezone, :city_id, :city_name
3
+
4
+ def initialize(weather_description:, temp:, feels_like:, temp_min:, temp_max:, pressure:, humidity:, visibility:, wind_speed:, cloudiness:, time_calculated:, country_code:, sunrise_time:, sunset_time:, timezone:, city_id:, city_name:)
5
+ @weather_description = weather_description
6
+ @temp = temp
7
+ @feels_like = feels_like
8
+ @temp_min = temp_min
9
+ @temp_max = temp_max
10
+ @pressure = pressure
11
+ @humidity = humidity
12
+ @visibility = visibility
13
+ @wind_speed = wind_speed
14
+ @cloudiness = cloudiness
15
+ @time_calculated = time_calculated
16
+ @country_code = country_code
17
+ @sunrise_time = sunrise_time
18
+ @sunset_time = sunset_time
19
+ @timezone = timezone
20
+ @city_id = city_id
21
+ @city_name = city_name
22
+ end
23
+
24
+ def self.new_with_lat_and_lon(lat:, lon:)
25
+ response = Wettr::WeatherAPI.call_with_lat_and_lon(lat: lat, lon: lon)
26
+ weather = self.new_from_api_response(response)
27
+ weather
28
+ end
29
+
30
+ def self.new_with_zip(zip)
31
+ response = Wettr::WeatherAPI.call_with_zip(zip)
32
+ weather = self.new_from_api_response(response)
33
+ weather
34
+ end
35
+
36
+ def print
37
+ puts "Current weather for #{ @city_name.capitalize }, #{ @country_code }"
38
+ puts "Description: #{ @weather_description.capitalize }"
39
+ puts "#{ @temp }°F, Feels Like: #{ @feels_like }°F, Min. Temp: #{ @temp_min }°F, Max. Temp: #{ @temp_max }°F"
40
+ puts "Pressure: #{ @pressure } hPa, Humidity: #{ @humidity }%"
41
+ puts "Visibility: #{ @visibility.to_s.reverse.gsub(/(\d{3})(?=\d)/, '\\1,').reverse } Ft., Wind Speed: #{ @wind_speed } m/h, Cloudiness: #{ @cloudiness }%"
42
+ puts "Sunrise: #{ Time.at(@sunrise_time).strftime("%k:%M") }, Sunset: #{ Time.at(@sunset_time).strftime("%k:%M") }"
43
+ puts "Weather Last Calculated at #{ Time.at(@time_calculated).strftime("%k:%M") }"
44
+ end
45
+
46
+ private
47
+
48
+ def self.new_from_api_response(response)
49
+ weather = self.new(
50
+ weather_description: response["weather"].first["description"],
51
+ temp: response["main"]["temp"],
52
+ feels_like: response["main"]["feels_like"],
53
+ temp_min: response["main"]["temp_min"],
54
+ temp_max: response["main"]["temp_max"],
55
+ pressure: response["main"]["pressure"],
56
+ humidity: response["main"]["humidity"],
57
+ visibility: response["visibility"],
58
+ wind_speed: response["wind"]["speed"],
59
+ cloudiness: response["clouds"]["all"],
60
+ time_calculated: response["dt"],
61
+ country_code: response["sys"]["country"],
62
+ sunrise_time: response["sys"]["sunrise"],
63
+ sunset_time: response["sys"]["sunset"],
64
+ timezone: response["timezone"],
65
+ city_id: response["id"],
66
+ city_name: response["name"]
67
+ )
68
+
69
+ weather
70
+ end
71
+ end
@@ -0,0 +1,24 @@
1
+ class Wettr::WeatherAPI
2
+ include HTTParty
3
+ # debug_output STDOUT
4
+
5
+ base_uri "https://api.openweathermap.org"
6
+ default_params appid: ENV["API_KEY"], units: "imperial"
7
+
8
+ def self.call_with_lat_and_lon(lat:, lon:)
9
+ @options = { query: { lat: lat, lon: lon } }
10
+ call
11
+ end
12
+
13
+ def self.call_with_zip(zip)
14
+ @options = { query: { zip: zip } }
15
+ call
16
+ end
17
+
18
+ private
19
+
20
+ def self.call
21
+ response = self.get("/data/2.5/weather", @options)
22
+ response
23
+ end
24
+ end
@@ -0,0 +1,36 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require_relative "lib/wettr/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "wettr"
7
+ spec.version = Wettr::VERSION
8
+ spec.authors = ["JWDonovan"]
9
+ spec.email = ["jameswilliamdonovan@gmail.com"]
10
+
11
+ spec.summary = "Fetches weather data using the OpenWeatherMap API"
12
+ spec.homepage = "https://github.com/JWDonovan/wettr"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = spec.homepage + "/blob/main/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.executables << "wettr"
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_dependency "dotenv", "~> 2.1"
31
+ spec.add_dependency "httparty", "~> 0.18.1"
32
+
33
+ spec.add_development_dependency "rake", "~> 13.0"
34
+ spec.add_development_dependency "rspec", "~> 3.10"
35
+ spec.add_development_dependency "pry", "~> 0.13.1"
36
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wettr
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - JWDonovan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-12-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dotenv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.18.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.18.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.13.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.13.1
83
+ description:
84
+ email:
85
+ - jameswilliamdonovan@gmail.com
86
+ executables:
87
+ - wettr
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - CHANGELOG.md
95
+ - CODE_OF_CONDUCT.md
96
+ - Gemfile
97
+ - Gemfile.lock
98
+ - LICENSE.txt
99
+ - NOTES.md
100
+ - README.md
101
+ - Rakefile
102
+ - bin/console
103
+ - bin/setup
104
+ - exe/wettr
105
+ - lib/wettr.rb
106
+ - lib/wettr/cli.rb
107
+ - lib/wettr/ip.rb
108
+ - lib/wettr/ip_api.rb
109
+ - lib/wettr/version.rb
110
+ - lib/wettr/weather.rb
111
+ - lib/wettr/weather_api.rb
112
+ - wettr.gemspec
113
+ homepage: https://github.com/JWDonovan/wettr
114
+ licenses:
115
+ - MIT
116
+ metadata:
117
+ homepage_uri: https://github.com/JWDonovan/wettr
118
+ source_code_uri: https://github.com/JWDonovan/wettr
119
+ changelog_uri: https://github.com/JWDonovan/wettr/blob/main/CHANGELOG.md
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 2.3.0
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubygems_version: 3.2.2
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Fetches weather data using the OpenWeatherMap API
139
+ test_files: []