eaternet 0.3.16 → 0.3.17

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: fef3eddd900122c5e8f53d818fba1deb47716df2
4
- data.tar.gz: 52ac0c10468d7712d859a4777b9af4715d5f0acb
3
+ metadata.gz: 9f074020bfc866a9df8fe3953bbe48d11e2f5ac5
4
+ data.tar.gz: b906df3d38e0a74369c536739cc02259236864c3
5
5
  SHA512:
6
- metadata.gz: 94d28c75ef42a9912cdf467a4a66bb8b2c94d50c3068f9487671fae3151c387dd556d570ed92aa11b2041c5d9e6be0e7d2dd8cf3f1ffe3f8d410712217f0ac5e
7
- data.tar.gz: 37272ef7459e1fce60371bc32849928ff3a25f805528e63d382ecfc2fb3e78c632c662da71265d931c1e9e4c446c24083185f2ba2bf365154f8c82474041feb7
6
+ metadata.gz: f86771cbda0f02d37b6d11bd0d18453a2ee1feeb3226b55b640169d596532a6928f6c03d8f1b58c20642c6d260ea86b48de1c7c2352b71dc3f8fa9b23e9823f8
7
+ data.tar.gz: 4626b39553c79847e2722729a9643218835b8fbd5cd1cc71729c7059be853ffd4322b53fdd1dc915e8e6b6cc522af5ae77985fe9b9e048b33209939d459dd093
@@ -15,7 +15,8 @@ module Eaternet
15
15
  # A data source for New York City food service health inspections. It
16
16
  # retrieves the latest CSV export from [the official
17
17
  # source](https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/xx67-kt59)
18
- # and makes it easy to work with.
18
+ # and makes it easy to work with. See our [NYC wiki page](https://github.com/eaternet/adapters/wiki/Agency:-New-York-City)
19
+ # for details about the data set.
19
20
  #
20
21
  # Output is produced in the [LIVES 1.0](http://www.yelp.com/healthscores)
21
22
  # format developed by Yelp and the cities of San Francisco and New York.
@@ -1,3 +1,3 @@
1
1
  module Eaternet
2
- VERSION = '0.3.16'
2
+ VERSION = '0.3.17'
3
3
  end
@@ -8,6 +8,10 @@ class Enumerator
8
8
 
9
9
  # @return [Enumerator] only my unique elements
10
10
  def uniq
11
- to_a.uniq.each
11
+ cache = Set.new
12
+
13
+ Lazy.new(self) do |yielder, value|
14
+ yielder << value if cache.add?(value)
15
+ end
12
16
  end
13
17
  end
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.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter