brand2csv 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. metadata +117 -93
  3. data/.gemtest +0 -0
  4. data/.gitignore +0 -10
  5. data/.rspec +0 -1
  6. data/.travis.yml +0 -14
  7. data/Gemfile +0 -14
  8. data/Gemfile.lock +0 -76
  9. data/History.txt +0 -111
  10. data/LICENCE.txt +0 -515
  11. data/Manifest.txt +0 -54
  12. data/README.md +0 -27
  13. data/Rakefile +0 -25
  14. data/bin/brand2csv +0 -100
  15. data/lib/brand2csv.rb +0 -590
  16. data/lib/brand2csv/version.rb +0 -3
  17. data/logs/aspen_08_08_1986.html +0 -598
  18. data/logs/post.rohdaten.httpfox +0 -1
  19. data/logs/post.rohdaten.mechanize +0 -1
  20. data/logs/protocol_swissreg.log +0 -86
  21. data/logs/result_01.10.2005.jsp +0 -598
  22. data/logs/sr1.jsp +0 -449
  23. data/logs/sr3.jsp +0 -598
  24. data/logs/start.jsp +0 -350
  25. data/logs/start2.jsp +0 -434
  26. data/protocol.2013.05.12.textile +0 -56
  27. data/protocol.2013.05.15.textile +0 -49
  28. data/protocol.2013.05.21.textile +0 -84
  29. data/spec/brand2csv_spec.rb +0 -62
  30. data/spec/csv_spec.rb +0 -27
  31. data/spec/data/aspectra/detail_00001_P-480296.html +0 -531
  32. data/spec/data/aspectra/detail_00002_P-482236.html +0 -531
  33. data/spec/data/aspectra/detail_00003_641074.html +0 -539
  34. data/spec/data/aspectra/first_results.html +0 -600
  35. data/spec/data/einfache_suche.html +0 -434
  36. data/spec/data/erweiterte_suche.html +0 -446
  37. data/spec/data/main.html +0 -350
  38. data/spec/data/result_short.html +0 -606
  39. data/spec/data/resultate_1.html +0 -446
  40. data/spec/data/resultate_2.html +0 -446
  41. data/spec/data/urner_wildheu/detail_00001_57862.2013.html +0 -516
  42. data/spec/data/urner_wildheu/first_results.html +0 -598
  43. data/spec/data/vereinfachte_1.html +0 -847
  44. data/spec/data/vereinfachte_detail_33.html +0 -516
  45. data/spec/detail_spec.rb +0 -28
  46. data/spec/short_spec.rb +0 -55
  47. data/spec/simple_search.rb +0 -43
  48. data/spec/spec_helper.rb +0 -34
  49. data/spec/support/core_ext/kernel.rb +0 -26
  50. data/spec/support/server_mock_helper.rb +0 -142
  51. data/spec/swissreg_spec.rb +0 -44
  52. data/spec/trademark_numbers_spec.rb +0 -21
  53. data/spec/utilities_spec.rb +0 -83
  54. data/spike.rb +0 -491
  55. data/spike_mechanize_swissreg.rb +0 -312
  56. data/spike_watir.rb +0 -58
  57. data/swissreg.rb +0 -75
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ac6466b50f94574643e0f2d44aad8df563415d3
4
- data.tar.gz: 51f0797bc1a14d38bb7e3c58794c85412c2f9019
3
+ metadata.gz: 24b732970e880208c9583fe2a40789920fc5c791
4
+ data.tar.gz: 45c350df72e3ad67b79f986e97c30fe235cbd3b5
5
5
  SHA512:
