relaton-bib 0.1.6 → 0.2.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
- SHA1:
3
- metadata.gz: 74853979be6433fe1cfa7326ef1cdc2a4894b0b7
4
- data.tar.gz: 448612aa38f9c3f4ab9bfe4e345bb8f12a9d09fc
2
+ SHA256:
3
+ metadata.gz: c6818bbef8c9a0205b38a566df13f9429df3186c7fc9000820b23678491f2f2c
4
+ data.tar.gz: 695fe41e85cec267fe47faf8227ca48ecaae561e0e0c74f06bb4b4900d7148f0
5
5
  SHA512:
6
- metadata.gz: 7f37e2b4de8e9ba2585f56e02368d88f1fd7516d040f4495b221e3d39c9a5d001e3a2b79bbe6f228a58bcdf3f59b8114f1a55191cb3e6fc35cafa68d97b972d4
7
- data.tar.gz: 7b65f1eec49d175efea99f893ca72827550e707246352bbb62eefd54b8da5346de4ea06b9732b6fdd4bbc977ea5a5a0fa71e4241e80f4393160320f4495e7a85
6
+ metadata.gz: 044f8730130ed7e06192acf26d6dab58bcd47c3a9b8c9cdb4602d813ce4759da5bafad8b2dc1ea150f63da72bb9c9988d6b83a6f56ef3b39bacd09dfb887fc98
7
+ data.tar.gz: 64fa2a7dee66702e0c1d6d2b1f50aa40ece33495de4986e7422515559cf3815884876f43b0e42c5c6cfc969d2014e20d695267df99386060c06f0c5ad23f9bdb
@@ -1,7 +1,17 @@
1
- ---
2
- sudo: false
1
+ # Auto-generated !!! Do not edit it manually
2
+ # use ci-master https://github.com/metanorma/metanorma-build-scripts
3
3
  language: ruby
4
4
  cache: bundler
5
+ os:
6
+ - linux
7
+ - osx
5
8
  rvm:
6
- - 2.4.0
7
- before_install: gem install bundler -v 2.0.1
9
+ - 2.5
10
+ - 2.4
11
+ - ruby-head
12
+ before_install:
13
+ - gem install bundler -v 2.0.1
14
+ - bundle update
15
+ matrix:
16
+ allow_failures:
17
+ - rvm: ruby-head
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-bib (0.1.6)
4
+ relaton-bib (0.2.0)
5
5
  addressable
6
6
  nokogiri (~> 1.8.4)
7
7
 
@@ -12,31 +12,31 @@ GEM
12
12
  public_suffix (>= 2.0.2, < 4.0)
13
13
  debase (0.2.2)
14
14
  debase-ruby_core_source (>= 0.10.2)
15
- debase-ruby_core_source (0.10.4)
15
+ debase-ruby_core_source (0.10.5)
16
16
  diff-lcs (1.3)
17
- docile (1.3.1)
17
+ docile (1.3.2)
18
18
  equivalent-xml (0.6.0)
19
19
  nokogiri (>= 1.4.3)
20
20
  json (2.2.0)
21
21
  mini_portile2 (2.3.0)
22
22
  nokogiri (1.8.5)
23
23
  mini_portile2 (~> 2.3.0)
24
- public_suffix (3.0.3)
24
+ public_suffix (3.1.0)
25
25
  rake (10.5.0)
26
26
  rspec (3.8.0)
27
27
  rspec-core (~> 3.8.0)
28
28
  rspec-expectations (~> 3.8.0)
29
29
  rspec-mocks (~> 3.8.0)
30
- rspec-core (3.8.0)
30
+ rspec-core (3.8.1)
31
31
  rspec-support (~> 3.8.0)
32
- rspec-expectations (3.8.2)
32
+ rspec-expectations (3.8.4)
33
33
  diff-lcs (>= 1.2.0, < 2.0)
34
34
  rspec-support (~> 3.8.0)
35
- rspec-mocks (3.8.0)
35
+ rspec-mocks (3.8.1)
36
36
  diff-lcs (>= 1.2.0, < 2.0)
37
37
  rspec-support (~> 3.8.0)
38
- rspec-support (3.8.0)
39
- ruby-debug-ide (0.6.1)
38
+ rspec-support (3.8.2)
39
+ ruby-debug-ide (0.7.0)
40
40
  rake (>= 0.8.1)
41
41
  simplecov (0.16.1)
42
42
  docile (~> 1.1)
@@ -211,8 +211,8 @@ module RelatonBib
211
211
  end
212
212
 
213
213
  @docidentifier = args[:docid] || []
214
- @id = args[:id] || makeid(nil, false)
215
214
  @formattedref = args[:formattedref] if title.empty?
215
+ @id = args[:id] || makeid(nil, false)
216
216
  @type = args[:type]
217
217
  @docnumber = args[:docnumber]
218
218
  @edition = args[:edition]
@@ -16,9 +16,9 @@ module RelatonBib
16
16
  # @param language [String] language code Iso639
17
17
  # @param script [String] script code Iso15924
18
18
  # @param format [String] the content type
19
- def initialize(content:, language: nil, script: nil, format: nil)
19
+ def initialize(content:, language: nil, script: nil, format: "text/plain")
20
20
  # if format && !FORMATS.include?(format)
21
- # raise ArgumentError, %{Format "#{format}" is invalid.}
21
+ # raise ArgumentError, %{Format "#{format}" is invalid.}
22
22
  # end
23
23
 
24
24
  super(content, language, script)
@@ -10,7 +10,7 @@ module RelatonBib
10
10
  attr_reader :script
11
11
 
12
12
  # @return [String]
13
- attr_reader :content
13
+ attr_accessor :content
14
14
 
15
15
  # @param content [String]
16
16
  # @param language [String] language code Iso639
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "0.1.6".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
@@ -286,7 +286,7 @@ module RelatonBib
286
286
  end
287
287
 
288
288
  def fref(item)
289
- ident = item&.at("./formattedref | ./docidentifier")
289
+ ident = item&.at("./formattedref")
290
290
  return unless ident
291
291
 
292
292
  FormattedRef.new(
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.bindir = "exe"
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
24
25
 
25
26
  spec.add_development_dependency "bundler", "~> 2.0"
26
27
  spec.add_development_dependency "debase"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.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: 2019-05-27 00:00:00.000000000 Z
11
+ date: 2019-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -193,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - ">="
195
195
  - !ruby/object:Gem::Version
196
- version: '0'
196
+ version: 2.4.0
197
197
  required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  requirements: []
203
203
  rubyforge_project:
204
- rubygems_version: 2.6.12
204
+ rubygems_version: 2.7.6
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: 'RelatonBib: Ruby XMLDOC impementation.'