metanorma-csa 1.5.1 → 1.5.2

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: ddc27e55dc5dac85bfaafa9a0d8cfb3be149d42a17490104ce64072ad6015ec2
4
- data.tar.gz: e2d46a9172404568064d156734a176869066f42e01be20d88355c9fc718e2a24
3
+ metadata.gz: fa91c7163ef9be8be7e6b54f09646f317c411b85c2e14b7a2e14c25bbb0abc24
4
+ data.tar.gz: fe2d261b2105752f2acd4b5f0ef85b6b8120a110f9795ba10ba4b49f3f791d74
5
5
  SHA512:
6
- metadata.gz: 96bb44e19a70800c03c91b172cac354be7015f3d4d2baba2e250cd0ed7cf2d812167432e21f2bf825cb387c7b063bafa6bcffd0d91e2699ceacff4e4a76ddb29
7
- data.tar.gz: 1779cd65d78b93ecdf69a0f544bd29b122e1dc645445091e458aebbb35162b7e2941d8d51aeb287ed889c675835c6a7fb06f773ee5a462f00be4c182e8c23363
6
+ metadata.gz: faef521ddb8297018d36d7b7305b50ea829e02af39886eaee8eed758833bfcdd3a201f55b46897a98d4371a01b5b9d67f3e7d693abfda3f3fdbf5f10f118dbab
7
+ data.tar.gz: f7952af6729290612fc4962c49bce0cc1dc5b4af550d637de30c98609753275e479798b407046dd67ee2e1d918b7603741c290688b5fd0c21b10818e3847051c
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
+ require 'isodoc/gem_tasks'
3
4
 
5
+ IsoDoc::GemTasks.install
4
6
  RSpec::Core::RakeTask.new(:spec)
5
7
 
6
8
  task :default => :spec
@@ -3659,6 +3659,7 @@ JP5/AQYA3Lt5kGz07MoAAAAASUVORK5CYII=
3659
3659
  <fo:inline padding-right="2mm">
3660
3660
 
3661
3661
 
3662
+
3662
3663
  <xsl:variable name="title-note">
3663
3664
  <xsl:call-template name="getTitle">
3664
3665
  <xsl:with-param name="name" select="'title-note'"/>
@@ -4690,4 +4691,35 @@ JP5/AQYA3Lt5kGz07MoAAAAASUVORK5CYII=
4690
4691
  </xsl:if>
4691
4692
  </xsl:template><xsl:template name="getDocumentId">
4692
4693
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
4694
+ </xsl:template><xsl:template name="namespaceCheck">
4695
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
4696
+ <xsl:variable name="XSLNS">
4697
+
4698
+
4699
+
4700
+
4701
+
4702
+
4703
+
4704
+
4705
+ <xsl:value-of select="document('')//*/namespace::csa"/>
4706
+
4707
+
4708
+
4709
+
4710
+
4711
+ </xsl:variable>
4712
+ <xsl:if test="$documentNS != $XSLNS">
4713
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
4714
+ </xsl:if>
4715
+ </xsl:template><xsl:template name="getLanguage">
4716
+ <xsl:param name="lang"/>
4717
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
4718
+ <xsl:choose>
4719
+ <xsl:when test="$language = 'en'">English</xsl:when>
4720
+ <xsl:when test="$language = 'fr'">French</xsl:when>
4721
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
4722
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
4723
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
4724
+ </xsl:choose>
4693
4725
  </xsl:template></xsl:stylesheet>
@@ -804,4 +804,3 @@ nav h1:hover a:after {
804
804
  }
805
805
 
806
806
  }
807
-
@@ -1155,4 +1155,3 @@ ol
1155
1155
  ul
1156
1156
  {margin-bottom:0cm;
1157
1157
  margin-left:18pt;}
1158
-
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Csa
5
- VERSION = '1.5.1'
5
+ VERSION = '1.5.2'
6
6
  end
7
7
  end
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "isodoc", "~> 1.1.0"
41
41
 
42
42
  spec.add_development_dependency "byebug", "~> 9.1"
43
+ spec.add_development_dependency "sassc", "2.4.0"
43
44
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
44
45
  spec.add_development_dependency "guard", "~> 2.14"
45
46
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.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: 2020-07-10 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '9.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sassc
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '='
144
+ - !ruby/object:Gem::Version
145
+ version: 2.4.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: 2.4.0
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: equivalent-xml
141
155
  requirement: !ruby/object:Gem::Requirement