interscript 2.4.3 → 2.4.5

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: c7f937aac91160169f007353c245aa689ed3c5e3e4ed946c6da44f399ea733b1
4
- data.tar.gz: 4c67b41ff52d4927793d772660d12b0c42c6548703a4c96f426ec1c26b54b9b7
3
+ metadata.gz: 4d70ba0bcf8f6cf72951983b6aacd3a0089e2d79ceb62b441bd4549a7731bfcb
4
+ data.tar.gz: 1fd552a2803d7c67cd12ec7ed3f2b956c1fc603d624673e3cace9f2db3bc2adb
5
5
  SHA512:
6
- metadata.gz: 68c4890831dc4481c1c5152dc4781a061b214cebfee877d69876a972d43ee77616b533f6462db4d662e2fd032a93693d6afde443dd429096bead01f1238f35b8
7
- data.tar.gz: ab9df5bc388a6882c0be9f83e3170944995f0104f593d0ff6a46360b6860bde1e0fa003f7db92531b837ebcfe56860e5635442f559d9c388f1997ea23b0fd14e
6
+ metadata.gz: e0ed290794bc0724ece2c4e9ce547fe7a716566b119061c3ee6ec65240b92d81b2b41be833a257ca130aba9f440294ad9626accc4fd905d96a21a644fdaa6c00
7
+ data.tar.gz: ba5ed46ba6dddf8c422fbc671492e41bc8898ed0cb1622e63310a77c6972352ee6285f9eb01d038f576dbd926a120ea41f7aa41fb60df66318c2274144551634
@@ -4,6 +4,7 @@ on:
4
4
  push:
5
5
  tags:
6
6
  - 'v*'
7
+ workflow_dispatch:
7
8
 
8
9
  jobs:
9
10
  assets:
@@ -23,7 +24,7 @@ jobs:
23
24
  - name: Use Ruby
24
25
  uses: ruby/setup-ruby@v1
25
26
  with:
26
- ruby-version: 3.0
27
+ ruby-version: "3.0"
27
28
  bundler-cache: true
28
29
 
29
30
  - name: Install bundle
@@ -2,7 +2,7 @@ name: rake
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main, v* ]
5
+ branches: [ main, v*, ci-check ]
6
6
  tags: [ v* ]
7
7
  pull_request:
8
8
 
@@ -10,23 +10,21 @@ jobs:
10
10
  rspec:
11
11
  name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
12
12
  runs-on: ${{ matrix.os }}
13
- continue-on-error: ${{ matrix.experimental }}
13
+ continue-on-error: true
14
14
  strategy:
15
15
  fail-fast: false
16
16
  matrix:
17
- ruby: [ 2.7, 2.6, 2.5 ]
17
+ ruby: [ "3.0", 2.7, 2.6 ]
18
18
  os: [ ubuntu-latest, windows-latest, macos-latest ]
19
- experimental: [ false ]
20
19
  include:
21
- - ruby: "3.0"
20
+ - ruby: "3.1"
22
21
  os: 'ubuntu-latest'
23
- experimental: true
24
- - ruby: "3.0"
25
- os: 'windows-latest'
26
- experimental: true
27
- - ruby: "3.0"
22
+ - ruby: "3.2"
23
+ os: 'ubuntu-latest'
24
+ - ruby: "3.1"
25
+ os: 'macos-latest'
26
+ - ruby: "3.2"
28
27
  os: 'macos-latest'
29
- experimental: true
30
28
 
31
29
  env:
32
30
  BUNDLE_WITHOUT: "secryst"
@@ -19,7 +19,7 @@ jobs:
19
19
 
20
20
  - uses: ruby/setup-ruby@v1
21
21
  with:
22
- ruby-version: '2.7'
22
+ ruby-version: '3.0'
23
23
 
24
24
  - uses: actions/setup-node@v1
25
25
  with:
@@ -44,6 +44,7 @@ jobs:
44
44
  RUBYGEMS_API_KEY: ${{secrets.INTERSCRIPT_RUBYGEMS_API_KEY}}
45
45
  run: |
46
46
  gem install gem-release
47
+ mkdir -p ~/.gem
47
48
  touch ~/.gem/credentials
48
49
  cat > ~/.gem/credentials << EOF
49
50
  ---
@@ -20,13 +20,12 @@ class Interscript::DSL::Metadata
20
20
 
21
21
  STANDARD_STRING_KEYS = %i{authority_id id
22
22
  language source_script destination_script
23
- name url creation_date adoption_date description
24
- character source confirmation_date}
23
+ name creation_date adoption_date description
24
+ character source confirmation_date original_description}
25
25
 
26
- STANDARD_ARRAY_KEYS = %i{notes}
26
+ STANDARD_ARRAY_KEYS = %i{notes implementation_notes original_notes url}
27
27
 
28
- NONSTANDARD_KEYS = %i{special_rules original_description original_notes
29
- implementation_notes}
28
+ NONSTANDARD_KEYS = %i{special_rules}
30
29
 
31
30
  NECESSARY_KEYS = %i{name language source_script destination_script}
32
31
 
@@ -76,7 +76,12 @@ module Interscript::DSL
76
76
  yaml = if yaml =~ /\A\s*\z/
77
77
  {}
78
78
  else
79
- YAML.load(yaml, filename: exc_fname)
79
+ unsafe_load = if YAML.respond_to? :unsafe_load
80
+ :unsafe_load
81
+ else
82
+ :load
83
+ end
84
+ YAML.public_send(unsafe_load, yaml, filename: exc_fname)
80
85
  end
81
86
 
82
87
  md = Interscript::DSL::Metadata.new(yaml: true, map_name: map_name, library: library) do
@@ -1,3 +1,3 @@
1
1
  module Interscript
2
- VERSION = "2.4.3"
2
+ VERSION = "2.4.5"
3
3
  end
@@ -35,7 +35,7 @@
35
35
 
36
36
  <% case k
37
37
  when :url %>
38
- <dd><a href="<%= h v %>"><%= h v %></a>
38
+ <dd><% v.each do |i| %><a href="<%= h i %>"><%= h i %></a><% if i != v.last %>; <% end %><% end %>
39
39
  <% when :notes, :implementation_notes, :special_rules, :original_notes, :original_description # We ignore notes for now %>
40
40
  <% else %>
41
41
  <dd><%= h v %>
@@ -43,4 +43,4 @@
43
43
  <% end %>
44
44
  </dl>
45
45
 
46
- <%= render_stage(self.map.name, :main) %>
46
+ <%= render_stage(self.map.name, :main) %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.1.6
170
+ rubygems_version: 3.2.33
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Interoperable script conversion systems