swissmedic-diff 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 03883d51e63ce4b274373d9524e82bb55b406e4b
4
+ data.tar.gz: 6fcaaf92a126ae180b71c0e693c1ed9908fd3cf3
5
+ SHA512:
6
+ metadata.gz: 1ba066e94fbcf0ecad22682c18cf72feea6cf264875ccfde3b974b62e533a292490446d8d5b721ca80e29bbaa18e2088d2882b3b7dd2bc79f7ca503e0553de78
7
+ data.tar.gz: 30c7cce1476073047735584c2c61215f928ac7948bc6feb64b6d024d7906398276010db28cb586fb19925f2aae860f73bd04cc951cedbe0612655f221049648c
data/.travis.yml CHANGED
@@ -8,6 +8,7 @@ notifications:
8
8
  - zdavatz@ywesee.com
9
9
  rvm:
10
10
  - ruby-head
11
+ - 2.2.3
11
12
  - 2.1.2
12
13
  - 2.0.0
13
14
  - 1.9.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swissmedic-diff (0.2.1)
4
+ swissmedic-diff (0.2.2)
5
5
  nokogiri
6
6
  rubyXL (= 3.3.1)
7
7
  rubyzip
@@ -19,15 +19,15 @@ GEM
19
19
  hoe (3.13.1)
20
20
  rake (>= 0.8, < 11.0)
21
21
  method_source (0.8.2)
22
- mini_portile (0.6.2)
22
+ mini_portile2 (2.0.0)
23
23
  minitest (5.7.0)
24
24
  minitest-reporters (1.0.17)
25
25
  ansi
26
26
  builder
27
27
  minitest (>= 5.0)
28
28
  ruby-progressbar
29
- nokogiri (1.6.6.2)
30
- mini_portile (~> 0.6.0)
29
+ nokogiri (1.6.7)
30
+ mini_portile2 (~> 2.0.0.rc2)
31
31
  pry (0.10.1)
32
32
  coderay (~> 1.1.0)
33
33
  method_source (~> 0.8.1)
@@ -46,7 +46,7 @@ GEM
46
46
  rubyzip (>= 1.1.6)
47
47
  rubyzip (1.1.7)
48
48
  slop (3.6.0)
49
- spreadsheet (1.0.3)
49
+ spreadsheet (1.1.0)
50
50
  ruby-ole (>= 1.0)
51
51
  yard (0.8.7.6)
52
52
 
@@ -63,4 +63,4 @@ DEPENDENCIES
63
63
  swissmedic-diff!
64
64
 
65
65
  BUNDLED WITH
66
- 1.10.5
66
+ 1.11.2
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.2.2 / 11.01.2016
2
+
3
+ * Don't fail if date cells are nil
4
+ * Show version of gem with -h
5
+ * Use /usr/bin/env ruby to get actual ruby. Was fixed to outdated /usr/bin/ruby18
6
+ * Run travis tests for ruby 2.2.3, too.
7
+
1
8
  === 0.2.1 / 06.07.2015
2
9
 
3
10
  * Fix problems comparing dates (using to_date.start)
data/bin/swissmedic-diff CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/ruby18
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  require 'swissmedic-diff'
4
4
 
@@ -10,6 +10,8 @@ Usage: #$0 [-gnr] [-i ignorelist] <file1> <file2> [<output>]
10
10
  -n --name sort by name
11
11
  -r --registration sort by registration
12
12
  -i --ignore ignore differences in the following comma-separated keys
13
+
14
+ Version of swissmedic-diff is #{SwissmedicDiff::VERSION}
13
15
  EOS
14
16
  end
15
17
 
@@ -320,7 +320,7 @@ class SwissmedicDiff
320
320
  if cell = row[idx]
321
321
  case key
322
322
  when :registration_date, :expiry_date
323
- row[idx].value.to_date
323
+ row[idx] && row[idx].value ? row[idx].value.to_date : nil
324
324
  when :seqnr
325
325
  sprintf "%02i", cell(row, idx).to_i
326
326
  else
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class SwissmedicDiff
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,60 +1,51 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swissmedic-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
5
- prerelease:
4
+ version: 0.2.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rdoc
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '4.0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '4.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: hoe
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '3.13'
33
+ version: '3.7'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '3.13'
46
- description: ! '* Compares two Excel Documents provided by Swissmedic and displays
47
- the
48
-
40
+ version: '3.7'
41
+ description: |-
42
+ * Compares two Excel Documents provided by Swissmedic and displays the
49
43
  salient differences. Also: Find out what Products have changed on the
50
-
51
44
  swiss healthcare market.
52
45
 
53
-
54
46
  Up-To-Date file:
55
47
 
56
-
57
- * http://www.swissmedic.ch//daten/00080/00251/index.html'
48
+ * http://www.swissmedic.ch//daten/00080/00251/index.html
58
49
  email:
59
50
  - mhatakeyama@ywesee.com, zdavatz@ywesee.com
60
51
  executables:
@@ -65,8 +56,9 @@ extra_rdoc_files:
65
56
  - Manifest.txt
66
57
  - README.txt
67
58
  files:
68
- - .gitignore
69
- - .travis.yml
59
+ - ".gemtest"
60
+ - ".gitignore"
61
+ - ".travis.yml"
70
62
  - Gemfile
71
63
  - Gemfile.lock
72
64
  - History.txt
@@ -85,33 +77,32 @@ files:
85
77
  - test/data/Packungen-2015.06.04.xlsx
86
78
  - test/data/Packungen-2015.07.02.xlsx
87
79
  - test/test_swissmedic-diff.rb
88
- - .gemtest
89
80
  homepage: https://github.com/zdavatz/swissmedic-diff
90
81
  licenses:
91
82
  - MIT
83
+ metadata: {}
92
84
  post_install_message:
93
85
  rdoc_options:
94
- - --main
86
+ - "--main"
95
87
  - README.txt
96
88
  require_paths:
97
89
  - lib
98
90
  required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
91
  requirements:
101
- - - ! '>='
92
+ - - ">="
102
93
  - !ruby/object:Gem::Version
103
94
  version: '0'
104
95
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
96
  requirements:
107
- - - ! '>='
97
+ - - ">="
108
98
  - !ruby/object:Gem::Version
109
99
  version: '0'
110
100
  requirements: []
111
- rubyforge_project:
112
- rubygems_version: 1.8.23.2
101
+ rubyforge_project: swissmedic-diff
102
+ rubygems_version: 2.4.5
113
103
  signing_key:
114
- specification_version: 3
115
- summary: ! '* Compares two Excel Documents provided by Swissmedic and displays the
116
- salient differences'
117
- test_files: []
104
+ specification_version: 4
105
+ summary: "* Compares two Excel Documents provided by Swissmedic and displays the salient
106
+ differences"
107
+ test_files:
108
+ - test/test_swissmedic-diff.rb