usda-nutrient-database 2.1.1 → 2.1.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: 9843053803055a0746272f5885cbd1908ffb085d
|
|
4
|
+
data.tar.gz: 01b867f171ebcd25167318bd5e1c7b794d810743
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fac216ef9bc36c182d77cc852791fe488151de3277e21d141242490ff78254c9f5b7594f1627757f01bc5cea9aadf00a665be67d45d14eb08892c9b7a2909757
|
|
7
|
+
data.tar.gz: fc64847107376cfb065a95b981c2153daa4dd19643e0c1fd877d9ac71eb9636195e40f4a2b6d6063817df628c6d9763e2f7dcfa1e0c3937d1e09848a3fdbaf6c
|
|
@@ -22,9 +22,8 @@ module UsdaNutrientDatabase
|
|
|
22
22
|
|
|
23
23
|
def path
|
|
24
24
|
[
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'12354500',
|
|
25
|
+
'ARSUserFiles',
|
|
26
|
+
'80400525',
|
|
28
27
|
'Data',
|
|
29
28
|
version == 'sr28' ? 'SR' : nil,
|
|
30
29
|
version.upcase,
|
|
@@ -60,7 +59,7 @@ module UsdaNutrientDatabase
|
|
|
60
59
|
|
|
61
60
|
def final_path
|
|
62
61
|
look_ahead = connection.head(path)
|
|
63
|
-
if look_ahead.status
|
|
62
|
+
if [302, 404].include?(look_ahead.status)
|
|
64
63
|
raise 'No location' unless look_ahead.headers['location']
|
|
65
64
|
URI.parse(look_ahead.headers['location']).path
|
|
66
65
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: usda-nutrient-database
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Beedle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|