6
- metadata.gz: befd70c4323638bdfdfab9226ef9d0b5fb4a1a466f9d603f3961e54019a2177d3fc88ec57b07e50b7377bddeefea538da74e717ffb45a387e631c1fa97d13793
7
- data.tar.gz: 7d67cd338cf64b7bf0b1f7af89fe5578493ba420e794812054f64cb89987590a36fcee38cb5535bd40badbab441eae5e97a8c78705b70818336bfb57e1a4f715
6
+ metadata.gz: 2eb8d798519e8ad4110b96b2dfa6734de75f9aeeed880f1a1633f616ad83481c01101961d5803f9ae8a4da143d92ec52919a489be40c07cb3f0f22e567a9c389
7
+ data.tar.gz: fd8f62da2183e74c66c18b6a778d54d202d9a21f060cb7884f4285785077fc6d437726eb4173124ab6689a7263f1f1173e5e28721e289893c1e020e29a6ca5c2
metadata CHANGED
@@ -1,176 +1,200 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brand2csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklaus Giger, Yasuhiro Asaka, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.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
26
  version: '2.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: watir
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: watir-webdriver
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
27
111
  - !ruby/object:Gem::Dependency
28
112
  name: rdoc
29
113
  requirement: !ruby/object:Gem::Requirement
30
114
  requirements:
31
- - - ~>
115
+ - - ">="
32
116
  - !ruby/object:Gem::Version
33
- version: '3.10'
117
+ version: '0'
34
118
  type: :development
35
119
  prerelease: false
36
120
  version_requirements: !ruby/object:Gem::Requirement
37
121
  requirements:
38
- - - ~>
122
+ - - ">="
39
123
  - !ruby/object:Gem::Version
40
- version: '3.10'
124
+ version: '0'
41
125
  - !ruby/object:Gem::Dependency
42
126
  name: rspec
43
127
  requirement: !ruby/object:Gem::Requirement
44
128
  requirements:
45
- - - '>='
129
+ - - ">="
46
130
  - !ruby/object:Gem::Version
47
131
  version: '0'
48
132
  type: :development
49
133
  prerelease: false
50
134
  version_requirements: !ruby/object:Gem::Requirement
51
135
  requirements:
52
- - - '>='
136
+ - - ">="
53
137
  - !ruby/object:Gem::Version
54
138
  version: '0'
55
139
  - !ruby/object:Gem::Dependency
56
- name: webmock
140
+ name: pry-byebug
57
141
  requirement: !ruby/object:Gem::Requirement
58
142
  requirements:
59
- - - '>='
143
+ - - ">="
60
144
  - !ruby/object:Gem::Version
61
145
  version: '0'
62
146
  type: :development
63
147
  prerelease: false
64
148
  version_requirements: !ruby/object:Gem::Requirement
65
149
  requirements:
66
- - - '>='
150
+ - - ">="
67
151
  - !ruby/object:Gem::Version
68
152
  version: '0'
69
153
  - !ruby/object:Gem::Dependency
70
- name: hoe
154
+ name: pry-doc
71
155
  requirement: !ruby/object:Gem::Requirement
72
156
  requirements:
73
- - - '>='
157
+ - - ">="
74
158
  - !ruby/object:Gem::Version
75
- version: '3.4'
159
+ version: '0'
76
160
  type: :development
77
161
  prerelease: false
78
162
  version_requirements: !ruby/object:Gem::Requirement
79
163
  requirements:
80
- - - '>='
164
+ - - ">="
81
165
  - !ruby/object:Gem::Version
82
- version: '3.4'
83
- description: "brand2csv creates csv files for swiss brand registered in a specific
84
- time period. \n The csv contains the brand, link to image (if present), link to
85
- the detailinfo at swissreg.ch, name and address of owner (Inhaber)"
86
- email: ngiger@ywesee.com, yasaka@ywesee.com, zdavatz@ywesee.com
87
- executables:
88
- - brand2csv
166
+ version: '0'
167
+ description: |-
168
+ brand2csv creates csv files for swiss brand registered in a specific time period.
169
+ The csv contains the brand, link to image (if present), link to the detailinfo at swissreg.ch, name and address of owner (Inhaber)
170
+ email: yasaka@ywesee.com, zdavatz@ywesee.com, ngiger@ywesee.com
171
+ executables: []
89
172
  extensions: []
