swissmedic-diff 0.2.9 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19f01fbc8c05af3fb278f60dfd6178e70b9f8a677ff133a1d0e0d13fc838ec58
4
- data.tar.gz: 1f3db9c21bdff31bf23688d410947885af394ac449a477cf8514e6288b6c5c0e
3
+ metadata.gz: dbedd2453003bfa00e428d41445471400b23c016a04cc19708dd13e82a390192
4
+ data.tar.gz: 3df6a9a5b8f38e6f0016c35e4c8eb8b6b3aefc3b5d01cbda1ff86c2fca451ce4
5
5
  SHA512:
6
- metadata.gz: 47ee5d408db72535624e955106475e1769ddd53bd1a7913e277478865ae0456b0ed7da0c2ae483821e8ec7e53f6098c5058d65bf32dd826a4cdab9940b14b895
7
- data.tar.gz: bddc6043f86be354fa31727ed8b2fd6cf3f0069ddc6065b4431beae2993a6a77e7291a32935da674047d840c4816e016e0faa3665f11df54880571639b08bf3c
6
+ metadata.gz: 4f0c588ba8a0949c18015b582a37084406d6b79394fd2bd6e7452c1f79199232594f637d569f018da135e4500ff4fb1be5af563887f9a38a29807dc9e5722b08
7
+ data.tar.gz: 4c07343f38c2322d6a872af07855b5006e310f3e3dc0d6c4a1ed3e62544b344044260c6b8af40160c029dc15e2974d165e7eaffcd3957281e4f6ff640ea1a6e2
data/Gemfile CHANGED
@@ -1,12 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
-
5
- group :debugger do
6
- if RUBY_VERSION.match(/^1/)
7
- gem 'pry-debugger'
8
- else
9
- gem 'pry-byebug'
10
- gem 'pry-doc'
11
- end
12
- end unless RUBY_VERSION =~ /^1\.8/
data/Gemfile.lock CHANGED
@@ -1,64 +1,114 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swissmedic-diff (0.2.9)
4
+ swissmedic-diff (0.3.1)
5
5
  logger
6
6
  nokogiri
7
7
  ostruct
8
- rubyXL (>= 3.3.1)
9
8
  rubyzip
10
- spreadsheet
9
+ simple_xlsx_reader
11
10
 
12
11
  GEM
13
12
  remote: https://rubygems.org/
14
13
  specs:
15
14
  ansi (1.5.0)
16
- bigdecimal (3.1.9)
15
+ ast (2.4.3)
17
16
  builder (3.3.0)
18
- byebug (11.1.3)
19
- coderay (1.1.3)
20
- logger (1.6.4)
21
- method_source (1.1.0)
22
- minitest (5.25.4)
17
+ date (3.5.1)
18
+ debug (1.11.1)
19
+ irb (~> 1.10)
20
+ reline (>= 0.3.8)
21
+ erb (6.0.1)
22
+ io-console (0.8.2)
23
+ irb (1.16.0)
24
+ pp (>= 0.6.0)
25
+ rdoc (>= 4.0.0)
26
+ reline (>= 0.4.2)
27
+ json (2.18.0)
28
+ language_server-protocol (3.17.0.5)
29
+ lint_roller (1.1.0)
30
+ logger (1.7.0)
31
+ minitest (6.0.1)
32
+ prism (~> 1.5)
23
33
  minitest-reporters (1.7.1)
24
34
  ansi
25
35
  builder
26
36
  minitest (>= 5.0)
27
37
  ruby-progressbar
28
- nokogiri (1.18.1-x86_64-linux-gnu)
38
+ nokogiri (1.19.0-x86_64-linux-gnu)
29
39
  racc (~> 1.4)
