relaton-cli 1.8.0 → 1.8.2

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
  SHA256:
3
- metadata.gz: 6d1136ef4b30917aa5a29aa324cfacacc3be729c3a83f6aa3a41ddefc93e12c2
4
- data.tar.gz: 8a727b79dce16e15467463d5bbf648a37fa6d49e988e904aa4826025e6b9c9e3
3
+ metadata.gz: 4cbb72fe1858ab6501f431377716305f5a597c75d53cec88d9185423d6c97125
4
+ data.tar.gz: dd0189d20b1c61df323ba73029c305bf2867c51397c5bf27c36aaeee3a3408d0
5
5
  SHA512:
6
- metadata.gz: b8eececfadffa4cdf1e9eb57cb47e3241bfbcb6547e779026f61dc72625e751f9acd93946922b22d0159ffd4f60ec24c8abaa4011313d35ad62fe236399abb9a
7
- data.tar.gz: e083e9481f91c42544e65426d05983bdc21841e5b8adf4ff4a90c7942cefbe65168842b22cc4e9e75d5d9cb6b6b46c6374a0233a6d8d6ac0147c2f53994aea65
6
+ metadata.gz: bed73ee60f00ca3d9f0ea1aee4638969fb339862f1877cf027fd97c7ea7d95ab1df8d96a38ea4d10edda948222ea6b2df145dbf41cf4a06f9afbd071a68e79b2
7
+ data.tar.gz: b595d3c7c8c9d8d47c3a06f14fd8807fe03dcfa14ccb503aa9e63701e3e392b5c3afced86907e7ba1fea929e8bcc37da51e2ceb1a47d7a5c21cbe028dd0c6e3d
@@ -16,19 +16,9 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [ '2.7', '2.6', '2.5', '2.4' ]
19
+ ruby: [ '3.0', '2.7', '2.6', '2.5' ]
20
20
  os: [ ubuntu-latest, windows-latest, macos-latest ]
21
21
  experimental: [ false ]
22
- include:
23
- - ruby: '3.0'
24
- os: 'ubuntu-latest'
25
- experimental: true
26
- - ruby: '3.0'
27
- os: 'windows-latest'
28
- experimental: true
29
- - ruby: '3.0'
30
- os: 'macos-latest'
31
- experimental: true
32
22
  steps:
33
23
  - uses: actions/checkout@v2
34
24
  with:
data/.rubocop.yml CHANGED
@@ -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.4
8
+ TargetRubyVersion: 2.5
9
9
  Rails:
10
10
  Enabled: true
@@ -26,7 +26,7 @@ module Relaton
26
26
  "retries. Default 1."
27
27
 
28
28
  def fetch(code)
29
- io = IO.new(STDOUT.fcntl(::Fcntl::F_DUPFD), mode: "w:UTF-8")
29
+ io = IO.new($stdout.fcntl(::Fcntl::F_DUPFD), mode: "w:UTF-8")
30
30
  io.puts(fetch_document(code, options) || supported_type_message)
31
31
  end
32
32
 
@@ -137,7 +137,7 @@ module Relaton
137
137
  when "asciibib" then "adoc"
138
138
  else options[:format]
139
139
  end
140
- output = options[:output] || file.sub(/(?<=\.)[^\.]+$/, ext)
140
+ output = options[:output] || file.sub(/(?<=\.)[^.]+$/, ext)
141
141
  File.write output, result, encoding: "UTF-8"
142
142
  end
143
143
 
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Cli
3
- VERSION = "1.8.0".freeze
3
+ VERSION = "1.8.2".freeze
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div class="doc-type-wrap">
19
19
  <div class="doc-type {{ document.type | downcase | split: " " | join: "-" }}">
20
- {{ document.type }}
20
+ {{ document.doctype }}
21
21
  </div>
22
22
  </div>
23
23
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug