mymedia-kvx 0.4.1 → 0.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
- SHA1:
3
- metadata.gz: b947f845e7ee95ffe5599d026936b339cd8cdfaa
4
- data.tar.gz: 0a677b5acf4400622fc1a5a3e4c2c14a6a48ea07
2
+ SHA256:
3
+ metadata.gz: 8d32d726d749769fd1707e68502b87204fc432719b0ae7b3559b7a5fa81da0c6
4
+ data.tar.gz: 30599fe8bb273834258e4cbb3ff75e6f5ca9236086d7aadf57c34cf4090be059
5
5
  SHA512:
6
- metadata.gz: e9c990e6f1fa26492b8df706b7ccd06e95f6d103b1f5ac798bfbabefb377941d6f1055ec9003cd3d0ffe8f1b08ec4cf1fff1ff55eef70438f3db103f59e50704
7
- data.tar.gz: c576a462b992863a08a29eecddd118a484e17204e947bc238823718531c0da7f303b2d669fcf3e23c3c65b77dda80c5e976b232aa9836ba6140ca0fc2fede640
6
+ metadata.gz: 8748b1dea5edd3a4f3ff20d9348cd90bacd30ec3de7de07a304a198f557894662220b537274e8803a08e3df301b8b67584a1b4db07837deb970d4d3506a60270
7
+ data.tar.gz: 85f6ad536491030935706185718a5164f8d85d1171075389e2f61ec0c978d465b4dfdce5f82be5d16ccc10f6b6835bc00b2086b1dca99d7a0baa9fd66fd43797
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.1
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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9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RMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUpYI/T8Rw
26
+ gAtP9AfiR1+QVyUHp8UwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
27
+ c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
28
+ BgkqhkiG9w0BAQsFAAOCAYEAk2KJSeZ6QB6sjBAT4yjIRd48g/HLN3PtS5JSBFff
29
+ 5AwxsaFvoQpwy3vwU1m1Lg52VOHcEK9rh0lOCPoe6Yg2ogwW9195wXJiS4z0NNxw
30
+ 4WLVLRxTuIoI1rE5tvYeENqldn2WifZR/vq6hmX9wRCT5vd+Z2BbUdNIGT90JNdL
31
+ URHPo28wPgiQIQS+ONMXvtYwj3SDgXgwGLOsztxF7PnQ9+1kMnUlSTpgwNXTjcv6
32
+ XzE56nRkKWRhVOtkIlQw/Q1Jj0e8i+gQVpMyLdM9J1d9t/dY6DLBOuw+Lrj+yPWE
33
+ Bm9re+VaDWuflPGpoCkGmH+TdK6fyTeT4dfCDYW245nnjP3QpZ1FnE+mejOTtVuG
34
+ ZRHcyY0YenlDO+2go3N7xI5SA9NF91UzxfxvrK6xLPTt5NCRGSo33i58aoJY5/EL
35
+ SKBmSTu1ZZIlSKnxMvpFZC9PFVTIDdY6MRKE7Ub4sJ5DFfVng/YpoKkxjpTndlLF
36
+ K/GHmryM4LMW5UBTUbBMES1A
33
37
  -----END CERTIFICATE-----
34
- date: 2017-08-01 00:00:00.000000000 Z
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.11
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.11
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: 0.6.26
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: 0.6.26
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.8'
86
+ version: '1.10'
83
87
  - - ">="
84
88
  - !ruby/object:Gem::Version
85
- version: 1.8.0
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.8'
96
+ version: '1.10'
93
97
  - - ">="
94
98
  - !ruby/object:Gem::Version
95
- version: 1.8.0
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
- rubyforge_project:
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