gtin2atc 0.1.1 → 0.1.2

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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5fde24bd193bb317155d193187921c62d47b9694
4
- data.tar.gz: eec181694b853f52ee99d275e276291655f72d24
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGNiOTI1OWE4YWFkNDYzODUxMTQwYWE4NTEyOWU3OWU5MmYyN2Q4OA==
5
+ data.tar.gz: !binary |-
6
+ ZTkzODk2MDEzYzE0MDFjOWNjYTczOTJlNGYwMTViNzZhYTQ0N2U1NQ==
5
7
  SHA512:
6
- metadata.gz: adaabdf14c6ec0ea883e4969c9e94b0beb22e491843474323845911c81d2a7d796f418e8f99734f23d1a29618a4859be1e048dca01191941eceaaa56b1acf984
7
- data.tar.gz: 106691a04f037e14f49725626a6a069830313922645c3ae09147995293f09512f857e2ad09eb917d2e64b63c9c4a37628d4424f7884b3013763086a3d57c701e
8
+ metadata.gz: !binary |-
9
+ ZTk1MzFjZDk5MDljN2Y1OGM1MDM1ZWRmNDhhNmM0YTY5ZTgxZDliNmFlMjcx
10
+ YjE2NWM5OTllMjhkNDA3Zjk1MzExODA0ODg4N2IwOTY0Yzc4MDI2M2Y3ZDll
11
+ YzliMjY2YmJhMWQ0YjI0ZGMwYzIyNWY0ZDZmM2Y4MmU3NDJhOTk=
12
+ data.tar.gz: !binary |-
13
+ NDU0ZTA5NDY0OTZiYTQwZWRjMjIzMzlkYTIyN2RlZWI3Mjg2YTQ3YWZmY2Yw
14
+ MmIyMDlhY2NiYjM5NTFkOGUwYTcyOGYzMTI5MTU0OTI3M2M2YzVhZGRkNzYz
15
+ ZDNlYTg3OWFlMGZkY2E5YTRjYWE3YjFiNmQ4ZjkwNGNiZGQ3NWE=
data/.travis.yml CHANGED
@@ -7,7 +7,12 @@ cache: bundler
7
7
  before_install:
8
8
  - gem --version
9
9
 
