swissmedic-diff 0.2.7 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +37 -31
- data/History.txt +11 -0
- data/Packungen-2023.08.08.xlsx +0 -0
- data/Packungen-2023.09.08.xlsx +0 -0
- data/lib/swissmedic-diff.rb +9 -5
- data/lib/version.rb +1 -1
- metadata +35 -11
- data/Packungen-2015.07.02.xlsx +0 -0
- data/Packungen-2016.01.09.xlsx +0 -0
- data/Packungen-2017.09.07.xlsx +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19f01fbc8c05af3fb278f60dfd6178e70b9f8a677ff133a1d0e0d13fc838ec58
|
4
|
+
data.tar.gz: 1f3db9c21bdff31bf23688d410947885af394ac449a477cf8514e6288b6c5c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ee5d408db72535624e955106475e1769ddd53bd1a7913e277478865ae0456b0ed7da0c2ae483821e8ec7e53f6098c5058d65bf32dd826a4cdab9940b14b895
|
7
|
+
data.tar.gz: bddc6043f86be354fa31727ed8b2fd6cf3f0069ddc6065b4431beae2993a6a77e7291a32935da674047d840c4816e016e0faa3665f11df54880571639b08bf3c
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
swissmedic-diff (0.2.
|
4
|
+
swissmedic-diff (0.2.9)
|
5
|
+
logger
|
5
6
|
nokogiri
|
7
|
+
ostruct
|
6
8
|
rubyXL (>= 3.3.1)
|
7
9
|
rubyzip
|
8
10
|
spreadsheet
|
@@ -11,41 +13,45 @@ GEM
|
|
11
13
|
remote: https://rubygems.org/
|
12
14
|
specs:
|
13
15
|
ansi (1.5.0)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
minitest
|
16
|
+
bigdecimal (3.1.9)
|
17
|
+
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)
|
23
|
+
minitest-reporters (1.7.1)
|
21
24
|
ansi
|
22
25
|
builder
|
23
26
|
minitest (>= 5.0)
|
24
27
|
ruby-progressbar
|
25
|
-
nokogiri (1.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
28
|
+
nokogiri (1.18.1-x86_64-linux-gnu)
|
29
|
+
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
|
+
racc (1.8.1)
|
41
|
+
rake (13.2.1)
|
42
|
+
ruby-ole (1.2.13.1)
|
43
|
+
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)
|
46
52
|
|
47
53
|
PLATFORMS
|
48
|
-
|
54
|
+
x86_64-linux
|
49
55
|
|
50
56
|
DEPENDENCIES
|
51
57
|
minitest
|
@@ -56,4 +62,4 @@ DEPENDENCIES
|
|
56
62
|
swissmedic-diff!
|
57
63
|
|
58
64
|
BUNDLED WITH
|
59
|
-
|
65
|
+
2.5.22
|
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 0.2.9 / 07.01.2025
|
2
|
+
|
3
|
+
* Eliminated warning because of frozen string under Ruby 3.4
|
4
|
+
* Added devenv environment for Ruby 3.4 (see https://devenv.sh/)
|
5
|
+
|
6
|
+
=== 0.2.8 / 04.10.2023
|
7
|
+
|
8
|
+
* Fix problem when expiration_date is a string 'Unbegrenzt'
|
9
|
+
* Updated tests
|
10
|
+
* Added Ruby 3.2 for running github/workflow tests
|
11
|
+
|
1
12
|
=== 0.2.7 / 13.03.2019
|
2
13
|
|
3
14
|
* Set date to nil when expiration_date is a string 'Unbegrenzt'
|
Binary file
|
Binary file
|
data/lib/swissmedic-diff.rb
CHANGED
@@ -155,7 +155,11 @@ class SwissmedicDiff
|
|
155
155
|
sprintf "%s (%s)", txt, pairs.join(',')
|
156
156
|
when :registration_date, :expiry_date
|
157
157
|
row = diff.newest_rows[iksnr].sort.first.last
|
158
|
-
|
158
|
+
if row[COLUMNS_2014.keys.index(flag)].value.to_s.match(REGEXP_UNLIMITED)
|
159
|
+
sprintf "%s (%s)", txt, 'unbegrenzt'
|
160
|
+
else
|
161
|
+
sprintf "%s (%s)", txt, row[COLUMNS_2014.keys.index(flag)].value.strftime('%d.%m.%Y')
|
162
|
+
end
|
159
163
|
else
|
160
164
|
row = diff.newest_rows[iksnr].sort.first.last
|
161
165
|
sprintf "%s (%s)", txt, cell(row, COLUMNS_2014.keys.index(flag))
|
@@ -322,12 +326,12 @@ class SwissmedicDiff
|
|
322
326
|
_sort_by(sort, iksnr, flags)
|
323
327
|
}.collect { |iksnr, flags|
|
324
328
|
if(flags.include? :new)
|
325
|
-
"+ "
|
329
|
+
"+ " + describe(@diff, iksnr)
|
326
330
|
elsif(flags.include? :delete)
|
327
|
-
"- "
|
331
|
+
"- " + describe(@diff, iksnr)
|
328
332
|
else
|
329
|
-
"> "
|
330
|
-
|
333
|
+
"> " + describe(@diff, iksnr) << "; " \
|
334
|
+
+ flags.collect { |flag| describe_flag(@diff, iksnr, flag)
|
331
335
|
}.compact.join(", ")
|
332
336
|
end
|
333
337
|
}.join("\n")
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swissmedic-diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannes Wyss, Masaomi Hatakeyama
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rubyXL
|
@@ -66,6 +65,34 @@ dependencies:
|
|
66
65
|
- - ">="
|
67
66
|
- !ruby/object:Gem::Version
|
68
67
|
version: '0'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: logger
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
type: :runtime
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: ostruct
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
69
96
|
- !ruby/object:Gem::Dependency
|
70
97
|
name: rake
|
71
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,9 +148,8 @@ files:
|
|
121
148
|
- History.txt
|
122
149
|
- LICENSE
|
123
150
|
- Manifest.txt
|
124
|
-
- Packungen-
|
125
|
-
- Packungen-
|
126
|
-
- Packungen-2017.09.07.xlsx
|
151
|
+
- Packungen-2023.08.08.xlsx
|
152
|
+
- Packungen-2023.09.08.xlsx
|
127
153
|
- README.txt
|
128
154
|
- Rakefile
|
129
155
|
- bin/swissmedic-diff
|
@@ -133,8 +159,8 @@ files:
|
|
133
159
|
- test/test_swissmedic-diff.rb
|
134
160
|
homepage: https://github.com/zdavatz/swissmedic-diff
|
135
161
|
licenses: []
|
136
|
-
metadata:
|
137
|
-
|
162
|
+
metadata:
|
163
|
+
changelog_uri: https://github.com/zdavatz/swissmedic-diff/blob/master/History.md
|
138
164
|
rdoc_options: []
|
139
165
|
require_paths:
|
140
166
|
- lib
|
@@ -149,9 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
175
|
- !ruby/object:Gem::Version
|
150
176
|
version: '0'
|
151
177
|
requirements: []
|
152
|
-
|
153
|
-
rubygems_version: 2.7.3
|
154
|
-
signing_key:
|
178
|
+
rubygems_version: 3.6.2
|
155
179
|
specification_version: 4
|
156
180
|
summary: Find out what Products have changed on the swiss healthcare market
|
157
181
|
test_files:
|
data/Packungen-2015.07.02.xlsx
DELETED
Binary file
|
data/Packungen-2016.01.09.xlsx
DELETED
Binary file
|
data/Packungen-2017.09.07.xlsx
DELETED
Binary file
|