swissmedic-diff 0.2.8 → 0.3.0

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: 4c9f7f364660ce0313e6261e73e127c73e6f737b236e95a19934a817ba7e2eed
4
- data.tar.gz: aa425b73fdfd27acc1f5a59c7b091c4655355f647e232fd91e781eef925a04e4
3
+ metadata.gz: 148fd8071ce6cb4e6d8800719cf00a9389533d78b44639e3e6d8abdf63e748ec
4
+ data.tar.gz: 9f898594652b70299dd2813632cfe5c802cc36fa8d5281af1bf53f0e264ba368
5
5
  SHA512:
6
- metadata.gz: 002e643de90c8536d6e891420cf66960f1447636eca5bdd775a14f7469f337ad8cc98422427dc4ea8e9e9a76e046afa489667bebb705bacb983d27d7d2b6cb33
7
- data.tar.gz: 9eda362cca9621f6f6ad60d5fe476bde48d691f5dcd058b618f1cbe69176d4e26e098a5a78e7ceca8dc39d4a5444b992a03a9b3d077b325f334f6bcff7f6cddd
6
+ metadata.gz: 103e81c93f7df059a2985f7840c5092441438a2c57d8b360470aa6e242f17937170ae91a20ec4aa90c1727c5ee279bc84832047b1c1c185482d5a207bc5e497b
7
+ data.tar.gz: f9d4ceedc50676eaa4ccb3bbab86d11e70db961ec7f879b6d39b9aa93bd54cf479bc7860f75d2bf239d2ca7444ae3a358b506f53985a574ad8cf6199da4aa0a7
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,59 +1,127 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swissmedic-diff (0.2.8)
4
+ swissmedic-diff (0.3.0)
5
+ logger
5
6
  nokogiri
6
- rubyXL (>= 3.3.1)
7
+ ostruct
7
8
  rubyzip
8
- spreadsheet
9
+ simple_xlsx_reader
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
13
14
  ansi (1.5.0)
14
- builder (3.2.4)
15
+ ast (2.4.3)
16
+ builder (3.3.0)
15
17
  byebug (11.1.3)
16
18
  coderay (1.1.3)
17
- method_source (1.0.0)
18
- minitest (5.20.0)
19
- minitest-reporters (1.6.1)
19
+ date (3.4.1)
20
+ debug (1.11.0)
21
+ irb (~> 1.10)
22
+ reline (>= 0.3.8)
23
+ erb (5.0.1)
24
+ io-console (0.8.0)
25
+ irb (1.15.2)
26
+ pp (>= 0.6.0)
27
+ rdoc (>= 4.0.0)
28
+ reline (>= 0.4.2)
29
+ json (2.12.2)
30
+ language_server-protocol (3.17.0.5)
31
+ lint_roller (1.1.0)
32
+ logger (1.6.4)
33
+ method_source (1.1.0)
34
+ minitest (5.25.4)
35
+ minitest-reporters (1.7.1)
20
36
  ansi
21
37
  builder
22
38
  minitest (>= 5.0)
23
39
  ruby-progressbar
24
- nokogiri (1.15.4-x86_64-linux)
40
+ nokogiri (1.18.1-x86_64-linux-gnu)
25
41
  racc (~> 1.4)
42
+ ostruct (0.6.1)
43
+ parallel (1.27.0)
44
+ parser (3.3.8.0)
45
+ ast (~> 2.4.1)
46
+ racc
47
+ pp (0.6.2)
48
+ prettyprint
49
+ prettyprint (0.2.0)
50
+ prism (1.4.0)
26
51
  pry (0.14.2)
27
52
  coderay (~> 1.1)
28
53
  method_source (~> 1.0)
29
54
  pry-byebug (3.10.1)
30
55
  byebug (~> 11.0)
31
56
  pry (>= 0.13, < 0.15)
32
- pry-doc (1.4.0)
57
+ pry-doc (1.5.0)
33
58
  pry (~> 0.11)
34
59
  yard (~> 0.9.11)