10
- script: bundle exec rspec
10
+ script:
11
+ - bundle exec rspec
12
+ - bundle exec rake gem
13
+ - gem install pkg/*.gem
14
+ - gtin2atc --help
15
+ - gtin2atc --compare --full
11
16
 
12
17
  rvm:
13
18
  - 1.9.3
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.1.2 27.01.2015
2
+
3
+ * Travis should install and test installed gem, too
4
+ * Clarified when only matching in 2 of 3 places
5
+
1
6
  === 0.1.1 27.01.2015
2
7
 
3
8
  * Create many reporfiles with --compare --full
data/gtin2atc.gemspec CHANGED
@@ -20,14 +20,12 @@ Gem::Specification.new do |spec|
20
20
  # We fix the version of the spec to newer versions only in the third position
21
21
  # hoping that these version fix only security/severe bugs
22
22
  # Consulted the Gemfile.lock to get
23
- spec.add_dependency 'rubyzip', '~> 1.1.3'
24
- # spec.add_dependency 'archive-tar-minitar', '~> 0.5.2'
23
+ spec.add_dependency 'rubyzip', '~> 1.1.6'
25
24
  spec.add_dependency 'mechanize', '~> 2.5.1'
26
25
  spec.add_dependency 'nokogiri', '~> 1.5.10'
27
- spec.add_dependency 'savon'#, '~> 2.4.0'
28
- # spec.add_dependency 'spreadsheet', '~> 1.0.0'
29
- spec.add_dependency 'rubyXL'
30
- spec.add_dependency 'sax-machine' #, '~> 0.1.0'
26
+ spec.add_dependency 'savon', '~> 2.4.0'
27
+ spec.add_dependency 'rubyXL', '~> 3.3.0'
28
+ spec.add_dependency 'sax-machine', '~> 1.3.0'
31
29
 
32
30
  spec.add_development_dependency "bundler"
33
31
  spec.add_development_dependency "rake"
@@ -209,14 +209,14 @@ module Gtin2atc
209
209
  "
210
210
  Util.info "Comparing ATC-Codes between bag and swissmedic"
211
211
  report('compare_bag_to_swissmedic', 'items had the same ATC code in bag, swissindex and swissmedic', matching_atc_codes)
212
- report('compare_bag_to_swissmedic', 'are the same in swissmedic and bag', match_in_swissmedic)
212
+ report('compare_bag_to_swissmedic', 'are the same in swissmedic and bag, but not in swissindex', match_in_swissmedic)
213
213
  report('compare_bag_to_swissmedic', 'are different in swissmedic and bag', different_atc_in_swissmedic)
214
214
  report('compare_bag_to_swissmedic', 'are shorter in swissmedic than in bag', shorter_in_swissmedic)
215
215
  report('compare_bag_to_swissmedic', 'are longer in swissmedic than in bag', longer_in_swissmedic)
216
216
 
217
217
  Util.info "Comparing ATC-Codes between bag and swissindex"
218
218
  report('compare_bag_to_swissindex', 'items had the same ATC code in bag, swissindex and swissmedic', matching_atc_codes)
219
- report('compare_bag_to_swissindex', 'are the same in swissindex and bag', match_in_swissindex)
219
+ report('compare_bag_to_swissindex', 'are the same in swissindex and bag, but not in swissmedic', match_in_swissindex)
220
220
  report('compare_bag_to_swissindex', 'are different in swissmedic and bag', different_atc_in_swissindex)
221
221
  report('compare_bag_to_swissindex', 'are shorter in swissindex than in bag', shorter_in_swissindex)
222
222
  report('compare_bag_to_swissindex', 'are longer in swissindex than in bag', longer_in_swissindex)
data/lib/gtin2atc/util.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'date'
2
2
  module Gtin2atc
3
3
  class Util
4
- @@archive = File.expand_path(File.join(__FILE__, '../../..'))
4
+ @@archive = Dir.pwd
5
5
  @@today = Date.today
6
6
  @@logging = false
7
7
  def Util.get_today
@@ -1,3 +1,3 @@
1
1
  module Gtin2atc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtin2atc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklaus Giger, Zeno R.R. Davatz
@@ -14,154 +14,154 @@ dependencies:
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.3
19
+ version: 1.1.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.3
26
+ version: 1.1.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mechanize
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.5.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.5.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.5.10
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.5.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: savon
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 2.4.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 2.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubyXL
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 3.3.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 3.3.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sax-machine
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 1.3.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 1.3.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - ! '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: webmock
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rdoc
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - ! '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  description: gtin2atc file with gtin, atc_code, pharmanr from input file with gtin
@@ -171,10 +171,9 @@ executables:
171
171
  extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
- - ".gitignore"
175
- - ".travis.yml"
174
+ - .gitignore
175
+ - .travis.yml
176
176
  - Gemfile
177
- - Gemfile.lock
178
177
  - History.txt
179
178
  - LICENSE
180
179
  - Rakefile
@@ -204,17 +203,17 @@ require_paths:
204
203
  - lib
205
204
  required_ruby_version: !ruby/object:Gem::Requirement
206
205
  requirements:
207
- - - ">="
206
+ - - ! '>='
208
207
  - !ruby/object:Gem::Version
209
208
  version: '0'
210
209
  required_rubygems_version: !ruby/object:Gem::Requirement
211
210
  requirements:
212
- - - ">="
211
+ - - ! '>='
213
212
  - !ruby/object:Gem::Version
214
213
  version: '0'
215
214
  requirements: []
216
215
  rubyforge_project:
217
- rubygems_version: 2.1.11
216
+ rubygems_version: 2.4.5
218
217
  signing_key:
219
218
  specification_version: 4
220
219
  summary: gtin2atc creates csv files with GTIN and ATC.
data/Gemfile.lock DELETED
@@ -1,115 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- gtin2atc (0.1.1)
5
- mechanize (~> 2.5.1)
6
- nokogiri (~> 1.5.10)
7
- rubyXL
8
- rubyzip (~> 1.1.3)
9
- savon
10
- sax-machine
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- addressable (2.3.6)
16
- akami (1.2.2)
17
- gyoku (>= 0.4.0)
18
- nokogiri
19
- builder (3.2.2)
20
- byebug (3.5.1)
21
- columnize (~> 0.8)
22
- debugger-linecache (~> 1.2)
23
- slop (~> 3.6)
24
- coderay (1.1.0)
25
- columnize (0.9.0)
26
- crack (0.4.2)
27
- safe_yaml (~> 1.0.0)
28
- debugger-linecache (1.2.0)
29
- diff-lcs (1.2.5)
30
- domain_name (0.5.23)
31
- unf (>= 0.0.5, < 1.0.0)
32
- gyoku (1.1.1)
33
- builder (>= 2.1.2)
34
- httpi (2.1.1)
35
- rack
36
- rubyntlm (~> 0.3.2)
37
- json (1.8.2)
38
- mechanize (2.5.1)
39
- domain_name (~> 0.5, >= 0.5.1)
40
- mime-types (~> 1.17, >= 1.17.2)
41
- net-http-digest_auth (~> 1.1, >= 1.1.1)
42
- net-http-persistent (~> 2.5, >= 2.5.2)
43
- nokogiri (~> 1.4)
44
- ntlm-http (~> 0.1, >= 0.1.1)
45
- webrobots (~> 0.0, >= 0.0.9)
46
- method_source (0.8.2)
47
- mime-types (1.25.1)
48
- net-http-digest_auth (1.4)
49
- net-http-persistent (2.9.4)
50
- nokogiri (1.5.11)
51
- nori (2.3.0)
52
- ntlm-http (0.1.1)
53
- pry (0.10.1)
54
- coderay (~> 1.1.0)
55
- method_source (~> 0.8.1)
56
- slop (~> 3.4)
57
- pry-byebug (2.0.0)
58
- byebug (~> 3.4)
59
- pry (~> 0.10)
60
- rack (1.6.0)
61
- rake (10.4.2)
62
- rdoc (4.2.0)
63
- json (~> 1.4)
64
- rspec (3.1.0)
65
- rspec-core (~> 3.1.0)
66
- rspec-expectations (~> 3.1.0)
67
- rspec-mocks (~> 3.1.0)
68
- rspec-core (3.1.7)
69
- rspec-support (~> 3.1.0)
70
- rspec-expectations (3.1.2)
71
- diff-lcs (>= 1.2.0, < 2.0)
72
- rspec-support (~> 3.1.0)
73
- rspec-mocks (3.1.3)
74
- rspec-support (~> 3.1.0)
75
- rspec-support (3.1.2)
76
- rubyXL (3.3.2)
77
- nokogiri (>= 1.4.4)
78
- rubyzip (>= 1.1.6)
79
- rubyntlm (0.3.4)
80
- rubyzip (1.1.6)
81
- safe_yaml (1.0.4)
82
- savon (2.4.0)
83
- akami (~> 1.2.0)
84
- builder (>= 2.1.2)
85
- gyoku (~> 1.1.0)
86
- httpi (~> 2.1.0)
87
- nokogiri (>= 1.4.0)
88
- nori (~> 2.3.0)
89
- wasabi (~> 3.2.2)
90
- sax-machine (0.1.0)
91
- nokogiri (> 0.0.0)
92
- slop (3.6.0)
93
- unf (0.1.4)
94
- unf_ext
95
- unf_ext (0.0.6)
96
- wasabi (3.2.3)
97
- httpi (~> 2.0)
98
- mime-types (< 2.0.0)
99
- nokogiri (>= 1.4.0)
100
- webmock (1.20.4)
101
- addressable (>= 2.3.6)
102
- crack (>= 0.3.2)
103
- webrobots (0.1.1)
104
-
105
- PLATFORMS
106
- ruby
107
-
108
- DEPENDENCIES
109
- bundler
110
- gtin2atc!
111
- pry-byebug
112
- rake
113
- rdoc
114
- rspec
115
- webmock