sist02 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: a796cedd65978b59b541ae27fa81464d64470346
4
- data.tar.gz: 292508c8f3d94e624f0b826a8b0108deb0d38e60
3
+ metadata.gz: 188ce6bd691e442374613edd8736f3735c9b7c00
4
+ data.tar.gz: 4bfa2fe539fe2ee3986bbbc649e14bd478164105
5
5
  SHA512:
6
- metadata.gz: 462c5db1c9a3da367c8245fe7333dee97f9a079dbfc74c5ca1f420ac4cdad149918372d0ca7ace7a6514298dd241da4feb31724565ffcbbf6a747ef392eb8de6
7
- data.tar.gz: 46244a0945daa0c484a12cbb519f37df297e98802e5694d283ad92665c55ab999636bbaa3852a0c3df0ba0688a145288e0ab33d15b38625fcd2fd526985dd302
6
+ metadata.gz: 3bc5ec3c6cb24d8790a3c09ce167ead01ace5ff4c3e422aab4f8f8a6353e3a181158ac040c822fc51e196590baa53967aad803d158ffad80f4d94d6e040a1381
7
+ data.tar.gz: b50884f7f5e6d15f8b010d01acd1f63b4e07a5a2fb178487ee9dc68fa7e61919e312448b7db04c732b7715befed3721ae99f9940ffda015945ed075e8333edfd
data/lib/sist02/cinii.rb CHANGED
@@ -47,8 +47,9 @@ module Sist02
47
47
 
48
48
  ris = open("http://ci.nii.ac.jp/ncid/#{ncid}.ris").read
49
49
  pages = ris.match(/EP - ([a-z]*, )?\d+p/).to_s.gsub(/EP - /, '')
50
-
51
- result = "#{author}. #{title}. #{edition}, #{publisher}, #{year}, #{pages}."
50
+ pages = "ページ数不明" if pages == ''
51
+ result = "#{author}. #{title}. #{edition}, #{publisher}, #{year}, #{pages}." unless edition == nil
52
+ result = "#{author}. #{title}. #{publisher}, #{year}, #{pages}." if edition == nil # for bibliographic information that doesn't have edition display
52
53
  rescue => e
53
54
  result = e
54
55
  end
@@ -1,3 +1,3 @@
1
1
  module Sist02
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sist02
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makoto Hiramatsu