cremefraiche 1.1.9 → 1.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: f3efc7d8f9fa09101a0c5ddeb4ccc42ff65a2ff1146e6384dd333fef7215caf7
4
- data.tar.gz: ce3983f14453cdf80d8ae9ec9a901c6fe0770f8babc36a25287bb3869f823b62
3
+ metadata.gz: f77d80c3b68961a05dfe0b13fa1573b6412a6fafe7668252849d421939900dc8
4
+ data.tar.gz: 1cde51638355051748a080f4efee166131c78d0a6c843003045595c9ded61331
5
5
  SHA512:
6
- metadata.gz: 22c0d331466b9ab3ec151722f5eab65ab00ed0068af2a212e2934b8d929bc2dbc2ce83a19a36e4c244da015ab56d8a219fe0b80f9784975a60c8b4e70b0fc23f
7
- data.tar.gz: 4ece41bcbad3152df4a0a1b4ad8168deb17bfb5b13e3a05f5744d9fc7753603ea4f1cf2c8545d40bc8956d538f54864315a2d4ee202069cc4d9b80913ee64b41
6
+ metadata.gz: d35e374c6350f5b0adf4ed09c18ffcd3345389af0ed80fc93279d8e9a0a69fea477b07bc63a6fea4c202cf9ad93cde4702509572f035c144ebd67e00c0a3debd
7
+ data.tar.gz: 07a8ffd0601e565c9cef6869862a70537bc2cb35b3a5e831be0d9b8ac805f1fa55cbae1f4dd37da7f85cdb1ff63152568ae0591f0ec97f16f4bb8b515cdcc573
data/cremefraiche.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.description = "transforms EML files to PDF"
10
10
  s.authors = Author
11
11
  s.email = Author_mail
12
- s.files = Dir.children('doc').collect{|f| 'doc/' << File::path(f)} + Dir.children('bin').collect{|f| 'bin/' << File::path(f)} + Dir.children('lib').collect{|f| 'lib/' << File::path(f) } + Dir.children('lib/gui/').collect{|f| 'lib/gui/' << File::path(f) } + Dir.children('lib/icon').collect{|f| 'lib/icon/' << File::path(f) } + Dir.children('lib/busy_indicator').collect{|f| 'lib/busy_indicator/' << File::path(f) } + %w~cremefraiche.gemspec~.collect{|f|f} << "README.md"
12
+ s.files = Dir.children('doc').collect{|f| 'doc/' << File::path(f)} + Dir.children('bin').collect{|f| 'bin/' << File::path(f)} + Dir.children('lib').collect{|f| 'lib/' << File::path(f) } + Dir.children('lib/gui/').collect{|f| 'lib/gui/' << File::path(f) } + Dir.children('lib/icon').collect{|f| 'lib/icon/' << File::path(f) } + Dir.children('lib/busy_indicator').collect{|f| 'lib/busy_indicator/' << File::path(f) } + ["cremefraiche.gemspec", "README.md"]
13
13
  s.homepage = ''
14
14
  s.requirements = 'prawn prawn-table escape nokogiri mail gtk3'
15
15
  s.add_runtime_dependency 'prawn', '~> 2.4', '>= 2.4.0'
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_runtime_dependency 'mail', '~> 2.8', '>= 2.8.0'
20
20
  s.add_runtime_dependency 'gtk3', '~> 4.0', '>= 4.0.5'
21
21
  s.executables = 'cremefraiche', 'cremefraicheGui'
22
- s.license = 'NONSTANDARD'
22
+ s.license = 'Nonstandard'
23
+ s.homepage = Web_page
23
24
  s.required_ruby_version = '>= 2.5'
24
25
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/emlfile.rb CHANGED
@@ -23,7 +23,7 @@ require 'mail'
23
23
  # Wraps the Mail-object (from the Mail-gem).
24
24
  class EmlFile
25
25
  include BasicLogging
26
-
26
+ # do not log for the time.
27
27
  BasicLogging::mute(self)
28
28
  include File_Checking
29
29
  include Translating
@@ -19,6 +19,8 @@ require_relative '../translating'
19
19
  require_relative '../file_checking'
20
20
  require_relative '../license.rb'
21
21
  require_relative '../basic_logging.rb'
22
+ require_relative '../version.rb'
23
+
22
24
 
23
25
  GD = File::expand_path(File::dirname(__FILE__) ) + File::Separator if !defined?(GD)
