swissmedic-diff 0.2.9 → 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: 19f01fbc8c05af3fb278f60dfd6178e70b9f8a677ff133a1d0e0d13fc838ec58
4
- data.tar.gz: 1f3db9c21bdff31bf23688d410947885af394ac449a477cf8514e6288b6c5c0e
3
+ metadata.gz: 148fd8071ce6cb4e6d8800719cf00a9389533d78b44639e3e6d8abdf63e748ec
4
+ data.tar.gz: 9f898594652b70299dd2813632cfe5c802cc36fa8d5281af1bf53f0e264ba368
5
5
  SHA512:
6
- metadata.gz: 47ee5d408db72535624e955106475e1769ddd53bd1a7913e277478865ae0456b0ed7da0c2ae483821e8ec7e53f6098c5058d65bf32dd826a4cdab9940b14b895
7
- data.tar.gz: bddc6043f86be354fa31727ed8b2fd6cf3f0069ddc6065b4431beae2993a6a77e7291a32935da674047d840c4816e016e0faa3665f11df54880571639b08bf3c
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,22 +1,34 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swissmedic-diff (0.2.9)
4
+ swissmedic-diff (0.3.0)
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
17
  byebug (11.1.3)
19
18
  coderay (1.1.3)
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)
20
32
  logger (1.6.4)
21
33
  method_source (1.1.0)
22
34
  minitest (5.25.4)
@@ -28,6 +40,14 @@ GEM
28
40
  nokogiri (1.18.1-x86_64-linux-gnu)
29
41
  racc (~> 1.4)
30
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)
31
51
  pry (0.14.2)
32
52
  coderay (~> 1.1)
33
53
  method_source (~> 1.0)
@@ -37,28 +57,70 @@ GEM
37
57
  pry-doc (1.5.0)
38
58
  pry (~> 0.11)
39
59
  yard (~> 0.9.11)
60
+ psych (5.2.6)
61
+ date
62
+ stringio
40
63
  racc (1.8.1)
64
+ rainbow (3.1.1)
41
65
  rake (13.2.1)
42
- ruby-ole (1.2.13.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)
43
90
  ruby-progressbar (1.13.0)
44
- rubyXL (3.4.33)
45
- nokogiri (>= 1.10.8)
46
- rubyzip (>= 1.3.0)
47
91
  rubyzip (2.4.1)
48
- spreadsheet (1.3.3)
49
- bigdecimal
50
- ruby-ole
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)
51
111
  yard (0.9.37)
52
112
 
53
113
  PLATFORMS
54
114
  x86_64-linux
55
115
 
56
116
  DEPENDENCIES
117
+ debug
57
118
  minitest
58
119
  minitest-reporters
59
120
  pry-byebug
60
121
  pry-doc
61
122
  rake
123
+ standard
62
124
  swissmedic-diff!
63
125
 
64
126
  BUNDLED WITH
@@ -1,74 +1,83 @@
1
- === 0.2.9 / 07.01.2025
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
2
11
 
3
12
  * Eliminated warning because of frozen string under Ruby 3.4
4
13
  * Added devenv environment for Ruby 3.4 (see https://devenv.sh/)
5
14
 
6
- === 0.2.8 / 04.10.2023
15
+ # 0.2.8 / 04.10.2023
7
16
 
8
17
  * Fix problem when expiration_date is a string 'Unbegrenzt'
9
18
  * Updated tests
10
19
  * Added Ruby 3.2 for running github/workflow tests
11
20
 
12
- === 0.2.7 / 13.03.2019
21
+ # 0.2.7 / 13.03.2019
13
22
 
14
23
  * Set date to nil when expiration_date is a string 'Unbegrenzt'
15
24
 
16
- === 0.2.6 / 13.02.2019
25
+ # 0.2.6 / 13.02.2019
17
26
 
18
27
  * Adapt to swissmedic new XLSX files
19
28
 
20
- === 0.2.5 / 05.02.2018
29
+ # 0.2.5 / 05.02.2018
21
30
 
22
31
  * Adapte to swissmedic fixing a typo for betäubunsmittel
23
32
  * Run travis tests for ruby 2.5, too
24
33
 
25
- === 0.2.3 / 25.09.2017
34
+ # 0.2.3 / 25.09.2017
26
35
 
27
36
  * Fix comparing Date cells
28
37
  * Run travis tests for ruby 2.3 and 2.4
29
38
 
30
- === 0.2.2 / 11.01.2016
39
+ # 0.2.2 / 11.01.2016
31
40
 
32
41
  * Don't fail if date cells are nil
33
42
  * Show version of gem with -h
34
43
  * Use /usr/bin/env ruby to get actual ruby. Was fixed to outdated /usr/bin/ruby18
35
44
  * Run travis tests for ruby 2.2.3, too.
36
45
 
37
- === 0.2.1 / 06.07.2015
46
+ # 0.2.1 / 06.07.2015
38
47
 
39
48
  * Fix problems comparing dates (using to_date.start)
40
49
  * Assume nothing has changed when comparing nil with an emtpy string
41
50
  * Revert nr of paramenters of diff method to previous version, to make oddb.org happy again
42
51
 
43
- === 0.2.0 / 03.07.2015
52
+ # 0.2.0 / 03.07.2015
44
53
 
45
54
  * Abort if Swissmedic introduces incompatible header lines
46
55
  * Support new format of SwissMedic July 2015
47
56
  * Reworked compating xlsx-files
48
57
  * Remove support for old .xls-format (used before 2013)
49
58
 
50
- === 0.1.9 / 08.06.2015
59
+ # 0.1.9 / 08.06.2015
51
60
 
52
61
  * Swissmedic has different header lines
53
62
 
54
- === 0.1.8 / 07.07.2014
63
+ # 0.1.8 / 07.07.2014
55
64
 
56
65
  * Support parsing xlsx of Swissmedic July
57
66
 
58
- === 0.1.7 / 15.01.2014
67
+ # 0.1.7 / 15.01.2014
59
68
 
60
69
  * Support comparing xls and xslx files
61
70
  * Must use rubyzip 0.9.9 to support all ruby versions
62
71
  * Added debugger to Gemfile
63
72
 
64
- === 0.1.6 / 14.01.2014
73
+ # 0.1.6 / 14.01.2014
65
74
 
66
75
  * Added test/data/Packungen-2014.xlsx
67
76
  * Added missing dependencies for rubyXL
68
77
  * Moved VERSION to separate file
69
78
  * Use rubyXL for xslx files
70
79
 
71
- === 0.1.5 / 11.12.2013
80
+ # 0.1.5 / 11.12.2013
72
81
 
73
82
  * Updated tests as we no longer raise an error
74
83
  * Update to spreadsheet 0.9.6
@@ -76,13 +85,13 @@
76
85
  * daily_travis_ci.rb on 20131124
77
86
  * updated Manifest.txt
78
87
 
79
- === 0.1.4 / 22.10.2010
88
+ # 0.1.4 / 22.10.2010
80
89
 
81
90
  * Add utility proc rows_to_skip
82
91
  * Forced version in gemspec to 0.1.4
83
92
  * Refactored. Added utility each_valid_row
84
93
 
85
- === 0.1.3 / 16.8.2010
94
+ # 0.1.3 / 16.8.2010
86
95
 
87
96
  * Swissmedic_Packungen without 'Gruppe'
88
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"]