mymedia-kvx 0.4.1 → 0.4.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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mymedia-kvx.rb +20 -4
- metadata +41 -38
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8d32d726d749769fd1707e68502b87204fc432719b0ae7b3559b7a5fa81da0c6
|
4
|
+
data.tar.gz: 30599fe8bb273834258e4cbb3ff75e6f5ca9236086d7aadf57c34cf4090be059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8748b1dea5edd3a4f3ff20d9348cd90bacd30ec3de7de07a304a198f557894662220b537274e8803a08e3df301b8b67584a1b4db07837deb970d4d3506a60270
|
7
|
+
data.tar.gz: 85f6ad536491030935706185718a5164f8d85d1171075389e2f61ec0c978d465b4dfdce5f82be5d16ccc10f6b6835bc00b2086b1dca99d7a0baa9fd66fd43797
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/mymedia-kvx.rb
CHANGED
@@ -33,7 +33,7 @@ class MyMediaKvx < MyMedia::Base
|
|
33
33
|
@media_src
|
34
34
|
end
|
35
35
|
|
36
|
-
def copy_publish(filename, raw_msg='')
|
36
|
+
def copy_publish(filename, raw_msg='', &blk)
|
37
37
|
|
38
38
|
src_path = File.join(@media_src, filename)
|
39
39
|
raise "file not found : " + src_path unless File.exists? src_path
|
@@ -71,8 +71,23 @@ class MyMediaKvx < MyMedia::Base
|
|
71
71
|
#jr010816 File.write raw_destination, \
|
72
72
|
# xsltproc("#{@home}/r/xsl/#{@public_type}.xsl", raw_dest_xml)
|
73
73
|
|
74
|
+
|
75
|
+
if block_given? then
|
76
|
+
|
77
|
+
a = blk.call({home: @home, www: @www, destination: destination,
|
78
|
+
dest_xml: dest_xml})
|
79
|
+
a.each do |xsl, outfile|
|
80
|
+
|
81
|
+
puts 'xsl: ' + xsl.inspect
|
82
|
+
puts 'outfile: ' + outfile.inspect
|
83
|
+
|
84
|
+
File.write outfile, xsltproc(xsl, dest_xml)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
74
88
|
File.write destination, \
|
75
89
|
xsltproc("#{@home}/#{@www}/xsl/#{@public_type}.xsl", dest_xml)
|
90
|
+
|
76
91
|
|
77
92
|
if not File.basename(src_path)[/#{@prefix}\d{6}T\d{4}\.txt/] then
|
78
93
|
|
@@ -107,7 +122,8 @@ class MyMediaKvx < MyMedia::Base
|
|
107
122
|
|
108
123
|
buffer = File.read(src_path)
|
109
124
|
buffer2 = buffer.gsub(/\[[xX]\]/,'✓').gsub(/\[\s*\]/,'.')
|
110
|
-
|
125
|
+
puts 'buffer2: ' + buffer2.inspect
|
126
|
+
|
111
127
|
@kvx = Kvx.new(buffer2.strip)
|
112
128
|
|
113
129
|
title = kvx.summary[:title]
|
@@ -125,7 +141,7 @@ class MyMediaKvx < MyMedia::Base
|
|
125
141
|
source = txt_destination[/\/#{@public_type}.*/]
|
126
142
|
relative_path = '/r' + source
|
127
143
|
|
128
|
-
kvx.summary[:source_url] = relative_path
|
144
|
+
kvx.summary[:source_url] = File.dirname(relative_path)
|
129
145
|
kvx.summary[:source_file] = File.basename(txt_destination)
|
130
146
|
kvx.summary[:published] = Time.now.strftime("%d-%m-%Y %H:%M")
|
131
147
|
kvx.summary[:xslt] = @xsl unless kvx.summary[:xslt]
|
@@ -163,4 +179,4 @@ class MyMediaKvx < MyMedia::Base
|
|
163
179
|
#jr010817 Rexslt.new(xslpath, xmlpath).to_s
|
164
180
|
end
|
165
181
|
|
166
|
-
end
|
182
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mymedia-kvx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkxMTI5MjM1MDMzWhcN
|
15
|
+
MjAxMTI4MjM1MDMzWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCnYM5p
|
17
|
+
jZXQlek28GWoaaj6tDbRgGoVqDQZELqGJ5Z2P6HAArZKIybVqOn1febq/Hofz2P2
|
18
|
+
WJajB4lqXN+hEuxLeOnaU5idWPMa+WFwIIzbK0pz3R41H7Ie1X/gUjlQjhwbOla2
|
19
|
+
bSp1S0UfBqlhQaVV52x5On9WPdgkS8MOlIAtiB/w7eluUN6P7DIHNhURRxeDiY/C
|
20
|
+
0iZ8vnYPfrS9er5Nbni5icid2clBjUiuyL4ObmSQUsNZ6gK8iaHISczpyigmXERA
|
21
|
+
uTTANB7kHpD7oqKimyS1j0ObIFjo2wxS52Urfp8bsKbuLwoP8baaQoZ3cc5QWBKx
|
22
|
+
lgv9t3I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37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2019-11-29 00:00:00.000000000 Z
|
35
39
|
dependencies:
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: mymedia
|
@@ -42,7 +46,7 @@ dependencies:
|
|
42
46
|
version: '0.2'
|
43
47
|
- - ">="
|
44
48
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.2.
|
49
|
+
version: 0.2.14
|
46
50
|
type: :runtime
|
47
51
|
prerelease: false
|
48
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,47 +56,47 @@ dependencies:
|
|
52
56
|
version: '0.2'
|
53
57
|
- - ">="
|
54
58
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.2.
|
59
|
+
version: 0.2.14
|
56
60
|
- !ruby/object:Gem::Dependency
|
57
61
|
name: martile
|
58
62
|
requirement: !ruby/object:Gem::Requirement
|
59
63
|
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0.6'
|
63
64
|
- - ">="
|
64
65
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
66
|
+
version: 1.3.0
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.3'
|
66
70
|
type: :runtime
|
67
71
|
prerelease: false
|
68
72
|
version_requirements: !ruby/object:Gem::Requirement
|
69
73
|
requirements:
|
70
|
-
- - "~>"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '0.6'
|
73
74
|
- - ">="
|
74
75
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
+
version: 1.3.0
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.3'
|
76
80
|
- !ruby/object:Gem::Dependency
|
77
81
|
name: nokogiri
|
78
82
|
requirement: !ruby/object:Gem::Requirement
|
79
83
|
requirements:
|
80
84
|
- - "~>"
|
81
85
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
86
|
+
version: '1.10'
|
83
87
|
- - ">="
|
84
88
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.
|
89
|
+
version: 1.10.5
|
86
90
|
type: :runtime
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
93
|
requirements:
|
90
94
|
- - "~>"
|
91
95
|
- !ruby/object:Gem::Version
|
92
|
-
version: '1.
|
96
|
+
version: '1.10'
|
93
97
|
- - ">="
|
94
98
|
- !ruby/object:Gem::Version
|
95
|
-
version: 1.
|
99
|
+
version: 1.10.5
|
96
100
|
description:
|
97
101
|
email: james@jamesrobertson.eu
|
98
102
|
executables: []
|
@@ -119,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
123
|
- !ruby/object:Gem::Version
|
120
124
|
version: '0'
|
121
125
|
requirements: []
|
122
|
-
|
123
|
-
rubygems_version: 2.6.8
|
126
|
+
rubygems_version: 3.0.3
|
124
127
|
signing_key:
|
125
128
|
specification_version: 4
|
126
129
|
summary: Publishes Kvx files using the MyMedia framework
|
metadata.gz.sig
CHANGED
Binary file
|