colo_biz 0.0.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 +7 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +0 -0
- data/README.md +36 -0
- data/colo_biz.gemspec +17 -0
- data/lib/colo_biz.rb +8 -0
- data/lib/colo_biz/biz_entity.rb +47 -0
- data/lib/colo_biz/data_fetcher.rb +36 -0
- data/lib/colo_biz/query_method.rb +190 -0
- data/lib/core_ext/nil.rb +5 -0
- data/spec/live_spec.rb +30 -0
- data/spec/spec_helper.rb +91 -0
- metadata +129 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8cbfa0ab6baca5fc145022ff61274779b3854d5b
|
4
|
+
data.tar.gz: 5edd38ac757fde0b0d677f267270063704681ef1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 67d91be2ec9c3ba64cdff0ebb1c7aa6abbda13464307f573dff9a1c6a970374c744b823737ce64f016de2ab13fcc7770646b9720132dd4044c1c9be55f97e4b4
|
7
|
+
data.tar.gz: 57aa0377853ba5b517b6ea277b2e70e28694047a628537f38f6a03b9905f7287daafcc7768379de90d22291cfb1e5afd57693dd2142b5f7e4a47abe52b5c4d71
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
File without changes
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# The Colorado Business Entities API Ruby Gem
|
2
|
+
|
3
|
+
[](https://travis-ci.org/CaseyKelly/Colorado-Business-Entities-API-Gem)
|
4
|
+
|
5
|
+
A Ruby interface to the Colorado Business Entities API.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
gem install colo_biz
|
9
|
+
|
10
|
+
## Documentation
|
11
|
+
[http://rdoc.info/gems/?????][documentation]
|
12
|
+
|
13
|
+
[documentation]: http://rdoc.info/gems/?????
|
14
|
+
|
15
|
+
## Configuration
|
16
|
+
How does a user configure this on their machine? What gems are required?
|
17
|
+
```ruby
|
18
|
+
CODE EXAMPLE
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage Examples
|
22
|
+
After configuring a `client`, you can do the following things.
|
23
|
+
|
24
|
+
**Find details for a particular business entity, such as its name, address, or status:**
|
25
|
+
```ruby
|
26
|
+
CODE EXAMPLE
|
27
|
+
```
|
28
|
+
|
29
|
+
**Search and filter Colorado business entities by name, address, status, and more:**
|
30
|
+
```ruby
|
31
|
+
CODE EXAMPLE
|
32
|
+
```
|
33
|
+
|
34
|
+
## Authors
|
35
|
+
* Finnegan Hewitt [@FBH037](https://github.com/FBH037)
|
36
|
+
* Casey Kelly [@CaseyKelly](https://github.com/CaseyKelly)
|
data/colo_biz.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'colo_biz'
|
3
|
+
s.version = '0.0.1' #semver.org
|
4
|
+
s.date = '2015-04-25'
|
5
|
+
s.summary = "Colorado Business Entities Gem"
|
6
|
+
s.description = "A gem that turns the CO Business Entity API into ruby methods."
|
7
|
+
s.authors = ["Finnegan Hewitt", "Casey Kelly"]
|
8
|
+
s.email = ['fbhewitt@gmail.com', 'casey.kelly@colorado.edu'] #can this take an array?
|
9
|
+
s.files = `git ls-files -z`.split("\x0")
|
10
|
+
s.homepage = 'https://github.com/CaseyKelly/Colorado-Business-Entities-API-Gem' # need to hoook up to rubygem API http://rubygems.org/gems/
|
11
|
+
s.license = 'MIT'
|
12
|
+
s.add_runtime_dependency 'faraday'
|
13
|
+
s.add_runtime_dependency 'json'
|
14
|
+
s.add_development_dependency "bundler", "~> 1.7"
|
15
|
+
s.add_development_dependency "rake", "~> 10.0"
|
16
|
+
s.add_development_dependency "rspec"
|
17
|
+
end
|
data/lib/colo_biz.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require_relative 'data_fetcher'
|
2
|
+
|
3
|
+
class BizEntity
|
4
|
+
|
5
|
+
attr_reader :entity_name, :human_address, :longitude, :latitude, :entity_status,
|
6
|
+
:entity_form_date, :principal_address, :principal_city, :principal_state,
|
7
|
+
:principal_zipcode, :principal_country, :entity_type, :entity_type_verbatim,
|
8
|
+
:entity_id, :agent_first_name, :agent_middle_name, :agent_last_name,
|
9
|
+
:agent_address, :agent_city, :agent_state, :agent_zipcode,
|
10
|
+
:agent_principal_country, :mailing_zipcode, :mailing_country
|
11
|
+
|
12
|
+
def initialize(entity_hash)
|
13
|
+
@entity_name = entity_hash['entityname']
|
14
|
+
unless entity_hash['location']['human_address'] == ''
|
15
|
+
@human_address = JSON.parse(entity_hash['location']['human_address'])
|
16
|
+
else
|
17
|
+
@human_address = nil
|
18
|
+
end
|
19
|
+
@longitude = entity_hash['location']['longitude']
|
20
|
+
@latitude = entity_hash['location']['latitude']
|
21
|
+
@entity_status = entity_hash['entitystatus']
|
22
|
+
@entity_form_date = entity_hash['entityformdate'] #make this a date class
|
23
|
+
@principal_address = entity_hash['principaladdress1']
|
24
|
+
@principal_city = entity_hash['principalcity']
|
25
|
+
@principal_state = entity_hash['principalstate']
|
26
|
+
@principal_zipcode = entity_hash['principalzipcode']
|
27
|
+
@principal_country = entity_hash['principalcountry']
|
28
|
+
@entity_type = entity_hash['entitytype']
|
29
|
+
@entity_type_verbatim = entity_hash['entitytypeverbatim']
|
30
|
+
@entity_id = entity_hash['entityid'].to_i
|
31
|
+
@agent_first_name = entity_hash['agentfirstname']
|
32
|
+
@agent_middle_name = entity_hash['agentmiddlename']
|
33
|
+
@agent_last_name = entity_hash['agentlastname']
|
34
|
+
@agent_address = entity_hash['agentaddress']
|
35
|
+
@agent_city = entity_hash['agentcity']
|
36
|
+
@agent_state = entity_hash['agentstate']
|
37
|
+
@agent_zipcode = entity_hash['agentzipcode']
|
38
|
+
@agent_principal_country = entity_hash['agentprincipalcountry']
|
39
|
+
@mailing_zipcode = entity_hash['mailingzipcode']
|
40
|
+
@mailing_country = entity_hash['mailingcountry']
|
41
|
+
end
|
42
|
+
|
43
|
+
def mailing_address_string
|
44
|
+
"#{@human_address['address']}, #{@human_address['city']}, #{@human_address['state']}, #{@human_address['zip']}"
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# require 'faraday'
|
2
|
+
# require 'json'
|
3
|
+
# require 'rspec'
|
4
|
+
# require_relative 'biz_entity'
|
5
|
+
# require_relative 'core_ext/nil'
|
6
|
+
# require_relative 'query_method'
|
7
|
+
|
8
|
+
module ColoBiz
|
9
|
+
class DataFetcher
|
10
|
+
include ColoBiz::QueryMethod
|
11
|
+
|
12
|
+
def initialize
|
13
|
+
@conn = Faraday.new(:url => 'https://data.colorado.gov') do |faraday|
|
14
|
+
faraday.request :url_encoded # form-encode POST params
|
15
|
+
faraday.response :logger # log requests to STDOUT
|
16
|
+
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def biz_entity
|
21
|
+
response = @conn.get do |req|
|
22
|
+
req.url "/resource/colorado-business-entities.json"
|
23
|
+
# req.headers['X-App-Token'] =
|
24
|
+
# req.headers['Content-Type'] =
|
25
|
+
end
|
26
|
+
@parsed = JSON.parse(response.body)
|
27
|
+
make_biz_entities(@parsed)
|
28
|
+
end
|
29
|
+
|
30
|
+
def make_biz_entities(entities)
|
31
|
+
entities.map do |entity|
|
32
|
+
BizEntity.new(entity)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,190 @@
|
|
1
|
+
# require_relative "data_fetcher"
|
2
|
+
|
3
|
+
module ColoBiz
|
4
|
+
module QueryMethod
|
5
|
+
|
6
|
+
#The query does not search 'fuzzy' and needs the entire entity name
|
7
|
+
def search_by_entity_name(entity_name)
|
8
|
+
response = @conn.get do |req|
|
9
|
+
req.url "/resource/colorado-business-entities.json?entityname=#{entity_name}"
|
10
|
+
end
|
11
|
+
parsed = JSON.parse(response.body)
|
12
|
+
make_biz_entities(parsed)
|
13
|
+
end
|
14
|
+
|
15
|
+
#not tested yet
|
16
|
+
def search_by_principal_city(city_name)
|
17
|
+
response = @conn.get do |req|
|
18
|
+
req.url "/resource/colorado-business-entities.json?principalcity=#{city_name}"
|
19
|
+
end
|
20
|
+
parsed = JSON.parse(response.body)
|
21
|
+
make_biz_entities(parsed)
|
22
|
+
end
|
23
|
+
|
24
|
+
#not tested yet
|
25
|
+
def search_by_principal_state(state_name)
|
26
|
+
response = @conn.get do |req|
|
27
|
+
req.url "/resource/colorado-business-entities.json?principalstate=#{state_name}"
|
28
|
+
end
|
29
|
+
parsed = JSON.parse(response.body)
|
30
|
+
make_biz_entities(parsed)
|
31
|
+
end
|
32
|
+
|
33
|
+
#not tested yet
|
34
|
+
def search_by_principal_zipcode(zipcode)
|
35
|
+
response = @conn.get do |req|
|
36
|
+
req.url "/resource/colorado-business-entities.json?principalzipcode=#{zipcode}"
|
37
|
+
end
|
38
|
+
parsed = JSON.parse(response.body)
|
39
|
+
make_biz_entities(parsed)
|
40
|
+
end
|
41
|
+
|
42
|
+
#not tested yet
|
43
|
+
def search_by_principal_country(two_letter_country_code)
|
44
|
+
response = @conn.get do |req|
|
45
|
+
req.url "/resource/colorado-business-entities.json?principalcountry=#{two_letter_country_code}"
|
46
|
+
end
|
47
|
+
parsed = JSON.parse(response.body)
|
48
|
+
make_biz_entities(parsed)
|
49
|
+
end
|
50
|
+
|
51
|
+
#mailing address, city, state, zipcode, and country are skipped here
|
52
|
+
|
53
|
+
#not tested yet
|
54
|
+
#e.g. "Withdrawn"
|
55
|
+
def search_by_entity_status(entity_status)
|
56
|
+
response = @conn.get do |req|
|
57
|
+
req.url "/resource/colorado-business-entities.json?entitystatus=#{entity_status}"
|
58
|
+
end
|
59
|
+
parsed = JSON.parse(response.body)
|
60
|
+
make_biz_entities(parsed)
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
#e.g. "Water Company"
|
65
|
+
#not tested
|
66
|
+
def search_by_entity_type_verbatum(entity_type_verbatum)
|
67
|
+
response = @conn.get do |req|
|
68
|
+
req.url "/resource/colorado-business-entities.json?entitytypeverbatum=#{entity_type_verbatum}"
|
69
|
+
end
|
70
|
+
parsed = JSON.parse(response.body)
|
71
|
+
make_biz_entities(parsed)
|
72
|
+
end
|
73
|
+
|
74
|
+
#Must be the acronym for the type. e.g. "WC" for water company
|
75
|
+
#not tested
|
76
|
+
def search_by_entity_type(entity_type)
|
77
|
+
response = @conn.get do |req|
|
78
|
+
req.url "/resource/colorado-business-entities.json?entitytype=#{entity_type}"
|
79
|
+
end
|
80
|
+
parsed = JSON.parse(response.body)
|
81
|
+
make_biz_entities(parsed)
|
82
|
+
end
|
83
|
+
|
84
|
+
#first and last name are not case sensitive
|
85
|
+
#not tested
|
86
|
+
def search_by_agent_full_name(first_name, last_name)
|
87
|
+
response = @conn.get do |req|
|
88
|
+
req.url "/resource/colorado-business-entities.json?agentfirstname=#{first_name}&agentlastname=#{last_name}"
|
89
|
+
end
|
90
|
+
parsed = JSON.parse(response.body)
|
91
|
+
make_biz_entities(parsed)
|
92
|
+
end
|
93
|
+
|
94
|
+
#skipped agent middle name, agent suffix, agent organization name, agent principle address 1 and 2
|
95
|
+
|
96
|
+
#not tested
|
97
|
+
def search_by_agent_principal_city(agent_principal_city)
|
98
|
+
response = @conn.get do |req|
|
99
|
+
req.url "/resource/colorado-business-entities.json?agentprincipalcity=#{agent_principal_city}"
|
100
|
+
end
|
101
|
+
parsed = JSON.parse(response.body)
|
102
|
+
make_biz_entities(parsed)
|
103
|
+
end
|
104
|
+
|
105
|
+
def search_by_agent_principal_state(agent_principal_state)
|
106
|
+
response = @conn.get do |req|
|
107
|
+
req.url "/resource/colorado-business-entities.json?agentprincipalstate=#{agent_principal_state}"
|
108
|
+
end
|
109
|
+
parsed = JSON.parse(response.body)
|
110
|
+
make_biz_entities(parsed)
|
111
|
+
end
|
112
|
+
|
113
|
+
def search_by_agent_principal_zipcode(agent_principal_zipcode)
|
114
|
+
response = @conn.get do |req|
|
115
|
+
req.url "/resource/colorado-business-entities.json?agentprincipalzipcode=#{agent_principal_zipcode}"
|
116
|
+
end
|
117
|
+
parsed = JSON.parse(response.body)
|
118
|
+
make_biz_entities(parsed)
|
119
|
+
end
|
120
|
+
|
121
|
+
def search_by_agent_principal_country(agent_principal_country)
|
122
|
+
response = @conn.get do |req|
|
123
|
+
req.url "/resource/colorado-business-entities.json?agentprincipalcountry=#{agent_principal_country}"
|
124
|
+
end
|
125
|
+
parsed = JSON.parse(response.body)
|
126
|
+
make_biz_entities(parsed)
|
127
|
+
end
|
128
|
+
|
129
|
+
#skipped agent mailing addres 1 and 2
|
130
|
+
|
131
|
+
def search_by_agent_mailing_city(agent_mailing_city)
|
132
|
+
response = @conn.get do |req|
|
133
|
+
req.url "/resource/colorado-business-entities.json?agentmailingcity=#{agent_mailing_city}"
|
134
|
+
end
|
135
|
+
parsed = JSON.parse(response.body)
|
136
|
+
make_biz_entities(parsed)
|
137
|
+
end
|
138
|
+
|
139
|
+
def search_by_agent_mailing_state(agent_mailing_state)
|
140
|
+
response = @conn.get do |req|
|
141
|
+
req.url "/resource/colorado-business-entities.json?agentmailingstate=#{agent_mailing_state}"
|
142
|
+
end
|
143
|
+
parsed = JSON.parse(response.body)
|
144
|
+
make_biz_entities(parsed)
|
145
|
+
end
|
146
|
+
|
147
|
+
def search_by_agent_mailing_zipcode(agent_mailing_zipcode)
|
148
|
+
response = @conn.get do |req|
|
149
|
+
req.url "/resource/colorado-business-entities.json?agentmailingzipcode=#{agent_mailing_zipcode}"
|
150
|
+
end
|
151
|
+
parsed = JSON.parse(response.body)
|
152
|
+
make_biz_entities(parsed)
|
153
|
+
end
|
154
|
+
|
155
|
+
def search_by_agent_mailing_city(agent_mailing_country)
|
156
|
+
response = @conn.get do |req|
|
157
|
+
req.url "/resource/colorado-business-entities.json?agentmailingcountry=#{agent_mailing_country}"
|
158
|
+
end
|
159
|
+
parsed = JSON.parse(response.body)
|
160
|
+
make_biz_entities(parsed)
|
161
|
+
end
|
162
|
+
|
163
|
+
#must be in 'YYYY-MM-DD' format
|
164
|
+
def search_for_entity_formations_after(date)
|
165
|
+
response = @conn.get do |req|
|
166
|
+
req.url "/resource/colorado-business-entities.json?entityformdate > #{date}"
|
167
|
+
end
|
168
|
+
parsed = JSON.parse(response.body)
|
169
|
+
make_biz_entities(parsed)
|
170
|
+
end
|
171
|
+
|
172
|
+
#must be in 'YYYY-MM-DD' format
|
173
|
+
def search_for_entities_formed_before(date)
|
174
|
+
response = @conn.get do |req|
|
175
|
+
req.url "/resource/colorado-business-entities.json?entityformdate < #{date}"
|
176
|
+
end
|
177
|
+
parsed = JSON.parse(response.body)
|
178
|
+
make_biz_entities(parsed)
|
179
|
+
end
|
180
|
+
|
181
|
+
#radius is measured in miles
|
182
|
+
def search_for_entities_(longitude, latitude, radius)
|
183
|
+
response = @conn.get do |req|
|
184
|
+
req.url "/resource/colorado-business-entities.json?$where=within_circle(location, #{longitude}, #{latitude}, #{radius*1609})"
|
185
|
+
end
|
186
|
+
parsed = JSON.parse(response.body)
|
187
|
+
make_biz_entities(parsed)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
data/lib/core_ext/nil.rb
ADDED
data/spec/live_spec.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
#this spec will make actual api calls
|
2
|
+
require 'colo_biz'
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ColoBiz do
|
6
|
+
|
7
|
+
describe 'Data_Fetcher functionality' do
|
8
|
+
it 'initializes' do
|
9
|
+
data_fetcher = ColoBiz::DataFetcher::Faraday.new
|
10
|
+
expect(data_fetcher.class).to eq Faraday::Connection
|
11
|
+
end
|
12
|
+
|
13
|
+
it "sets @url on initialize" do
|
14
|
+
data_fetcher = ColoBiz::DataFetcher::Faraday.new(:url => 'https://data.colorado.gov')
|
15
|
+
expect(data_fetcher.url_prefix.to_s).to eq 'https://data.colorado.gov/'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
#############Query Methods################
|
20
|
+
describe 'entity name response' do
|
21
|
+
it 'returns a hash of entity information on successfull request' do
|
22
|
+
gold_hill = ColoBiz::DataFetcher.new.search_by_entity_name("GOLD HILL MESA JOINT VENTURE, LLC")
|
23
|
+
expect(gold_hill.first.entity_name).to eq "GOLD HILL MESA JOINT VENTURE, LLC"
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
# end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
RSpec.configure do |config|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
22
|
+
# assertions if you prefer.
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
26
|
+
# defined using `chain`, e.g.:
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
29
|
+
# ...rather than:
|
30
|
+
# # => "be bigger than 2"
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
end
|
33
|
+
|
34
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
35
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
38
|
+
# a real object. This is generally recommended, and will default to
|
39
|
+
# `true` in RSpec 4.
|
40
|
+
mocks.verify_partial_doubles = true
|
41
|
+
end
|
42
|
+
|
43
|
+
# The settings below are suggested to provide a good initial experience
|
44
|
+
# with RSpec, but feel free to customize to your heart's content.
|
45
|
+
=begin
|
46
|
+
# These two settings work together to allow you to limit a spec run
|
47
|
+
# to individual examples or groups you care about by tagging them with
|
48
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
49
|
+
# get run.
|
50
|
+
config.filter_run :focus
|
51
|
+
config.run_all_when_everything_filtered = true
|
52
|
+
|
53
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
54
|
+
# recommended. For more details, see:
|
55
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
56
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
57
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
58
|
+
config.disable_monkey_patching!
|
59
|
+
|
60
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
61
|
+
# be too noisy due to issues in dependencies.
|
62
|
+
config.warnings = true
|
63
|
+
|
64
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
65
|
+
# file, and it's useful to allow more verbose output when running an
|
66
|
+
# individual spec file.
|
67
|
+
if config.files_to_run.one?
|
68
|
+
# Use the documentation formatter for detailed output,
|
69
|
+
# unless a formatter has already been configured
|
70
|
+
# (e.g. via a command-line flag).
|
71
|
+
config.default_formatter = 'doc'
|
72
|
+
end
|
73
|
+
|
74
|
+
# Print the 10 slowest examples and example groups at the
|
75
|
+
# end of the spec run, to help surface which specs are running
|
76
|
+
# particularly slow.
|
77
|
+
config.profile_examples = 10
|
78
|
+
|
79
|
+
# Run specs in random order to surface order dependencies. If you find an
|
80
|
+
# order dependency and want to debug it, you can fix the order by providing
|
81
|
+
# the seed, which is printed after each run.
|
82
|
+
# --seed 1234
|
83
|
+
config.order = :random
|
84
|
+
|
85
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
86
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
87
|
+
# test failures related to randomization by passing the same `--seed` value
|
88
|
+
# as the one that triggered the failure.
|
89
|
+
Kernel.srand config.seed
|
90
|
+
=end
|
91
|
+
end
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: colo_biz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Finnegan Hewitt
|
8
|
+
- Casey Kelly
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-04-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: json
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: bundler
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '1.7'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1.7'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rake
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '10.0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '10.0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rspec
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
description: A gem that turns the CO Business Entity API into ruby methods.
|
85
|
+
email:
|
86
|
+
- fbhewitt@gmail.com
|
87
|
+
- casey.kelly@colorado.edu
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".rspec"
|
93
|
+
- ".travis.yml"
|
94
|
+
- Gemfile
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- colo_biz.gemspec
|
98
|
+
- lib/colo_biz.rb
|
99
|
+
- lib/colo_biz/biz_entity.rb
|
100
|
+
- lib/colo_biz/data_fetcher.rb
|
101
|
+
- lib/colo_biz/query_method.rb
|
102
|
+
- lib/core_ext/nil.rb
|
103
|
+
- spec/live_spec.rb
|
104
|
+
- spec/spec_helper.rb
|
105
|
+
homepage: https://github.com/CaseyKelly/Colorado-Business-Entities-API-Gem
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.4.5
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: Colorado Business Entities Gem
|
129
|
+
test_files: []
|