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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65dc4312e497e7913235d679653bef98f3c8ce5f
4
- data.tar.gz: 32da75b558aa0c515084969d3bb446f63e89696c
3
+ metadata.gz: 928d1958cca3ce3b7b88389d014dcfe7f647b655
4
+ data.tar.gz: a8ef051d1bb10a4cc410432d413cfacbdce2011e
5
5
  SHA512:
6
- metadata.gz: 76edc95f8256913e3e5cf0c82ea9cba3053d01cd0db50ff00c844c868c532caff52486784be40678203acada7e9b81f5bf013aa6adca9128545859ddf00b8cfa
7
- data.tar.gz: 324b07ce91080ca3d6cf0ec2e7eea93e8351f7d9e515299c7ac38660951ec34885fa2f727c3504b5cc41a7612ca4dbe37e784b38e4f2d71541951a7a85b2b3d1
6
+ metadata.gz: 074360a0275a7f343b92765b8e5963262321ea576762d9df1352000b69eec4e834451381aaaf6134bbc89f81f8d568ef95dfb147d629b0472c27afb702ee3846
7
+ data.tar.gz: c3cb6d0ec48291cad2e94c4adbcced859589891b330d16b1ac36d907641b344cb2e4e0fb525cd6c0051450dfe40fb6769193247503bc2020fd8f14b4cf68a7c5
data/Gemfile CHANGED
@@ -2,10 +2,8 @@ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  group :debugger do
5
- if RUBY_VERSION.match(/^1/)
6
- gem 'pry-debugger'
7
- else
8
- gem 'pry-byebug'
5
+ if RUBY_VERSION.match(/^2/)
6
+ gem 'pry-byebug'
9
7
  gem 'pry-doc'
10
- end
8
+ end
11
9
  end
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.7 / 21.06.2016
2
+
3
+ * Made it work running via mod_ruby with Ruby 1.8.6
4
+
1
5
  === 1.0.6 / 21.06.2016
2
6
 
3
7
  * Commented out debug message which was emitted every minute
@@ -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 'mail'
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!
@@ -8,7 +8,6 @@ require 'xmlconv/util/destination'
8
8
  require 'xmlconv/util/mail'
9
9
  require 'xmlconv/util/transaction'
10
10
  require 'net/pop'
11
- require 'mail'
12
11
 
13
12
  module XmlConv
14
13
  module Util
@@ -1,3 +1,3 @@
1
1
  module XmlConv
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
@@ -5,7 +5,6 @@ $: << File.expand_path('../../lib', File.dirname(__FILE__))
5
5
 
6
6
  require 'xmlconv/util/polling_manager'
7
7
  require 'config'
8
- require 'mail'
9
8
  require 'minitest/autorun'
10
9
  require 'flexmock/minitest'
11
10
 
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
- spec.add_dependency "sbsm"
25
- spec.add_dependency "htmlgrid"
26
- spec.add_dependency "ydim", '>= 0.5.1'
27
- spec.add_dependency "syck"
28
- spec.add_dependency "mail"
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
- spec.add_development_dependency "simplecov"
39
- spec.add_development_dependency "rake"
40
- spec.add_development_dependency "flexmock"
41
- spec.add_development_dependency "minitest"
42
- spec.add_development_dependency "minitest-should_syntax"
43
- spec.add_development_dependency "rspec"
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.6
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.5.1
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.5.1
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