eaternet 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eaternet/agencies/nyc.rb +2 -0
- data/lib/eaternet/agencies/snhd.rb +1 -1
- data/lib/eaternet/version.rb +1 -1
- data/test/lives_1_0/business_test.rb +1 -1
- data/test/lives_1_0/feed_info_test.rb +1 -1
- data/test/lives_1_0/inspection_test.rb +1 -1
- data/test/lives_1_0/legend_test.rb +1 -1
- data/test/nyc_adapter_test.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90ec97b301bb75adbb97b5a7fb23cf99c03ac340
|
4
|
+
data.tar.gz: 6e2eb97e0e443a47719d0f3f1a761ce6e680ab92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0937aa8f4e654f9bec8439ea39512cccf98a18067027a8fb0bfec7f21aff096b451e50c0ac33ddb01408050e39eda1e9d1a045c95b2ea2428179910ae5278b09
|
7
|
+
data.tar.gz: 5fe045bf8704dc53721a94d66bed6e9c4ca638afa0d8c09f324aba00d46855771b9b9662d1d1ad650a5d6ca60185b3b451509bd55b39333a35a6cb5d3d9d3563
|
@@ -15,6 +15,8 @@ module Eaternet
|
|
15
15
|
# @see https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/xx67-kt59
|
16
16
|
# @todo This is a very long namespace. Can this be improved?
|
17
17
|
class Nyc < Eaternet::Framework::Lives_1_0::Adapter
|
18
|
+
include Eaternet::Framework::Lives_1_0
|
19
|
+
|
18
20
|
DOMAIN = 'data.cityofnewyork.us'
|
19
21
|
DATASET = 'xx67-kt59'
|
20
22
|
CSV_URL = "https://#{DOMAIN}/api/views/#{DATASET}/rows.csv?accessType=DOWNLOAD"
|
data/lib/eaternet/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
require 'eaternet/framework/lives_1_0'
|
4
|
-
include Eaternet::Framework::Lives_1_0
|
5
4
|
|
6
5
|
class FeedInfoTest < Minitest::Test
|
6
|
+
include Eaternet::Framework::Lives_1_0
|
7
7
|
|
8
8
|
def set_required_attrs(feed_info)
|
9
9
|
feed_info.feed_date = Date.new(2015, 1, 1)
|
data/test/nyc_adapter_test.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
+
require 'eaternet'
|
3
4
|
require 'eaternet/framework/lives_1_0'
|
4
|
-
require 'eaternet/agencies/nyc'
|
5
5
|
|
6
6
|
CASSETTE = 'nyc'
|
7
7
|
MORRIS_PARK_CSV = 'test/fixtures/morris-park-bake-shop.csv'
|
8
8
|
|
9
9
|
class NycAdapterTest < Minitest::Test
|
10
|
-
|
10
|
+
include Eaternet::Framework::Lives_1_0
|
11
|
+
|
12
|
+
@@nyc = Nyc.new(csv_path: MORRIS_PARK_CSV)
|
11
13
|
|
12
14
|
#
|
13
15
|
# Businesses
|