breathe_in 0.2.0 → 0.2.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: 68b90eb2884081996d2f8e053bfe0ae6c226917e
4
- data.tar.gz: 11bdacde178d4706fecbdc803d698a65fe9d4281
3
+ metadata.gz: 759318cf435b0a2709bb8daf434423fbea678570
4
+ data.tar.gz: 6cc8e6430258fc006e2c9cca48517d1e86339e28
5
5
  SHA512:
6
- metadata.gz: d999c210a0c1bb85cfb1f7fad495fc15ddd0a41b55b785cf09f29aa9f338830209aa85adff115fe43f6e68e9d8502cb8fc2407f6ccc52dbeb67db715fa4aef76
7
- data.tar.gz: a172a9caa443c95470f75d5e799d99e4944217caa9cd28db7431919bc3b84ea5f9b3e0ae5ed0f9ea9484cd69efb55d306a18f0e139716d4c274ef898925adb4b
6
+ metadata.gz: eb567d0403797e2f20010eb106b492c877488aaa1131e389a51a89a6811e1f1fd5158eb23c1eee8cacd296a4fae8b47c01066bcd7d9575be68a8c6c5602f38d3
7
+ data.tar.gz: a2cb47d2e8ecfcc9ec152889c8134e46b9b984f2f663c3e0f6d72a06059bedc3eb188510137619f429f91149dc638a558b8001def230e787921400c92e91814b
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.10.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in breathe_in.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 eric-an
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.
@@ -0,0 +1,38 @@
1
+ # BreatheIn
2
+
3
+ Use this gem to find out the Air Quality Index (AQI) value for any zipcode in United States and see how clean or polluted the air is in your city. Data provided by AirNow.gov.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'breathe_in'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install breathe_in
20
+
21
+ ## Usage
22
+
23
+ Run `breathe_in` and follow the prompts.
24
+
25
+ ## Development
26
+
27
+ 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.
28
+
29
+ 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).
30
+
31
+ ## License
32
+
33
+ MIT License. Copyright 2016 Eric An.
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/eric-an/breathe_in.
38
+
@@ -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 "breathe_in"
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
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'breathe_in/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'breathe_in'
8
+ spec.version = BreatheIn::VERSION
9
+ spec.authors = ['eric-an']
10
+ spec.email = ['erican@me.com']
11
+
12
+ spec.summary = %q{air quality scraper gem}
13
+ spec.description = %q{Check the air quality index (AQI) for a zipcode and see how clean or polluted the air is in your city.}
14
+ spec.homepage = "https://rubygems.org/gems/breathe_in"
15
+ spec.license = 'MIT'
16
+ spec.executables << 'breathe_in'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = 'bin'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.10"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 0"
26
+ spec.add_development_dependency "pry"
27
+ spec.add_development_dependency "nokogiri"
28
+ end
@@ -0,0 +1,3 @@
1
+ module BreatheIn
2
+ VERSION = "0.2.1"
3
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breathe_in
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
- - Eric An
7
+ - eric-an
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -42,18 +42,18 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: nokogiri
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry
70
+ name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -80,20 +80,31 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Check the Air Quality Index (AQI) to see how clean or polluted the air
84
- is in your city.
85
- email: erican@me.com
86
- executables:
87
- - breathe_in
83
+ description: Check the air quality index (AQI) for a zipcode and see how clean or
84
+ polluted the air is in your city.
85
+ email:
86
+ - erican@me.com
87
+ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
91
98
  - bin/breathe_in
99
+ - bin/console
100
+ - bin/setup
101
+ - breathe_in.gemspec
92
102
  - config/environment.rb
93
103
  - lib/breathe_in.rb
94
104
  - lib/breathe_in/city.rb
95
105
  - lib/breathe_in/cli.rb
96
106
  - lib/breathe_in/scraper.rb
107
+ - lib/breathe_in/version.rb
97
108
  homepage: https://rubygems.org/gems/breathe_in
98
109
  licenses:
99
110
  - MIT
@@ -117,5 +128,5 @@ rubyforge_project:
117
128
  rubygems_version: 2.4.6
118
129
  signing_key:
119
130
  specification_version: 4
120
- summary: City AQI value
131
+ summary: air quality scraper gem
121
132
  test_files: []