xmlconv 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -5
- data/History.txt +4 -0
- data/lib/xmlconv/util/mail.rb +10 -1
- data/lib/xmlconv/util/polling_manager.rb +0 -1
- data/lib/xmlconv/version.rb +1 -1
- data/test/test_util/polling_manager.rb +0 -1
- data/xmlconv.gemspec +22 -12
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928d1958cca3ce3b7b88389d014dcfe7f647b655
|
4
|
+
data.tar.gz: a8ef051d1bb10a4cc410432d413cfacbdce2011e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074360a0275a7f343b92765b8e5963262321ea576762d9df1352000b69eec4e834451381aaaf6134bbc89f81f8d568ef95dfb147d629b0472c27afb702ee3846
|
7
|
+
data.tar.gz: c3cb6d0ec48291cad2e94c4adbcced859589891b330d16b1ac36d907641b344cb2e4e0fb525cd6c0051450dfe40fb6769193247503bc2020fd8f14b4cf68a7c5
|
data/Gemfile
CHANGED
data/History.txt
CHANGED
data/lib/xmlconv/util/mail.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Util::Mail -- XmlConv -- 23.04.2009 -- hwyss@ywesee.com
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'net/smtp'
|
5
|
+
unless /^1\.8/.match(RUBY_VERSION)
|
6
|
+
require 'mail'
|
7
|
+
end
|
8
|
+
|
5
9
|
require 'xmlconv/config'
|
6
10
|
|
7
11
|
module XmlConv
|
@@ -9,6 +13,11 @@ module XmlConv
|
|
9
13
|
module Mail
|
10
14
|
SMTP_HANDLER = Net::SMTP
|
11
15
|
def Mail.notify recipients, my_subject, my_body
|
16
|
+
unless /^1\.8/.match(RUBY_VERSION)
|
17
|
+
puts "XmlConv::Util::Mail.notify #{ XmlConv::CONFIG.mail_from} -> #{recipients} subject: #{my_subject}"
|
18
|
+
puts "Skipping as RUBY_VERSON is #{RUBY_VERSION}"
|
19
|
+
return
|
20
|
+
end
|
12
21
|
recipients.flatten!
|
13
22
|
recipients.compact!
|
14
23
|
recipients.uniq!
|
data/lib/xmlconv/version.rb
CHANGED
data/xmlconv.gemspec
CHANGED
@@ -21,25 +21,35 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency "ydbd-pg", '>= 0.5.1'
|
22
22
|
spec.add_dependency "ydbi", '>= 0.5.1'
|
23
23
|
spec.add_dependency "json"
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
# Must not include mail and use specific old version of some gems to
|
25
|
+
# allow mod_ruby compiled against Ruby 1.8.6 as on fastpower
|
26
|
+
if /^1\./.match(RUBY_VERSION)
|
27
|
+
spec.add_dependency "sbsm", '1.2.6'
|
28
|
+
spec.add_dependency "htmlgrid", '1.0.7'
|
29
|
+
spec.add_dependency "ydim", '1.0.0'
|
30
|
+
spec.add_dependency "hpricot", '0.8.2'
|
31
|
+
else
|
32
|
+
spec.add_dependency "sbsm"
|
33
|
+
spec.add_dependency "htmlgrid"
|
34
|
+
spec.add_dependency "ydim"
|
35
|
+
spec.add_dependency "syck"
|
36
|
+
spec.add_dependency "mail" # avoid it to make it run
|
37
|
+
end
|
29
38
|
spec.add_dependency "rclconf"
|
30
39
|
spec.add_dependency "needle"
|
31
40
|
spec.add_dependency "ypdf-writer"
|
32
|
-
spec.add_dependency "hpricot"
|
33
41
|
spec.add_runtime_dependency 'deprecated', '= 2.0.1'
|
34
42
|
|
35
43
|
spec.add_runtime_dependency "yus"
|
36
44
|
|
37
45
|
spec.add_development_dependency "bundler"
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
46
|
+
unless /^1\.8/.match(RUBY_VERSION)
|
47
|
+
spec.add_development_dependency "simplecov"
|
48
|
+
spec.add_development_dependency "rake"
|
49
|
+
spec.add_development_dependency "flexmock"
|
50
|
+
spec.add_development_dependency "minitest"
|
51
|
+
spec.add_development_dependency "minitest-should_syntax"
|
52
|
+
spec.add_development_dependency "rspec"
|
53
|
+
end
|
44
54
|
end
|
45
55
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlconv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0
|
103
|
+
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: syck
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,20 +178,6 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: hpricot
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :runtime
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
195
181
|
- !ruby/object:Gem::Dependency
|
196
182
|
name: deprecated
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|