35
- racc (1.7.1)
36
- rake (13.0.6)
37
- ruby-ole (1.2.12.2)
60
+ psych (5.2.6)
61
+ date
62
+ stringio
63
+ racc (1.8.1)
64
+ rainbow (3.1.1)
65
+ rake (13.2.1)
66
+ rdoc (6.14.2)
67
+ erb
68
+ psych (>= 4.0.0)
69
+ regexp_parser (2.10.0)
70
+ reline (0.6.1)
71
+ io-console (~> 0.5)
72
+ rubocop (1.75.8)
73
+ json (~> 2.3)
74
+ language_server-protocol (~> 3.17.0.2)
75
+ lint_roller (~> 1.1.0)
76
+ parallel (~> 1.10)
77
+ parser (>= 3.3.0.2)
78
+ rainbow (>= 2.2.2, < 4.0)
79
+ regexp_parser (>= 2.9.3, < 3.0)
80
+ rubocop-ast (>= 1.44.0, < 2.0)
81
+ ruby-progressbar (~> 1.7)
82
+ unicode-display_width (>= 2.4.0, < 4.0)
83
+ rubocop-ast (1.45.1)
84
+ parser (>= 3.3.7.2)
85
+ prism (~> 1.4)
86
+ rubocop-performance (1.25.0)
87
+ lint_roller (~> 1.1)
88
+ rubocop (>= 1.75.0, < 2.0)
89
+ rubocop-ast (>= 1.38.0, < 2.0)
38
90
  ruby-progressbar (1.13.0)
39
- rubyXL (3.4.25)
40
- nokogiri (>= 1.10.8)
41
- rubyzip (>= 1.3.0)
42
- rubyzip (2.3.2)
43
- spreadsheet (1.3.0)
44
- ruby-ole
45
- yard (0.9.34)
91
+ rubyzip (2.4.1)
92
+ simple_xlsx_reader (5.1.0)
93
+ nokogiri
94
+ rubyzip
95
+ standard (1.50.0)
96
+ language_server-protocol (~> 3.17.0.2)
97
+ lint_roller (~> 1.0)
98
+ rubocop (~> 1.75.5)
99
+ standard-custom (~> 1.0.0)
100
+ standard-performance (~> 1.8)
101
+ standard-custom (1.0.2)
102
+ lint_roller (~> 1.0)
103
+ rubocop (~> 1.50)
104
+ standard-performance (1.8.0)
105
+ lint_roller (~> 1.1)
106
+ rubocop-performance (~> 1.25.0)
107
+ stringio (3.1.7)
108
+ unicode-display_width (3.1.4)
109
+ unicode-emoji (~> 4.0, >= 4.0.4)
110
+ unicode-emoji (4.0.4)
111
+ yard (0.9.37)
46
112
 
47
113
  PLATFORMS
48
114
  x86_64-linux
49
115
 
50
116
  DEPENDENCIES
117
+ debug
51
118
  minitest
52
119
  minitest-reporters
53
120
  pry-byebug
54
121
  pry-doc
55
122
  rake
123
+ standard
56
124
  swissmedic-diff!
57
125
 
58
126
  BUNDLED WITH
