relaton-w3c 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: bd2bd393c6f3a1073dd4cd4f87cae650480dbfdcc1547de6e65b75827bf4c32a
4
- data.tar.gz: 4c50438e1a8bbfab465d3919f052ee0aca35078e30a7cb0062b77d5f4610a1a2
3
+ metadata.gz: '0609ad90edb48cdb1289f78c18cc532b50b5fe4b7e734dfb3e3d093985978494'
4
+ data.tar.gz: c61ffb78a67b314c325f06806ec63b0265a664837b3d36b1ee81eeaddc917a8c
5
5
  SHA512:
6
- metadata.gz: efecf91aece9898474823bd4f5725a0aeec965c27e1de6da6e50eb6a4b4d6c5219efefa20d4d05d5ce97af1058448377a1dfcefe6fd84b08a372d1eaf186bb2b
7
- data.tar.gz: d5bcb404c04bb5d23e75ddbda7ef2936772b27b324f399bf0759b44f76c352fe505a6685a3e1a956f18fc9332855db7b347e6a51a4ed5a55df29472689f8c0c5
6
+ metadata.gz: 14f21761fb55b87d2b4bbb1cc6777181c18b9cd591e63cc3ab6d2f910304cda96a84aa4dfe848ef90de0fb0baea0019b3cf017c47c971ad9e8693b33fedecb5f
7
+ data.tar.gz: f7ade432b4e528ab2b9bc1c0a4e29fb7b5cdac64cd574f1adcf2e698a0e6bea8fdc4b86d8b5dc7052f1c183b33699046cfb51b4a99fe280c884d101c6f5e81bb
@@ -35,4 +35,5 @@ jobs:
35
35
  bundle install --jobs 4 --retry 3
36
36
  - name: Run specs
37
37
  run: |
38
+ unset JAVA_TOOL_OPTIONS
38
39
  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
@@ -1,3 +1,3 @@
1
1
  module RelatonW3c
2
- VERSION = "1.2.0".freeze
2
+ VERSION = "1.3.0".freeze
3
3
  end
@@ -5,35 +5,12 @@ module RelatonW3c
5
5
  proposedRecommendation recommendation retired workingDraft
6
6
  ].freeze
7
7
 
8
- attr_reader :doctype
9
-
10
8
  # @param doctype [String]
11
9
  def initialize(**args)
12
10
  if args[:doctype] && !TYPES.include?(args[:doctype])
13
11
  warn "[relaton-w3c] invalid document type: #{args[:doctype]}"
14
12
  end
15
13
  super **args
16
- # @doctype = args[:doctype]
17
- end
18
-
19
- # @param builder [Nokogiri::XML::Builder, NilClass]
20
- # @param opts [Hash]
21
- # @option opts [TrueClass, FalseClass, NilClass] bibdata
22
- def to_xml(builder = nil, **opts)
23
- super builder, **opts do |b|
24
- if opts[:bibdata] && doctype
25
- b.ext do |e|
26
- e.doctype doctype if doctype
27
- end
28
- end
29
- end
30
- end
31
-
32
- # @return [Hash]
33
- def to_hash
34
- hash = super
35
- hash["doctype"] = doctype if doctype
36
- hash
37
14
  end
38
15
  end
39
16
  end
@@ -39,5 +39,5 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "vcr"
40
40
  spec.add_development_dependency "webmock"
41
41
 
42
- spec.add_dependency "relaton-bib", ">= 1.2.0"
42
+ spec.add_dependency "relaton-bib", ">= 1.3.0"
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-w3c
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
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2.0
117
+ version: 1.3.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 1.2.0
124
+ version: 1.3.0
125
125
  description: 'RelatonIso: retrieve W3C Standards for bibliographic using the IsoBibliographicItem
126
126
  model'
127
127
  email: