relaton-itu 0.3.9 → 0.3.10

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
  SHA256:
3
- metadata.gz: ab978472f8e37b1c3986dd7ca579d7e2a13f32a439dff9254b8550e396198910
4
- data.tar.gz: 4fd42f44a8cf3a7815bf1f0fd60ab5bc8c93b47234ed822009588fc492019456
3
+ metadata.gz: cfe1709e332d5eede7b7d5ebbabb8fba69e1ec084b5026ebebfc0061b7a34cb7
4
+ data.tar.gz: ec4fc6615f5695867b84ca8f749b8f7fe10da481f4ff6e216b655312c8baf3da
5
5
  SHA512:
6
- metadata.gz: 1f10f11521445ceb29e5524ab071ce7577e3fc232ba456c5078d0a421b68fefbaa6367292f06de6fe45c8dfb7c2999d00a5db95ba873139bbd82476e2c546eb3
7
- data.tar.gz: 6ce139042eac32a8b1430ed91dab7a116f0dadffc7e9d08188f4e0ae5ffd064aab87ac05a66adfaf41371346223512d10d5016142d8933e132835f2b7fa84dd7
6
+ metadata.gz: 637549a3b6bab17d347fc476834f4a4a721186c4f59887de211e2d503c9312fe79983f3bf896b74a2b59f1a2cfab2d1f4dc021287f4555850c8c2e560395fe26
7
+ data.tar.gz: 0ec6ef4818bb2a2d82607ab07a1616f8c0597cec8ce2a2fa185439a586445902505581c418bb663b3c85446b0a6b62d593a91c7ce2a9d84dc62820c2df88577e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-itu (0.3.9)
4
+ relaton-itu (0.3.10)
5
5
  relaton-iso-bib (~> 0.3.0)
6
6
 
7
7
  GEM
@@ -115,8 +115,8 @@ module RelatonItu
115
115
  def get_page(url)
116
116
  uri = URI url
117
117
  resp = Net::HTTP.get_response(uri) # .encode("UTF-8")
118
- while resp.code == "301" || resp.code == "302" || resp.code == "303"
119
- uri = URI resp["location"]
118
+ until resp.code == "200"
119
+ uri = URI resp["location"] if resp.code =~ /^30/
120
120
  resp = Net::HTTP.get_response(uri) # .encode("UTF-8")
121
121
  end
122
122
  [uri.to_s, Nokogiri::HTML(resp.body)]
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "0.3.9".freeze
2
+ VERSION = "0.3.10".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.