histock-simplefilter 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fc728f6f0a3d2640bfb67ed6f62f5ea35417f05f7fb03fadc6ebb3adf55d256
4
- data.tar.gz: 9adceb2e0fd319ff5af538a0b9c83537a89fa16f142db172bb220d66e95491e6
3
+ metadata.gz: 39b936e936e24634a8fa18457f99d283ef85e6e4ef73af8f3e58630328a2bdfe
4
+ data.tar.gz: 382675be25c844453a8cbb6f787b1fe0fcb199303c68da97da33dc155d65bc17
5
5
  SHA512:
6
- metadata.gz: c853c35a89f497d470fe0dd524a78e63b2ce5f356b97a33a55dc723517ce808e6fd7db26ed030c417199932bb916f12cede9f6a58b2f30c1d185ea256e640285
7
- data.tar.gz: 79a8c59281249483f01b572570adf4eab80b026238924a0decb2ee06a460ea67736bd0cfc0c3d1217cf36dd93317aaefdc8828f1731dac1c6a9e4f1a9545050a
6
+ metadata.gz: 03a4e28be238de40eb5eee13ca94e4ec672ce9bc9b4f053110b96e643d1cd8094ab3bd61677d276cbb0b39f39861293e4beab80d2400476ab14a49cb27fbd84b
7
+ data.tar.gz: 9583ae98ce913dd2d15e45d5a60a1d0130b2ba00463b4ccb19730f55e0bd2b07574e4c786c8225e7c90e1b7cd2da28cf12b6c65a35a5be2d60f8b16b85a6dd13
@@ -1,3 +1,9 @@
1
+ ## v0.6.0
2
+ [full changelog](http://github.com/ysato5654/histock-simplefilter/compare/v0.5.0...v0.6.0)
3
+
4
+ * support new request
5
+ - company profile
6
+
1
7
  ## v0.5.0
2
8
  [full changelog](http://github.com/ysato5654/histock-simplefilter/compare/v0.4.1...v0.5.0)
3
9
 
@@ -4,6 +4,7 @@ require File.expand_path(File.dirname(__FILE__)) + '/fetch/basic_financial_state
4
4
  require File.expand_path(File.dirname(__FILE__)) + '/fetch/dividend_policy'
5
5
  require File.expand_path(File.dirname(__FILE__)) + '/fetch/profitability'
6
6
  require File.expand_path(File.dirname(__FILE__)) + '/fetch/corporate_value'
7
+ require File.expand_path(File.dirname(__FILE__)) + '/fetch/company_profile'
7
8
 
8
9
  module Histock
9
10
  module Fetch
@@ -11,6 +12,7 @@ module Histock
11
12
  include DividendPolicy
12
13
  include Profitability
13
14
  include CorporateValue
15
+ include CompanyProfile
14
16
 
15
17
  private
16
18
 
@@ -30,6 +32,8 @@ module Histock
30
32
  nodes = doc.xpath("//div[@class='row-stock w740']/table[@class='tb-stock tb-outline tbBasic']")
31
33
  when :price_book_ratio
32
34
  nodes = doc.xpath("//div[@class='row-stock']/table[@class='tb-stock tb-outline tbBasic']")
35
+ when :company_profile
36
+ nodes = doc.xpath("//div[@class='grid-item w788 mt10']/div[@class='grid-body']/table/tr/td/table[@class='tb-stock tbBasic']")
33
37
  end
34
38
 
35
39
  raise InformationNotFound if nodes.empty?
@@ -0,0 +1,10 @@
1
+ module Histock
2
+ module Fetch
3
+ module CompanyProfile
4
+ def company_profile(code)
5
+ params = {:no => code}
6
+ parse(:query => __method__, :html => get('/profile.aspx', params))
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  module Histock
2
2
  class Simplefilter
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: histock-simplefilter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Sato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-13 00:00:00.000000000 Z
11
+ date: 2020-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -103,6 +103,7 @@ files:
103
103
  - lib/histock/simplefilter/error.rb
104
104
  - lib/histock/simplefilter/fetch.rb
105
105
  - lib/histock/simplefilter/fetch/basic_financial_statements.rb
106
+ - lib/histock/simplefilter/fetch/company_profile.rb
106
107
  - lib/histock/simplefilter/fetch/corporate_value.rb
107
108
  - lib/histock/simplefilter/fetch/dividend_policy.rb
108
109
  - lib/histock/simplefilter/fetch/profitability.rb