hotel_price 0.5.5 → 0.5.6

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: 936bc9b0a0c708967b88a86509f12e5a677f2b2ee6bcd88698154e801935418e
4
- data.tar.gz: 01e264e7b9391bcb5e8f872f5097673665d2135c60ef94033a0b370105a7f376
3
+ metadata.gz: 4032b76766cf85f77988bddc0bfb08c0e2520151649cf480e24bc243c7a5e699
4
+ data.tar.gz: 73ab442fc9b859c4c4cb8a529c9d2b46f5dc3d1da2a217499646945c356d7002
5
5
  SHA512:
6
- metadata.gz: f8d200030f6757cea8ab13a2d93264bb1f34aff18784b93ad74f6295e6f6f54b5d3512276d4122cb99dcbcf601ca9f66abf2616e3889c022ca487dbc06a3d683
7
- data.tar.gz: 438aaefa420b71023d57f6df72ee33f262347e54a8afdcda01a9f96607149aa32d51daf7751124f3853eab59f64f2e63ef1abb458bed6f46363b6ee27899ff52
6
+ metadata.gz: 82ac37e8446bd5d3160cc7623956bd4d07a67c69027f6422f8960010d1fa5d30d23c73f4d16af7af8d5428cc36b2bbeaa1c80105a005447d3bb4ac633c1af94f
7
+ data.tar.gz: 3c44a8bec12eb334a86e32822dfa97896d65beeadbde37f1f2d94dd0100442906c9415b4377c4f448a658d90929b75e23ab56836b5b245013ab73f5446bdc64e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hotel_price (0.5.4)
4
+ hotel_price (0.5.5)
5
5
  activesupport (~> 6.0.2.1)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
@@ -320,14 +320,12 @@ module HotelPrice::Rakuten
320
320
  def login_check
321
321
  exp = @driver.find_element(:xpath, "/html/body/table[1]/tbody/tr[1]/td/table/tbody/tr/td[5]/table/tbody/tr[1]/td").text.gsub("次回パスワード更新日:", "").gsub("※事前にパスワードを変更されたい場合はこちらをご参照ください。\n", "")
322
322
  rakuten_hotel_id = @driver.find_element(:xpath, "/html/body/table[1]/tbody/tr[1]/td/table/tbody/tr/td[2]/table/tbody/tr/td").text.gsub("施設番号 : ", "").split("\n")[0]
323
- @driver.quit
324
323
  {
325
324
  status: "success",
326
325
  password_exp_date: exp,
327
326
  rakuten_hotel_id: rakuten_hotel_id
328
327
  }
329
328
  rescue StandardError => e
330
- @driver.quit
331
329
  {
332
330
  status: "error",
333
331
  error: e.to_s
@@ -1,3 +1,3 @@
1
1
  module HotelPrice
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotel_price
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumitake Kawasaki