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 +4 -4
- data/README.md +2 -0
- data/bin/pm25 +2 -2
- data/lib/pm_25.rb +3 -3
- data/lib/pm_25/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a56595f6f2ca7e19e7865b0edb6c80af92624aec
|
|
4
|
+
data.tar.gz: 0c159cbbba2fe14f6720e571b83c0397a7997d94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 497aefc2fe259cbd383811edb28a2108588e44befd0ace52f3e724fd93986a24c12aaa2c5ba324538b928d15c08878a8a548002919ecf3d7c51c11358759f81c
|
|
7
|
+
data.tar.gz: 6d4880260a5185c81708208edd5ac082a5fffc7d16ad676d24d12a048bad975c23dcaf2e6bda9e07777c6aa2f123d415d3b5e5b63cd43f3e4aadb7a9b4d47e7a
|
data/README.md
CHANGED
data/bin/pm25
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require '
|
|
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]
|
data/lib/pm_25.rb
CHANGED
|
@@ -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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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.'
|
data/lib/pm_25/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|