30
- ostruct (0.6.1)
31
- pry (0.14.2)
32
- coderay (~> 1.1)
33
- method_source (~> 1.0)
34
- pry-byebug (3.10.1)
35
- byebug (~> 11.0)
36
- pry (>= 0.13, < 0.15)
37
- pry-doc (1.5.0)
38
- pry (~> 0.11)
39
- yard (~> 0.9.11)
40
+ ostruct (0.6.3)
41
+ parallel (1.27.0)
42
+ parser (3.3.10.0)
43
+ ast (~> 2.4.1)
44
+ racc
45
+ pp (0.6.3)
46
+ prettyprint
47
+ prettyprint (0.2.0)
48
+ prism (1.7.0)
49
+ psych (5.3.1)
50
+ date
51
+ stringio
40
52
  racc (1.8.1)
41
- rake (13.2.1)
42
- ruby-ole (1.2.13.1)
53
+ rainbow (3.1.1)
54
+ rake (13.3.1)
55
+ rdoc (7.0.3)
56
+ erb
57
+ psych (>= 4.0.0)
58
+ tsort
59
+ regexp_parser (2.11.3)
60
+ reline (0.6.3)
61
+ io-console (~> 0.5)
62
+ rubocop (1.81.7)
63
+ json (~> 2.3)
64
+ language_server-protocol (~> 3.17.0.2)
65
+ lint_roller (~> 1.1.0)
66
+ parallel (~> 1.10)
67
+ parser (>= 3.3.0.2)
68
+ rainbow (>= 2.2.2, < 4.0)
69
+ regexp_parser (>= 2.9.3, < 3.0)
70
+ rubocop-ast (>= 1.47.1, < 2.0)
71
+ ruby-progressbar (~> 1.7)
72
+ unicode-display_width (>= 2.4.0, < 4.0)
73
+ rubocop-ast (1.49.0)
74
+ parser (>= 3.3.7.2)
75
+ prism (~> 1.7)
76
+ rubocop-performance (1.26.1)
77
+ lint_roller (~> 1.1)
78
+ rubocop (>= 1.75.0, < 2.0)
79
+ rubocop-ast (>= 1.47.1, < 2.0)
43
80
  ruby-progressbar (1.13.0)
44
- rubyXL (3.4.33)
45
- nokogiri (>= 1.10.8)
46
- rubyzip (>= 1.3.0)
47
- rubyzip (2.4.1)
48
- spreadsheet (1.3.3)
49
- bigdecimal
50
- ruby-ole
51
- yard (0.9.37)
81
+ rubyzip (3.2.2)
82
+ simple_xlsx_reader (5.1.0)
83
+ nokogiri
84
+ rubyzip
85
+ standard (1.52.0)
86
+ language_server-protocol (~> 3.17.0.2)
87
+ lint_roller (~> 1.0)
88
+ rubocop (~> 1.81.7)
89
+ standard-custom (~> 1.0.0)
90
+ standard-performance (~> 1.8)
91
+ standard-custom (1.0.2)
92
+ lint_roller (~> 1.0)
93
+ rubocop (~> 1.50)
94
+ standard-performance (1.9.0)
95
+ lint_roller (~> 1.1)
96
+ rubocop-performance (~> 1.26.0)
97
+ stringio (3.2.0)
98
+ tsort (0.2.0)
99
+ unicode-display_width (3.2.0)
100
+ unicode-emoji (~> 4.1)
101
+ unicode-emoji (4.2.0)
52
102
 
53
103
  PLATFORMS
54
104
  x86_64-linux
55
105
 
56
106
  DEPENDENCIES
107
+ debug
57
108
  minitest
58
109
  minitest-reporters
59
- pry-byebug
60
- pry-doc
61
110
  rake
111
+ standard
62
112
  swissmedic-diff!
63
113
 
64
114
  BUNDLED WITH
