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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c88ca0ebcdf84f7cadc9dfcbae1351e52dd6164
4
- data.tar.gz: 49195be432ef46dca5da3ad42b8aef14e0b9c7dc
3
+ metadata.gz: 90ec97b301bb75adbb97b5a7fb23cf99c03ac340
4
+ data.tar.gz: 6e2eb97e0e443a47719d0f3f1a761ce6e680ab92
5
5
  SHA512:
6
- metadata.gz: da617218947a50b8943b5a71a1e16fb9e244f8364d5b5f1d4215a5c44cdb5ee03fe15fee9775bf0596759f12af7333d3cf4c3a96ce624262a31a5813aa7be6c5
7
- data.tar.gz: 0939c551fa59e109b6724e5bbc5752d9e6524860d2394bef7aecf685b58e0b643d2aa6f94254bf438b9b48c33da39397e22a0ec460ae2067c6ddc275e76a11bf
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"
@@ -1,6 +1,6 @@
1
1
  require 'csv'
2
- require 'eaternet/framework/prototype'
3
2
  require 'eaternet/agencies/snhd_config'
3
+ require 'eaternet/framework/prototype'
4
4
  require 'eaternet/util'
5
5
 
6
6
  module Eaternet
@@ -1,3 +1,3 @@
1
1
  module Eaternet
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -1,9 +1,9 @@
1
1
  require 'test_helper'
2
2
 
3
3
  require 'eaternet/framework/lives_1_0'
4
- include Eaternet::Framework
5
4
 
6
5
  class BusinessTest < Minitest::Test
6
+ include Eaternet::Framework
7
7
 
8
8
  #
9
9
  # Business#latitude and Business#longitude
@@ -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)
@@ -1,9 +1,9 @@
1
1
  require 'test_helper'
2
2
 
3
3
  require 'eaternet/framework/lives_1_0'
4
- include Eaternet::Framework
5
4
 
6
5
  class InspectionTest < Minitest::Test
6
+ include Eaternet::Framework
7
7
 
8
8
  #
9
9
  # Inspection#type
@@ -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 LegendTest < Minitest::Test
6
+ include Eaternet::Framework::Lives_1_0
7
7
 
8
8
  def set_required_attrs(legend_record)
9
9
  legend_record.minimum_score = 98
@@ -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
- @@nyc = Eaternet::Agencies::Nyc.new(csv_path: MORRIS_PARK_CSV)
10
+ include Eaternet::Framework::Lives_1_0
11
+
12
+ @@nyc = Nyc.new(csv_path: MORRIS_PARK_CSV)
11
13
 
12
14
  #
13
15
  # Businesses
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eaternet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter