gtin2atc 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.travis.yml +27 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +115 -0
- data/History.txt +3 -0
- data/LICENSE +675 -0
- data/Rakefile +43 -0
- data/bin/gtin2atc +34 -0
- data/gtin2atc.gemspec +38 -0
- data/lib/gtin2atc/builder.rb +376 -0
- data/lib/gtin2atc/downloader.rb +252 -0
- data/lib/gtin2atc/options.rb +39 -0
- data/lib/gtin2atc/util.rb +47 -0
- data/lib/gtin2atc/version.rb +3 -0
- data/lib/gtin2atc/xml_definitions.rb +250 -0
- data/lib/gtin2atc.rb +9 -0
- data/readme.textile +19 -0
- data/spec/builder_spec.rb +147 -0
- data/spec/data/XMLPublications.zip +0 -0
- data/spec/data/swissindex_Pharma_DE.xml +179 -0
- data/spec/data/swissmedic_package.xlsx +0 -0
- data/spec/data/swissmedic_packages.html +12 -0
- data/spec/spec_helper.rb +69 -0
- metadata +227 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f3d1cd6f1453e7360e43480e469813b2869ebc7e
|
4
|
+
data.tar.gz: 4f965256f218c76683b7d968d189191eb4b50c26
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 902b0381e432bb1a95ce16071322925ca11d593400707a7307b34592a5d81c7075d34457a2a997cfb4a8a3a0b1ffccbb7ddc66fa0151ce78ceb3cb75acbff581
|
7
|
+
data.tar.gz: f8392f123d3e388e7acb039e43e974bef28e80903c117e81b3f9a3a4001763724500faab8f7999d8610fede65c2a8c0b2f1dbf323958d8c5578d0c6499aa75ec
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle*
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
InstalledFiles
|
7
|
+
_yardoc
|
8
|
+
coverage
|
9
|
+
doc/
|
10
|
+
lib/bundler/man
|
11
|
+
pkg
|
12
|
+
rdoc
|
13
|
+
spec/reports
|
14
|
+
test/tmp
|
15
|
+
test/version_tmp
|
16
|
+
tmp
|
17
|
+
.ruby-version
|
18
|
+
spec/run
|
19
|
+
.~lock*
|
20
|
+
/*.xml
|
21
|
+
/*.csv
|
22
|
+
/*.zip
|
data/.travis.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
bundler_args: --without debugger
|
4
|
+
|
5
|
+
cache: bundler
|
6
|
+
|
7
|
+
before_install:
|
8
|
+
- gem --version
|
9
|
+
|
10
|
+
script: bundle exec rspec
|
11
|
+
|
12
|
+
rvm:
|
13
|
+
- 1.9.3
|
14
|
+
- 2.0.0
|
15
|
+
- 2.1
|
16
|
+
- 2.2
|
17
|
+
- ruby-head
|
18
|
+
|
19
|
+
matrix:
|
20
|
+
allow_failures:
|
21
|
+
- rvm: ruby-head
|
22
|
+
|
23
|
+
notifications:
|
24
|
+
email:
|
25
|
+
recipients:
|
26
|
+
- ngiger@ywesee.com
|
27
|
+
- zdavatz@ywesee.com
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gtin2atc (0.1.0)
|
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
|
data/History.txt
ADDED