59
- 2.4.10
127
+ 2.5.22
@@ -1,69 +1,83 @@
1
- === 0.2.8 / 04.10.2023
1
+ # 0.3.0 / 05.07.2025
2
+
3
+ * Use simple_xlsx_reader insted of RubyXL to speed up comparision
4
+ * Use standardrb to format the code
5
+ * Added minimal ruby-version and license to gemspec
6
+ * Removed testing and code for Swissmedic-Packages older than 2019
7
+ * Remove obsolete file setup.rb
8
+ * Replaced pry by debug
9
+
10
+ # 0.2.9 / 07.01.2025
11
+
12
+ * Eliminated warning because of frozen string under Ruby 3.4
13
+ * Added devenv environment for Ruby 3.4 (see https://devenv.sh/)
14
+
15
+ # 0.2.8 / 04.10.2023
2
16
 
3
17
  * Fix problem when expiration_date is a string 'Unbegrenzt'
4
18
  * Updated tests
5
19
  * Added Ruby 3.2 for running github/workflow tests
6
20
 
7
- === 0.2.7 / 13.03.2019
21
+ # 0.2.7 / 13.03.2019
8
22
 
9
23
  * Set date to nil when expiration_date is a string 'Unbegrenzt'
10
24
 
11
- === 0.2.6 / 13.02.2019
25
+ # 0.2.6 / 13.02.2019
12
26
 
13
27
  * Adapt to swissmedic new XLSX files
14
28
 
15
- === 0.2.5 / 05.02.2018
29
+ # 0.2.5 / 05.02.2018
16
30
 
17
31
  * Adapte to swissmedic fixing a typo for betäubunsmittel
18
32
  * Run travis tests for ruby 2.5, too
19
33
 
20
- === 0.2.3 / 25.09.2017
34
+ # 0.2.3 / 25.09.2017
21
35
 
22
36
  * Fix comparing Date cells
23
37
  * Run travis tests for ruby 2.3 and 2.4
24
38
 
25
- === 0.2.2 / 11.01.2016
39
+ # 0.2.2 / 11.01.2016
26
40
 
27
41
  * Don't fail if date cells are nil
28
42
  * Show version of gem with -h
29
43
  * Use /usr/bin/env ruby to get actual ruby. Was fixed to outdated /usr/bin/ruby18
30
44
  * Run travis tests for ruby 2.2.3, too.
31
45
 
32
- === 0.2.1 / 06.07.2015
46
+ # 0.2.1 / 06.07.2015
33
47
 
34
48
  * Fix problems comparing dates (using to_date.start)
35
49
  * Assume nothing has changed when comparing nil with an emtpy string
36
50
  * Revert nr of paramenters of diff method to previous version, to make oddb.org happy again
37
51
 
38
- === 0.2.0 / 03.07.2015
52
+ # 0.2.0 / 03.07.2015
39
53
 
40
54
  * Abort if Swissmedic introduces incompatible header lines
41
55
  * Support new format of SwissMedic July 2015
42
56
  * Reworked compating xlsx-files
43
57
  * Remove support for old .xls-format (used before 2013)
44
58
 
45
- === 0.1.9 / 08.06.2015
59
+ # 0.1.9 / 08.06.2015
46
60
 
47
61
  * Swissmedic has different header lines
48
62
 
49
- === 0.1.8 / 07.07.2014
63
+ # 0.1.8 / 07.07.2014
50
64
 
51
65
  * Support parsing xlsx of Swissmedic July
52
66
 
53
- === 0.1.7 / 15.01.2014
67
+ # 0.1.7 / 15.01.2014
54
68
 
55
69
  * Support comparing xls and xslx files
56
70
  * Must use rubyzip 0.9.9 to support all ruby versions
57
71
  * Added debugger to Gemfile
58
72
 
59
- === 0.1.6 / 14.01.2014
73
+ # 0.1.6 / 14.01.2014
60
74
 
61
75
  * Added test/data/Packungen-2014.xlsx
62
76
  * Added missing dependencies for rubyXL
63
77
  * Moved VERSION to separate file
64
78
  * Use rubyXL for xslx files
65
79
 
66
- === 0.1.5 / 11.12.2013
80
+ # 0.1.5 / 11.12.2013
67
81
 
68
82
  * Updated tests as we no longer raise an error
69
83
  * Update to spreadsheet 0.9.6
@@ -71,13 +85,13 @@
71
85
  * daily_travis_ci.rb on 20131124
72
86
  * updated Manifest.txt
73
87
 
74
- === 0.1.4 / 22.10.2010
88
+ # 0.1.4 / 22.10.2010
75
89
 
76
90
  * Add utility proc rows_to_skip
77
91
  * Forced version in gemspec to 0.1.4
78
92
  * Refactored. Added utility each_valid_row
79
93
 
80
- === 0.1.3 / 16.8.2010
94
+ # 0.1.3 / 16.8.2010
81
95
 
82
96
  * Swissmedic_Packungen without 'Gruppe'
83
97
 
@@ -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,7 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'rubygems'
3
+ require "rubygems"
4
4
  require "bundler/gem_tasks"
5
5
 
6
- require 'rake/clean'
7
- CLEAN.include FileList['*.log']
6
+ require "rake/clean"
7
+ CLEAN.include FileList["*.log"]