pm_25 0.0.1 → 0.0.2

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: 00dac5016f468d768d295752677967f3073c757e
4
- data.tar.gz: c592db0adc0ac25c6e4732a5849fd3319014b06a
3
+ metadata.gz: a56595f6f2ca7e19e7865b0edb6c80af92624aec
4
+ data.tar.gz: 0c159cbbba2fe14f6720e571b83c0397a7997d94
5
5
  SHA512:
6
- metadata.gz: debccc45f01e29b5b3104fed7452429c1c556dc674bf3015896657331f33da8e5821bf1304e254c2ee07ec8e85ba3b0069dd188a1b27a602b7cab165b4a1c413
7
- data.tar.gz: 4e9f749a2b868045f9dc9c0bbd93f88eecc258677bf43f605a3b781f62171287395a182fdbbff4e049b3202cdf6bd2104d6cc9e8fa4705e552ca8a1a26849a38
6
+ metadata.gz: 497aefc2fe259cbd383811edb28a2108588e44befd0ace52f3e724fd93986a24c12aaa2c5ba324538b928d15c08878a8a548002919ecf3d7c51c11358759f81c
7
+ data.tar.gz: 6d4880260a5185c81708208edd5ac082a5fffc7d16ad676d24d12a048bad975c23dcaf2e6bda9e07777c6aa2f123d415d3b5e5b63cd43f3e4aadb7a9b4d47e7a
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Pm25
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/pm_25.svg)](http://badge.fury.io/rb/pm_25)
4
+
3
5
  A Ruby wrapper for pm25.in API and other PM 2.5 related utility functions.
4
6
 
5
7
  ## Installation
data/bin/pm25 CHANGED
@@ -1,4 +1,4 @@
1
- require 'pm25'
1
+ require 'pm_25'
2
2
 
3
3
  if ARGV.empty?
4
4
  city = ENV['PM25_IN_CITY']
@@ -10,4 +10,4 @@ pm25_info = PM25.pm25_level(PM25.just_pm25(city, ENV['PM25_IN_TOKEN']))
10
10
 
11
11
  puts "#{city}: #{pm25_info[:pm25]}, #{pm25_info[:category]}"
12
12
  puts pm25_info[:meaning]
13
- puts pm25_info[:action]
13
+ puts pm25_info[:action]
@@ -219,9 +219,9 @@ module PM25
219
219
  aqi_meaning = 'Air quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution.'
220
220
  aqi_action = 'Unusually sensitive people should consider reducing prolonged or heavy exertion.'
221
221
  elsif pm25 <= 55.4
222
- aqi_category = 'Unhealthy for sensitive Groups'
223
- aqi_meaning = 'Members of sensitive groups may experience health effects. The general public is not likely to be affected.'
224
- aqi_action = 'People with heart or lung disease, children and older adults should reduc e prolonged or heavy exertion'
222
+ aqi_category = 'Unhealthy for sensitive Groups'
223
+ aqi_meaning = 'Members of sensitive groups may experience health effects. The general public is not likely to be affected.'
224
+ aqi_action = 'People with heart or lung disease, children and older adults should reduc e prolonged or heavy exertion'
225
225
  elsif pm25 <= 150.4
226
226
  aqi_category = 'Unhealthy'
227
227
  aqi_meaning = 'Everyone may begin to experience health effects; members of sensitive groups may experience more serious health effects.'
@@ -1,3 +1,3 @@
1
1
  module PM25
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pm_25
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakukyo Friel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-02 00:00:00.000000000 Z
11
+ date: 2015-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri