metanorma-cc 1.4.1 → 1.4.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: e2bb191229791d77c83cec84240e490aaf56dd62454afcad3aab677c2ba52b52
4
- data.tar.gz: e7d7b85ea2259439917da4fac0fb9b9286742f82948dade64902b42ab9163d81
3
+ metadata.gz: 6ccd3c862d1d967d0782115e2319f5d9c41a1346a06b85fa1cbd25626101b939
4
+ data.tar.gz: 10076bc4151a870b5f219461fa29ffd062bfe6888800daf923ecf4475b1c887a
5
5
  SHA512:
6
- metadata.gz: f6c96036c914a157bb40d42a746fe847a20fff7d8c05f9594dc40e7f49c9b3b9f6433e4eb3f5615f71efe41f17ecb0e8d2a0e97ce2ed3075321ae9c99ed922f5
7
- data.tar.gz: a39de6a03cca0da97c0e985a3b4a9c24ef6bfbef8fd653d38507356ccec59448530c39b4003326dbb07f607b73756bff9b5cbadf72a3438c8e6b5ed9aeb5d965
6
+ metadata.gz: 27ebb897618ae5d5bc58ea3e0e9831435268f509c6dc0cc3920c17e6f66c84b79decb38f57d27b70ef4835fd7c5715224cd488c2d200391e6dd365f417191b31
7
+ data.tar.gz: 0c4646dd8aaaf21ff10b0f7becf143973566c801dec65bb6b5fa3b8d0f04e6a8a836f7e74ce6116e0467e93abad9ac7a4b2e753310ee96858d44d2a9c449febd
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
@@ -2171,6 +2171,7 @@
2171
2171
  <fo:inline padding-right="2mm">
2172
2172
 
2173
2173
 
2174
+
2174
2175
  <xsl:variable name="title-note">
2175
2176
  <xsl:call-template name="getTitle">
2176
2177
  <xsl:with-param name="name" select="'title-note'"/>
@@ -3225,4 +3226,35 @@
3225
3226
  </xsl:if>
3226
3227
  </xsl:template><xsl:template name="getDocumentId">
3227
3228
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
3229
+ </xsl:template><xsl:template name="namespaceCheck">
3230
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
3231
+ <xsl:variable name="XSLNS">
3232
+
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+
3239
+
3240
+
3241
+ <xsl:value-of select="document('')//*/namespace::csd"/>
3242
+
3243
+
3244
+
3245
+
3246
+ </xsl:variable>
3247
+ <xsl:if test="$documentNS != $XSLNS">
3248
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
3249
+ </xsl:if>
3250
+ </xsl:template><xsl:template name="getLanguage">
3251
+ <xsl:param name="lang"/>
3252
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
3253
+ <xsl:choose>
3254
+ <xsl:when test="$language = 'en'">English</xsl:when>
3255
+ <xsl:when test="$language = 'fr'">French</xsl:when>
3256
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
3257
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
3258
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
3259
+ </xsl:choose>
3228
3260
  </xsl:template></xsl:stylesheet>
@@ -1,3 +1,5 @@
1
+ @import 'base_style/all';
2
+
1
3
  .coverpage {
2
4
  text-align: center;
3
5
  padding-left: 1.5em;
@@ -1154,4 +1154,3 @@ ol
1154
1154
  ul
1155
1155
  {margin-bottom:0cm;
1156
1156
  margin-left:18pt;}
1157
-
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "1.4.1"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency "isodoc", "~> 1.1.0"
33
33
 
34
34
  spec.add_development_dependency "byebug", "~> 9.1"
35
+ spec.add_development_dependency "sassc", "2.4.0"
35
36
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
36
37
  spec.add_development_dependency "guard", "~> 2.14"
37
38
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.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: metanorma-standoc
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '9.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sassc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.4.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 2.4.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: equivalent-xml
57
71
  requirement: !ruby/object:Gem::Requirement