relaton-omg 1.2.0 → 1.6.pre1

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: 95358cd97eb5e57d89796cd576823870ba14b90170e41c4e55049bd6f9e882e6
4
- data.tar.gz: 303a67358ba69844fda736dbac7c9f3371fad5e628c8c96e57d6c410bbd007bd
3
+ metadata.gz: 4afa057837ae46d0c79247462315371b88c911bf1539120b0b769989562c7d07
4
+ data.tar.gz: be180fa7cfc2f3a8ccbc4117dcf4c46f6a481152e9474de72f1960d68e688ff1
5
5
  SHA512:
6
- metadata.gz: 4ead4e445761222bf23d930c847312fc1b201cbe6d6341ef46095e28c266a622da7870502662d906d02dfd43dc00902984ffd27ac9d0dc0fc48130ca9d26f139
7
- data.tar.gz: a978285aee9841457e723ce83055b35e83b2dc1b42ae5381e709061fe6b48ecaddbdb6dd1627af5fa2a030f5cb9ccc4bc94670ad83c3e3a878e7cbd6c2f4b8e3
6
+ metadata.gz: 12e8c4e9aa4719ddb9a049b8f7285ba7f2d5ceba50bf1272c170f185c43a31d15beb06169c34a255103a04b2f7bdce98d5202acf7ab01e1a0f3bdd893e9789bd
7
+ data.tar.gz: 8b2cfd39daf63c343a670f3be4b3a6d29399e581f2c65f0ce91733e6c8e17707e69d8b713af7e3ce4b4bfeec75be9fc2f22c6e0470cd2550777253b4be5ec4ac
@@ -26,6 +26,8 @@ jobs:
26
26
  - name: Update gems
27
27
  run: |
28
28
  sudo gem install bundler --force
29
+ ruby -v | grep 2.5 && bundle config set build.debase --with-cflags="-Wno-error=implicit-function-declaration"
30
+ ruby -v | grep 2.5 && bundle config set build.ruby-debug-ide --with-cflags="-Wno-error=implicit-function-declaration"
29
31
  bundle install --jobs 4 --retry 3
30
32
  - name: Run specs
31
33
  run: |
@@ -29,4 +29,5 @@ jobs:
29
29
  bundle install --jobs 4 --retry 3
30
30
  - name: Run specs
31
31
  run: |
32
+ unset JAVA_TOOL_OPTIONS
32
33
  bundle exec rake
@@ -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
@@ -36,6 +36,7 @@ Or install it yourself as:
36
36
  [source,ruby]
37
37
  ----
38
38
  require 'relaton_omg'
39
+ => true
39
40
 
40
41
  item = RelatonOmg::OmgBibliography.search 'OMG AMI4CCM 1.0'
41
42
  => #<RelatonOmg::OmgBibliographicItem:0x007fda17eab2f0
@@ -52,7 +53,7 @@ RelatonOmg::OmgBibliography.search 'OMG 1111'
52
53
  [source,ruby]
53
54
  ----
54
55
  item.to_xml
55
- =><bibitem id="AMI4CCM1.0">
56
+ =>"<bibitem id="AMI4CCM1.0">
56
57
  <fetched>2020-02-17</fetched>
57
58
  <title type="main" format="text/plain" language="en" script="Latn">Asynchronous Method Invocation for CCM</title>
58
59
  <uri type="src">https://www.omg.org/spec/AMI4CCM/1.0/</uri>
@@ -87,7 +88,7 @@ item = RelatonOmg::OmgBibliographicItem.from_xml 'spec/fixtures/omg_ami4ccm_1_0.
87
88
  === Create bibliographic item form Hash
88
89
  [source,ruby]
89
90
  ----
90
- hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.xml'
91
+ hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.yaml'
91
92
  => {"id"=>"AMI4CCM1.0",
92
93
  ...
93
94
 
@@ -106,7 +107,7 @@ item = RelatonOmg::OmgBibliographicItem.from_yaml 'spec/fixtures/omg_ami4ccm_1_0
106
107
 
107
108
  == Contributing
108
109
 
109
- Bug reports and pull requests are welcome on GitHub at https://github.com/metanorma/relaton-ietf.
110
+ Bug reports and pull requests are welcome on GitHub at https://github.com/relaton/relaton-ietf.
110
111
 
111
112
  == License
112
113
 
@@ -1,15 +1,6 @@
1
1
  module RelatonOmg
2
2
  class OmgBibliographicItem < RelatonBib::BibliographicItem
3
3
  # @return [String, NilClass]
4
- attr_reader :doctype
5
-
6
- # @param doctype [String]
7
- # @param keyword [Array<String>]
8
- def initialize(**args)
9
- super
10
- # @doctype = args[:doctype]
11
- end
12
-
13
4
  class << self
14
5
  # @param file [String] path to YAML file
15
6
  # @return [RelatonOmg::OmgBibliographicItem]
@@ -30,25 +21,14 @@ module RelatonOmg
30
21
  end
31
22
  end
32
23
 
33
- # @param builder
34
24
  # @param opts [Hash]
35
- # @option opts [Symbol, NilClass] :date_format (:short), :full
36
- def to_xml(builder = nil, **opts)
25
+ # @option opts [Nokogiri::XML::Builder] :builder XML builder
26
+ # @option opts [Boolean] :bibdata
27
+ # @option opts [String] :lang language
28
+ # @return [String] XML
29
+ def to_xml(**opts)
37
30
  opts[:date_format] ||= :short
38
- super builder, **opts do |b|
39
- # if opts[:bibdata]
40
- # b.ext do
41
- # b.doctype doctype if doctype
42
- # end
43
- # end
44
- end
45
- end
46
-
47
- # @return [Hash]
48
- def to_hash
49
- hash = super
50
- hash["doctype"] = doctype if doctype
51
- hash
31
+ super
52
32
  end
53
33
  end
54
34
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonOmg
2
- VERSION = "1.2.0".freeze
2
+ VERSION = "1.6.pre1".freeze
3
3
  end
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "vcr"
38
38
  spec.add_development_dependency "webmock"
39
39
 
40
- spec.add_dependency "relaton-bib", "~> 1.2.0"
40
+ spec.add_dependency "relaton-bib", "~> 1.6.pre"
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-omg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.6.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-26 00:00:00.000000000 Z
11
+ date: 2020-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.2.0
159
+ version: 1.6.pre
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.2.0
166
+ version: 1.6.pre
167
167
  description: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
168
168
  model'
169
169
  email:
@@ -201,7 +201,7 @@ licenses:
201
201
  metadata:
202
202
  homepage_uri: https://github.com/relaton/relaton-ogn
203
203
  source_code_uri: https://github.com/relaton/relaton-ogn
204
- post_install_message:
204
+ post_install_message:
205
205
  rdoc_options: []
206
206
  require_paths:
207
207
  - lib
@@ -212,12 +212,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
212
  version: 2.4.0
213
213
  required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
- - - ">="
215
+ - - ">"
216
216
  - !ruby/object:Gem::Version
217
- version: '0'
217
+ version: 1.3.1
218
218
  requirements: []
219
219
  rubygems_version: 3.0.6
220
- signing_key:
220
+ signing_key:
221
221
  specification_version: 4
222
222
  summary: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
223
223
  model'