austin_crime 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 +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/NOTES.md +130 -0
- data/README.md +42 -0
- data/Rakefile +6 -0
- data/austin_crime.gemspec +32 -0
- data/bin/austin_crime +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/austin_crime/cli.rb +57 -0
- data/lib/austin_crime/crime.rb +53 -0
- data/lib/austin_crime/version.rb +3 -0
- data/lib/austin_crime.rb +3 -0
- data/spec.md +6 -0
- metadata +149 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3dec53207ca2de87e995280b343a7a5ec3985311
|
4
|
+
data.tar.gz: 0b3e6aace345367d608b3471a66bae7054397926
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 526bfc5e9c64181fb29d3cfbde39feadbc0de7215c85ad8f6890f770b72c2968e943f9292e3d09b28d68ae10a189231f91f4a0546f93ba10734142eb25bd4e0b
|
7
|
+
data.tar.gz: 2f6924f4a1692eeb795f59f375adbf8a63646e61dd1b382f5821a6063adc52df17e50b176a5d84cce3f7b5f3e5e3337945a68f2ffcd2e82d7706944c898a61fe
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at tracypholmes@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Tracy Holmes
|
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/NOTES.md
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
How to Build a CLI Gem
|
2
|
+
|
3
|
+
|
4
|
+
Planning the Gem
|
5
|
+
Beginning the Gem building process
|
6
|
+
Setting up or generating the basic structure of the Gem
|
7
|
+
Creating and stubbing out the executable file
|
8
|
+
requiring files - require and require_relative
|
9
|
+
Coding the CLI Class - our Controller
|
10
|
+
Stubbing out the CLI Class with hardcoded return data - here doc
|
11
|
+
Creating the menu
|
12
|
+
Setting up our Deal Class
|
13
|
+
Today method to return todays deals
|
14
|
+
stubbing out our first deal instances with hardcoded data
|
15
|
+
setting up the deal class attributes
|
16
|
+
Testing our data in console
|
17
|
+
wire our menu with conditional to work with our deals array
|
18
|
+
iterate and display deals
|
19
|
+
fix spelling on availability
|
20
|
+
Setting up our scraper class - Deal class method or individual class?
|
21
|
+
set up Deals#scrape_deals method
|
22
|
+
Adding gem dependencies to the app
|
23
|
+
Add dependecies to gemspec
|
24
|
+
development dependencies or regular dependencies
|
25
|
+
code individual scrape methods for each site
|
26
|
+
Use css selectors to scrape desired information
|
27
|
+
create new deal object and set it's attributes based on scraped info
|
28
|
+
logic for availability
|
29
|
+
final thoughts and tips on building process
|
30
|
+
|
31
|
+
|
32
|
+
1. Plan your gem, imagine your interface
|
33
|
+
2. Start with the project structure - google is your friend
|
34
|
+
a. Bundler - creating a gem guide
|
35
|
+
3. Start with the entry point - the file run
|
36
|
+
a. remember `#!/usr/bin/env ruby`
|
37
|
+
4. force that to build the CLI interface
|
38
|
+
a. Build the code you wish you had! start with ATXCrime::CLI.new.call in bin
|
39
|
+
5. stub out the interface
|
40
|
+
a. build `call` class | cli.rb | class ATXCrime::CLI
|
41
|
+
6. start making things real
|
42
|
+
7. discover objects.
|
43
|
+
8. program
|
44
|
+
|
45
|
+
|
46
|
+
* Needed Gems: thor, pry, httparty, soda-ruby (instead of httparty?)
|
47
|
+
* OpenData Socrata How-To: https://dev.socrata.com/consumers/getting-started.html
|
48
|
+
* URL: https://data.austintexas.gov/Public-Safety/APD-Incident-Extract-YTD/b4y9-5x39
|
49
|
+
* About the Dataset: https://dev.socrata.com/foundry/data.austintexas.gov/rkrg-9tez
|
50
|
+
* API Endpoint: https://data.austintexas.gov/resource/rkrg-9tez.json
|
51
|
+
|
52
|
+
Fields | Field Names
|
53
|
+
------------ | ------------
|
54
|
+
Incident Report Number | incident_report_number
|
55
|
+
Crime Type | crime_type
|
56
|
+
Date | date
|
57
|
+
Time | time
|
58
|
+
LOCATION_TYPE | location_type
|
59
|
+
ADDRESS | address
|
60
|
+
LONGITUDE | longitude
|
61
|
+
LATITUDE | latitude
|
62
|
+
Location 1 | location_1
|
63
|
+
|
64
|
+
-------------
|
65
|
+
limit this to ONLY 5 crime types.
|
66
|
+
User can put in a number and get a list of the crimes
|
67
|
+
> so, basically, my crime types list is kinda like WIN_COMBINATIONS? Well no. I literally just need to add the list in the cli, then link it to the api for that specific type (sorry for talking at you, but you are usually very honest with me especially if i'm not on the right track lol)
|
68
|
+
|
69
|
+
|
70
|
+
limit crimes to only 5
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
[21:38]
|
75
|
+
the user puts in a number and gets a list of the crimes
|
76
|
+
|
77
|
+
- A command line interface for for residents to view crime reports.
|
78
|
+
|
79
|
+
|
80
|
+
### What is a crime?
|
81
|
+
A crime has a crime type
|
82
|
+
A crime has a date
|
83
|
+
A crime has an incident report number
|
84
|
+
|
85
|
+
|
86
|
+
user types austin_crime
|
87
|
+
|
88
|
+
Welcome to AustinCrime!
|
89
|
+
|
90
|
+
1. DWI
|
91
|
+
2. HARASSMENT
|
92
|
+
3. CRUELTY TO ANIMALS
|
93
|
+
4. THEFT
|
94
|
+
5. CRIMINAL MISCHIEF
|
95
|
+
|
96
|
+
Please enter the number next to the crime type for more information:
|
97
|
+
https://data.austintexas.gov/resource/rkrg-9tez.json?$where=starts_with(crime_type,'#{type}')&$limit=10&$offset=0]
|
98
|
+
|
99
|
+
Ideally this would show a list of incident_report_number for the specific crime_type
|
100
|
+
https://data.austintexas.gov/resource/rkrg-9tez.json?crime_type=" "&$limit=5&$offset=5
|
101
|
+
# HOW DO I SHOW JUST THE DAMN IRN for crime_type?!
|
102
|
+
User selects which report number they want to find out more about.
|
103
|
+
Or user can type `more` to get more crimes in the list | or previous to see the previous list
|
104
|
+
|
105
|
+
John Verdone [21:00]
|
106
|
+
You also probably don't need to do response =
|
107
|
+
|
108
|
+
Tracy Holmes [21:00]
|
109
|
+
ahhh ok. I don't think I did it at the bottom. But i'm not using it to really store anything, so no reason to have it. :taking notes:
|
110
|
+
|
111
|
+
John Verdone [21:02]
|
112
|
+
and a little *wink wink*.
|
113
|
+
|
114
|
+
[21:02]
|
115
|
+
Store the information into objects.
|
116
|
+
|
117
|
+
[21:03]
|
118
|
+
might save yourself a refactor step upon review.
|
119
|
+
|
120
|
+
Tracy Holmes [21:03]
|
121
|
+
!!
|
122
|
+
|
123
|
+
[21:03]
|
124
|
+
Okies!
|
125
|
+
|
126
|
+
John Verdone [21:04]
|
127
|
+
It's a little inside info from the feed back I got from luke from my project.
|
128
|
+
|
129
|
+
Tracy Holmes [21:05]
|
130
|
+
Thanks, John! I appreciate that
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# AustinCrime
|
2
|
+
|
3
|
+
CLI gem that allows users to view Austin crime reports by crime type.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'austin_crime'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install austin_crime
|
20
|
+
|
21
|
+
Run from terminal with:
|
22
|
+
|
23
|
+
austin_crime
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Run the gem and the program will provide you with 5 crime types. You can then type the number of the type you want to read more about and the terminal will display the one full result. If you want to view more, you can type 'more', and it will show you 10 full crimes. You can also type "List" to display the list of types again, or "q" to quit the program.
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
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.
|
32
|
+
|
33
|
+
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).
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Tracy Holmes/austin_crime. 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.
|
38
|
+
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'austin_crime/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "austin_crime"
|
8
|
+
s.version = AustinCrime::VERSION
|
9
|
+
s.authors = ["Tracy Holmes"]
|
10
|
+
s.email = ["tracypholmes@gmail.com"]
|
11
|
+
|
12
|
+
s.summary = %q{Simple command line tool to view Austin crime stats.}
|
13
|
+
s.description = %q{View crime reports on specific crime types!}
|
14
|
+
s.homepage = "https://github.com/tracypholmes/austin_crime"
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
s.bindir = "bin"
|
21
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
23
|
+
s.require_paths = ["lib"]
|
24
|
+
|
25
|
+
s.add_dependency 'thor', '~> 0'
|
26
|
+
s.add_dependency 'httparty', '~> 0'
|
27
|
+
|
28
|
+
s.add_development_dependency "bundler", "~> 1.14"
|
29
|
+
s.add_development_dependency "pry", "~> 0.10"
|
30
|
+
s.add_development_dependency "rake", "~> 10.0"
|
31
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
end
|
data/bin/austin_crime
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "austin_crime"
|
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(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
3
|
+
class AustinCrime::CLI
|
4
|
+
def initialize
|
5
|
+
# @inputs = inputs
|
6
|
+
end
|
7
|
+
|
8
|
+
def call
|
9
|
+
puts 'Welcome to Austin Crime Search!'
|
10
|
+
inputs
|
11
|
+
menu
|
12
|
+
# cya
|
13
|
+
end
|
14
|
+
|
15
|
+
def inputs
|
16
|
+
# inputs = ['DWI', 'HARASSMENT', 'CRUELTY TO ANIMALS', 'THEFT']
|
17
|
+
# Select type of crime to view
|
18
|
+
puts <<-DOC
|
19
|
+
1. DWI
|
20
|
+
2. HARASSMENT
|
21
|
+
3. CRUELTY TO ANIMALS
|
22
|
+
4. THEFT
|
23
|
+
DOC
|
24
|
+
|
25
|
+
# @crimes = AustinCrime::Crime.all
|
26
|
+
# @crimes.each.with_index(1) do |crime, i|
|
27
|
+
# puts "#{i}. #{crime.type} - #{crime.increp} - #{crime.date}"
|
28
|
+
# end
|
29
|
+
end
|
30
|
+
|
31
|
+
def menu
|
32
|
+
input = 'nil'
|
33
|
+
while input != 'q'
|
34
|
+
puts "\nPlease enter the number of the crime type for more information. Or enter 'list' to see your list of options."
|
35
|
+
puts "You may also enter 'q' to Quit."
|
36
|
+
input = gets.strip.downcase
|
37
|
+
# if input.to_i > 0 && input.to_i < 5
|
38
|
+
# puts AustinCrime::Crime.all
|
39
|
+
case input
|
40
|
+
when '1'
|
41
|
+
puts AustinCrime::Crime.dwi
|
42
|
+
when '2'
|
43
|
+
puts AustinCrime::Crime.harassment
|
44
|
+
when '3'
|
45
|
+
puts AustinCrime::Crime.cruelty
|
46
|
+
when '4'
|
47
|
+
puts AustinCrime::Crime.theft
|
48
|
+
when 'q'
|
49
|
+
puts 'Thanks for visiting. Come again for more reasons NOT TO MOVE TO AUSTIN!'
|
50
|
+
when 'list'
|
51
|
+
inputs
|
52
|
+
else
|
53
|
+
puts "Need some help? Type 'list' to see your options or 'q' to quit."
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'pry'
|
3
|
+
|
4
|
+
class AustinCrime::Crime
|
5
|
+
def initialize
|
6
|
+
@response = response
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.url
|
10
|
+
url = "https://data.austintexas.gov/resource/rkrg-9tez.json?$where=starts_with(crime_type,"
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.dwi
|
14
|
+
@response = HTTParty.get(url + "'DWI')&$limit=10")
|
15
|
+
yeesh
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.harassment
|
19
|
+
@response = HTTParty.get(url + "'HARASSMENT')&$limit=10")
|
20
|
+
yeesh
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.cruelty
|
24
|
+
@response = HTTParty.get(url + "'CRUELTY TO ANIMALS')&$limit=10")
|
25
|
+
yeesh
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.theft
|
29
|
+
@response = HTTParty.get(url + "'THEFT')&$limit=10")
|
30
|
+
yeesh
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.yeesh
|
34
|
+
puts "Got #{@response.count} results. Showing first result:"
|
35
|
+
@response.first.each do |k, v|
|
36
|
+
puts "#{k}: #{v}"
|
37
|
+
end
|
38
|
+
puts "\nEnter 'more' if you'd like to browse more entries or 'menu' if you'd like to start over"
|
39
|
+
input = gets.chomp
|
40
|
+
if input == 'more'
|
41
|
+
@response.collect do |hash|
|
42
|
+
puts '--------------------'
|
43
|
+
hash.collect do |k, v| # not supposed to use collect on hashes?
|
44
|
+
puts "#{k}: #{v}"
|
45
|
+
end.compact.reject(&:empty?) # c_cole on the assist
|
46
|
+
end
|
47
|
+
elsif input == 'menu'
|
48
|
+
AustinCrime::CLI.inputs
|
49
|
+
else
|
50
|
+
puts 'Not sure what you want. Please try again.'
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/austin_crime.rb
ADDED
data/spec.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 | cli present, interface presenting user with choices
|
5
|
+
- [x] Pull data from an external source | utilizing OpenData from data.austintexas.gov
|
6
|
+
- [x] Implement both list and detail views | user is able to list crime types and after choosing, see incident reports about them
|
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: austin_crime
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tracy Holmes
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: httparty
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.14'
|
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.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
description: View crime reports on specific crime types!
|
98
|
+
email:
|
99
|
+
- tracypholmes@gmail.com
|
100
|
+
executables:
|
101
|
+
- austin_crime
|
102
|
+
- console
|
103
|
+
- setup
|
104
|
+
extensions: []
|
105
|
+
extra_rdoc_files: []
|
106
|
+
files:
|
107
|
+
- ".gitignore"
|
108
|
+
- ".rspec"
|
109
|
+
- ".travis.yml"
|
110
|
+
- CODE_OF_CONDUCT.md
|
111
|
+
- Gemfile
|
112
|
+
- LICENSE.txt
|
113
|
+
- NOTES.md
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- austin_crime.gemspec
|
117
|
+
- bin/austin_crime
|
118
|
+
- bin/console
|
119
|
+
- bin/setup
|
120
|
+
- lib/austin_crime.rb
|
121
|
+
- lib/austin_crime/cli.rb
|
122
|
+
- lib/austin_crime/crime.rb
|
123
|
+
- lib/austin_crime/version.rb
|
124
|
+
- spec.md
|
125
|
+
homepage: https://github.com/tracypholmes/austin_crime
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.6.7
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: Simple command line tool to view Austin crime stats.
|
149
|
+
test_files: []
|