hotel_price 0.4.4 → 0.4.5

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: af74d95122d0b35c9df9a0126d0f8b0c2aa7c2dac9238313e86a7f0d04c46726
4
- data.tar.gz: 25b9a446368232c0bb47b1f9992455e5071605bff9916b83eef162ec663cbaf1
3
+ metadata.gz: 5f11db6a218402ed66a5b38636651f60ad2254925f7214ed2d5066c8a8d119e0
4
+ data.tar.gz: 1e8080a6c350b3826197fbed5c005969adc3320e0f140fd89baa5e9cef793126
5
5
  SHA512:
6
- metadata.gz: 4d17b811ce0a540bc75828c8bb9d64bd5b1fa151ad99a71969b40311bf50973da50141b08f145a7d414df129c99c255d55d3bf2e9e22ef2435b823ad8098cbfd
7
- data.tar.gz: cf0214442e7a032472abb8fcdde0ccfcfb27ccce9cd90d82804362a43ad11511c4803b75627d7fbca4b120fcda8c2d79e87def73abd35978b8daa34dd88b808a
6
+ metadata.gz: 2e3a2539ffc8f2e05273b863f0a7ebdd265dac1d61486f1e5392371cc95d499d0390ae6286c71ba73cafc3764ca8ec80ac765397fee4be2bab810c0097b3d38f
7
+ data.tar.gz: 578761c339e4e77b12b2bc929fb78fdf49fb906f58d24ce7fb56b8001065258298c3a29fd964060c09c1f1713e64211fa56f556e123bb11e5303ae8dfd933bc7
@@ -7,10 +7,14 @@ module HotelPrice::Rakuten
7
7
  chain: params[:chain] ||= false,
8
8
  rakuten_hotel_id: params[:rakuten_hotel_id] ||= 0
9
9
  }
10
- options = Selenium::WebDriver::Firefox::Options.new
11
- options.add_argument("-headless")
12
10
  @wait = Selenium::WebDriver::Wait.new(:timeout => 100)
13
- @driver = Selenium::WebDriver.for :firefox, options: options
11
+ # For Local Headless
12
+ # options = Selenium::WebDriver::Firefox::Options.new
13
+ # options.add_argument("-headless")
14
+ # @driver = Selenium::WebDriver.for :firefox, options: options
15
+
16
+ firefox_capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
17
+ @driver = Selenium::WebDriver.for(:remote, url: "http://hub:4444/wd/hub", desired_capabilities: firefox_capabilities)
14
18
  if @config[:chain]
15
19
  go_to_management_page_chain
16
20
  else
@@ -1,3 +1,3 @@
1
1
  module HotelPrice
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumitake Kawasaki