breathe_in 0.4.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 518500085648f4aaa924eaa5d3ab5198c44a5b47
4
- data.tar.gz: 27670870139f6d47442a943b9953073b807fbd55
3
+ metadata.gz: 333a12827a0df87fc84e418360aea89559c925d9
4
+ data.tar.gz: a3cb4ecb290ff0e04b4205905d833ace8d6659da
5
5
  SHA512:
6
- metadata.gz: ab340cfefbb7620327796e00d7f77d02d223c5d1172ab453f04e66ecb933ed84733df4b90e49eb8336fdf6cbcd0836ac70f804b7520f5bb953ea7c2af2637ca6
7
- data.tar.gz: 32a44d843c48b6800841586f9f8e7acd1e5b1685b4fecbd1a26fd8b1fcd06a343aa8305a50c51a9fcb6b593b4d59c1b466266d6b16fe5f5f13b8965353befea4
6
+ metadata.gz: 52bb9d4cc70c0fb4ffbfc00f222b5eb57c8befbf01002f755ea988ab34cafe5843e83216aaf9991ff69531064b80cc78bbd50146c93a6cb42e7fa7529bf803c5
7
+ data.tar.gz: 5ad51e0486d64892301e6056703b0eb90ab78cdcb2a2ae69cc1d6ac797128b8fd93831874fb923e647b54693e7b6d5e4d229f59f7a7278e9246b3e1a76eced3a
@@ -13,7 +13,7 @@ class BreatheIn::Scraper
13
13
 
14
14
  def self.scraped_page(zipcode)
15
15
  begin
16
- @@scraped = Nokogiri::HTML(open("http://airnow.gov/?action=airnow.local_city&zipcode=92505&submit=Go", :allow_redirections => :all))
16
+ @@scraped = Nokogiri::HTML(open("https://airnow.gov/?action=airnow.local_city&zipcode=#{zipcode}&submit=Go"))
17
17
  rescue OpenURI::HTTPError => e
18
18
  if e.message == '404 Not Found'
19
19
  puts "The website is currently down. Pleaes try again later."
@@ -1,3 +1,3 @@
1
1
  module BreatheIn
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breathe_in
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - eric-an