eaternet 1.3.1 → 1.3.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 +4 -4
- data/README.md +1 -0
- data/lib/eaternet/util.rb +3 -1
- data/lib/eaternet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f7cbd525647c5d5a05e296c62edc717325b9d05
|
|
4
|
+
data.tar.gz: b8348175053536580b4af1186748a30f9142af95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b03a1498ba9730c7c4ae481201fbed39309edc6db4ea3c229601df416089a6ae62e1809b7bc6e8ada7a6edd6766e6c47100bc5209bbf0c0aeb97a1be94d97b16
|
|
7
|
+
data.tar.gz: e2303e24a2ced64eb59d27fa1a46b6578074cbee2df0cd464a744d90a04946d3469832a6c44d96a20b38c97b41aa4c02f1d4bfa5ef7d0b29a898a615dc543405
|
data/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Publish your local restaurant health scores.
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
**In a nutshell:** each agency which inspects restaurants can have an
|
|
10
11
|
"adapter" which is a Ruby class. Its adapter converts its source format into [a
|
|
11
12
|
simple, standard one](http://www.yelp.com/healthscores). Anybody can then use these adapters to get the data and
|
data/lib/eaternet/util.rb
CHANGED
|
@@ -44,7 +44,9 @@ module Eaternet
|
|
|
44
44
|
# @param [String] dest pathname in which to save the file
|
|
45
45
|
# @return [File] the file
|
|
46
46
|
def self.download(source:, dest:)
|
|
47
|
-
File.open(dest, 'wb')
|
|
47
|
+
File.open(dest, 'wb') do |file|
|
|
48
|
+
file << HTTParty.get(source, verify: false).body
|
|
49
|
+
end
|
|
48
50
|
end
|
|
49
51
|
|
|
50
52
|
# Extract a Zip archive.
|
data/lib/eaternet/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eaternet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robb Shecter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-08-
|
|
11
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|