relaton-gb 1.18.0 → 1.18.1

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: 654fef4f79afe3f77d71742bed6a2d62ca13e2788bd630da8cfd2197f048f478
4
- data.tar.gz: d397bd00b70d090799b436d1d384e0465c738a356e2c8dea5bdde7d76fa1a277
3
+ metadata.gz: a44c8b9396c30bc3aa644a45da432d5327bff2954af18af1f22fbe416b694b38
4
+ data.tar.gz: c9a157c81de458c6d76c8980a1f68cadb222b3c1a1ef1e8e8ae6de4e005cd739
5
5
  SHA512:
6
- metadata.gz: e7f8e539bfb3df2b87d5259083437dfc0291c0afe99d9ba402db35c09d7aa73832bb766d79f8e240bd0930a0821a8060b0e80a70bae08d3407bf81c929459a74
7
- data.tar.gz: 70e6a0d9edc990bb5e9db705e717fb20146b8f10f7ef0cbc4b4caf50cd1fec07e1df12d00fab1d5f651b5ad4133c013048f345b4c01d9d4582d5a48e05f77a1b
6
+ metadata.gz: 322268f34b944fdccc2b0500fd599a9866e28ee84123b8990d34a032d6321909a509991c75c781dbd91afc50eb9b72e29c3b6c7c0cbf9bbd413ee4e07dbea35f
7
+ data.tar.gz: ac2e1c9efc5df285e1f11f792e62b45241f615ed579017d1365738cda504143c53925ff3d4baee89389198554d8ce99e9a6a27d5d50f89e3b36b5dbfac2b15a8
@@ -19,7 +19,7 @@ module RelatonGb
19
19
  # @return [RelatonGb::HitCollection]
20
20
  def scrape_page(text)
21
21
  # uri = URI "http://www.std.gov.cn/hb/search/hbPage?searchText=#{text}"
22
- uri = URI "http://hbba.sacinfo.org.cn/stdQueryList"
22
+ uri = URI "https://hbba.sacinfo.org.cn/stdQueryList"
23
23
  resp = Net::HTTP.post uri, URI.encode_www_form({ key: text })
24
24
  # res = JSON.parse Net::HTTP.get(uri)
25
25
  json = JSON.parse resp.body
@@ -39,7 +39,7 @@ module RelatonGb
39
39
  # @param hit [RelatonGb::Hit]
40
40
  # @return [RelatonGb::GbBibliographicItem]
41
41
  def scrape_doc(hit)
42
- src = "http://hbba.sacinfo.org.cn/stdDetail/#{hit.pid}"
42
+ src = "https://hbba.sacinfo.org.cn/stdDetail/#{hit.pid}"
43
43
  page_uri = URI src
44
44
  doc = Nokogiri::HTML Net::HTTP.get(page_uri)
45
45
  GbBibliographicItem.new(**scrapped_data(doc, src, hit))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonGb
4
- VERSION = "1.18.0"
4
+ VERSION = "1.18.1"
5
5
  end
@@ -104,7 +104,10 @@ YD:
104
104
  administration: 信息产业部
105
105
  GY:
106
106
  prefix: GY_media
107
- administration: 国家广播电影电视总局
107
+ administration: 国家广播电视总局
108
+ DY:
109
+ prefix: DY_film
110
+ administration: 国家电影局
108
111
  DL:
109
112
  prefix: DL_electricity
110
113
  administration: 国家发改委
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-06 00:00:00.000000000 Z
11
+ date: 2024-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cnccs