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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 925c71a322a4c7cd09d8c9424abd81a789e6e1f4a7873d1a57bfc00b5c8d94eb
4
- data.tar.gz: 1e7dc182db7f46ceadfc140ee5e4d1ea10297ea9670533ba65ed6fefbf937182
3
+ metadata.gz: 19f01fbc8c05af3fb278f60dfd6178e70b9f8a677ff133a1d0e0d13fc838ec58
4
+ data.tar.gz: 1f3db9c21bdff31bf23688d410947885af394ac449a477cf8514e6288b6c5c0e
5
5
  SHA512:
6
- metadata.gz: 2c780ba3d8556a397b65e32bea5ceff473f7f0ced14872a02231e30d15ec4f508d495e943878346a1354e739a6292d37b07c03d8efe2e4fe480e293e33e83b6c
7
- data.tar.gz: 3fa78fda4e35364769e91cc9c1ae41b78cd46d3b37cbf8aad5223fdc03920ef136c9470d0c201b587b40c1ffe870a5b1daec0abd9e4cfe0cddcac60ad883cacb
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.7)
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
- 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)
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.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)
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
- ruby
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
- 1.17.2
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
@@ -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))
@@ -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
- "+ " << describe(@diff, iksnr)
329
+ "+ " + describe(@diff, iksnr)
326
330
  elsif(flags.include? :delete)
327
- "- " << describe(@diff, iksnr)
331
+ "- " + describe(@diff, iksnr)
328
332
  else
329
- "> " << describe(@diff, iksnr) << "; " \
330
- << flags.collect { |flag| describe_flag(@diff, iksnr, flag)
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
@@ -1,3 +1,3 @@
1
1
  class SwissmedicDiff
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.9'
3
3
  end
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.7
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: 2019-03-13 00:00:00.000000000 Z
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-2015.07.02.xlsx
125
- - Packungen-2016.01.09.xlsx
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
- post_install_message:
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
- rubyforge_project:
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:
Binary file
Binary file
Binary file