90
- extra_rdoc_files:
91
- - History.txt
92
- - LICENCE.txt
93
- - Manifest.txt
94
- files:
95
- - .gitignore
96
- - .rspec
97
- - .travis.yml
98
- - Gemfile
99
- - Gemfile.lock
100
- - History.txt
101
- - LICENCE.txt
102
- - Manifest.txt
103
- - README.md
104
- - Rakefile
105
- - bin/brand2csv
106
- - lib/brand2csv.rb
107
- - lib/brand2csv/version.rb
108
- - logs/aspen_08_08_1986.html
109
- - logs/post.rohdaten.httpfox
110
- - logs/post.rohdaten.mechanize
111
- - logs/protocol_swissreg.log
112
- - logs/result_01.10.2005.jsp
113
- - logs/sr1.jsp
114
- - logs/sr3.jsp
115
- - logs/start.jsp
116
- - logs/start2.jsp
117
- - protocol.2013.05.12.textile
118
- - protocol.2013.05.15.textile
119
- - protocol.2013.05.21.textile
120
- - spec/brand2csv_spec.rb
121
- - spec/csv_spec.rb
122
- - spec/data/aspectra/detail_00001_P-480296.html
123
- - spec/data/aspectra/detail_00002_P-482236.html
124
- - spec/data/aspectra/detail_00003_641074.html
125
- - spec/data/aspectra/first_results.html
126
- - spec/data/einfache_suche.html
127
- - spec/data/erweiterte_suche.html
128
- - spec/data/main.html
129
- - spec/data/result_short.html
130
- - spec/data/resultate_1.html
131
- - spec/data/resultate_2.html
132
- - spec/data/urner_wildheu/detail_00001_57862.2013.html
133
- - spec/data/urner_wildheu/first_results.html
134
- - spec/data/vereinfachte_1.html
135
- - spec/data/vereinfachte_detail_33.html
136
- - spec/detail_spec.rb
137
- - spec/short_spec.rb
138
- - spec/simple_search.rb
139
- - spec/spec_helper.rb
140
- - spec/support/core_ext/kernel.rb
141
- - spec/support/server_mock_helper.rb
142
- - spec/swissreg_spec.rb
143
- - spec/trademark_numbers_spec.rb
144
- - spec/utilities_spec.rb
145
- - spike.rb
146
- - spike_mechanize_swissreg.rb
147
- - spike_watir.rb
148
- - swissreg.rb
149
- - .gemtest
173
+ extra_rdoc_files: []
174
+ files: []
150
175
  homepage: https://github.com/zdavatz/brand2csv
151
176
  licenses:
152
- - GPLv3.0
177
+ - GPLv3
153
178
  metadata: {}
154
179
  post_install_message:
155
- rdoc_options:
156
- - --main
157
- - README.md
180
+ rdoc_options: []
158
181
  require_paths:
159
182
  - lib
160
183
  required_ruby_version: !ruby/object:Gem::Requirement
161
184
  requirements:
162
- - - '>='
185
+ - - ">="
163
186
  - !ruby/object:Gem::Version
164
187
  version: '0'
165
188
  required_rubygems_version: !ruby/object:Gem::Requirement
166
189
  requirements:
167
- - - '>='
190
+ - - ">="
168
191
  - !ruby/object:Gem::Version
169
192
  version: '0'
170
193
  requirements: []
171
- rubyforge_project: brand2csv
172
- rubygems_version: 2.0.3
194
+ rubyforge_project:
195
+ rubygems_version: 2.5.1
173
196
  signing_key:
174
197
  specification_version: 4
175
- summary: brand2csv creates csv files for swiss brands.
198
+ summary: brand2csv creates csv files for swiss brands
176
199
  test_files: []
