relaton-ieee 1.2.0 → 1.3.0

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: 1d0a462034a5175144c610a08f99067284264ea9314d0a76fee5157366076ede
4
- data.tar.gz: 3fc28c989bfd80a06b0076107ac6a3349cd97bdc42a0525752ca8e83b9b40b31
3
+ metadata.gz: 0e0e03b2f85ee56f80bbd4ad30a72d425529341e03f249b3333a4f336d1e920b
4
+ data.tar.gz: 772e49ae0ddc4a603cab2ba60d89e6f7ad8cff104cf01e3a0631afd5e9ca26d8
5
5
  SHA512:
6
- metadata.gz: 16d3c8c6aaa1644bef75103531d00f7d7447cfb4a6b3214c6359caf015a015d2c685b7a08fac85e32abe0e624b52d53ed979f05f141a7979c50bb0e66c04db1f
7
- data.tar.gz: eef2fb564cde076725a6cdd31ab85d0a9303c990deca352b5a398a45c8eb0ff1889c920abb116287115073d8f3c4463f6048cbe7781f7ff47e903d9b1e6be27b
6
+ metadata.gz: a110efa667c5dc009675b1ba87171621aa317ecd649259077fd2d56e79bdfa2c67c8c8874cfb3d7ccb0376f02b007994cbd2afe9cf363ebc38c5acd0041622f4
7
+ data.tar.gz: e55165748b2625663efefabfc8ecb572c1122137b96525b472430cae40fe017e9376814e3d162d646aacfc63a17f9d02c5626a3a2a2a991a183341f45ed2d6ca
@@ -5,6 +5,6 @@
5
5
  inherit_from:
6
6
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
7
7
  AllCops:
8
- TargetRubyVersion: 2.3
8
+ TargetRubyVersion: 2.4
9
9
  Rails:
10
- Enabled: true
10
+ Enabled: false
@@ -29,5 +29,18 @@ module RelatonIeee
29
29
  hash["chair"] = chair if chair
30
30
  hash
31
31
  end
32
+
33
+ # @param prefix [String]
34
+ # @param count [Integer]
35
+ # @return [String]
36
+ def to_asciibib(prefix, count)
37
+ pref = prefix.empty? ? prefix : prefix + "."
38
+ pref += "committee"
39
+ out = count > 1 ? "#{pref}::\n" : ""
40
+ out += "#{pref}.type:: #{type}\n"
41
+ out += "#{pref}.name:: #{name}\n"
42
+ out += "#{pref}.chair:: #{chair}\n" if chair
43
+ out
44
+ end
32
45
  end
33
46
  end
@@ -7,7 +7,6 @@ module RelatonIeee
7
7
  def initialize(**args)
8
8
  @committee = args.delete :committee
9
9
  super
10
- # @doctype = args[:doctyp]
11
10
  end
12
11
 
13
12
  # @param builder [Nokogiri::XML::Bilder]
@@ -28,5 +27,13 @@ module RelatonIeee
28
27
  hash["committee"] = committee.map &:to_hash
29
28
  hash
30
29
  end
30
+
31
+ # @param prefix [String]
32
+ # @return [String]
33
+ def to_asciibib(prefix = "")
34
+ out = super
35
+ committee.each { |c| out += c.to_asciibib prefix, committee.size }
36
+ out
37
+ end
31
38
  end
32
39
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.2.0".freeze
2
+ VERSION = "1.3.0".freeze
3
3
  end
@@ -13,7 +13,7 @@ module RelatonIeee
13
13
 
14
14
  data[:committee] = ext.xpath("./committee").map do |c|
15
15
  Committee.new(
16
- type: c[:type], name: c.at("name").text, chair: c.at("chair")&.text,
16
+ type: c[:type], name: c.at("name").text, chair: c.at("chair")&.text
17
17
  )
18
18
  end
19
19
  data
@@ -43,5 +43,5 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency "webmock"
44
44
 
45
45
  spec.add_dependency "faraday", "~> 1.0.0"
46
- spec.add_dependency "relaton-bib", "~> 1.2.0"
46
+ spec.add_dependency "relaton-bib", "~> 1.3.0"
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-26 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.2.0
145
+ version: 1.3.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.2.0
152
+ version: 1.3.0
153
153
  description: 'RelatonIeee: retrieve IEEE Standards for bibliographic use using the
154
154
  IeeeBibliographicItem model'
155
155
  email: