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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -7
- data/lib/shikiho.rb +2 -2
- data/lib/shikiho/version.rb +1 -1
- data/rbs/shikiho.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cdd80d1189bb410c47220629a4e96d3b628e7b0b62341408170846fc42d8884
|
4
|
+
data.tar.gz: dd9155edc0a91e04ed18a9d019dd82cba3ff50bb51d50834fe3b514c6d7a0e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d8b28f364e1fb07396863778ff544f664271695e5616e5fcbb4e58476881997b4708a3ca11b4d9f434c8988bc4f059a571b42788c92db810072998a6110efa4
|
7
|
+
data.tar.gz: a58d098d20a6c6dd46cd32feb84d73fcc03abc78d6d9d3902a58dd0efaf742b0b91a00c5cdc23cc2176c14b63329e77e01a6a2a12227811285c03cc4dfa84d7f
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shikiho (0.1.
|
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 (
|
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 (
|
56
|
-
childprocess (>= 0.5, <
|
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 (
|
79
|
+
selenium-webdriver (~> 3.141)
|
82
80
|
shikiho!
|
83
81
|
steep (= 0.39.0)
|
84
82
|
|
data/lib/shikiho.rb
CHANGED
@@ -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
|
-
|
27
|
+
raise StandardError, e
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.get_selenium_driver mode: :chrome
|
data/lib/shikiho/version.rb
CHANGED
data/rbs/shikiho.rbs
CHANGED