200
+ has_rdoc:
data/.gemtest DELETED
File without changes
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *~
2
- *#
3
- .ruby-version
4
- .bundle
5
- ausgabe.csv
6
- mechanize/
7
- log/
8
- pkg/
9
- watir/
10
- doc/
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
@@ -1,14 +0,0 @@
1
- language: ruby
2
-
3
- script: bundle exec rake spec
4
-
5
- rvm:
6
- - 1.8.7
7
- - 1.9.3
8
- - 2.0.0
9
- notifications:
10
- email:
11
- recipients:
12
- - ngiger@ywesee.com
13
- - yasaka@ywesee.com
14
- - zdavatz@ywesee.com
data/Gemfile DELETED
@@ -1,14 +0,0 @@
1
- source 'https://rubygems.org'
2
- gem 'mechanize'
3
- gem 'json', '~> 1.7.7'
4
- gem 'nokogiri', '~> 1.5.10'
5
-
6
- group :development do
7
- gem 'watir'
8
- gem 'watir-webdriver'
9
-
10
- gem 'rspec'
11
- gem 'webmock'
12
- gem 'hoe', '>= 3.4'
13
- gem 'rdoc'
14
- end
@@ -1,76 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.3.4)
5
- childprocess (0.3.9)
6
- ffi (~> 1.0, >= 1.0.11)
7
- commonwatir (4.0.0)
8
- crack (0.3.2)
9
- diff-lcs (1.2.4)
10
- domain_name (0.5.11)
11
- unf (>= 0.0.5, < 1.0.0)
12
- ffi (1.8.1)
13
- hoe (3.6.2)
14
- rake (>= 0.8, < 11.0)
15
- http-cookie (1.0.1)
16
- domain_name (~> 0.5)
17
- json (1.7.7)
18
- mechanize (2.7.1)
19
- domain_name (~> 0.5, >= 0.5.1)
20
- http-cookie (~> 1.0.0)
21
- mime-types (~> 1.17, >= 1.17.2)
22
- net-http-digest_auth (~> 1.1, >= 1.1.1)
23
- net-http-persistent (~> 2.5, >= 2.5.2)
24
- nokogiri (~> 1.4)
25
- ntlm-http (~> 0.1, >= 0.1.1)
26
- webrobots (>= 0.0.9, < 0.2)
27
- mime-types (1.23)
28
- multi_json (1.7.5)
29
- net-http-digest_auth (1.3)
30
- net-http-persistent (2.8)
31
- nokogiri (1.5.10)
32
- ntlm-http (0.1.1)
33
- rake (10.0.4)
34
- rdoc (4.0.1)
35
- json (~> 1.4)
36
- rspec (2.13.0)
37
- rspec-core (~> 2.13.0)
38
- rspec-expectations (~> 2.13.0)
39
- rspec-mocks (~> 2.13.0)
40
- rspec-core (2.13.1)
41
- rspec-expectations (2.13.0)
42
- diff-lcs (>= 1.1.3, < 2.0)
43
- rspec-mocks (2.13.1)
44
- rubyzip (0.9.9)
45
- selenium-webdriver (2.33.0)
46
- childprocess (>= 0.2.5)
47
- multi_json (~> 1.0)
48
- rubyzip
49
- websocket (~> 1.0.4)
50
- unf (0.1.1)
51
- unf_ext
52
- unf_ext (0.0.6)
53
- watir (4.0.2)
54
- commonwatir (~> 4)
55
- watir-webdriver
56
- watir-webdriver (0.6.4)
57
- selenium-webdriver (>= 2.18.0)
58
- webmock (1.11.0)
59
- addressable (>= 2.2.7)
60
- crack (>= 0.3.2)
61
- webrobots (0.1.1)
62
- websocket (1.0.7)
63
-
64
- PLATFORMS
65
- ruby
66
-
67
- DEPENDENCIES
68
- hoe (>= 3.4)
69
- json (~> 1.7.7)
70
- mechanize
71
- nokogiri (~> 1.5.10)
72
- rdoc
73
- rspec
74
- watir
75
- watir-webdriver
76
- webmock
@@ -1,111 +0,0 @@
1
- === 0.3.0 23.09.2013
2
-
3
- * Fix errors under Ruby 1.8.7. Use Ja/Nein instead of false/true
4
- * updated Manifest.txt
5
-
6
- === 0.2.9 23.09.2013
7
-
8
- * Remove some debugging output
9
- * Added support for agent
10
- * Refactored testing trademarks specs
11
- * Updated .gitignore
12
- * Updated Rakefile with License
13
- * updated Rakefile
14
- * updated Rakefile to include License
15
-
16
- === 0.2.8 28.08.2013
17
-
18
- * Update author
19
- * Add build badge
20
- * Fix webmock specs
21
-
22
- === 0.2.7 27.08.2013
23
-
24
- * Update to handle too many result view in swissreg
25
-
26
- === 0.2.6 26.08.2013
27
-
28
- * Update to work with ruby 1.8.7
29
- * Remove $0 check from executable
30
-
31
- === 0.2.5 26.08.2013
32
-
33
- * Add timespan validator
34
-
35
- === 0.2.4 06.06.2013
36
-
37
- * Rescue another exception
38
-
39
- === 0.2.3 06.06.2013
40
-
41
- * Added option --swiss_only
42
-
43
- === 0.2.2 05.06.2013
44
-
45
- * Fixed (re-)opening of session
46
- * Reorganized for long run. Still errors on reconnect
47
- * Added real fetch from swissreg to specs
48
-
49
- === 0.2.1 02.06.2013
50
-
51
- * Fixed problems with ampersands. Emit clear error when swisssreg.ch not responding correctly
52
-
53
- === 0.2.0 02.06.2013
54
-
55
- * Updated README.md
56
- * Fix problem with & in names
57
- * Catch "500 Internal Server Error" when connecting to swissreg
58
-
59
- === 0.1.9 02.06.2013
60
-
61
- * Fixed bug which prevented correct interpretation of result.
62
- * Display again errors when search too long
63
- * Update to latest mechanize gem
64
-
65
- === 0.1.8 01.06.2013
66
-
67
- * Save partial results and wait 1 seconds between fetching each detail
68
-
69
- === 0.1.7 27.05.2013
70
-
71
- * Avoid force_encoding if ruby version 1.8.*
72
- * Retry up to three times for failures
73
- * Make rspec spec pass under Ruby 1.8.*
74
-
75
- === 0.1.6 27.05.2013
76
-
77
- * Added support for parsing results up to 10'000 hits
78
- * Added rspec
79
- * Added (undocumented) second parameter to limit according the trademark name
80
- * Added .travis.yml to enable running tests via http://about.travis-ci.org/docs/
81
-
82
- === 0.1.5 23.05.2013
83
-
84
- * Run under Ruby 1.8.7
85
-
86
- === 0.1.4 22.05.2013
87
-
88
- * Better handling of adresslines like '90 route de Frontenex', 'Via San Salvatore, 2'
89
-
90
- === 0.1.3 22.05.2013
91
-
92
- * Updated Manifest.txt to include bin/brand2csv
93
-
94
- === 0.1.2 / 22.05.2013
95
-
96
- * Added forgotton bin/brand2csv
97
- * Use ';' as separator between fields in *.csv
98
- * Save as <timespan>.csv
99
-
100
- === 0.1.1 / 21.05.2013
101
-
102
- * Fetches as many records as possible
103
- * Still don't why id_swissreg:mainContent:id_txf_appDate (Hinterlegungsdatum) is not honored
104
-
105
- === 0.1 / 21.05.2013
106
-
107
- * First release. Does not handle timespan correctly
108
- * Saves only "Inhaber" with an address inside Switzerland (by design)
109
-
110
-
111
-