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: 9fac9ef436246590f59dc2719c028959c9c81fc7
4
- data.tar.gz: 315c836faed4a4de15416ad32a277db245dca755
3
+ metadata.gz: 9843053803055a0746272f5885cbd1908ffb085d
4
+ data.tar.gz: 01b867f171ebcd25167318bd5e1c7b794d810743
5
5
  SHA512:
6
- metadata.gz: ad4c52cd1647742d73fd2a1a73d2d5c70d484807c73bdd191ac233a0d135261610efb20ac36ae4ec20e2e92176f3b8854f97b84cceca579bb73d2866243c391c
7
- data.tar.gz: 5abb1d5df808e868d2b43dad2f593983898883f898578bca716019dafc452c8ba66d685192c3dc68d3691fdc7cb6822be90c85621382d0a75a3087003f4c12aa
6
+ metadata.gz: fac216ef9bc36c182d77cc852791fe488151de3277e21d141242490ff78254c9f5b7594f1627757f01bc5cea9aadf00a665be67d45d14eb08892c9b7a2909757
7
+ data.tar.gz: fc64847107376cfb065a95b981c2153daa4dd19643e0c1fd877d9ac71eb9636195e40f4a2b6d6063817df628c6d9763e2f7dcfa1e0c3937d1e09848a3fdbaf6c
@@ -22,9 +22,8 @@ module UsdaNutrientDatabase
22
22
 
23
23
  def path
24
24
  [
25
- 'SP2UserFiles',
26
- 'Place',
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 == 302
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
@@ -1,3 +1,3 @@
1
1
  module UsdaNutrientDatabase
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
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.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-04-20 00:00:00.000000000 Z
11
+ date: 2016-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord