climate_tracker 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +29 -0
- data/Rakefile +6 -0
- data/bin/climate_tracker +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/climate_tracker.gemspec +26 -0
- data/lib/climate_tracker/cli.rb +152 -0
- data/lib/climate_tracker/noaa_data.rb +92 -0
- data/lib/climate_tracker/version.rb +3 -0
- data/lib/climate_tracker.rb +12 -0
- data/sped.md +6 -0
- metadata +120 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4a7035bbeededc35f834eb46832332689bf98a55
|
4
|
+
data.tar.gz: 1c501c2116c33fa9ce2e6e353dd87c643e500d64
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c1ac4b2319970014bbcd36ed241259e5afdcbcfbd12cbee1fe0c15b85fd5235c835bf116ddd7a3258c115479132a0c718dfecdb75aeb49182cf9958da19ba22
|
7
|
+
data.tar.gz: 90fd583263e3b85a5519a078b0ac8566fdae2b6e2e4819bfa26df99c83ad1c1575c7a1281904b872b9ef4ab149544b8222cf60568112938af4aad63ecc0531d8
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at will.lynch91@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Will Lynch
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# ClimateTracker
|
2
|
+
## Installation
|
3
|
+
Execute:
|
4
|
+
|
5
|
+
$ bundle
|
6
|
+
|
7
|
+
Or install it yourself as:
|
8
|
+
|
9
|
+
$ gem install climate_tracker
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
This gem uses NOAA Climate API to retrieve the temperature data for any state in the U.S. for any defined date or range. There are two functions of the gem: Start and Compare (not case dependent). The Start function will retreive a list of the average monthly temperature in the desired state for a given date. This is found by averaging the average monthly temperature of every NOAA Station in the given state. The Compare function will provide a comparision of the average change in average monthly temperatures in a state between two user defined dates. Of note, NOAA only has published through 2015 so the datasets are limited to February 1, 1831 - November 1, 2015. The most recent available date should improve overtime and this README will be updated at each major version to correct the most recent date of that time. This gem is also set to try and limit the number of queries from NOAA Climate API through the use of a "pull_count". The overall average from the prior search will save allowing the user to more quickly use the Compare function.
|
14
|
+
|
15
|
+
## Development
|
16
|
+
|
17
|
+
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.
|
18
|
+
|
19
|
+
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).
|
20
|
+
|
21
|
+
## Contributing
|
22
|
+
|
23
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/climate_tracker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
24
|
+
|
25
|
+
|
26
|
+
## License
|
27
|
+
|
28
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
29
|
+
|
data/Rakefile
ADDED
data/bin/climate_tracker
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "climate_tracker"
|
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
|
data/bin/setup
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'climate_tracker/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "climate_tracker"
|
8
|
+
spec.version = ClimateTracker::VERSION
|
9
|
+
spec.authors = ["Will Lynch"]
|
10
|
+
spec.email = ["will.lynch91@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Access average monthly temperatures through data retrieved from the NOAA Cliamte API}
|
13
|
+
spec.description = %q{Allows anyone to view the average monthly temperature for any state in the US between 1831 and 2015. It also allows users to compare the averages across date ranges and display changes over time.}
|
14
|
+
spec.homepage = "https://github.com/lynch16/climate-tracker-cli-gem"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
25
|
+
spec.add_development_dependency "pry"
|
26
|
+
end
|
@@ -0,0 +1,152 @@
|
|
1
|
+
class ClimateTracker::CLI
|
2
|
+
attr_accessor :std_stop_date, :start_date, :start_date_temp, :stop_date, :delta_temp, :data_set
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
current_date = DateTime.now.to_date.strftime("%F")
|
6
|
+
date_array = current_date.split("-")
|
7
|
+
date_array[0] = date_array[0].to_i-1
|
8
|
+
@std_stop_date = date_array.join("-") #Dataset doesn't go to 2016 so need to use 2015 as maximum year.
|
9
|
+
@data_set = ClimateTracker::NOAA_Data.new
|
10
|
+
end
|
11
|
+
|
12
|
+
def call
|
13
|
+
puts ""
|
14
|
+
puts "Welcome to the Climate Tracker - New England"
|
15
|
+
puts ""
|
16
|
+
puts ""
|
17
|
+
puts "This Climate Tracker displays the average monthly temperature for any date the User requests for New England."
|
18
|
+
puts ""
|
19
|
+
puts "Before we begin, a target state must be entered (this can be changed later if desired)."
|
20
|
+
self.pick_state
|
21
|
+
|
22
|
+
@input = ""
|
23
|
+
until @input == "exit" do
|
24
|
+
|
25
|
+
puts "Please type 'list' to find average temperature for your chosen state at a selected date, 'compare' to find the change in temperature between two dates, 'exit' to exit."
|
26
|
+
|
27
|
+
@input = gets.strip.downcase
|
28
|
+
until self.input_valid? do
|
29
|
+
puts "Please enter either 'list' or 'compare':"
|
30
|
+
@input = gets.strip.downcase
|
31
|
+
end
|
32
|
+
|
33
|
+
if @input == "compare"
|
34
|
+
self.compare
|
35
|
+
elsif @input == "list"
|
36
|
+
self.list
|
37
|
+
elsif @input == "exit"
|
38
|
+
break
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def list
|
44
|
+
puts "This function will return the average monthly temperature for a given date in your chosen state."
|
45
|
+
puts ""
|
46
|
+
puts "Would you still like to use the target state: #{@state}? (y/n)"
|
47
|
+
@input = gets.strip.downcase
|
48
|
+
if @input == "n"
|
49
|
+
@data_set.re_pull = true
|
50
|
+
puts "Please pick a target state:"
|
51
|
+
self.pick_state
|
52
|
+
end
|
53
|
+
|
54
|
+
puts "Great. Now please pick a date (DD/MM/YYY)"
|
55
|
+
date = self.pick_date
|
56
|
+
@start_date = self.standarize_date(date)
|
57
|
+
|
58
|
+
puts "Processing..."
|
59
|
+
#download avg monthly temp values for date & state, find average for year.
|
60
|
+
temp = @data_set.pull_data(@start_date, @state).gather_values
|
61
|
+
puts "#{@state}'s monthly average temperature on #{@start_date} was #{temp.round(2)}°F."
|
62
|
+
@input = ""
|
63
|
+
puts "Would you like to pick a new state or compare this result to another date? (list or compare)"
|
64
|
+
end
|
65
|
+
|
66
|
+
def compare
|
67
|
+
puts "This is the temperature comparision calculator. To begin, please answer a couple questions:"
|
68
|
+
puts ""
|
69
|
+
|
70
|
+
puts "Would you still like to use the target state: #{@state}? (y/n)"
|
71
|
+
@input = gets.strip.downcase
|
72
|
+
if @input == "n"
|
73
|
+
@data_set.re_pull = true
|
74
|
+
self.pick_state
|
75
|
+
end
|
76
|
+
|
77
|
+
if @data_set.pull_count >= 1
|
78
|
+
puts "Would you like to pick a new target date? Current target is #{@start_date}? (y/n)"
|
79
|
+
@input = gets.strip.downcase
|
80
|
+
if @input == "y"
|
81
|
+
puts "What is your target date? (DD/MM/YYY)"
|
82
|
+
target_date = self.pick_date
|
83
|
+
@start_date = self.standarize_date(target_date)
|
84
|
+
@data_set.re_pull = true
|
85
|
+
end
|
86
|
+
else
|
87
|
+
puts "What is your target date? (DD/MM/YYY)"
|
88
|
+
target_date = self.pick_date
|
89
|
+
@start_date = self.standarize_date(target_date)
|
90
|
+
end
|
91
|
+
|
92
|
+
puts "Would you like to set a year to compare to? If not, will use one year ago today: #{@std_stop_date}. (y/n)"
|
93
|
+
decide = gets.strip
|
94
|
+
if decide == "y" || decide == "yes"
|
95
|
+
puts "Please pick a date: (DD/MM/YYY)"
|
96
|
+
stop_date = self.pick_date
|
97
|
+
@stop_date = self.standarize_date(stop_date)
|
98
|
+
else
|
99
|
+
@stop_date = @std_stop_date
|
100
|
+
end
|
101
|
+
|
102
|
+
puts "Processing..."
|
103
|
+
@delta_temp = @data_set.temp_difference(@start_date, @stop_date, @state)
|
104
|
+
|
105
|
+
puts "In #{@state}, #{@stop_date} was #{@delta_temp[0]}°F #{@delta_temp[2]} than #{@start_date} (#{(@delta_temp[1]-100).round(2)}% #{@delta_temp[3]})!"
|
106
|
+
end
|
107
|
+
|
108
|
+
def pick_state
|
109
|
+
puts "Please pick your desired state. To see a list of states, type 'states':"
|
110
|
+
state = gets.strip.upcase
|
111
|
+
if state == 'STATES' || state == 'STATE'
|
112
|
+
puts "Gathering states..."
|
113
|
+
puts "#{ClimateTracker::NOAA_Data.states}"
|
114
|
+
puts ""
|
115
|
+
self.pick_state
|
116
|
+
elsif @data_set.class.states.include?(state)
|
117
|
+
puts "Accepted."
|
118
|
+
@state = state
|
119
|
+
else
|
120
|
+
puts "State not recognized."
|
121
|
+
self.pick_state
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
def pick_date
|
126
|
+
new_date = gets.strip
|
127
|
+
until self.date_valid?(new_date)
|
128
|
+
puts "Invalid date or date format. Please enter your target date: (DD/MM/YYY)"
|
129
|
+
new_date = gets.strip
|
130
|
+
end
|
131
|
+
puts "Accepted."
|
132
|
+
new_date
|
133
|
+
end
|
134
|
+
|
135
|
+
def date_valid?(date)
|
136
|
+
date =~ /\A\d{2}\/\d{2}\/\d{4}\z/ ? true : (return false)
|
137
|
+
date_array = date.split("/")
|
138
|
+
date_array[0].to_i > 00 && date_array[0].to_i < 31 ? true : (return false)
|
139
|
+
date_array[1].to_i > 00 && date_array[1].to_i < 12 ? true : (return false)
|
140
|
+
date_array[2].to_i > 1775 && date_array[2].to_i < 2016 ? true : (return false)
|
141
|
+
end
|
142
|
+
|
143
|
+
def standarize_date(date)
|
144
|
+
date_array = date.split("/")
|
145
|
+
standard_date = date_array.reverse!.join("-")
|
146
|
+
end
|
147
|
+
|
148
|
+
def input_valid?
|
149
|
+
@input == "compare" || @input == "list" || @input == "exit" ? true : false
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
@@ -0,0 +1,92 @@
|
|
1
|
+
class ClimateTracker::NOAA_Data
|
2
|
+
attr_accessor :data_type, :data_dump, :delta_temp, :pull_count, :re_pull, :data_avg, :year1_avgs, :year2_avgs
|
3
|
+
|
4
|
+
@@states = {}
|
5
|
+
@@header = { "token" => "JPhvnfSrGIAesNPlFwRxKFsZTwPuYoum" }
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@data_type = "MNTM"
|
9
|
+
@pull_count = 0
|
10
|
+
@re_pull = true
|
11
|
+
#Possible Data Types
|
12
|
+
# > MMNT, MMXT, MNTM (Min T, Max T, and Avg T monthly)
|
13
|
+
# > TCPC (Total Precip) TSNW (Total snowfall)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.states
|
17
|
+
if @@states.empty?
|
18
|
+
#populate available states
|
19
|
+
uri = URI.parse("http://www.ncdc.noaa.gov/cdo-web/api/v2/locations?locationcategoryid=ST&limit=52")
|
20
|
+
request = Net::HTTP::Get.new(uri.request_uri, initheader = @@header)
|
21
|
+
http = Net::HTTP.new(uri.host, uri.port).start
|
22
|
+
response = http.request(request)
|
23
|
+
data = JSON.parse(response.body)
|
24
|
+
data["results"].collect do |result|
|
25
|
+
st_name = result["name"].upcase
|
26
|
+
st_id = result["id"]
|
27
|
+
@@states[st_name] = st_id
|
28
|
+
end
|
29
|
+
end
|
30
|
+
@@states.keys
|
31
|
+
end
|
32
|
+
|
33
|
+
def pull_data(date, state)
|
34
|
+
#NOAA program requires range of 1 year for dataset ANNUAL. Create 1 year ago range from given date
|
35
|
+
date_array = date.split("-")
|
36
|
+
date_array[0] = date_array[0].to_i-1
|
37
|
+
last_year_date = date_array.join("-")
|
38
|
+
year_date = date
|
39
|
+
|
40
|
+
#retrieve appropriate state_code and download temperatures for above range
|
41
|
+
if @@states.empty?
|
42
|
+
self.class.states
|
43
|
+
end
|
44
|
+
state_code = @@states[state]
|
45
|
+
uri = URI.parse("http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=ANNUAL&datatypeid=#{@data_type}&locationid=#{state_code}&startdate=#{last_year_date}&enddate=#{year_date}&units=metric&limit=1000")
|
46
|
+
request = Net::HTTP::Get.new(uri.request_uri, initheader = @@header)
|
47
|
+
http = Net::HTTP.new(uri.host, uri.port).start
|
48
|
+
response = http.request(request)
|
49
|
+
@data_dump = JSON.parse(response.body) #returns are only for the month of the years in which this were called. (ie. startdate XXXX-02-01 will only display February) ur
|
50
|
+
|
51
|
+
@pull_count += 1
|
52
|
+
@re_pull = false
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def gather_values
|
57
|
+
total_values = 0.000
|
58
|
+
@data_dump["results"].each do |result|
|
59
|
+
total_values += result["value"].to_f
|
60
|
+
end
|
61
|
+
|
62
|
+
@data_avg = (((total_values / @data_dump["results"].size)*(9.0/5.0))+32.0)
|
63
|
+
|
64
|
+
@data_avg #float
|
65
|
+
end
|
66
|
+
|
67
|
+
def temp_difference(year1, year2, state)
|
68
|
+
if self.re_pull == true
|
69
|
+
@year1_avgs = self.pull_data(year1, state).gather_values
|
70
|
+
elsif @year1_avgs == nil
|
71
|
+
@year1_avgs = @data_avg
|
72
|
+
elsif @year2_avgs != @data_avg
|
73
|
+
@year1_avgs = @data_avg
|
74
|
+
end
|
75
|
+
|
76
|
+
@year2_avgs = self.pull_data(year2, state).gather_values
|
77
|
+
binding.pry
|
78
|
+
delta_temp = (@year2_avgs - @year1_avgs).round(2)
|
79
|
+
delta_percent = ((@year2_avgs/@year1_avgs)*100).round(2)
|
80
|
+
if delta_temp > 0 #if delta_temp is positive than temp went up
|
81
|
+
delta_descr = "warmer"
|
82
|
+
delta_descr_2 = "increase"
|
83
|
+
else
|
84
|
+
delta_descr = "colder"
|
85
|
+
delta_descr_2 = "decrease"
|
86
|
+
end
|
87
|
+
|
88
|
+
@delta_temp = [delta_temp, delta_percent, delta_descr, delta_descr_2] #hash[state] = [temp change, %, warmer/colder, increase/decrease]
|
89
|
+
|
90
|
+
@delta_temp
|
91
|
+
end
|
92
|
+
end
|
data/sped.md
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
# Specifications for the CLI Assessment
|
2
|
+
|
3
|
+
Specs:
|
4
|
+
- [x] Have a CLI for interfacing with the application - run cli through ./bin/climate_tracker
|
5
|
+
- [x] Pull data from an external source - pulls data from the NOAA Climate API
|
6
|
+
- [x] Implement both list and detail views - User can select to either display average monthly temperatures for a chosen date across the New England States (list) or make a comparision between two chosen dates to calculate the percentage change in average monthly temperatures (detail)
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: climate_tracker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Will Lynch
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Allows anyone to view the average monthly temperature for any state in
|
70
|
+
the US between 1831 and 2015. It also allows users to compare the averages across
|
71
|
+
date ranges and display changes over time.
|
72
|
+
email:
|
73
|
+
- will.lynch91@gmail.com
|
74
|
+
executables: []
|
75
|
+
extensions: []
|
76
|
+
extra_rdoc_files: []
|
77
|
+
files:
|
78
|
+
- ".gitignore"
|
79
|
+
- ".rspec"
|
80
|
+
- ".travis.yml"
|
81
|
+
- CODE_OF_CONDUCT.md
|
82
|
+
- Gemfile
|
83
|
+
- LICENSE.txt
|
84
|
+
- README.md
|
85
|
+
- Rakefile
|
86
|
+
- bin/climate_tracker
|
87
|
+
- bin/console
|
88
|
+
- bin/setup
|
89
|
+
- climate_tracker.gemspec
|
90
|
+
- lib/climate_tracker.rb
|
91
|
+
- lib/climate_tracker/cli.rb
|
92
|
+
- lib/climate_tracker/noaa_data.rb
|
93
|
+
- lib/climate_tracker/version.rb
|
94
|
+
- sped.md
|
95
|
+
homepage: https://github.com/lynch16/climate-tracker-cli-gem
|
96
|
+
licenses:
|
97
|
+
- MIT
|
98
|
+
metadata: {}
|
99
|
+
post_install_message:
|
100
|
+
rdoc_options: []
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
requirements: []
|
114
|
+
rubyforge_project:
|
115
|
+
rubygems_version: 2.4.8
|
116
|
+
signing_key:
|
117
|
+
specification_version: 4
|
118
|
+
summary: Access average monthly temperatures through data retrieved from the NOAA
|
119
|
+
Cliamte API
|
120
|
+
test_files: []
|