@@ -1,74 +1,91 @@
1
- === 0.2.9 / 07.01.2025
1
+ # 0.3.1 / 09.01.2026
2
+ * Ruby 4.0 to tests
3
+ * Added stat method to show the result of the diff
4
+ * Fixes for running bundle exec ruby bin/swissmedic-diff
5
+ * Use standardrb to format the code
6
+ * Removed unused constant GALFORM_P
7
+ * Requires at least Ruby 2.6
8
+
9
+ # 0.3.0 / 05.07.2025
10
+
11
+ * Use simple_xlsx_reader insted of RubyXL to speed up comparision
12
+ * Use standardrb to format the code
13
+ * Added minimal ruby-version and license to gemspec
14
+ * Removed testing and code for Swissmedic-Packages older than 2019
15
+ * Remove obsolete file setup.rb
16
+ * Replaced pry by debug
17
+
18
+ # 0.2.9 / 07.01.2025
2
19
 
3
20
  * Eliminated warning because of frozen string under Ruby 3.4
4
21
  * Added devenv environment for Ruby 3.4 (see https://devenv.sh/)
5
22
 
6
- === 0.2.8 / 04.10.2023
23
+ # 0.2.8 / 04.10.2023
7
24
 
8
25
  * Fix problem when expiration_date is a string 'Unbegrenzt'
9
26
  * Updated tests
10
27
  * Added Ruby 3.2 for running github/workflow tests
11
28
 
12
- === 0.2.7 / 13.03.2019
29
+ # 0.2.7 / 13.03.2019
13
30
 
14
31
  * Set date to nil when expiration_date is a string 'Unbegrenzt'
15
32
 
16
- === 0.2.6 / 13.02.2019
33
+ # 0.2.6 / 13.02.2019
17
34
 
18
35
  * Adapt to swissmedic new XLSX files
19
36
 
20
- === 0.2.5 / 05.02.2018
37
+ # 0.2.5 / 05.02.2018
21
38
 
22
39
  * Adapte to swissmedic fixing a typo for betäubunsmittel
23
40
  * Run travis tests for ruby 2.5, too
24
41
 
25
- === 0.2.3 / 25.09.2017
42
+ # 0.2.3 / 25.09.2017
26
43
 
27
44
  * Fix comparing Date cells
28
45
  * Run travis tests for ruby 2.3 and 2.4
29
46
 
30
- === 0.2.2 / 11.01.2016
47
+ # 0.2.2 / 11.01.2016
31
48
 
32
49
  * Don't fail if date cells are nil
33
50
  * Show version of gem with -h
34
51
  * Use /usr/bin/env ruby to get actual ruby. Was fixed to outdated /usr/bin/ruby18
35
52
  * Run travis tests for ruby 2.2.3, too.
36
53
 
37
- === 0.2.1 / 06.07.2015
54
+ # 0.2.1 / 06.07.2015
38
55
 
39
56
  * Fix problems comparing dates (using to_date.start)
40
57
  * Assume nothing has changed when comparing nil with an emtpy string
41
58
  * Revert nr of paramenters of diff method to previous version, to make oddb.org happy again
42
59
 
43
- === 0.2.0 / 03.07.2015
60
+ # 0.2.0 / 03.07.2015
44
61
 
45
62
  * Abort if Swissmedic introduces incompatible header lines
46
63
  * Support new format of SwissMedic July 2015
47
64
  * Reworked compating xlsx-files
48
65
  * Remove support for old .xls-format (used before 2013)
49
66
 
50
- === 0.1.9 / 08.06.2015
67
+ # 0.1.9 / 08.06.2015
51
68
 
52
69
  * Swissmedic has different header lines
53
70
 
54
- === 0.1.8 / 07.07.2014
71
+ # 0.1.8 / 07.07.2014
55
72
 
56
73
  * Support parsing xlsx of Swissmedic July
57
74
 
58
- === 0.1.7 / 15.01.2014
75
+ # 0.1.7 / 15.01.2014
59
76
 
60
77
  * Support comparing xls and xslx files
61
78
  * Must use rubyzip 0.9.9 to support all ruby versions
62
79
  * Added debugger to Gemfile
63
80
 
64
- === 0.1.6 / 14.01.2014
81
+ # 0.1.6 / 14.01.2014
65
82
 
66
83
  * Added test/data/Packungen-2014.xlsx
67
84
  * Added missing dependencies for rubyXL
68
85
  * Moved VERSION to separate file
69
86
  * Use rubyXL for xslx files
70
87
 
71
- === 0.1.5 / 11.12.2013
88
+ # 0.1.5 / 11.12.2013
72
89
 
73
90
  * Updated tests as we no longer raise an error
74
91
  * Update to spreadsheet 0.9.6
@@ -76,13 +93,13 @@
76
93
  * daily_travis_ci.rb on 20131124
77
94
  * updated Manifest.txt
78
95
 
79
- === 0.1.4 / 22.10.2010
96
+ # 0.1.4 / 22.10.2010
80
97
 
81
98
  * Add utility proc rows_to_skip
82
99
  * Forced version in gemspec to 0.1.4
83
100
  * Refactored. Added utility each_valid_row
84
101
 
85
- === 0.1.3 / 16.8.2010
102
+ # 0.1.3 / 16.8.2010
86
103
 
87
104
  * Swissmedic_Packungen without 'Gruppe'
88
105
 
Binary file
Binary file
@@ -1,8 +1,8 @@
1
- = swissmedic-diff
1
+ # swissmedic-diff
2
2
 
3
3
  * https://github.com/zdavatz/swissmedic-diff
4
4
 
5
- == DESCRIPTION:
5
+ ## DESCRIPTION:
6
6
 
7
7
  * Compares two Excel Documents provided by Swissmedic and displays the
8
8
  salient differences. Also: Find out what Products have changed on the
@@ -13,7 +13,7 @@ Up-To-Date file:
13
13
  * http://www.swissmedic.ch//daten/00080/00251/index.html
14
14
 
15
15
 
16
- == FEATURES/PROBLEMS:
16
+ ## FEATURES/PROBLEMS:
17
17
 
18
18
  Swissmedic does not store old files. You must do this on your own.
19
19
 
@@ -27,12 +27,12 @@ directory as follows:
27
27
 
28
28
  Then you can get the version 0.1.2.
29
29
 
30
- == REQUIREMENTS:
30
+ ## REQUIREMENTS:
31
31
 
32
32
  * ruby 1.9, ruby 2.x
33
33
  * spreadsheet
34
34
 
35
- == INSTALL:
35
+ ## INSTALL:
36
36
 
37
37
  The easiest way to install is via RubyGems. On the command line enter:
38
38
 
@@ -49,7 +49,7 @@ See test directory for tests. Run
49
49
 
50
50
  for testing.
51
51
 
52
- == USAGE:
52
+ ## USAGE:
53
53
 
54
54
  Usage: /usr/bin/swissmedic-diff [-gnr] <file1> <file2> [<output>]
55
55
 
@@ -57,13 +57,13 @@ Usage: /usr/bin/swissmedic-diff [-gnr] <file1> <file2> [<output>]
57
57
  -n --name sort by name
58
58
  -r --registration sort by registration
59
59
 
60
- == DEVELOPERS:
60
+ ## DEVELOPERS:
61
61
 
62
62
  * Hannes Wyss <hwyss@ywesee.com>
63
63
  * Masaomi Hatakeyama <mhatakeyama@ywesee.com>
64
64
  * Zeno R.R. Davatz <zdavatz@ywesee.com>
65
65
  * Niklaus Giger <ngiger@ywesee.com>
66
66
 
67
- == LICENSE:
67
+ ## LICENSE:
68
68
 
69
69
  * GPLv2
data/Rakefile CHANGED
@@ -1,7 +1,13 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'rubygems'
3
+ require "rubygems"
4
4
  require "bundler/gem_tasks"
5
+ require "rake/testtask"
6
+ require "rake/clean"
5
7
 
6
- require 'rake/clean'
7
- CLEAN.include FileList['*.log']
8
+ CLEAN.include FileList["*.log"]
9
+
10
+ Rake::TestTask.new do |t|
11
+ t.libs << "test"
12
+ t.test_files = FileList["test/test_*.rb"]
13
+ end