swissmedic-diff 0.2.7 → 0.2.8

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: 925c71a322a4c7cd09d8c9424abd81a789e6e1f4a7873d1a57bfc00b5c8d94eb
4
- data.tar.gz: 1e7dc182db7f46ceadfc140ee5e4d1ea10297ea9670533ba65ed6fefbf937182
3
+ metadata.gz: 4c9f7f364660ce0313e6261e73e127c73e6f737b236e95a19934a817ba7e2eed
4
+ data.tar.gz: aa425b73fdfd27acc1f5a59c7b091c4655355f647e232fd91e781eef925a04e4
5
5
  SHA512:
6
- metadata.gz: 2c780ba3d8556a397b65e32bea5ceff473f7f0ced14872a02231e30d15ec4f508d495e943878346a1354e739a6292d37b07c03d8efe2e4fe480e293e33e83b6c
7
- data.tar.gz: 3fa78fda4e35364769e91cc9c1ae41b78cd46d3b37cbf8aad5223fdc03920ef136c9470d0c201b587b40c1ffe870a5b1daec0abd9e4cfe0cddcac60ad883cacb
6
+ metadata.gz: 002e643de90c8536d6e891420cf66960f1447636eca5bdd775a14f7469f337ad8cc98422427dc4ea8e9e9a76e046afa489667bebb705bacb983d27d7d2b6cb33
7
+ data.tar.gz: 9eda362cca9621f6f6ad60d5fe476bde48d691f5dcd058b618f1cbe69176d4e26e098a5a78e7ceca8dc39d4a5444b992a03a9b3d077b325f334f6bcff7f6cddd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swissmedic-diff (0.2.7)
4
+ swissmedic-diff (0.2.8)
5
5
  nokogiri
6
6
  rubyXL (>= 3.3.1)
7
7
  rubyzip
@@ -11,41 +11,41 @@ GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  ansi (1.5.0)
14
- builder (3.2.3)
15
- byebug (9.1.0)
16
- coderay (1.1.2)
17
- method_source (0.8.2)
18
- mini_portile2 (2.4.0)
19
- minitest (5.10.3)
20
- minitest-reporters (1.1.18)
14
+ builder (3.2.4)
15
+ byebug (11.1.3)
16
+ coderay (1.1.3)
17
+ method_source (1.0.0)
18
+ minitest (5.20.0)
19
+ minitest-reporters (1.6.1)
21
20
  ansi
22
21
  builder
23
22
  minitest (>= 5.0)
24
23
  ruby-progressbar
25
- nokogiri (1.10.1)
26
- mini_portile2 (~> 2.4.0)
27
- pry (0.11.0)
28
- coderay (~> 1.1.0)
29
- method_source (~> 0.8.1)
30
- pry-byebug (3.5.0)
31
- byebug (~> 9.1)
32
- pry (~> 0.10)
33
- pry-doc (0.11.1)
34
- pry (~> 0.9)
35
- yard (~> 0.9)
36
- rake (12.3.0)
37
- ruby-ole (1.2.12.1)
38
- ruby-progressbar (1.8.3)
39
- rubyXL (3.4.2)
40
- nokogiri (>= 1.4.4)
41
- rubyzip (>= 1.1.6)
42
- rubyzip (1.2.2)
43
- spreadsheet (1.2.2)
44
- ruby-ole (>= 1.0)
45
- yard (0.9.9)
24
+ nokogiri (1.15.4-x86_64-linux)
25
+ racc (~> 1.4)
26
+ pry (0.14.2)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
29
+ pry-byebug (3.10.1)
30
+ byebug (~> 11.0)
31
+ pry (>= 0.13, < 0.15)
32
+ pry-doc (1.4.0)
33
+ pry (~> 0.11)
34
+ yard (~> 0.9.11)
35
+ racc (1.7.1)
36
+ rake (13.0.6)
37
+ ruby-ole (1.2.12.2)
38
+ 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)
46
46
 
47
47
  PLATFORMS
48
- ruby
48
+ x86_64-linux
49
49
 
50
50
  DEPENDENCIES
51
51
  minitest
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  swissmedic-diff!
57
57
 
58
58
  BUNDLED WITH
59
- 1.17.2
59
+ 2.4.10
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.2.8 / 04.10.2023
2
+
3
+ * Fix problem when expiration_date is a string 'Unbegrenzt'
4
+ * Updated tests
5
+ * Added Ruby 3.2 for running github/workflow tests
6
+
1
7
  === 0.2.7 / 13.03.2019
2
8
 
3
9
  * Set date to nil when expiration_date is a string 'Unbegrenzt'
Binary file
Binary file
@@ -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
- sprintf "%s (%s)", txt, row[COLUMNS_2014.keys.index(flag)].value.strftime('%d.%m.%Y')
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))
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class SwissmedicDiff
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swissmedic-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Wyss, Masaomi Hatakeyama
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyXL
@@ -121,9 +121,8 @@ files:
121
121
  - History.txt
122
122
  - LICENSE
123
123
  - Manifest.txt
124
- - Packungen-2015.07.02.xlsx
125
- - Packungen-2016.01.09.xlsx
126
- - Packungen-2017.09.07.xlsx
124
+ - Packungen-2023.08.08.xlsx
125
+ - Packungen-2023.09.08.xlsx
127
126
  - README.txt
128
127
  - Rakefile
129
128
  - bin/swissmedic-diff
@@ -134,7 +133,7 @@ files:
134
133
  homepage: https://github.com/zdavatz/swissmedic-diff
135
134
  licenses: []
136
135
  metadata: {}
137
- post_install_message:
136
+ post_install_message:
138
137
  rdoc_options: []
139
138
  require_paths:
140
139
  - lib
@@ -149,9 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
148
  - !ruby/object:Gem::Version
150
149
  version: '0'
151
150
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.7.3
154
- signing_key:
151
+ rubygems_version: 3.4.13
152
+ signing_key:
155
153
  specification_version: 4
156
154
  summary: Find out what Products have changed on the swiss healthcare market
157
155
  test_files:
Binary file
Binary file
Binary file