shikiho 0.1.1 → 0.1.2

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: 665d44731886a4ac12448b2c4bdb9c3a82ace3e005830a4cf9f0c8a6634cc018
4
- data.tar.gz: f37cb7b495e8e5ec545c1513c724bc856ee754a76e0b932a9a89e7ffaa4a065d
3
+ metadata.gz: 3cdd80d1189bb410c47220629a4e96d3b628e7b0b62341408170846fc42d8884
4
+ data.tar.gz: dd9155edc0a91e04ed18a9d019dd82cba3ff50bb51d50834fe3b514c6d7a0e1b
5
5
  SHA512:
6
- metadata.gz: 18d1a149c5abbd34fc1f6003e0d39c54cef1463bd36e7506c4b4e7adbdff5c3d9fbe7b3bdd52c9d337094e834a01ce9592ace41cd0e257182bb2a1c280a2ef76
7
- data.tar.gz: a03f50af30e9e5d61f243592d0271144dcb09d2d1f84f544d8665bd24c52a54811e68f913d3ef17cd89aad240996bc2de25705d88d9ffc1c2fa81e08ab572c88
6
+ metadata.gz: 9d8b28f364e1fb07396863778ff544f664271695e5616e5fcbb4e58476881997b4708a3ca11b4d9f434c8988bc4f059a571b42788c92db810072998a6110efa4
7
+ data.tar.gz: a58d098d20a6c6dd46cd32feb84d73fcc03abc78d6d9d3902a58dd0efaf742b0b91a00c5cdc23cc2176c14b63329e77e01a6a2a12227811285c03cc4dfa84d7f
data/Gemfile CHANGED
@@ -6,5 +6,5 @@ gemspec
6
6
  gem "nokogiri", "1.11.0"
7
7
  gem "rake", "12.3.3"
8
8
  gem "rspec", "~> 3.0"
9
- gem "selenium-webdriver", "4.0.0.alpha7"
9
+ gem "selenium-webdriver", "3.142.7"
10
10
  gem "steep", "0.39.0"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shikiho (0.1.0)
4
+ shikiho (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -16,7 +16,7 @@ GEM
16
16
  ast_utils (0.3.0)
17
17
  parser (~> 2.4)
18
18
  thor (>= 0.19)
19
- childprocess (4.0.0)
19
+ childprocess (3.0.0)
20
20
  concurrent-ruby (1.1.7)
21
21
  diff-lcs (1.4.4)
22
22
  ffi (1.14.2)
@@ -52,10 +52,9 @@ GEM
52
52
  rspec-support (~> 3.10.0)
53
53
  rspec-support (3.10.1)
54
54
  rubyzip (2.3.0)
55
- selenium-webdriver (4.0.0.alpha7)
56
- childprocess (>= 0.5, < 5.0)
55
+ selenium-webdriver (3.142.7)
56
+ childprocess (>= 0.5, < 4.0)
57
57
  rubyzip (>= 1.2.2)
58
- websocket (~> 1.0)
59
58
  steep (0.39.0)
60
59
  activesupport (>= 5.1)
61
60
  ast_utils (~> 0.3.0)
@@ -67,7 +66,6 @@ GEM
67
66
  thor (1.0.1)
68
67
  tzinfo (2.0.4)
69
68
  concurrent-ruby (~> 1.0)
70
- websocket (1.2.9)
71
69
  zeitwerk (2.4.2)
72
70
 
73
71
  PLATFORMS
@@ -78,7 +76,7 @@ DEPENDENCIES
78
76
  nokogiri (= 1.11.0)
79
77
  rake (= 12.3.3)
80
78
  rspec (~> 3.0)
81
- selenium-webdriver (= 4.0.0.alpha7)
79
+ selenium-webdriver (~> 3.141)
82
80
  shikiho!
83
81
  steep (= 0.39.0)
84
82
 
@@ -7,7 +7,7 @@ require "net/http"
7
7
  module Shikiho
8
8
  class Error < StandardError; end
9
9
 
10
- def self.get_stock_price_now code:
10
+ def self.get_stock_price_now code: 4755
11
11
  i = 0
12
12
  driver = self.get_selenium_driver mode: :chrome
13
13
  driver.get("https://shikiho.jp/stocks/#{code.to_s}")
@@ -24,7 +24,7 @@ module Shikiho
24
24
  driver.quit
25
25
  { code: code, price: price, datetime: Time.now.utc }
26
26
  rescue StandardError => e
27
- puts e
27
+ raise StandardError, e
28
28
  end
29
29
 
30
30
  def self.get_selenium_driver mode: :chrome
@@ -1,3 +1,3 @@
1
1
  module Shikiho
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module Shikiho
2
2
  VERSION: String
3
3
 
4
- def self.get_stock_price_now : (code: Integer) -> { code: Integer, price: Integer, datetime: String }
4
+ # def self.get_stock_price_now : (code: Integer) -> { code: Integer, price: Integer, datetime: Time }
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shikiho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI