sac_county_data 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: 0540a3eac7d94ff27ec3ed9cebdd87fc0c059d6e
4
- data.tar.gz: 3229fa45e9d231f720c3c037b16f8562b4faf51e
3
+ metadata.gz: 1c48d048947db714595143fd997c6200b6bb5a0c
4
+ data.tar.gz: 4ce247c7a20da266636350494e9a1e82f9d719f0
5
5
  SHA512:
6
- metadata.gz: 4db4995cd99850f67aa65a17865c72fa2c33e8965d7ac7942775a48fa90ea2be1743ed3db17b06e585d0cf0ab5eb1e6a2e272f87c40197bc7054cf9042afd565
7
- data.tar.gz: 67b854ef759808dcd3edd88d52b2a05ca514c5b7505b88e0a5f984713297c5528a597418ec790617d0d0e5003ae9aab02a018057f5342a006bb1d8aacf2b9c3b
6
+ metadata.gz: c97d1513659e057a03f2d308f26debb7c1dcd23e6df75fba1f8036bc2cbf7c35848615e5611c9ec626c07e1055462035c37946a5a284174041c37cc698bbaa4e
7
+ data.tar.gz: 04b27b3bf978d9ae279844dc8fa5714b1bf9ca5e38d5bd914f1c05ccc34397ea301ad9335f512f0572b3365c43001ad1c9b48707c85015510f88eb4b134087af
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # SacCountyData
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/sac_county_data.svg)](https://badge.fury.io/rb/sac_county_data)
4
+
3
5
  A Ruby interface for the Sacramento County Open Data portal.
4
6
 
5
7
  ## Installation
@@ -10,12 +10,12 @@ module SacCountyData
10
10
 
11
11
  response = Faraday.get("#{API_URL}/#{RESOURCE_URL}/?auth_key=#{SacCountyData.api_key}")
12
12
  a = JSON.parse(response.body)['result']['fArray']
13
- a.each_slice(8) do |s|
13
+ a[3..-1].each_slice(8) do |s|
14
14
  obj = {}
15
- obj[:date] = s[4]['fStr']
16
- obj[:number] = s[5]['fStr']
17
- obj[:amount] = s[6]['fStr']
18
- obj[:name] = s[7]['fStr']
15
+ obj[:date] = s[0]['fStr']
16
+ obj[:number] = s[1]['fStr']
17
+ obj[:amount] = s[2]['fStr']
18
+ obj[:name] = s[3]['fStr']
19
19
 
20
20
  objs.push OpenStruct.new obj
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module SacCountyData
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sac_county_data
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
  - Chris Cacciatore
@@ -107,6 +107,7 @@ files:
107
107
  - README.md
108
108
  - Rakefile
109
109
  - lib/sac_county_data.rb
110
+ - lib/sac_county_data/.outstanding_checks.rb.swp
110
111
  - lib/sac_county_data/outstanding_checks.rb
111
112
  - lib/sac_county_data/version.rb
112
113
  - sac_county_data.gemspec