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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c48d048947db714595143fd997c6200b6bb5a0c
|
|
4
|
+
data.tar.gz: 4ce247c7a20da266636350494e9a1e82f9d719f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c97d1513659e057a03f2d308f26debb7c1dcd23e6df75fba1f8036bc2cbf7c35848615e5611c9ec626c07e1055462035c37946a5a284174041c37cc698bbaa4e
|
|
7
|
+
data.tar.gz: 04b27b3bf978d9ae279844dc8fa5714b1bf9ca5e38d5bd914f1c05ccc34397ea301ad9335f512f0572b3365c43001ad1c9b48707c85015510f88eb4b134087af
|
data/README.md
CHANGED
|
Binary file
|
|
@@ -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[
|
|
16
|
-
obj[:number] = s[
|
|
17
|
-
obj[:amount] = s[
|
|
18
|
-
obj[:name] = s[
|
|
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
|
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.
|
|
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
|