hotel_price 0.1.2 → 0.1.3

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: 2e569f6d7a1346b26d3cc2211b8db2e544ace8ec2d8ad8604c1435f1c84366cc
4
- data.tar.gz: 25afb86e8636249cb7bf0622537029af87b8961642995e03ddb5e4aeb8dc2307
3
+ metadata.gz: 84e64ba87bd8e4d35752b41147c830ea877239ae850feb82df99a0fba20d7649
4
+ data.tar.gz: e09ae753d923c5c5b131cae56a909d70a30be866cf3a1fe8835902658a600ec5
5
5
  SHA512:
6
- metadata.gz: 04a337655caccf4c90fabbd5e5371eb73a1594c9836ccc3a6a8d2f56e1c4438b2c2480d55ca7a5b3b6989e8026e46ef3a928801a2c9544252c65d9cd12729843
7
- data.tar.gz: 2faaca5ac8d19fe5366e921fe9660d37c143496d4119e364463fd055ef08d3e7cc66f53c4733923d8a690b3eb8d176f369695f3a0c8826f38d4144f834e3ca9c
6
+ metadata.gz: d2a7900ed815a35db6ee2efa623b86770ad26809631e27de85ed217c56cb5d84e3aa638191804ee8a4e8c3a1b3d78929a459f8c8e9d0dc61292a417003d44adb
7
+ data.tar.gz: b42aa5a89db995e918ce27d6d2e09859f3e3b1d3f65f710a0382b7df059850a67d62150c9ae79a93dae3d153e67ff17abcc92bdbf853e9f090d9ad75726da83d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hotel_price (0.1.2)
4
+ hotel_price (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rakuten_travel_review'
3
+
4
+ puts RakutenTravelReview.rakuten_travel
@@ -1,3 +1,3 @@
1
1
  module HotelPrice
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -0,0 +1,16 @@
1
+ require "hotel_price/version"
2
+ require "selenium-webdriver"
3
+
4
+ module RakutenTravelReview
5
+ class Error < StandardError; end
6
+ def self.rakuten_travel
7
+ # firefox_capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
8
+ # @driver = Selenium::WebDriver.for(:remote, url: "http://hub:4444/wd/hub", desired_capabilities: firefox_capabilities)
9
+ driver = Selenium::WebDriver.for :firefox
10
+ driver.get('https://travel.rakuten.co.jp/')
11
+ sleep 2
12
+ title = driver.find_element(:tag_name, "p").text
13
+ driver.quit
14
+ title
15
+ end
16
+ 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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUMI
@@ -57,6 +57,7 @@ email:
57
57
  - fumitake.kawasaki@el-soul.com
58
58
  executables:
59
59
  - hotel_price
60
+ - rakuten_travel_review
60
61
  extensions: []
61
62
  extra_rdoc_files: []
62
63
  files:
@@ -72,9 +73,11 @@ files:
72
73
  - bin/console
73
74
  - bin/setup
74
75
  - exe/hotel_price
76
+ - exe/rakuten_travel_review
75
77
  - hotel_price.gemspec
76
78
  - lib/hotel_price.rb
77
79
  - lib/hotel_price/version.rb
80
+ - lib/rakuten_travel_review.rb
78
81
  homepage: https://twitter.com/Fumitas
79
82
  licenses:
80
83
  - MIT