24
26
 
@@ -38,12 +40,12 @@ class AboutDialog
38
40
  def initialize( options = {})
39
41
 
40
42
  @adialog = Gtk::AboutDialog.new
41
- @adialog.name = @@prog_info[:app_name]
42
- @adialog.title = @@prog_info[:app_name]
43
- @adialog.set_program_name @@prog_info[:app_name]
44
- @adialog.version = @@prog_info[:version]
45
- @adialog.copyright = "© #{@@prog_info[:years]} #{@@prog_info[:author]} #{@@prog_info[:author_mail]}"
46
- @adialog.website = "#{@@prog_info[:web_page]}"
43
+ @adialog.name = App_name
44
+ @adialog.title = App_name
45
+ @adialog.set_program_name App_name
46
+ @adialog.version = VERSION
47
+ @adialog.copyright = "© #{YEARS} #{Author} #{Author_mail}"
48
+ @adialog.website = "#{Web_page}"
47
49
 
48
50
  @adialog.comments = @@info
49
51
  @adialog.license = LICENSE_TEXT
data/lib/html2text.rb CHANGED
@@ -36,14 +36,15 @@ class Html2Text
36
36
  html.gsub!("<br/>", "\n")
37
37
  html.gsub!("<br />", "\n")
38
38
  # Try to remove html-comments
39
- html.gsub! /\<!--.*(-->?)/, ''
39
+ #debug('removing comments')
40
+ html.gsub! /\<!--(.|\s)*?-->/m, ''
41
+ #debug(' comments removed')
40
42
  html.gsub! /\s+/, ' '
41
43
  @html = Nokogiri::HTML::fragment(html)
42
44
  define_tag_handlers if @html
43
45
  @out_text = ''
44
46
  end
45
47
 
46
- # def text(tag = @html)
47
48
  def text()
48
49
  @out_text = handle(@html)
49
50
  # remove empty lines
@@ -145,7 +146,6 @@ class Html2Text
145
146
  handle(value)
146
147
  end
147
148
 
148
-
149
149
  @@tag_handlers['title'] = Proc.new() do |value|
150
150
  "<b>" << handle(value ) << "</b>\n"
151
151
  end
data/lib/version.rb CHANGED
@@ -16,8 +16,8 @@
16
16
  =end
17
17
 
18
18
  YEARS="2011 - 2023"
19
- VERSION="1.1.9"
20
- SUMMARY="Bugfix for invalid log-levels, undefined method error in the executable"
19
+ VERSION="1.2"
20
+ SUMMARY="Better HTML-handling, more HTML supported."
21
21
 
22
22
  App_name = 'Creme Fraiche'
23
23
  Author = 'Michael Uplawski'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cremefraiche
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Uplawski
@@ -143,7 +143,17 @@ files:
143
143
  - bin/cremefraicheGui
144
144
  - cremefraiche.gemspec
145
145
  - doc/gui_howto.pdf
146
- - lib/.translations.swp
146
+ - lib/.basic_logging.rb.swp
147
+ - lib/.cfprawn.rb.swp
148
+ - lib/.confcheck.rb.swp
149
+ - lib/.configuration.rb.swp
150
+ - lib/.cremefraiche.rb.swp
151
+ - lib/.emlfile.rb.swp
152
+ - lib/.file_checking.rb.swp
153
+ - lib/.html2text.rb.swp
154
+ - lib/.license.rb.swp
155
+ - lib/.tag_munging.rb.swp
156
+ - lib/.version.rb.swp
147
157
  - lib/LANG
148
158
  - lib/basic_logging.rb
149
159
  - lib/busy_indicator/.busy_function_test.rb.swp
@@ -195,9 +205,9 @@ files:
195
205
  - lib/translating.rb
196
206
  - lib/translations
197
207
  - lib/version.rb
198
- homepage: ''
208
+ homepage: http://www.rubygems.org/gems/cremefraiche
199
209
  licenses:
200
- - NONSTANDARD
210
+ - Nonstandard
201
211
  metadata: {}
202
212
  post_install_message:
203
213
  rdoc_options: []
@@ -218,5 +228,5 @@ requirements:
218
228
  rubygems_version: 3.4.20
219
229
  signing_key:
220
230
  specification_version: 4
221
- summary: Bugfix for invalid log-levels, undefined method error in the executable
231
+ summary: Better HTML-handling, more HTML supported.
222
232
  test_files: []
Binary file